BitMart TypeScript SDK example: futures-get-tickers.ts

BitMart TypeScript SDK REST Futures example for Bitmart/Rest/Futures/futures-get-tickers.ts. Source code reference for exchange REST, WebSocket, and API integration patterns with links to matching Siebly SDK documentation.

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

Related SDK Docs

Example Source

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