CCXT-readme-16.js
· 183 B · JavaScript
Raw
//esm example
import {version, binance} from 'ccxt';
console.log(version);
const exchange = new binance();
const ticker = await exchange.fetchTicker('BTC/USDT');
console.log(ticker);
1 | //esm example |
2 | import {version, binance} from 'ccxt'; |
3 | |
4 | console.log(version); |
5 | const exchange = new binance(); |
6 | const ticker = await exchange.fetchTicker('BTC/USDT'); |
7 | console.log(ticker); |