---
title: "KuCoin JavaScript & TypeScript SDK for Node.js | Siebly"
description: "KuCoin JavaScript SDK by Siebly with TypeScript-first REST and WebSocket clients, Node.js runtime guidance, examples, endpoint references, and release links."
canonical: "https://siebly.io/sdk/kucoin/javascript"
---

# KuCoin JavaScript SDK

Build with the KuCoin REST API and WebSockets using the JavaScript SDK, TypeScript-first declarations, and Node.js-compatible runtime patterns.

Use the same TypeScript-first REST API and WebSocket clients from plain JavaScript or TypeScript in Node.js-compatible runtimes.

## Install

```shell
# Via your favourite package manager, e.g. npm:
npm install kucoin-api
# or pnpm:
pnpm install kucoin-api
# or yarn:
yarn add kucoin-api
```

- [npm: kucoin-api](https://www.npmjs.com/package/kucoin-api)
- [GitHub repository](https://github.com/tiagosiebler/kucoin-api)
- [README](https://github.com/tiagosiebler/kucoin-api#readme)
- [KuCoin examples](/examples/Kucoin)

## Coverage

- Spot
- Margin
- Futures
- Lending
- WebSockets
- Framework-neutral JavaScript snippets that stay approachable in Node.js-compatible runtimes.
- TypeScript-first package declarations for stricter services, shared libraries, and editor-assisted integrations.

## Integration Profile

**REST API:** Use the KuCoin SDK for spot, margin, futures, lending, account, order, balance, and market data workflows that need exchange-specific REST coverage.

**WebSockets:** Use WebSocket clients for KuCoin market and private streaming workflows, including exchange-managed WebSocket session setup where required.

**Reliability:** Treat WebSocket token/session renewal, symbol formats, and product-specific clients as explicit integration steps; stage changes against low-risk credentials first.

## Quickstart

Get started with just a few lines of JavaScript. TypeScript, while not required, is absolutely recommended. TypeScript declarations are included with all our SDKs and provide convenient definitions on request & response fields, WebSocket payloads, and generally safer integrations.

### REST API

Easily start working the Kucoin REST APIs in JavaScript.

- Install the Kucoin JavaScript SDK via NPM: `npm install kucoin-api`.
- Import the FuturesClient class (REST API wrapper for Kucoin futures endpoints). 
  - Note: If spot is preferred, use the SpotClient class intead.
- Create an authenticated FuturesClient instance with your API credentials.
- Call REST API methods as functions and await their responses.

In this example, we:

- Fetch contract metadata for `XRPUSDTM` and read the `multiplier`.
- Demonstrate how contract multiplier affects position sizing calculations.
- Provide practical order payload examples for market and limit long/short entries.
- Provide practical order payload examples for market and limit close-position requests.
- Provide practical order payload examples for stop-loss style close orders.

This script is designed as a practical futures order guide, showing how to structure different order requests and reason about contract size before submitting live orders.

For a full map of available REST API methods, check out the endpoint reference below.

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

async function start() {
  const account = {
    key: 'keyHere',
    secret: 'secretHere',
    passphrase: 'memoHere',
  };
  const client = new FuturesClient({
    apiKey: account.key,
    apiSecret: account.secret,
    apiPassphrase: account.passphrase,
  });

  try {
    /**
     * =======
     * Credits for this guide go to user: @DKTradingClient / Code Nerd from the Kucoin API Telegram group!
     * =======

    /**
     * Futures are contracts, not currencies. In the futures symbols list you will see a "multiplier" field for each of the symbols. 
     * Each contract equals to  Multiplier x Size
     * For example:  https://api-futures.kucoin.com/api/v1/contracts/XRPUSDTM  - see the "multiplier" value.
     * */

    const symbolInfo = await client.getSymbol({ symbol: 'XRPUSDTM' });
    const multiplier = symbolInfo.data.multiplier;

    /**
     * E.g. if multiplier is 10(what you can see from the endpoint), that means each SIZE is 10 XRP. So if XRP is currently at $0.5,
     * then each 1 contract (size 10) is going to cost $5.00
     * size = (Funds x leverage) / (price x multiplier)
     */

    const XRPPriceExample = 0.5;
    const leverage = 5;
    const fundsToTradeUSDT = 100;

    const costOfContract = XRPPriceExample * multiplier;

    const size = (fundsToTradeUSDT * leverage) / costOfContract;
    console.log(`Size: ${size}`);

    /**
     * The trade amount indicates the amount of contract to buy or sell, and contract uses the base currency or lot as the trading unit.
     * The trade amount must be no less than 1 lot for the contract and no larger than the maxOrderQty.
     * It should be a multiple number of the lot, or the system will report an error when you place the order.
     * E.g. 1 lot of XBTUSDTM is 0.001 Bitcoin, while 1 lot of XBTUSDM is 1 USD.
     * or check the XRPUSDTM example above.
     *
     * Here are function examples using the Futures Create Order endpoint:
     */

    // A MARKET SHORT of 2 contracts of XBT using leverage of 5:
    const marketShort = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      side: 'sell',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'market',
    });
    console.log('Market short: ', marketShort);

    // A MARKET LONG of 2 contracts of XBT using leverage of 5:
    const marketLong = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      side: 'buy',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'market',
    });
    console.log('Market long: ', marketLong);

    // A LIMIT SHORT of 2 contracts of XBT using leverage of 5:
    const limitShort = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      price: '70300.31',
      side: 'sell',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'limit',
    });
    console.log('Limit short: ', limitShort);

    // A LIMIT LONG of 2 contracts of XBT using leverage of 5:
    const limitLong = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      price: '40300.31',
      side: 'buy',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'limit',
    });
    console.log('Limit long: ', limitLong);
    // On any "close position" action, if you specify a SIZE=0 or leave off the SIZE parameter,
    // then it will close the whole position, regardless of the size.
    // If you specify a SIZE, it will close only the number of contracts you specify.

    // If closeOrder is set to TRUE,
    // the system will close the position and the position size will become 0.
    // Side, Size and Leverage fields can be left empty and the system will determine the side and size automatically.

    // A MARKET CLOSE POSITION example:
    const marketClose = client.submitOrder({
      clientOid: '123456789',
      closeOrder: true,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'market',
      side: 'sell',
      size: 0,
    });
    console.log('Market close: ', marketClose);

    // A LIMIT CLOSE of a LONG example:
    const limitCloseLong = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      price: '70300.31',
      closeOrder: true,
      side: 'sell',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'limit',
    });
    console.log('Limit close long: ', limitCloseLong);

    // A LIMIT CLOSE of a SHORT example:
    const limitCloseShort = client.submitOrder({
      clientOid: '123456789',
      leverage: 5,
      price: '40300.31',
      closeOrder: true,
      side: 'buy',
      size: 2,
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'limit',
    });
    console.log('Limit close short: ', limitCloseShort);

    // A STOP LOSS example for a LONG position:
    const stopLossLong = client.submitOrder({
      clientOid: '123456789',
      closeOrder: true,
      stop: 'down',
      side: 'buy',
      stopPrice: '40200.31',
      stopPriceType: 'TP',
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'market',
    });
    console.log('Stoploss long: ', stopLossLong);

    // A STOP LOSS example for a SHORT position:
    const stopLossShort = client.submitOrder({
      clientOid: '123456789',
      closeOrder: true,
      stop: 'up',
      side: 'sell',
      stopPrice: '40200.31',
      stopPriceType: 'TP',
      symbol: 'XBTUSDTM',
      timeInForce: 'GTC',
      type: 'market',
    });

    console.log('Stoploss short: ', stopLossShort);
  } catch (e) {
    console.error('Req error: ', e);
  }
}

start();
```

[View the source example](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Kucoin/Rest/rest-futures-orders-guide.ts)

### WebSocket Streams

Connecting to Kucoin's private spot WebSocket streams is straightforward with the WebsocketClient.

- Install the Kucoin JavaScript SDK via NPM: `npm install kucoin-api`.
- Import the WebsocketClient and create an authenticated instance with your API credentials.
- Configure event handlers for key events such as `open`, `update`, `response`, `reconnect`, `reconnected`, `close`, and `exception`.
- Subscribe to private topics on the `spotPrivateV1` connection key.

In this example, we:

- Subscribe to private spot topics such as trade order updates, balances, and advanced orders.
- Subscribe to private margin topics (including isolated margin position updates) on the same private ws key.
- Demonstrate grouped topic subscription in batched requests.

This setup lets you track private account activity in real time without polling REST endpoints.

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

async function start() {
  // Optional: inject a custom logger to override internal logging behaviour
  // const logger: typeof DefaultLogger = {
  //   ...DefaultLogger,
  //   trace: (...params) => {
  //     if (
  //       [
  //         'Sending ping',
  //         // 'Sending upstream ws message: ',
  //         'Received pong',
  //       ].includes(params[0])
  //     ) {
  //       return;
  //     }
  //     console.log('trace', JSON.stringify(params, null, 2));
  //   },
  // };

  const account = {
    key: process.env.API_KEY || 'keyHere',
    secret: process.env.API_SECRET || 'secretHere',
    passphrase: process.env.API_PASSPHRASE || 'apiPassPhraseHere', // This is NOT your account password
  };

  console.log('connecting with ', account);
  const client = new WebsocketClient(
    {
      apiKey: account.key,
      apiSecret: account.secret,
      apiPassphrase: account.passphrase,
    },
    // logger,
  );

  client.on('open', (data) => {
    console.log('open: ', data?.wsKey);
  });

  // Data received
  client.on('update', (data) => {
    console.info('data received: ', JSON.stringify(data));
  });

  // Something happened, attempting to reconnect
  client.on('reconnect', (data) => {
    console.log('reconnect: ', data);
  });

  // Reconnect successful
  client.on('reconnected', (data) => {
    console.log('reconnected: ', data);
  });

  // Connection closed. If unexpected, expect reconnect -> reconnected.
  client.on('close', (data) => {
    console.error('close: ', data);
  });

  // Reply to a request, e.g. "subscribe"/"unsubscribe"/"authenticate"
  client.on('response', (data) => {
    console.info('response: ', data);
    // throw new Error('res?');
  });

  client.on('exception', (data) => {
    console.error('exception: ', {
      msg: data.msg,
      errno: data.errno,
      code: data.code,
      syscall: data.syscall,
      hostname: data.hostname,
    });
  });

  try {
    // Optional: await a connection to be ready before subscribing (this is not necessary)
    // await client.connect('spotPrivateV1');
    // console.log('connected');

    /**
     * For more detailed usage info, refer to the ws-spot-public.ts example.
     *
     * Below are some examples for subscribing to private spot & margin websockets.
     * Note: all "private" websocket topics should use the "spotPrivateV1" wsKey.
     */
    client.subscribe(
      [
        '/market/match:BTC-USDT',
        '/spotMarket/tradeOrders',
        '/spotMarket/tradeOrdersV2',
        '/account/balance',
        '/spotMarket/advancedOrders',
      ],
      'spotPrivateV1',
    );

    /**
     * Other margin websocket topics, which also use the "spotPrivateV1" WsKey:
     */
    client.subscribe(
      [
        '/margin/position',
        '/margin/isolatedPosition:BTC-USDT',
        '/spotMarket/advancedOrders',
      ],
      'spotPrivateV1',
    );
  } catch (e) {
    console.error('Subscribe exception: ', e);
  }
}

start();
```

[View the source example](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Kucoin/WebSockets/ws-spot-private.ts)

### WebSocket API

Kucoin's WebSocket API (WS-API) lets you send trading commands over persistent authenticated WebSocket connections, reducing overhead compared to repeatedly opening REST requests.

The SDK's WebsocketAPIClient wraps this with promise-based methods so each command can be awaited similarly to a REST call.

To use the WebSocket API:

- Install the Kucoin JavaScript SDK via NPM: `npm install kucoin-api`.
- Import the dedicated WebsocketAPIClient.
- Create an authenticated WebsocketAPIClient instance with your API credentials.
- Optionally customize logging with the injected logger.
- Call dedicated WS-API helper methods and await each response.

In this example, we:

- Submit, sync-submit, modify, cancel, and query spot orders.
- Submit and cancel margin orders.
- Submit, cancel, batch-submit, and batch-cancel futures orders.

Note that:

- Review the walkthrough values and use account-specific order IDs, symbols, sizes, and routing settings before running it against an account.
- Operations are wrapped in independent `try/catch` blocks so each WS-API request can be tested separately.

```typescript
/**
 * KuCoin WebSocket API Client - Complete Example
 *
 * This example demonstrates all available WebSocket API operations:
 * - Spot trading: submit, modify, cancel, sync operations
 * - Margin trading: submit and cancel orders
 * - Futures trading: submit, cancel, batch operations
 *
 * Usage:
 * Make sure to set your API credentials in environment variables:
 *    - API_KEY
 *    - API_SECRET
 *    - API_PASSPHRASE
 *
 *  or pass them as arguments to the constructor
 */

import { DefaultLogger, WebsocketAPIClient } from 'kucoin-api';

async function main() {
  const customLogger = {
    ...DefaultLogger,
    // For a more detailed view of the WebsocketClient, enable the `trace` level by uncommenting the below line:
    // trace: (...params) => console.log(new Date(), 'trace', ...params),
  };

  const account = {
    key: process.env.API_KEY || 'keyHere',
    secret: process.env.API_SECRET || 'secretHere',
    passphrase: process.env.API_PASSPHRASE || 'apiPassPhraseHere', // This is NOT your account password
  };

  const wsClient = new WebsocketAPIClient(
    {
      apiKey: account.key,
      apiSecret: account.secret,
      apiPassphrase: account.passphrase,

      // If you want your own event handlers instead of the default ones with logs, disable this setting and see the `attachEventHandlers` example below:
      // attachEventListeners: false
    },
    customLogger,
  );

  // Example usage for each WebSocket API operation
  console.log('Starting WebSocket API examples...\n');

  // 1. Submit Spot Order
  try {
    console.log('\n2. Testing submitNewSpotOrder...');
    const spotOrderResponse = await wsClient.submitNewSpotOrder({
      side: 'buy',
      symbol: 'BTC-USDT',
      type: 'limit',
      price: '20000', // Very low price to avoid accidental execution
      size: '0.0001',
    });
    console.log('Spot order response:', spotOrderResponse);
  } catch (e) {
    console.log('Spot order error:', e);
  }

  // 2. Submit Sync Spot Order
  try {
    console.log('\n3. Testing submitSyncSpotOrder...');
    const syncSpotOrderResponse = await wsClient.submitSyncSpotOrder({
      side: 'buy',
      symbol: 'BTC-USDT',
      type: 'limit',
      price: '1000', // Very high price to avoid accidental execution
      size: '0.01',
    });
    console.log('Sync spot order response:', syncSpotOrderResponse);
  } catch (e) {
    console.log('Sync spot order error:', e);
  }

  // 3. Modify Spot Order (requires existing order ID)
  try {
    console.log('\n4. Testing modifySpotOrder...');
    const modifyResponse = await wsClient.modifySpotOrder({
      symbol: 'BTC-USDT',
      orderId: '68cc3476693c1c00072ef1d9', // Replace with actual order ID
      newPrice: '2000',
    });
    console.log('Modify spot order response:', modifyResponse);
  } catch (e) {
    console.log('Modify spot order error:', e);
  }

  // 4. Cancel Spot Order
  try {
    console.log('\n5. Testing cancelSpotOrder...');
    const cancelSpotResponse = await wsClient.cancelSpotOrder({
      symbol: 'BTC-USDT',
      orderId: '68cc34c6693c1c0007301929', // Replace with actual order ID
    });
    console.log('Cancel spot order response:', cancelSpotResponse);
  } catch (e) {
    console.log('Cancel spot order error:', e);
  }

  // 5. Cancel Sync Spot Order
  try {
    console.log('\n6. Testing cancelSyncSpotOrder...');
    const cancelSyncResponse = await wsClient.cancelSyncSpotOrder({
      symbol: 'BTC-USDT',
      orderId: '68cc3530b9870a0007670294', // Replace with actual client order ID
    });
    console.log('Cancel sync spot order response:', cancelSyncResponse);
  } catch (e) {
    console.log('Cancel sync spot order error:', e);
  }

  // 6. Submit Margin Order
  try {
    console.log('\n7. Testing submitMarginOrder...');
    const marginOrderResponse = await wsClient.submitMarginOrder({
      clientOid: 'margin-test-' + Date.now(),
      side: 'buy',
      symbol: 'BTC-USDT',
      type: 'limit',
      price: '19000', // Very low price to avoid accidental execution
      size: '0.0001',
      isIsolated: false, // false for cross margin, true for isolated
    });
    console.log('Margin order response:', marginOrderResponse);
  } catch (e) {
    console.log('Margin order error:', e);
  }

  // 7. Cancel Margin Order
  try {
    console.log('\n8. Testing cancelMarginOrder...');
    const cancelMarginResponse = await wsClient.cancelMarginOrder({
      symbol: 'BTC-USDT',
      orderId: 'your-margin-order-id-here', // Replace with actual order ID
    });
    console.log('Cancel margin order response:', cancelMarginResponse);
  } catch (e) {
    console.log('Cancel margin order error:', e);
  }

  // 8. Submit Futures Order
  try {
    console.log('\n9. Testing submitFuturesOrder...');
    const futuresOrderResponse = await wsClient.submitFuturesOrder({
      clientOid: 'futures-test-' + Date.now(),
      side: 'buy',
      symbol: 'XBTUSDTM',
      marginMode: 'CROSS',
      type: 'limit',
      price: '1000', // Very low price to avoid accidental execution
      qty: '0.01',
      leverage: 10,
      positionSide: 'LONG', // needed if trading two-way (hedge) position mode
    });
    console.log('Futures order response:', futuresOrderResponse);
  } catch (e) {
    console.log('Futures order error:', e);
  }

  // 9. Cancel Futures Order
  try {
    console.log('\n10. Testing cancelFuturesOrder...');
    const cancelFuturesResponse = await wsClient.cancelFuturesOrder({
      symbol: 'XBTUSDTM',
      orderId: '358196976308797441', // Replace with actual order ID
    });
    console.log('Cancel futures order response:', cancelFuturesResponse);
  } catch (e) {
    console.log('Cancel futures order error:', e);
  }

  // 10. Submit Multiple Futures Orders
  try {
    console.log('\n11. Testing submitMultipleFuturesOrders...');
    const multiFuturesResponse = await wsClient.submitMultipleFuturesOrders([
      {
        clientOid: 'futures-test-1-' + Date.now(),
        side: 'buy',
        symbol: 'XBTUSDTM',
        marginMode: 'CROSS',
        type: 'limit',
        price: '1000', // Very low price to avoid accidental execution
        qty: '0.01',
        leverage: 10,
        positionSide: 'LONG', // Needed if trading hedge/two-way mode. Optional in one-way mode.
      },
      {
        clientOid: 'futures-test-2-' + Date.now(),
        side: 'buy',
        symbol: 'XBTUSDTM',
        marginMode: 'CROSS',
        type: 'limit',
        price: '1010', // Very low price to avoid accidental execution
        qty: '0.01',
        leverage: 10,
        positionSide: 'LONG',
      },
    ]);
    console.log('Multiple futures orders response:', multiFuturesResponse);
  } catch (e) {
    console.log('Multiple futures orders error:', e);
  }

  // 11. Cancel Multiple Futures Orders
  try {
    console.log('\n12. Testing cancelMultipleFuturesOrders...');
    const cancelMultiFuturesResponse =
      await wsClient.cancelMultipleFuturesOrders({
        orderIdsList: ['order-id-1', 'order-id-2'], // Replace with actual order IDs
      });
    console.log(
      'Cancel multiple futures orders response:',
      cancelMultiFuturesResponse,
    );
  } catch (e) {
    console.log('Cancel multiple futures orders error:', e);
  }

  console.log('\nCompleted all WebSocket API examples!');
  process.exit(1);
}

// Start executing the example workflow
main();
```

[View the source example](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Kucoin/WebSockets/WS-API/ws-api-client.ts)

## Endpoint Reference

[View the endpoint map source](https://github.com/tiagosiebler/kucoin-api/blob/master/docs/endpointFunctionList.md)

### Endpoint maps

<p align="center">
  <a href="https://www.npmjs.com/package/kucoin-api">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://github.com/tiagosiebler/kucoin-api/blob/master/docs/images/logoDarkMode2.svg?raw=true#gh-dark-mode-only">
      <img alt="SDK Logo" src="https://github.com/tiagosiebler/kucoin-api/blob/master/docs/images/logoBrightMode2.svg?raw=true#gh-light-mode-only">
    </picture>
  </a>
</p>

Each REST client is a JavaScript class, which provides functions individually mapped to each endpoint available in the exchange's API offering.

The following table shows all methods available in each REST client, whether the method requires authentication (automatically handled if API keys are provided), as well as the exact endpoint each method is connected to.

This can be used to easily find which method to call, once you have [found which endpoint you're looking to use](https://github.com/tiagosiebler/awesome-crypto-examples/wiki/How-to-find-SDK-functions-that-match-API-docs-endpoint).

All REST clients are in the [src](https://github.com/tiagosiebler/kucoin-api/tree/master/src) folder. For usage examples, make sure to check the [examples](https://github.com/tiagosiebler/kucoin-api/tree/master/examples) folder.

List of clients:

- [SpotClient](#spotclientts)
- [FuturesClient](#futuresclientts)
- [WebsocketAPIClient](#websocketapiclientts)
- [UnifiedAPIClient](#unifiedapiclientts)

If anything is missing or wrong, please open an issue or let us know in our [Node.js Traders](https://t.me/nodetraders) telegram group!

#### How to use table

Table consists of 4 parts:

- Function name
- AUTH
- HTTP Method
- Endpoint

**Function name** is the name of the function that can be called through the SDK. Check examples folder in the repo for more help on how to use them!

**AUTH** is a boolean value that indicates if the function requires authentication - which means you need to pass your API key and secret to the SDK.

**HTTP Method** shows HTTP method that the function uses to call the endpoint. Sometimes endpoints can have same URL, but different HTTP method so you can use this column to differentiate between them.

**Endpoint** is the URL that the function uses to call the endpoint. Best way to find exact function you need for the endpoint is to search for URL in this table and find corresponding function name.

### SpotClient.ts

This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [SpotClient.ts](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts).

| Function                                                                                                               | AUTH | HTTP Method | Endpoint                                                           |
| ---------------------------------------------------------------------------------------------------------------------- | :--: | :---------: | ------------------------------------------------------------------ |
| [getMyIp()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L321)                             |      |     GET     | `api/v1/ip`                                                        |
| [getServiceStatus()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L329)                    |      |     GET     | `api/v1/status`                                                    |
| [getAccountSummary()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L344)                   |  🔐  |     GET     | `api/v2/user-info`                                                 |
| [getKYCRegions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L353)                       |  🔐  |     GET     | `api/kyc/regions/v4`                                               |
| [getApikeyInfo()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L363)                       |  🔐  |     GET     | `api/v1/user/api-key`                                              |
| [getUserType()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L372)                         |  🔐  |     GET     | `api/v1/hf/accounts/opened`                                        |
| [getBalances()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L381)                         |  🔐  |     GET     | `api/v1/accounts`                                                  |
| [getAccountDetail()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L392)                    |  🔐  |     GET     | `api/v1/accounts/{accountId}`                                      |
| [getMarginBalance()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L403)                    |  🔐  |     GET     | `api/v3/margin/accounts`                                           |
| [getIsolatedMarginBalance()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L414)            |  🔐  |     GET     | `api/v3/isolated/accounts`                                         |
| [getTransactions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L427)                     |  🔐  |     GET     | `api/v1/accounts/ledgers`                                          |
| [getHFTransactions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L439)                   |  🔐  |     GET     | `api/v1/hf/accounts/ledgers`                                       |
| [getHFMarginTransactions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L451)             |  🔐  |     GET     | `api/v3/hf/margin/account/ledgers`                                 |
| [createSubAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L468)                    |  🔐  |     POST    | `api/v2/sub/user/created`                                          |
| [enableSubAccountMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L480)              |  🔐  |     POST    | `api/v3/sub/user/margin/enable`                                    |
| [enableSubAccountFutures()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L490)             |  🔐  |     POST    | `api/v3/sub/user/futures/enable`                                   |
| [getSubAccountsV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L499)                    |  🔐  |     GET     | `api/v2/sub/user`                                                  |
| [getSubAccountBalance()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L511)                |  🔐  |     GET     | `api/v1/sub-accounts/{subUserId}`                                  |
| [getSubAccountBalancesV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L526)             |  🔐  |     GET     | `api/v2/sub-accounts`                                              |
| [createSubAPI()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L544)                        |  🔐  |     POST    | `api/v1/sub/api-key`                                               |
| [updateSubAPI()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L555)                        |  🔐  |     POST    | `api/v1/sub/api-key/update`                                        |
| [getSubAPIs()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L567)                          |  🔐  |     GET     | `api/v1/sub/api-key`                                               |
| [deleteSubAPI()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L579)                        |  🔐  |    DELETE   | `api/v1/sub/api-key`                                               |
| [createDepositAddressV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L596)              |  🔐  |     POST    | `api/v3/deposit-address/create`                                    |
| [getDepositAddressesV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L608)               |  🔐  |     GET     | `api/v3/deposit-addresses`                                         |
| [getDeposits()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L622)                         |  🔐  |     GET     | `api/v1/deposits`                                                  |
| [getWithdrawalQuotas()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L639)                 |  🔐  |     GET     | `api/v1/withdrawals/quotas`                                        |
| [submitWithdrawV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L651)                    |  🔐  |     POST    | `api/v3/withdrawals`                                               |
| [cancelWithdrawal()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L664)                    |  🔐  |    DELETE   | `api/v1/withdrawals/{withdrawalId}`                                |
| [getWithdrawals()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L676)                      |  🔐  |     GET     | `api/v1/withdrawals`                                               |
| [getWithdrawalById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L687)                   |  🔐  |     GET     | `api/v1/withdrawals/{withdrawalId}`                                |
| [getTransferable()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L705)                     |  🔐  |     GET     | `api/v1/accounts/transferable`                                     |
| [submitFlexTransfer()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L717)                  |  🔐  |     POST    | `api/v3/accounts/universal-transfer`                               |
| [getBasicUserFee()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L736)                     |  🔐  |     GET     | `api/v1/base-fee`                                                  |
| [getTradingPairFee()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L752)                   |  🔐  |     GET     | `api/v1/trade-fees`                                                |
| [getAnnouncements()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L775)                    |      |     GET     | `api/v3/announcements`                                             |
| [getCurrency()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L786)                         |      |     GET     | `api/v3/currencies/{currency}`                                     |
| [getCurrencies()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L798)                       |      |     GET     | `api/v3/currencies`                                                |
| [getSymbol()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L808)                           |      |     GET     | `api/v2/symbols/{symbol}`                                          |
| [getSymbols()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L820)                          |      |     GET     | `api/v2/symbols`                                                   |
| [getTicker()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L833)                           |      |     GET     | `api/v1/market/orderbook/level1`                                   |
| [getTickers()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L842)                          |      |     GET     | `api/v1/market/allTickers`                                         |
| [getTradeHistories()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L853)                   |      |     GET     | `api/v1/market/histories`                                          |
| [getKlines()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L865)                           |      |     GET     | `api/v1/market/candles`                                            |
| [getOrderBookLevel20()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L876)                 |      |     GET     | `api/v1/market/orderbook/level2_20`                                |
| [getOrderBookLevel100()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L887)                |      |     GET     | `api/v1/market/orderbook/level2_100`                               |
| [getFullOrderBook()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L898)                    |  🔐  |     GET     | `api/v3/market/orderbook/level2`                                   |
| [getCallAuctionPartOrderBook()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L910)         |      |     GET     | `api/v1/market/orderbook/callauction/level2_{size}`                |
| [getCallAuctionInfo()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L927)                  |      |     GET     | `api/v1/market/callauctionData`                                    |
| [getFiatPrice()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L938)                        |      |     GET     | `api/v1/prices`                                                    |
| [get24hrStats()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L947)                        |      |     GET     | `api/v1/market/stats`                                              |
| [getMarkets()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L958)                          |      |     GET     | `api/v1/markets`                                                   |
| [submitHFOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L975)                       |  🔐  |     POST    | `api/v1/hf/orders`                                                 |
| [submitHFOrderSync()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L991)                   |  🔐  |     POST    | `api/v1/hf/orders/sync`                                            |
| [submitHFOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1003)                  |  🔐  |     POST    | `api/v1/hf/orders/test`                                            |
| [submitHFMultipleOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1012)             |  🔐  |     POST    | `api/v1/hf/orders/multi`                                           |
| [submitHFMultipleOrdersSync()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1024)         |  🔐  |     POST    | `api/v1/hf/orders/multi/sync`                                      |
| [cancelHFOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1036)                      |  🔐  |    DELETE   | `api/v1/hf/orders/{orderId}`                                       |
| [cancelHFOrderSync()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1050)                  |  🔐  |    DELETE   | `api/v1/hf/orders/sync/{orderId}`                                  |
| [cancelHFOrderByClientOId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1066)           |  🔐  |    DELETE   | `api/v1/hf/orders/client-order/{clientOid}`                        |
| [cancelHFOrderSyncByClientOId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1086)       |  🔐  |    DELETE   | `api/v1/hf/orders/sync/client-order/{clientOid}`                   |
| [cancelHFOrdersNumber()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1101)               |  🔐  |    DELETE   | `api/v1/hf/orders/cancel/{orderId}`                                |
| [cancelHFAllOrdersBySymbol()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1116)          |  🔐  |    DELETE   | `api/v1/hf/orders`                                                 |
| [cancelHFAllOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1127)                  |  🔐  |    DELETE   | `api/v1/hf/orders/cancelAll`                                       |
| [updateHFOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1136)                      |  🔐  |     POST    | `api/v1/hf/orders/alter`                                           |
| [getHFOrderDetailsByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1150)         |  🔐  |     GET     | `api/v1/hf/orders/{orderId}`                                       |
| [getHFOrderDetailsByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1162)       |  🔐  |     GET     | `api/v1/hf/orders/client-order/{clientOid}`                        |
| [getHFActiveSymbols()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1177)                 |  🔐  |     GET     | `api/v1/hf/orders/active/symbols`                                  |
| [getHFActiveOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1192)                  |  🔐  |     GET     | `api/v1/hf/orders/active`                                          |
| [getHFActiveOrdersPaginated()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1204)         |  🔐  |     GET     | `api/v1/hf/orders/active/page`                                     |
| [getHFCompletedOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1226)               |  🔐  |     GET     | `api/v1/hf/orders/done`                                            |
| [getHFFilledOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1240)                  |  🔐  |     GET     | `api/v1/hf/fills`                                                  |
| [cancelHFOrderAutoSettingQuery()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1255)      |  🔐  |     GET     | `api/v1/hf/orders/dead-cancel-all/query`                           |
| [cancelHFOrderAutoSetting()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1268)           |  🔐  |     POST    | `api/v1/hf/orders/dead-cancel-all`                                 |
| [submitStopOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1285)                    |  🔐  |     POST    | `api/v1/stop-order`                                                |
| [cancelStopOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1296)         |  🔐  |    DELETE   | `api/v1/stop-order/cancelOrderByClientOid`                         |
| [cancelStopOrderById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1316)                |  🔐  |    DELETE   | `api/v1/stop-order/{orderId}`                                      |
| [cancelStopOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1329)                   |  🔐  |    DELETE   | `api/v1/stop-order/cancel`                                         |
| [getStopOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1342)                      |  🔐  |     GET     | `api/v1/stop-order`                                                |
| [getStopOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1355)              |  🔐  |     GET     | `api/v1/stop-order/{orderId}`                                      |
| [getStopOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1366)            |  🔐  |     GET     | `api/v1/stop-order/queryOrderByClientOid`                          |
| [submitOCOOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1378)                     |  🔐  |     POST    | `api/v3/oco/order`                                                 |
| [cancelOCOOrderById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1391)                 |  🔐  |    DELETE   | `api/v3/oco/order/{orderId}`                                       |
| [cancelOCOOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1404)          |  🔐  |    DELETE   | `api/v3/oco/client-order/{clientOid}`                              |
| [cancelMultipleOCOOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1417)            |  🔐  |    DELETE   | `api/v3/oco/orders`                                                |
| [getOCOOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1433)               |  🔐  |     GET     | `api/v3/oco/order/{orderId}`                                       |
| [getOCOOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1444)             |  🔐  |     GET     | `api/v3/oco/client-order/{clientOid}`                              |
| [getOCOOrderDetails()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1455)                 |  🔐  |     GET     | `api/v3/oco/order/details/{orderId}`                               |
| [getOCOOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1466)                       |  🔐  |     GET     | `api/v3/oco/orders`                                                |
| [getMarginActivePairsV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1483)             |  🔐  |     GET     | `api/v3/margin/symbols`                                            |
| [getMarginConfigInfo()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1496)                |      |     GET     | `api/v1/margin/config`                                             |
| [getMarginLeveragedToken()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1506)            |  🔐  |     GET     | `api/v3/etf/info`                                                  |
| [getMarginMarkPrices()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1517)                |      |     GET     | `api/v3/mark-price/all-symbols`                                    |
| [getMarginMarkPrice()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1526)                 |      |     GET     | `api/v1/mark-price/{symbol}/current`                               |
| [getIsolatedMarginSymbolsConfig()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1537)     |  🔐  |     GET     | `api/v1/isolated/symbols`                                          |
| [getMarginCollateralRatio()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1548)           |      |     GET     | `api/v3/margin/collateralRatio`                                    |
| [getMarketAvailableInventory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1559)        |      |     GET     | `api/v3/margin/available-inventory`                                |
| [submitHFMarginOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1576)                |  🔐  |     POST    | `api/v3/hf/margin/order`                                           |
| [submitHFMarginOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1587)            |  🔐  |     POST    | `api/v3/hf/margin/order/test`                                      |
| [cancelHFMarginOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1598)                |  🔐  |    DELETE   | `api/v3/hf/margin/orders/{orderId}`                                |
| [cancelHFMarginOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1614)     |  🔐  |    DELETE   | `api/v3/hf/margin/orders/client-order/{clientOid}`                 |
| [cancelHFAllMarginOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1633)            |  🔐  |    DELETE   | `api/v3/hf/margin/orders`                                          |
| [getHFMarginOpenSymbols()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1645)             |  🔐  |     GET     | `api/v3/hf/margin/order/active/symbols`                            |
| [getHFActiveMarginOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1656)            |  🔐  |     GET     | `api/v3/hf/margin/orders/active`                                   |
| [getHFMarginFilledOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1667)            |  🔐  |     GET     | `api/v3/hf/margin/orders/done`                                     |
| [getHFMarginFills()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1681)                   |  🔐  |     GET     | `api/v3/hf/margin/fills`                                           |
| [getHFMarginOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1695)          |  🔐  |     GET     | `api/v3/hf/margin/orders/{orderId}`                                |
| [getHFMarginOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1707)        |  🔐  |     GET     | `api/v3/hf/margin/orders/client-order/{clientOid}?symbol={symbol}` |
| [addMarginStopOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1721)                 |  🔐  |     POST    | `api/v3/hf/margin/stop-order`                                      |
| [cancelMarginStopOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1732)     |  🔐  |    DELETE   | `api/v3/hf/margin/stop-order/cancel-by-id?orderId={orderId}`       |
| [cancelMarginStopOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1745)   |  🔐  |    DELETE   | `api/v3/hf/margin/stop-order/cancel-by-clientOid`                  |
| [batchCancelMarginStopOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1759)         |  🔐  |    DELETE   | `api/v3/hf/margin/stop-order/cancel`                               |
| [getMarginStopOrdersList()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1770)            |  🔐  |     GET     | `api/v3/hf/margin/stop-orders`                                     |
| [getMarginStopOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1781)        |  🔐  |     GET     | `api/v3/hf/margin/stop-order/orderId?orderId={orderId}`            |
| [getMarginStopOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1794)      |  🔐  |     GET     | `api/v3/hf/margin/stop-order/clientOid`                            |
| [addMarginOcoOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1805)                  |  🔐  |     POST    | `api/v3/hf/margin/oco-order`                                       |
| [cancelMarginOcoOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1816)      |  🔐  |    DELETE   | `api/v3/hf/margin/oco-order/cancel-by-id?orderId={orderId}`        |
| [cancelMarginOcoOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1829)    |  🔐  |    DELETE   | `api/v3/hf/margin/oco-order/cancel-by-clientOid`                   |
| [batchCancelMarginOcoOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1843)         |  🔐  |    DELETE   | `api/v3/hf/margin/oco-order/cancel`                                |
| [getMarginOcoOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1854)       |  🔐  |     GET     | `api/v3/hf/margin/oco-order/clientOid`                             |
| [getMarginOcoOrderDetailByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1865)   |  🔐  |     GET     | `api/v3/hf/margin/oco-order/detail/orderId?orderId={orderId}`      |
| [getBorrowInterestRate()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1884)              |  🔐  |     GET     | `api/v3/margin/borrowRate`                                         |
| [marginBorrowV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1895)                     |  🔐  |     POST    | `api/v3/margin/borrow`                                             |
| [getMarginBorrowHistoryV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1906)           |  🔐  |     GET     | `api/v3/margin/borrow`                                             |
| [marginRepayV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1917)                      |  🔐  |     POST    | `api/v3/margin/repay`                                              |
| [getMarginRepayHistoryV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1928)            |  🔐  |     GET     | `api/v3/margin/repay`                                              |
| [getMarginInterestRecordsV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1939)         |  🔐  |     GET     | `api/v3/margin/interest`                                           |
| [updateMarginLeverageV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1950)             |  🔐  |     POST    | `api/v3/position/update-user-leverage`                             |
| [getLendingCurrencyV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1969)               |      |     GET     | `api/v3/project/list`                                              |
| [getLendingInterestRateV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1980)           |      |     GET     | `api/v3/project/marketInterestRate`                                |
| [submitLendingSubscriptionV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L1996)        |  🔐  |     POST    | `api/v3/purchase`                                                  |
| [updateLendingSubscriptionOrdersV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2013)  |  🔐  |     POST    | `api/v3/lend/purchase/update`                                      |
| [getLendingSubscriptionOrdersV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2024)     |  🔐  |     GET     | `api/v3/purchase/orders`                                           |
| [submitLendingRedemptionV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2035)          |  🔐  |     POST    | `api/v3/redeem`                                                    |
| [getLendingRedemptionOrdersV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2052)       |  🔐  |     GET     | `api/v3/redeem/orders`                                             |
| [getMarginRiskLimitConfig()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2069)           |  🔐  |     GET     | `api/v3/margin/currencies`                                         |
| [getConvertSymbol()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2086)                   |      |     GET     | `api/v1/convert/symbol`                                            |
| [getConvertCurrencies()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2097)               |      |     GET     | `api/v1/convert/currencies`                                        |
| [submitConvertOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2106)                 |  🔐  |     POST    | `api/v1/convert/order`                                             |
| [getConvertQuote()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2117)                    |  🔐  |     GET     | `api/v1/convert/quote`                                             |
| [getConvertOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2128)                    |  🔐  |     GET     | `api/v1/convert/order/detail`                                      |
| [getConvertOrderHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2139)             |  🔐  |     GET     | `api/v1/convert/order/history`                                     |
| [submitConvertLimitOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2150)            |  🔐  |     POST    | `api/v1/convert/limit/order`                                       |
| [getConvertLimitQuote()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2161)               |  🔐  |     GET     | `api/v1/convert/limit/quote`                                       |
| [getConvertLimitOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2172)               |  🔐  |     GET     | `api/v1/convert/limit/order/detail`                                |
| [getConvertLimitOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2183)              |  🔐  |     GET     | `api/v1/convert/limit/orders`                                      |
| [cancelConvertLimitOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2194)            |  🔐  |    DELETE   | `api/v1/convert/limit/order/cancel`                                |
| [subscribeEarnFixedIncome()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2212)           |  🔐  |     POST    | `api/v1/earn/orders`                                               |
| [getEarnRedeemPreview()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2223)               |  🔐  |     GET     | `api/v1/earn/redeem-preview`                                       |
| [submitRedemption()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2234)                   |  🔐  |    DELETE   | `api/v1/earn/orders`                                               |
| [getEarnSavingsProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2245)             |  🔐  |     GET     | `api/v1/earn/saving/products`                                      |
| [getEarnPromotionProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2256)           |  🔐  |     GET     | `api/v1/earn/promotion/products`                                   |
| [getEarnFixedIncomeHoldAssets()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2267)       |  🔐  |     GET     | `api/v1/earn/hold-assets`                                          |
| [getEarnStakingProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2278)             |  🔐  |     GET     | `api/v1/earn/staking/products`                                     |
| [getEarnKcsStakingProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2290)          |  🔐  |     GET     | `api/v1/earn/kcs-staking/products`                                 |
| [getEarnEthStakingProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2302)          |  🔐  |     GET     | `api/v1/earn/eth-staking/products`                                 |
| [submitStructuredProductPurchase()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2319)    |  🔐  |     POST    | `api/v1/struct-earn/orders`                                        |
| [getDualInvestmentProducts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2330)          |      |     GET     | `api/v1/struct-earn/dual/products`                                 |
| [getStructuredProductOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2341)         |  🔐  |     GET     | `api/v1/struct-earn/orders`                                        |
| [getDiscountRateConfigs()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2359)             |  🔐  |     GET     | `api/v1/otc-loan/discount-rate-configs`                            |
| [getOtcLoan()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2370)                         |  🔐  |     GET     | `api/v1/otc-loan/loan`                                             |
| [getOtcLoanAccounts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2379)                 |  🔐  |     GET     | `api/v1/otc-loan/accounts`                                         |
| [getAffiliateUserRebateInfo()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2395)         |  🔐  |     GET     | `api/v2/affiliate/inviter/statistics`                              |
| [getAffiliateInvitees()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2404)               |  🔐  |     GET     | `api/v2/affiliate/queryInvitees`                                   |
| [getAffiliateCommission()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2415)             |  🔐  |     GET     | `api/v2/affiliate/queryMyCommission`                               |
| [getAffiliateTradeHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2426)           |  🔐  |     GET     | `api/v2/affiliate/queryTransactionByUid`                           |
| [getAffiliateTransaction()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2437)            |  🔐  |     GET     | `api/v2/affiliate/queryTransactionByTime`                          |
| [getKumining()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2448)                        |  🔐  |     GET     | `api/v2/affiliate/queryKumining`                                   |
| [getBrokerRebateOrderDownloadLink()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2466)   |  🔐  |     GET     | `api/v1/broker/api/rebase/download`                                |
| [getBrokerRebateOrderDownloadLinkV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2479) |  🔐  |     GET     | `api/v2/broker/api/rebase/download`                                |
| [getPublicWSConnectionToken()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2496)         |      |     POST    | `api/v1/bullet-public`                                             |
| [getPrivateWSConnectionToken()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2503)        |  🔐  |     POST    | `api/v1/bullet-private`                                            |
| [getPrivateWSConnectionTokenV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2511)      |  🔐  |     POST    | `api/v2/bullet-private`                                            |
| [getSubAccountsV1()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2533)                   |  🔐  |     GET     | `api/v1/sub/user`                                                  |
| [getSubAccountBalancesV1()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2541)            |  🔐  |     GET     | `api/v1/sub-accounts`                                              |
| [getMarginBalances()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2556)                  |  🔐  |     GET     | `api/v1/margin/account`                                            |
| [createDepositAddress()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2574)               |  🔐  |     POST    | `api/v1/deposit-addresses`                                         |
| [getDepositAddressesV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2584)              |  🔐  |     GET     | `api/v2/deposit-addresses`                                         |
| [getDepositAddressV1()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2593)                |  🔐  |     GET     | `api/v1/deposit-addresses`                                         |
| [getHistoricalDepositsV1()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2604)            |  🔐  |     GET     | `api/v1/hist-deposits`                                             |
| [getHistoricalWithdrawalsV1()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2620)         |  🔐  |     GET     | `api/v1/hist-withdrawals`                                          |
| [submitWithdraw()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2629)                     |  🔐  |     POST    | `api/v1/withdrawals`                                               |
| [submitTransferMasterSub()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2645)            |  🔐  |     POST    | `api/v2/accounts/sub-transfer`                                     |
| [submitInnerTransfer()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2657)                |  🔐  |     POST    | `api/v2/accounts/inner-transfer`                                   |
| [submitOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2675)                        |  🔐  |     POST    | `api/v1/orders`                                                    |
| [submitOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2687)                    |  🔐  |     POST    | `api/v1/orders/test`                                               |
| [submitMultipleOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2695)               |  🔐  |     POST    | `api/v1/orders/multi`                                              |
| [cancelOrderById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2706)                    |  🔐  |    DELETE   | `api/v1/orders/{orderId}`                                          |
| [cancelOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2718)             |  🔐  |    DELETE   | `api/v1/order/client-order/{clientOid}`                            |
| [cancelAllOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2731)                    |  🔐  |    DELETE   | `api/v1/orders`                                                    |
| [getOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2743)                          |  🔐  |     GET     | `api/v1/orders`                                                    |
| [getRecentOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2753)                    |  🔐  |     GET     | `api/v1/limit/orders`                                              |
| [getOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2764)                  |  🔐  |     GET     | `api/v1/orders/{orderId}`                                          |
| [getOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2774)                |  🔐  |     GET     | `api/v1/order/client-order/{clientOid}`                            |
| [getFills()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2790)                           |  🔐  |     GET     | `api/v1/fills`                                                     |
| [getRecentFills()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2800)                     |  🔐  |     GET     | `api/v1/limit/fills`                                               |
| [submitMarginOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2815)                  |  🔐  |     POST    | `api/v1/margin/order`                                              |
| [submitMarginOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2826)              |  🔐  |     POST    | `api/v1/margin/order/test`                                         |
| [getIsolatedMarginAccounts()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2841)          |  🔐  |     GET     | `api/v1/isolated/accounts`                                         |
| [getIsolatedMarginAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/SpotClient.ts#L2852)           |  🔐  |     GET     | `api/v1/isolated/account/{symbol}`                                 |

### FuturesClient.ts

This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [FuturesClient.ts](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts).

| Function                                                                                                                  | AUTH | HTTP Method | Endpoint                                                        |
| ------------------------------------------------------------------------------------------------------------------------- | :--: | :---------: | --------------------------------------------------------------- |
| [getBalance()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L97)                           |  🔐  |     GET     | `api/v1/account-overview`                                       |
| [getTransactions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L107)                     |  🔐  |     GET     | `api/v1/transaction-history`                                    |
| [getSubBalances()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L126)                      |  🔐  |     GET     | `api/v1/account-overview-all`                                   |
| [getTradingPairFee()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L145)                   |  🔐  |     GET     | `api/v1/trade-fees`                                             |
| [getSymbol()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L166)                           |      |     GET     | `api/v1/contracts/{symbol}`                                     |
| [getSymbols()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L177)                          |      |     GET     | `api/v1/contracts/active`                                       |
| [getTicker()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L185)                           |      |     GET     | `api/v1/ticker`                                                 |
| [getTickers()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L195)                          |      |     GET     | `api/v1/allTickers`                                             |
| [getFullOrderBookLevel2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L203)              |      |     GET     | `api/v1/level2/snapshot`                                        |
| [getPartOrderBookLevel2Depth20()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L213)       |      |     GET     | `api/v1/level2/depth20`                                         |
| [getPartOrderBookLevel2Depth100()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L223)      |      |     GET     | `api/v1/level2/depth100`                                        |
| [getMarketTrades()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L233)                     |      |     GET     | `api/v1/trade/history`                                          |
| [getKlines()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L243)                           |      |     GET     | `api/v1/kline/query`                                            |
| [getMarkPrice()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L253)                        |      |     GET     | `api/v1/mark-price/{symbol}/current`                            |
| [getIndex()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L263)                            |      |     GET     | `api/v1/index/query`                                            |
| [getInterestRates()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L276)                    |      |     GET     | `api/v1/interest/query`                                         |
| [getPremiumIndex()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L289)                     |      |     GET     | `api/v1/premium/query`                                          |
| [get24HourTransactionVolume()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L302)          |      |     GET     | `api/v1/trade-statistics`                                       |
| [getServiceStatus()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L322)                    |      |     GET     | `api/v1/status`                                                 |
| [submitOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L336)                         |  🔐  |     POST    | `api/v1/orders`                                                 |
| [submitNewOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L349)                  |  🔐  |     POST    | `api/v1/orders/test`                                            |
| [submitMultipleOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L360)                |  🔐  |     POST    | `api/v1/orders/multi`                                           |
| [submitSLTPOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L370)                     |  🔐  |     POST    | `api/v1/st-orders`                                              |
| [cancelOrderById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L383)                     |  🔐  |    DELETE   | `api/v1/orders/{orderId}`                                       |
| [cancelOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L393)              |  🔐  |    DELETE   | `api/v1/orders/client-order/{clientOid}`                        |
| [batchCancelOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L407)                   |  🔐  |    DELETE   | `api/v1/orders/multi-cancel`                                    |
| [cancelAllOrdersV3()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L417)                   |  🔐  |    DELETE   | `api/v3/orders`                                                 |
| [cancelAllStopOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L427)                 |  🔐  |    DELETE   | `api/v1/stopOrders`                                             |
| [getOrderByOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L437)                   |  🔐  |     GET     | `api/v1/orders/{orderId}`                                       |
| [getOrderByClientOrderId()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L447)             |  🔐  |     GET     | `api/v1/orders/byClientOid`                                     |
| [getOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L457)                           |  🔐  |     GET     | `api/v1/orders`                                                 |
| [getRecentOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L467)                     |  🔐  |     GET     | `api/v1/recentDoneOrders`                                       |
| [getStopOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L477)                       |  🔐  |     GET     | `api/v1/stopOrders`                                             |
| [getOpenOrderStatistics()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L487)              |  🔐  |     GET     | `api/v1/openOrderStatistics`                                    |
| [getRecentFills()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L497)                      |  🔐  |     GET     | `api/v1/recentFills`                                            |
| [getFills()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L509)                            |  🔐  |     GET     | `api/v1/fills`                                                  |
| [getMarginMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L525)                       |  🔐  |     GET     | `api/v2/position/getMarginMode`                                 |
| [updateMarginMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L538)                    |  🔐  |     POST    | `api/v2/position/changeMarginMode`                              |
| [batchSwitchMarginMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L554)               |  🔐  |     POST    | `api/v2/position/batchChangeMarginMode`                         |
| [getMaxOpenSize()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L565)                      |  🔐  |     GET     | `api/v2/getMaxOpenSize`                                         |
| [getPosition()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L576)                         |  🔐  |     GET     | `api/v1/position`                                               |
| [getPositionV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L586)                       |  🔐  |     GET     | `api/v2/position`                                               |
| [getPositions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L596)                        |  🔐  |     GET     | `api/v1/positions`                                              |
| [getHistoryPositions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L606)                 |  🔐  |     GET     | `api/v1/history-positions`                                      |
| [getMaxWithdrawMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L620)                |  🔐  |     GET     | `api/v1/margin/maxWithdrawMargin`                               |
| [getCrossMarginLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L630)              |  🔐  |     GET     | `api/v2/getCrossUserLeverage`                                   |
| [changeCrossMarginLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L643)           |  🔐  |     POST    | `api/v2/changeCrossUserLeverage`                                |
| [depositMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L659)                       |  🔐  |     POST    | `api/v1/position/margin/deposit-margin`                         |
| [getCrossMarginRiskLimit()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L671)             |  🔐  |     GET     | `api/v2/batchGetCrossOrderLimit`                                |
| [withdrawMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L683)                      |  🔐  |     POST    | `api/v1/margin/withdrawMargin`                                  |
| [getCrossMarginRequirement()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L694)           |  🔐  |     GET     | `api/v2/getCrossModeMarginRequirement`                          |
| [getRiskLimitLevel()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L706)                   |  🔐  |     GET     | `api/v1/contracts/risk-limit/{symbol}`                          |
| [updateRiskLimitLevel()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L716)                |  🔐  |     POST    | `api/v1/position/risk-limit-level/change`                       |
| [getPositionMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L727)                     |  🔐  |     GET     | `api/v2/position/getPositionMode`                               |
| [updatePositionMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L735)                  |  🔐  |     POST    | `api/v2/position/switchPositionMode`                            |
| [getFundingRate()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L753)                      |  🔐  |     GET     | `api/v1/funding-rate/{symbol}/current`                          |
| [getFundingRates()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L763)                     |  🔐  |     GET     | `api/v1/contract/funding-rates`                                 |
| [getFundingHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L773)                   |  🔐  |     GET     | `api/v1/funding-history`                                        |
| [submitCopyTradeOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L793)                |  🔐  |     POST    | `api/v1/copy-trade/futures/orders`                              |
| [submitCopyTradeOrderTest()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L808)            |  🔐  |     POST    | `api/v1/copy-trade/futures/orders/test`                         |
| [submitCopyTradeSLTPOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L822)            |  🔐  |     POST    | `api/v1/copy-trade/futures/st-orders`                           |
| [cancelCopyTradeOrderById()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L835)            |  🔐  |    DELETE   | `api/v1/copy-trade/futures/orders`                              |
| [cancelCopyTradeOrderByClientOid()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L845)     |  🔐  |    DELETE   | `api/v1/copy-trade/futures/orders/client-order`                 |
| [getCopyTradeMaxOpenSize()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L859)             |  🔐  |     GET     | `api/v1/copy-trade/futures/get-max-open-size`                   |
| [getCopyTradeMaxWithdrawMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L880)       |  🔐  |     GET     | `api/v1/copy-trade/futures/position/margin/max-withdraw-margin` |
| [addCopyTradeIsolatedMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L894)          |  🔐  |     POST    | `api/v1/copy-trade/futures/position/margin/deposit-margin`      |
| [removeCopyTradeIsolatedMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L910)       |  🔐  |     POST    | `api/v1/copy-trade/futures/position/margin/withdraw-margin`     |
| [modifyCopyTradeRiskLimitLevel()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L926)       |  🔐  |     POST    | `api/v1/copy-trade/futures/position/risk-limit-level/change`    |
| [updateCopyTradeAutoDepositStatus()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L941)    |  🔐  |     POST    | `api/v1/copy-trade/futures/position/margin/auto-deposit-status` |
| [switchCopyTradeMarginMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L956)           |  🔐  |     POST    | `api/v1/copy-trade/futures/position/changeMarginMode`           |
| [updateCopyTradeCrossMarginLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L969)  |  🔐  |     POST    | `api/v2/copy-trade/futures/changeCrossUserLeverage`             |
| [getCopyTradeCrossMarginRequirement()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L982)  |  🔐  |     POST    | `api/v2/copy-trade/getCrossModeMarginRequirement`               |
| [switchCopyTradePositionMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L996)         |  🔐  |     POST    | `api/v2/copy-trade/position/switchPositionMode`                 |
| [getBrokerRebateOrderDownloadLink()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1016)   |  🔐  |     GET     | `api/v1/broker/api/rebase/download`                             |
| [getBrokerRebateOrderDownloadLinkV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1029) |  🔐  |     GET     | `api/v2/broker/api/rebase/download`                             |
| [getPublicWSConnectionToken()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1046)         |      |     POST    | `api/v1/bullet-public`                                          |
| [getPrivateWSConnectionToken()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1053)        |  🔐  |     POST    | `api/v1/bullet-private`                                         |
| [getPrivateWSConnectionTokenV2()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1061)      |  🔐  |     POST    | `api/v2/bullet-private`                                         |
| [submitTransferOut()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1076)                  |  🔐  |     POST    | `api/v3/transfer-out`                                           |
| [submitTransferIn()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1087)                   |  🔐  |     POST    | `api/v1/transfer-in`                                            |
| [getTransfers()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1098)                       |  🔐  |     GET     | `api/v1/transfer-list`                                          |
| [updateAutoDepositStatus()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/FuturesClient.ts#L1113)            |  🔐  |     POST    | `api/v1/position/margin/auto-deposit-status`                    |

### WebsocketAPIClient.ts

This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [WebsocketAPIClient.ts](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts).

| Function                                                                                                               | AUTH | HTTP Method | Endpoint               |
| ---------------------------------------------------------------------------------------------------------------------- | :--: | :---------: | ---------------------- |
| [submitNewSpotOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L88)           |  🔐  |      WS     | `spot.order`           |
| [modifySpotOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L102)             |  🔐  |      WS     | `spot.modify`          |
| [cancelSpotOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L116)             |  🔐  |      WS     | `spot.cancel`          |
| [submitSyncSpotOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L130)         |  🔐  |      WS     | `spot.sync_order`      |
| [cancelSyncSpotOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L144)         |  🔐  |      WS     | `spot.sync_cancel`     |
| [submitMarginOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L158)           |  🔐  |      WS     | `margin.order`         |
| [cancelMarginOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L172)           |  🔐  |      WS     | `margin.cancel`        |
| [submitFuturesOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L186)          |  🔐  |      WS     | `futures.order`        |
| [cancelFuturesOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L200)          |  🔐  |      WS     | `futures.cancel`       |
| [submitMultipleFuturesOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L216) |  🔐  |      WS     | `futures.multi_order`  |
| [cancelMultipleFuturesOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/WebsocketAPIClient.ts#L230) |  🔐  |      WS     | `futures.multi_cancel` |

### UnifiedAPIClient.ts

This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [UnifiedAPIClient.ts](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts).

| Function                                                                                                                 | AUTH | HTTP Method | Endpoint                                                       |
| ------------------------------------------------------------------------------------------------------------------------ | :--: | :---------: | -------------------------------------------------------------- |
| [getAnnouncements()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L143)                |      |     GET     | `api/ua/v1/market/announcement`                                |
| [getCurrency()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L153)                     |      |     GET     | `api/ua/v1/market/currency`                                    |
| [getThirdPartyCustodyCurrencies()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L163)  |      |     GET     | `api/ua/v1/oes/currency`                                       |
| [getSymbols()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L173)                      |      |     GET     | `api/ua/v1/market/instrument`                                  |
| [getTickers()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L184)                      |      |     GET     | `api/ua/v1/market/ticker`                                      |
| [getTrades()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L194)                       |      |     GET     | `api/ua/v1/market/trade`                                       |
| [getOrderBook()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L204)                    |      |     GET     | `api/ua/v1/market/orderbook`                                   |
| [getKlines()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L215)                       |      |     GET     | `api/ua/v1/market/kline`                                       |
| [getCurrentFundingRate()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L225)           |      |     GET     | `api/ua/v1/market/funding-rate`                                |
| [getHistoryFundingRate()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L235)           |      |     GET     | `api/ua/v1/market/funding-rate-history`                        |
| [getCrossMarginConfig()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L245)            |      |     GET     | `api/ua/v1/market/cross-config`                                |
| [getBorrowableCurrencies()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L255)         |      |     GET     | `api/ua/v1/market/borrowable-currency`                         |
| [getServiceStatus()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L265)                |      |     GET     | `api/ua/v1/server/status`                                      |
| [getClientIPAddress()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L275)              |      |     GET     | `api/ua/v1/user/my-ip`                                         |
| [getFiatPrice()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L283)                    |      |     GET     | `api/ua/v1/market/fiat-price`                                  |
| [getClassicAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L300)               |  🔐  |     GET     | `api/ua/v1/account/balance`                                    |
| [getAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L311)                      |  🔐  |     GET     | `api/ua/v1/unified/account/balance`                            |
| [getAccountOverview()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L319)              |  🔐  |     GET     | `api/ua/v1/unified/account/overview`                           |
| [getSubAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L329)                   |  🔐  |     GET     | `api/ua/v1/sub-account/balance`                                |
| [getTransferQuotas()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L341)               |  🔐  |     GET     | `api/ua/v1/account/transfer-quota`                             |
| [flexTransfer()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L352)                    |  🔐  |     POST    | `api/ua/v1/account/transfer`                                   |
| [setSubAccountTransferPermission()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L362) |  🔐  |     POST    | `api/ua/v1/sub-account/canTransferOut`                         |
| [getAccountMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L372)                  |  🔐  |     GET     | `api/ua/v1/account/mode`                                       |
| [setAccountMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L380)                  |  🔐  |     POST    | `api/ua/v1/account/mode`                                       |
| [getFeeRate()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L392)                      |  🔐  |     GET     | `api/ua/v1/user/fee-rate`                                      |
| [getAccountLedger()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L408)                |  🔐  |     GET     | `api/ua/v1/account/ledger`                                     |
| [getInterestHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L422)              |  🔐  |     GET     | `api/ua/v1/account/interest-history`                           |
| [getBorrowingRatesAndLimits()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L432)      |  🔐  |     GET     | `api/ua/v1/account/interest-limits`                            |
| [modifyLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L442)                  |  🔐  |     POST    | `api/ua/v1/unified/account/modify-leverage`                    |
| [modifyMarginCrossLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L455)       |  🔐  |     POST    | `api/ua/v1/{accountMode}/account/modify-leverage-margin-cross` |
| [getLeverage()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L469)                     |  🔐  |     GET     | `api/ua/v1/unified/account/leverage`                           |
| [getDepositAddress()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L481)               |  🔐  |     GET     | `api/ua/v1/asset/deposit/address`                              |
| [getApiKeyInfo()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L492)                   |  🔐  |     GET     | `api/ua/v1/user/api-key`                                       |
| [getKYCRegions()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L500)                   |      |     GET     | `api/ua/v1/user/kyc-region`                                    |
| [getRateLimit()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L508)                    |  🔐  |     GET     | `api/ua/v1/rate-limit/query`                                   |
| [getAllRateLimit()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L518)                 |  🔐  |     GET     | `api/ua/v1/rate-limit/query-all`                               |
| [getRateLimitCap()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L526)                 |  🔐  |     GET     | `api/ua/v1/rate-limit/query-cap`                               |
| [setSubAccountsRateLimit()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L534)         |  🔐  |     POST    | `api/ua/v1/rate-limit/set`                                     |
| [addSubAccount()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L544)                   |  🔐  |     POST    | `api/ua/v1/user/sub/create-sub-account`                        |
| [addSubAccountApi()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L554)                |  🔐  |     POST    | `api/ua/v1/user/create-sub-api-key`                            |
| [getWithdrawalQuotas()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L564)             |  🔐  |     GET     | `api/ua/v1/withdrawals/quotas`                                 |
| [submitWithdraw()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L574)                  |  🔐  |     POST    | `api/ua/v1/withdrawal`                                         |
| [cancelWithdrawal()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L584)                |  🔐  |    DELETE   | `api/ua/v1/withdrawal`                                         |
| [getThirdPartyCustodyQuota()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L594)       |  🔐  |     GET     | `api/ua/v1/oes/custody-quota`                                  |
| [placeOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L615)                      |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/detail`                         |
| [batchPlaceOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L648)                 |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/detail`                         |
| [getOrderDetails()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L673)                 |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/detail`                         |
| [getOpenOrderList()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L687)                |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/open-list`                      |
| [getOrderHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L701)                 |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/history`                        |
| [getTradeHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L714)                 |  🔐  |     GET     | `api/ua/v1/{accountMode}/order/execution`                      |
| [cancelOrder()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L726)                     |  🔐  |     POST    | `api/ua/v1/unified/order/cancel-all`                           |
| [batchCancelOrders()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L743)               |  🔐  |     POST    | `api/ua/v1/unified/order/cancel-all`                           |
| [batchCancelOrdersBySymbol()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L758)       |  🔐  |     POST    | `api/ua/v1/unified/order/cancel-all`                           |
| [setDCP()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L771)                          |  🔐  |     POST    | `api/ua/v1/dcp/set`                                            |
| [getDCP()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L782)                          |  🔐  |     GET     | `api/ua/v1/dcp/query`                                          |
| [getPositionList()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L802)                 |  🔐  |     GET     | `api/ua/v1/unified/position/open-list`                         |
| [batchModifyMarginMode()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L812)           |  🔐  |     POST    | `api/ua/v1/unified/position/margin-mode`                       |
| [modifyIsolatedFuturesMargin()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L822)     |  🔐  |     POST    | `api/ua/v1/unified/position/modify-margin`                     |
| [getPositionsHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L835)             |  🔐  |     GET     | `api/ua/v1/position/history`                                   |
| [getPrivateFundingFeeHistory()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L845)     |  🔐  |     GET     | `api/ua/v1/position/funding-history`                           |
| [getAccountPositionTiers()](https://github.com/tiagosiebler/kucoin-api/blob/master/src/UnifiedAPIClient.ts#L856)         |  🔐  |     GET     | `api/ua/v1/{accountMode}/position/tiers`                       |

## KuCoin JavaScript FAQ

### What does the KuCoin JavaScript SDK cover?

KuCoin supports Spot, Margin, Futures, Lending, and WebSockets workflows. The JavaScript guide covers the main REST and WebSocket integration patterns.

### How do I authenticate private KuCoin API calls in JavaScript?

Install kucoin-api from npm & pass API credentials into the SDK client options, as shown in the KuCoin JavaScript examples above. The SDK handles the exchange-specific signing requirements for private requests.

### Does the KuCoin JavaScript SDK help with WebSocket connection management?

Yes. Use the SDK WebSocket client for subscriptions, reconnect handling, and stream lifecycle management instead of building raw socket flows yourself.

### Where should I start on the KuCoin JavaScript page: REST or WebSocket?

Start with the REST quick start for installation, authentication, and request and response flows. Move to the WebSocket example when you need streaming market or account updates.

## Machine Resources

- [AI prompt framework](/ai)
- [LLM discovery](/llms.txt)
- [SDK catalog](/.well-known/siebly-sdk-catalog.json)
- [Agent skill](/.well-known/agent-skills/siebly-crypto-exchange-api/SKILL.md)
