Files
ritmex-bot/docs/ccxt/examples/ts/how-to-import-one-exchange-esm.ts
T
2025-10-03 15:28:16 +08:00

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