mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
|
||||
async function test () {
|
||||
|
||||
const exchange = new ccxt.okex ()
|
||||
await exchange.loadMarkets ()
|
||||
|
||||
for (let symbol in exchange.markets) {
|
||||
|
||||
const market = exchange.markets[symbol]
|
||||
|
||||
if (market['future']) {
|
||||
console.log ('----------------------------------------------------')
|
||||
console.log (symbol, await exchange.fetchTicker (symbol))
|
||||
await ccxt.sleep (exchange.rateLimit)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test ()
|
||||
Reference in New Issue
Block a user