mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 17:28:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
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 ())
|
||||
|
||||
}) ()
|
||||
Reference in New Issue
Block a user