UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

23 lines (15 loc) 504 B
"use strict"; const ccxt = require ('../../ccxt') 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 ()