mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
import ccxt from '../../js/ccxt.js';
|
|
|
|
const id = 'huobipro', exchange = new ccxt[id] ({ enableRateLimit: true }), symbol = 'ETH/BTC';(async function main () {
|
|
|
|
await exchange.loadMarkets ()
|
|
|
|
for (let i = 0; i < 2000; i++) {
|
|
|
|
const orderbook = await exchange.fetchOrderBook (symbol)
|
|
console.log (new Date (), i, symbol, orderbook.asks[0], orderbook.bids[0])
|
|
}
|
|
|
|
}) () |