Bitget TypeScript SDK example: rest-public-UTA-futures.ts
Bitget TypeScript SDK V3 UTA REST example for Bitget/V3 - UTA/Rest/rest-public-UTA-futures.ts. Source code reference for exchange REST, WebSocket, and API integration patterns with links to matching Siebly SDK documentation.
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);
}
})();