BitMart REST JavaScript SDK example: futures-get-tickers.ts

BitMart REST futures get tickers JavaScript example for the Siebly BitMart SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs.

We use environment variables in our examples for API keys. It is your responsibility to manage and secure your keys appropriately.

examples/Bitmart/Rest/Futures/futures-get-tickers.ts

What this example covers

  • BitMart REST API JavaScript example.
  • Uses the Siebly BitMart SDK package bitmart-api instead of hand-written HTTP request plumbing.
  • Source path: Bitmart/Rest/Futures/futures-get-tickers.ts.
  • Example category: REST.
  • Imports SDK symbols including FuturesClientV2.
  • Calls SDK methods such as getFuturesContractDetails().

How to use this example

  • Start here for the specific request or stream pattern, then check the matching SDK guide for install, credentials, and operational notes.
  • Open the repository source when you need the latest committed version: GitHub source file.
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(); 

Subscribe on Substack

Complete the Substack form below to join our newsletter. Substack handles all subscriber data directly.