---
title: "KuCoin REST Futures Public JavaScript SDK Example | Siebly"
description: "KuCoin REST futures public JavaScript example for the Siebly KuCoin SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs."
canonical: "https://siebly.io/examples/Kucoin/Rest/rest-futures-public"
robots: "index,follow"
---

# KuCoin REST Futures Public JavaScript SDK Example

KuCoin REST futures public JavaScript example for the Siebly KuCoin SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs.

**Path:** [Home](/) / [Examples](/examples) / [Kucoin](/examples/Kucoin) / [Rest](/examples/Kucoin/Rest) / [rest-futures-public.ts](/examples/Kucoin/Rest/rest-futures-public)

[View source on GitHub](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Kucoin/Rest/rest-futures-public.ts)

[Open the KuCoin JavaScript SDK guide](/sdk/kucoin/javascript)

## rest-futures-public.ts

```typescript
import { FuturesClient } from 'kucoin-api';

async function start() {
  const client = new FuturesClient();

  try {
    // Fetch all symbols
    const symbols = await client.getSymbols();
    console.log('symbols:', JSON.stringify(symbols, null, 2));

    // Fetch ticker for a specific symbol
    const ticker = await client.getTicker({ symbol: 'XBTUSDM' });
    console.log('ticker:', JSON.stringify(ticker, null, 2));

    // Fetch klines for a specific symbol
    const klines = await client.getKlines({
      symbol: 'XBTUSDM',
      granularity: 60,
    });
    console.log('klines:', JSON.stringify(klines, null, 2));
  } catch (e) {
    console.error('Req error: ', e);
  }
}

start();
```
