UNPKG

@jmparsons/ccxt

Version:

A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges

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 ()