---
title: "Bitget REST Public UTA Spot JavaScript SDK Example | Siebly"
description: "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."
canonical: "https://siebly.io/examples/Bitget/V3%20-%20UTA/Rest/rest-public-UTA-spot"
robots: "index,follow"
---

# Bitget REST Public UTA Spot JavaScript SDK Example

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.

**Path:** [Home](/) / [Examples](/examples) / [Bitget](/examples/Bitget) / [V3 - UTA](/examples/Bitget/V3%20-%20UTA) / [Rest](/examples/Bitget/V3%20-%20UTA/Rest) / [rest-public-UTA-spot.ts](/examples/Bitget/V3%20-%20UTA/Rest/rest-public-UTA-spot)

[View source on GitHub](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Bitget/V3%20-%20UTA/Rest/rest-public-UTA-spot.ts)

[Open the Bitget JavaScript SDK guide](/sdk/bitget/javascript)

## rest-public-UTA-spot.ts

```typescript
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);
  }
})();
```
