mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 16:58:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
import asTable from 'as-table';
|
||||
import log from 'ololog';
|
||||
import ansicolor from 'ansicolor';
|
||||
|
||||
ansicolor.nice
|
||||
|
||||
;(async function test () {
|
||||
|
||||
const exchange = new ccxt.bitfinex ()
|
||||
const limit = 5
|
||||
const orders = await exchange.fetchOrderBook ('BTC/USD', limit, {
|
||||
// this parameter is exchange-specific, all extra params have unique names per exchange
|
||||
'group': 1, // 1 = orders are grouped by price, 0 = orders are separate
|
||||
})
|
||||
|
||||
log (orders)
|
||||
}) ()
|
||||
Reference in New Issue
Block a user