mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 00:38:07 +00:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
import { binance } from '../../js/ccxt.js';
|
|
|
|
async function example () {
|
|
const exchange = new binance ({});
|
|
const ob = await exchange.fetchOrderBook ('BTC/USDT', 3);
|
|
const asks = ob['asks'];
|
|
const bids = ob['bids'];
|
|
console.log (asks);
|
|
console.log (bids);
|
|
}
|
|
example ();
|