Example: futures-get-tickers.ts
Static snapshot for Bitmart/Rest/Futures/futures-get-tickers.ts.
Example Path
Bitmart/Rest/Futures/futures-get-tickers.ts
Source Link
Repository source: https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Bitmart/Rest/Futures/futures-get-tickers.ts
Code Snapshot
import { FuturesClientV2 } from 'bitmart-api';
const client = new FuturesClientV2();
async function getFuturesTickers() {
try {
const tickers = await client.getFuturesContractDetails();
console.log('Tickers: ', JSON.stringify(tickers, null, 2));
} catch (e) {
console.error('Req error: ', e);
}
}
getFuturesTickers();
This is a static, crawlable snapshot. The interactive app loads after JavaScript starts and can refresh live data.