UNPKG

bot18

Version:

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

19 lines (14 loc) 514 B
"use strict"; const ccxt = require ('../../ccxt') const asTable = require ('as-table') const log = require ('ololog') require ('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) }) ()