Bitget TypeScript SDK example: rest-public-UTA-spot.ts
Bitget TypeScript SDK V3 UTA REST example for Bitget/V3 - UTA/Rest/rest-public-UTA-spot.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-spot.ts
Source Link
Repository source: https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Bitget/V3 - UTA/Rest/rest-public-UTA-spot.ts
Related SDK Docs
Example Source
import { RestClientV3 } from 'bitget-api';
const restClient = new RestClientV3();
(async () => {
try {
const response = await restClient.getCandles({
symbol: 'BTCUSDT',
category: 'SPOT',
interval: '1m',
});
console.table(response.data);
console.log('getCandles: ', response.data.length);
} catch (e) {
console.error('request failed: ', e);
}
})();