Bitget TypeScript SDK example: rest-public-UTA-futures.ts

Bitget V3 UTA REST REST public UTA futures example for the Siebly Bitget SDK, with TypeScript source for exchange REST API and WebSocket integration, setup, and production SDK docs.

What This Example Covers

  • Bitget REST API example in TypeScript.
  • Uses the Siebly Bitget SDK package bitget-api instead of hand-written HTTP request plumbing.
  • Source path: Bitget/V3 - UTA/Rest/rest-public-UTA-futures.ts.
  • Example category: V3 UTA REST.
  • Imports SDK symbols including RestClientV3.
  • Calls SDK methods such as getCandles().

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.

Example Path

Bitget/V3 - UTA/Rest/rest-public-UTA-futures.ts

Source Link

Repository source: https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Bitget/V3 - UTA/Rest/rest-public-UTA-futures.ts

Related SDK Docs

Example Source

import { RestClientV3 } from 'bitget-api';

const restClient = new RestClientV3();

const symbol = 'BTCUSDT';

(async () => {
  try {
    const response = await restClient.getCandles({
      symbol,
      category: 'USDT-FUTURES',
      interval: '1m',
    });

    console.table(response.data);

    console.log('getCandles returned ' + response.data.length + ' candles');
  } catch (e) {
    console.error('request failed: ', e);
  }
})();