Bitget V3 UTA REST public UTA futures JavaScript example. Read the source code, review its SDK calls, and browse related exchange integration examples.
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-futures.ts.RestClientV3.getCandles().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); }})(); 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.