Bitget V3 UTA REST public UTA spot JavaScript example for the Siebly Bitget 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.
bitget-api instead of hand-written HTTP request plumbing.Bitget/V3 - UTA/Rest/rest-public-UTA-spot.ts.RestClientV3.getCandles().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); }})(); We use essential cookies and optional analytics. Read the Privacy Policy.
Essential cookies stay on. Toggle analytics if you want to share anonymous usage insights. You can revisit this anytime via Cookie Settings in the footer.