This commit is contained in:
discountry
2025-10-03 15:28:16 +08:00
parent d5c4b04746
commit fcb83bd16b
925 changed files with 165721 additions and 4 deletions
@@ -0,0 +1,28 @@
- [Custom Proxy Url](./examples/js/)
```javascript
import ccxt from '../../js/ccxt.js';
(async function main () {
const kraken1 = new ccxt.kraken ({
proxy: function (url) {
return 'https://example.com/?url=' + encodeURIComponent (url)
},
})
console.log (await kraken1.loadMarkets ())
const kraken2 = new ccxt.kraken ({
proxy: function (url) {
return 'https://cors-anywhere.herokuapp.com/' + url
},
})
console.log (await kraken2.loadMarkets ())
}) ()
```