mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
- [How To Import One Exchange Esm](./examples/ts/)
|
||||
|
||||
|
||||
```javascript
|
||||
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 ();
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user