mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
23 lines
492 B
JavaScript
23 lines
492 B
JavaScript
|
|
|
|
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 ()
|