---
title: "Gate JavaScript & TypeScript SDK for Node.js | Siebly"
description: "Gate 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/gate/javascript"
---

# Gate JavaScript SDK

Use gateio-api to read Gate market data, manage orders, and consume streams from Node.js. JavaScript and TypeScript use the same clients; request and response types are included.

- [Make a first request](#quickstart)
- [Full tutorial](/sdk/gate/javascript/tutorial)
- [Endpoint reference](#endpoint-reference)

- [npm: gateio-api](https://www.npmjs.com/package/gateio-api)
- [GitHub repository](https://github.com/sieblyio/gateio-api)
- [README](https://github.com/sieblyio/gateio-api#readme)
- [Gate examples](/examples/Gate)
- [View release feed](/releases/sdk/gateio-api)

## Choose a client

- [RestClient](/sdk/gate/javascript/tutorial): Public and private REST API calls
- [WebsocketClient](/sdk/gate/javascript/tutorial): Public and private WebSocket subscriptions
- [WebsocketAPIClient](/sdk/gate/javascript/tutorial): Awaitable Spot and Futures order commands

## Integration Profile

**REST API:** Use the Gate SDK for spot and futures REST workflows, including account state, order management, balances, market data, and contract-specific request paths.

**WebSockets:** Use WebSocket clients for Gate market streams and account-related event streams in the product areas supported by the SDK.

**Reliability:** Keep settle currency, contract symbols, and spot/futures clients explicit; watch per-market rate limits and reconnect/resubscribe streams after transport interruptions.

<a id="quickstart"></a>

## Make a first public request

In a Node.js project, install the package once. The REST and WebSocket API examples below use `.mjs` files so Node.js can run their imports directly.

```sh
npm install gateio-api
```

### REST API

Read public BTC_USDT Spot data with `RestClient`. These public requests require no credentials.

Save the code as `rest-public.mjs` and run:

```sh
node rest-public.mjs
```

```javascript
import { RestClient } from 'gateio-api';

const client = new RestClient();

async function main() {
  try {
    const time = await client.getServerTime();
    console.log('Server time:', time.server_time);
  } catch (error) {
    console.error('Server time request failed:', error);
  }

  try {
    const pair = await client.getSpotCurrencyPair({
      currency_pair: 'BTC_USDT',
    });
    console.log('BTC_USDT metadata:', pair);
  } catch (error) {
    console.error('Currency pair request failed:', error);
  }

  try {
    const tickers = await client.getSpotTicker({
      currency_pair: 'BTC_USDT',
    });
    console.log('BTC_USDT ticker:', tickers[0]);
  } catch (error) {
    console.error('Ticker request failed:', error);
  }

  try {
    const orderBook = await client.getSpotOrderBook({
      currency_pair: 'BTC_USDT',
      limit: 5,
    });
    console.log('Best bid:', orderBook.bids[0]);
    console.log('Best ask:', orderBook.asks[0]);
  } catch (error) {
    console.error('Order book request failed:', error);
  }

  try {
    const candles = await client.getSpotCandles({
      currency_pair: 'BTC_USDT',
      interval: '1h',
      limit: 10,
    });
    console.log('Latest candle:', candles[0]);
  } catch (error) {
    console.error('Candles request failed:', error);
  }
}

main();
```

### Expected response

Market values change on each run. These are the fields to check in the logged output.

| Field | Expected result |
| --- | --- |
| Server time / metadata | A Unix-millisecond number and the BTC_USDT currency-pair object. |
| Ticker / best bid / best ask | A ticker object and `[price, quantity]` decimal-string levels. |
| Latest candle | An array starting with Unix seconds, quote volume, close, high, low, and open. The example logs the first returned row. |

[View the source example](https://github.com/sieblyio/gateio-api/blob/master/docs/GATE_SDK_QUICKSTART_GUIDE.md)

- [More REST examples](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Gate/Rest/futures/futures-balance-trade.ts)

### WebSocket Streams

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

- Install the Gate JavaScript SDK via NPM: `npm install gateio-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`, `authenticated`, and `exception`.
- Subscribe to private spot topics and process incoming updates in real time.

In this example, we:

- Subscribe to private spot topics including balances, orders, user trades, and price orders.
- Demonstrate both single-topic and batched multi-topic subscription patterns.
- Show that duplicate subscriptions are filtered by the client.

This setup lets you track account-level spot activity without polling REST endpoints.

```typescript
/* eslint-disable @typescript-eslint/no-unused-vars */
import { LogParams, WebsocketClient, WsTopicRequest } from 'gateio-api';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const account = {
  key: process.env.API_KEY || 'apiKeyHere',
  secret: process.env.API_SECRET || 'apiSecretHere',
};

// Define a custom logger object to handle logging at different levels
const customLogger = {
  // Trace level logging: used for detailed debugging information
  trace: (...params: LogParams): void => {
    // Uncomment the line below to enable trace logging
    // console.log(new Date(), 'trace', ...params);
  },
  // Info level logging: used for general informational messages
  info: (...params: LogParams): void => {
    console.log(new Date(), 'info', ...params);
  },
  // Error level logging: used for error messages
  error: (...params: LogParams): void => {
    console.error(new Date(), 'error', ...params);
  },
};

async function start() {
  const client = new WebsocketClient(
    {
      apiKey: account.key,
      apiSecret: account.secret,
    },
    customLogger,
  );

  // console.log('auth with: ', account);
  client.on('open', (data) => {
    console.log('connected ', 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('server reply: ', JSON.stringify(data), '\n');
  });

  client.on('exception', (data) => {
    console.error('exception: ', data);
  });

  client.on('authenticated', (data) => {
    console.error('authenticated: ', data);
  });

  try {
    // client.subscribe(topics, 'spotV4');

    const topicWithoutParamsAsString = 'spot.balances';

    // This has the same effect as above, it's just a different way of messaging which topic this is for
    // const topicWithoutParamsAsObject: WsTopicRequest = {
    //   topic: 'spot.balances',
    // };

    const userOrders: WsTopicRequest = {
      topic: 'spot.orders',
      payload: ['BTC_USDT', 'ETH_USDT', 'MATIC_USDT'],
    };

    const userTrades: WsTopicRequest = {
      topic: 'spot.usertrades',
      payload: ['BTC_USDT', 'ETH_USDT', 'MATIC_USDT'],
    };

    const userPriceOrders: WsTopicRequest = {
      topic: 'spot.priceorders',
      payload: ['!all'],
    };

    /**
     * Either send one topic (with optional params) at a time
     */
    // client.subscribe(topicWithoutParamsAsObject, 'spotV4');

    /**
     * Or send multiple topics in a batch (grouped by ws connection (WsKey))
     * You can also use strings for topics that don't have any parameters, even if you mix multiple requests into one function call:
     */
    client.subscribe(
      [topicWithoutParamsAsString, userOrders, userTrades, userPriceOrders],
      'spotV4',
    );

    /**
     * You can also subscribe in separate function calls as you wish.
     *
     * Any duplicate requests should get filtered out (e.g. here we subscribed to "spot.balances" twice, but the WS client will filter this out)
     */
    client.subscribe(
      [
        'spot.balances',
        'spot.margin_balances',
        'spot.funding_balances',
        'spot.cross_balances',
      ],
      'spotV4',
    );
  } catch (e) {
    console.error('Req error: ', e);
  }
}

start();
```

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

### WebSocket API

WebSocket API commands require API credentials. Set the environment variables shown in the code using credentials for the live environment. This example only constructs the client; it sends no request and places no order. Continue with the maintained example below for supported commands and connection handling.

Save the code as `ws-api-setup.mjs` and run:

```sh
node ws-api-setup.mjs
```

```javascript
import { WebsocketAPIClient } from 'gateio-api';

const credentials = {
  apiKey: process.env.GATE_API_KEY,
  apiSecret: process.env.GATE_API_SECRET,
};

if (Object.values(credentials).some((value) => !value)) {
  throw new Error('Set GATE_API_KEY, GATE_API_SECRET before running.');
}

const wsApi = new WebsocketAPIClient(credentials);
console.log('Client configured. No request sent.');
```

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

## Endpoint Reference

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

### Endpoint maps

<p align="center">
  <a href="https://www.npmjs.com/package/gateio-api">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://github.com/sieblyio/gateio-api/blob/master/docs/images/logoDarkMode2.svg?raw=true#gh-dark-mode-only">
      <img alt="SDK Logo" src="https://github.com/sieblyio/gateio-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/sieblyio/awesome-crypto-examples/wiki/How-to-find-SDK-functions-that-match-API-docs-endpoint).

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

List of clients:

- [RestClient](#restclientts)
- [WebsocketAPIClient](#websocketapiclientts)

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.

### RestClient.ts

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

| Function                                                                                                               | AUTH | HTTP Method | Endpoint                                                      |
| ---------------------------------------------------------------------------------------------------------------------- | :--: | :---------: | ------------------------------------------------------------- |
| [getSystemMaintenanceStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L724)              |      |     GET     | `/v1/public/system_info`                                      |
| [listAnnouncementArticles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L728)                |      |     POST    | `/ann/list_article`                                           |
| [submitWithdrawal()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L750)                        |  🔐  |     POST    | `/withdrawals`                                                |
| [submitSpotMainAccountTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L764)           |  🔐  |     POST    | `/withdrawals/push`                                           |
| [cancelWithdrawal()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L780)                        |  🔐  |    DELETE   | `/withdrawals/{withdrawal_id}`                                |
| [getCurrencyChains()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L797)                       |      |     GET     | `/wallet/currency_chains`                                     |
| [createDepositAddress()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L807)                    |  🔐  |     GET     | `/wallet/deposit_address`                                     |
| [getWithdrawalRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L823)                    |  🔐  |     GET     | `/wallet/withdrawals`                                         |
| [getDepositRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L837)                       |  🔐  |     GET     | `/wallet/deposits`                                            |
| [submitTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L856)                          |  🔐  |     POST    | `/wallet/transfers`                                           |
| [getTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L868)                             |  🔐  |     GET     | `/wallet/transfers`                                           |
| [submitMainSubTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L883)                   |  🔐  |     POST    | `/wallet/sub_account_transfers`                               |
| [getMainSubTransfers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L897)                     |  🔐  |     GET     | `/wallet/sub_account_transfers`                               |
| [submitSubToSubTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L911)                  |  🔐  |     POST    | `/wallet/sub_account_to_sub_account`                          |
| [getTransferStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L926)                       |  🔐  |     GET     | `/wallet/order_status`                                        |
| [getWithdrawalStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L942)                     |  🔐  |     GET     | `/wallet/withdraw_status`                                     |
| [getSubBalance()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L954)                           |  🔐  |     GET     | `/wallet/sub_account_balances`                                |
| [getSubMarginBalances()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L966)                    |  🔐  |     GET     | `/wallet/sub_account_margin_balances`                         |
| [getSubFuturesBalances()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L978)                   |  🔐  |     GET     | `/wallet/sub_account_futures_balances`                        |
| [getSubCrossMarginBalances()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L991)               |  🔐  |     GET     | `/wallet/sub_account_cross_margin_balances`                   |
| [getSavedAddresses()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1003)                      |  🔐  |     GET     | `/wallet/saved_address`                                       |
| [getTradingFees()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1013)                         |  🔐  |     GET     | `/wallet/fee`                                                 |
| [getBalances()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1034)                            |  🔐  |     GET     | `/wallet/total_balance`                                       |
| [getSmallBalances()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1043)                       |  🔐  |     GET     | `/wallet/small_balance`                                       |
| [convertSmallBalance()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1053)                    |  🔐  |     POST    | `/wallet/small_balance`                                       |
| [getSmallBalanceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1066)                 |  🔐  |     GET     | `/wallet/small_balance_history`                               |
| [getPushOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1078)                          |  🔐  |     GET     | `/wallet/push`                                                |
| [getLowCapExchangeList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1087)                  |  🔐  |     GET     | `/wallet/getLowCapExchangeList`                               |
| [createSubAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1102)                       |  🔐  |     POST    | `/sub_accounts`                                               |
| [getSubAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1113)                         |  🔐  |     GET     | `/sub_accounts`                                               |
| [getSubAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1123)                          |  🔐  |     GET     | `/sub_accounts/{user_id}`                                     |
| [createSubAccountApiKey()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1133)                 |  🔐  |     POST    | `/sub_accounts/{user_id}/keys`                                |
| [getSubAccountApiKeys()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1146)                   |  🔐  |     GET     | `/sub_accounts/{user_id}/keys`                                |
| [updateSubAccountApiKey()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1160)                 |  🔐  |     PUT     | `/sub_accounts/{user_id}/keys/{key}`                          |
| [deleteSubAccountApiKey()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1171)                 |  🔐  |    DELETE   | `/sub_accounts/{user_id}/keys/{key}`                          |
| [getSubAccountApiKey()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1186)                    |  🔐  |     GET     | `/sub_accounts/{user_id}/keys/{key}`                          |
| [lockSubAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1201)                         |  🔐  |     POST    | `/sub_accounts/{user_id}/lock`                                |
| [unlockSubAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1211)                       |  🔐  |     POST    | `/sub_accounts/{user_id}/unlock`                              |
| [getSubAccountMode()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1225)                      |  🔐  |     GET     | `/sub_accounts/unified_mode`                                  |
| [getUnifiedAccountInfo()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1244)                  |  🔐  |     GET     | `/unified/accounts`                                           |
| [getUnifiedMaxBorrow()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1260)                    |  🔐  |     GET     | `/unified/borrowable`                                         |
| [getUnifiedMaxTransferable()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1276)              |  🔐  |     GET     | `/unified/transferable`                                       |
| [getUnifiedMaxTransferables()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1291)             |  🔐  |     GET     | `/unified/transferables`                                      |
| [getUnifiedBatchMaxBorrowable()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1300)           |  🔐  |     GET     | `/unified/batch_borrowable`                                   |
| [submitUnifiedBorrowOrRepay()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1318)             |  🔐  |     POST    | `/unified/loans`                                              |
| [getUnifiedLoans()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1330)                        |  🔐  |     GET     | `/unified/loans`                                              |
| [getUnifiedLoanRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1340)                  |  🔐  |     GET     | `/unified/loan_records`                                       |
| [getUnifiedInterestRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1352)              |  🔐  |     GET     | `/unified/interest_records`                                   |
| [getUnifiedRiskUnitDetails()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1363)              |  🔐  |     GET     | `/unified/risk_units`                                         |
| [setUnifiedAccountMode()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1375)                  |  🔐  |     PUT     | `/unified/unified_mode`                                       |
| [getUnifiedAccountMode()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1384)                  |  🔐  |     GET     | `/unified/unified_mode`                                       |
| [getUnifiedEstimateRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1396)                 |  🔐  |     GET     | `/unified/estimate_rate`                                      |
| [getUnifiedCurrencyDiscountTiers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1407)        |      |     GET     | `/unified/currency_discount_tiers`                            |
| [getLoanMarginTiers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1419)                     |      |     GET     | `/unified/loan_margin_tiers`                                  |
| [portfolioMarginCalculate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1436)               |      |     POST    | `/unified/portfolio_calculator`                               |
| [setUserLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1450)                        |  🔐  |     POST    | `/unified/leverage/user_setting`                              |
| [getUserCurrencyLeverageConfig()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1464)          |  🔐  |     GET     | `/unified/leverage/user_currency_config`                      |
| [getUserCurrencyLeverageSettings()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1478)        |  🔐  |     GET     | `/unified/leverage/user_currency_setting`                     |
| [updateUserCurrencyLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1493)             |  🔐  |     POST    | `/unified/leverage/user_currency_setting`                     |
| [getUnifiedLoanCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1508)               |  🔐  |     GET     | `/unified/currencies`                                         |
| [getHistoricalLendingRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1520)              |  🔐  |     GET     | `/unified/history_loan_rate`                                  |
| [submitUnifiedLoanRepay()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1526)                 |  🔐  |     POST    | `/unified/loans/repay`                                        |
| [getEstimatedQuickRepayment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1533)             |  🔐  |     GET     | `/unified/estimated_quick_repayment`                          |
| [createQuickRepayment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1540)                   |  🔐  |     POST    | `/unified/quick_repayment`                                    |
| [setUnifiedDeltaNeutral()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1551)                 |  🔐  |     POST    | `/unified/delta_neutral`                                      |
| [getUnifiedDeltaNeutral()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1560)                 |  🔐  |     GET     | `/unified/delta_neutral`                                      |
| [getSpotCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1580)                      |      |     GET     | `/spot/currencies`                                            |
| [getSpotCurrency()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1590)                        |      |     GET     | `/spot/currencies/{currency}`                                 |
| [getSpotCurrencyPairs()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1599)                   |      |     GET     | `/spot/currency_pairs`                                        |
| [getSpotCurrencyPair()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1609)                    |      |     GET     | `/spot/currency_pairs/{currency_pair}`                        |
| [getSpotTicker()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1623)                          |      |     GET     | `/spot/tickers`                                               |
| [getSpotOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1638)                       |      |     GET     | `/spot/order_book`                                            |
| [getSpotRpiOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1650)                    |      |     GET     | `/spot/rpi_order_book`                                        |
| [getSpotTrades()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1663)                          |      |     GET     | `/spot/trades`                                                |
| [getSpotCandles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1675)                         |      |     GET     | `/spot/candlesticks`                                          |
| [getSpotFeeRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1687)                        |  🔐  |     GET     | `/spot/fee`                                                   |
| [getSpotBatchFeeRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1696)                   |  🔐  |     GET     | `/spot/batch_fee`                                             |
| [getSpotAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1708)                        |  🔐  |     GET     | `/spot/accounts`                                              |
| [getSpotAccountBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1720)                     |  🔐  |     GET     | `/spot/account_book`                                          |
| [submitSpotBatchOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1739)                  |  🔐  |     POST    | `/spot/batch_orders`                                          |
| [getSpotOpenOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1766)                      |  🔐  |     GET     | `/spot/open_orders`                                           |
| [submitSpotClosePosCrossDisabled()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1782)        |  🔐  |     POST    | `/spot/cross_liquidate_orders`                                |
| [submitSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1798)                        |  🔐  |     POST    | `/spot/orders`                                                |
| [getSpotOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1815)                          |  🔐  |     GET     | `/spot/orders`                                                |
| [cancelSpotOpenOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1830)                   |  🔐  |    DELETE   | `/spot/orders`                                                |
| [batchCancelSpotOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1859)                  |  🔐  |     POST    | `/spot/cancel_batch_orders`                                   |
| [getSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1884)                           |  🔐  |     GET     | `/spot/orders/{order_id}`                                     |
| [updateSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1901)                        |  🔐  |    PATCH    | `/spot/orders/{order_id}`                                     |
| [cancelSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1929)                        |  🔐  |    DELETE   | `/spot/orders/{order_id}`                                     |
| [getSpotTradingHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1958)                  |  🔐  |     GET     | `/spot/my_trades`                                             |
| [submitSpotCountdownOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L1987)              |  🔐  |     POST    | `/spot/countdown_cancel_all`                                  |
| [batchUpdateSpotOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2006)                  |  🔐  |     POST    | `/spot/amend_batch_orders`                                    |
| [getSpotInsuranceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2033)                |  🔐  |     GET     | `/spot/insurance_history`                                     |
| [submitSpotPriceTriggerOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2047)            |  🔐  |     POST    | `/spot/price_orders`                                          |
| [getSpotAutoOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2059)                      |  🔐  |     GET     | `/spot/price_orders`                                          |
| [cancelAllOpenSpotOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2071)                |  🔐  |    DELETE   | `/spot/price_orders`                                          |
| [getPriceTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2084)                 |  🔐  |     GET     | `/spot/price_orders/{order_id}`                               |
| [cancelSpotTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2096)               |  🔐  |    DELETE   | `/spot/price_orders/{order_id}`                               |
| [getSpotPovOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2110)                       |  🔐  |     GET     | `/spot/pov_orders`                                            |
| [createSpotPovOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2122)                     |  🔐  |     POST    | `/spot/pov_orders`                                            |
| [cancelSpotPovOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2134)                    |  🔐  |    DELETE   | `/spot/pov_orders`                                            |
| [getSpotPovOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2148)                        |  🔐  |     GET     | `/spot/pov_orders/{order_id}`                                 |
| [cancelSpotPovOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2160)                     |  🔐  |    DELETE   | `/spot/pov_orders/{order_id}`                                 |
| [setCollateralCurrency()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2172)                  |  🔐  |     POST    | `/unified/collateral_currencies`                              |
| [getMarginAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2193)                      |  🔐  |     GET     | `/margin/accounts`                                            |
| [getMarginBalanceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2207)                |  🔐  |     GET     | `/margin/account_book`                                        |
| [getFundingAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2225)                     |  🔐  |     GET     | `/margin/funding_accounts`                                    |
| [updateAutoRepaymentSetting()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2243)             |  🔐  |     POST    | `/margin/auto_repay`                                          |
| [getAutoRepaymentSetting()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2254)                |  🔐  |     GET     | `/margin/auto_repay`                                          |
| [getMarginTransferableAmount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2268)            |  🔐  |     GET     | `/margin/transferable`                                        |
| [getCrossMarginCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2285)               |      |     GET     | `/margin/cross/currencies`                                    |
| [getCrossMarginCurrency()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2296)                 |      |     GET     | `/margin/cross/currencies/{currency}`                         |
| [getCrossMarginAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2308)                  |  🔐  |     GET     | `/margin/cross/accounts`                                      |
| [getCrossMarginAccountHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2321)           |  🔐  |     GET     | `/margin/cross/account_book`                                  |
| [submitCrossMarginBorrowLoan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2338)            |  🔐  |     POST    | `/margin/cross/loans`                                         |
| [getCrossMarginBorrowHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2353)            |  🔐  |     GET     | `/margin/cross/loans`                                         |
| [getCrossMarginBorrowLoan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2366)               |  🔐  |     GET     | `/margin/cross/loans/{loan_id}`                               |
| [submitCrossMarginRepayment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2381)             |  🔐  |     POST    | `/margin/cross/repayments`                                    |
| [getCrossMarginRepayments()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2397)               |  🔐  |     GET     | `/margin/cross/repayments`                                    |
| [getCrossMarginInterestRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2410)          |  🔐  |     GET     | `/margin/cross/interest_records`                              |
| [getCrossMarginTransferableAmount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2426)       |  🔐  |     GET     | `/margin/cross/transferable`                                  |
| [getEstimatedInterestRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2442)              |  🔐  |     GET     | `/margin/cross/estimate_rate`                                 |
| [getCrossMarginBorrowableAmount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2456)         |  🔐  |     GET     | `/margin/cross/borrowable`                                    |
| [getMarginUserLoanTiers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2469)                 |  🔐  |     GET     | `/margin/user/loan_margin_tiers`                              |
| [getMarginPublicLoanTiers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2485)               |      |     GET     | `/margin/loan_margin_tiers`                                   |
| [setMarginUserLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2501)                  |  🔐  |     POST    | `/margin/leverage/user_market_setting`                        |
| [getMarginUserAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2518)                  |  🔐  |     GET     | `/margin/user/account`                                        |
| [getLendingMarkets()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2533)                      |      |     GET     | `/margin/uni/currency_pairs`                                  |
| [getLendingMarket()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2548)                       |      |     GET     | `/margin/uni/currency_pairs/{currency_pair}`                  |
| [getEstimatedInterestRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2560)               |  🔐  |     GET     | `/margin/uni/estimate_rate`                                   |
| [submitMarginUNIBorrowOrRepay()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2572)           |  🔐  |     POST    | `/margin/uni/loans`                                           |
| [getMarginUNILoans()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2588)                      |  🔐  |     GET     | `/margin/uni/loans`                                           |
| [getMarginUNILoanRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2598)                |  🔐  |     GET     | `/margin/uni/loan_records`                                    |
| [getMarginUNIInterestRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2610)            |  🔐  |     GET     | `/margin/uni/interest_records`                                |
| [getMarginUNIMaxBorrow()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2622)                  |  🔐  |     GET     | `/margin/uni/borrowable`                                      |
| [getFlashSwapCurrencyPairs()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2638)              |      |     GET     | `/flash_swap/currency_pairs`                                  |
| [submitFlashSwapOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2654)                   |  🔐  |     POST    | `/flash_swap/orders`                                          |
| [getFlashSwapOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2666)                     |  🔐  |     GET     | `/flash_swap/orders`                                          |
| [getFlashSwapOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2678)                      |  🔐  |     GET     | `/flash_swap/orders/{order_id}`                               |
| [submitFlashSwapOrderPreview()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2688)            |  🔐  |     POST    | `/flash_swap/orders/preview`                                  |
| [getFuturesContracts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2705)                    |      |     GET     | `/futures/{settle}/contracts`                                 |
| [getFuturesContract()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2720)                     |      |     GET     | `/futures/{settle}/contracts/{contract}`                      |
| [listFuturesADLRiskStates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2727)               |      |     GET     | `/futures/{settle}/adl_risk_states`                           |
| [getFuturesOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2741)                    |      |     GET     | `/futures/{settle}/order_book`                                |
| [getFuturesRpiOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2757)                 |      |     GET     | `/futures/{settle}/rpi_order_book`                            |
| [getFuturesTrades()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2770)                       |      |     GET     | `/futures/{settle}/trades`                                    |
| [getFuturesCandles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2785)                      |      |     GET     | `/futures/{settle}/candlesticks`                              |
| [getPremiumIndexKLines()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2798)                  |      |     GET     | `/futures/{settle}/premium_index`                             |
| [getFuturesTickers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2811)                      |      |     GET     | `/futures/{settle}/tickers`                                   |
| [getFundingRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2828)                        |      |     GET     | `/futures/{settle}/funding_rate`                              |
| [getBatchFundingRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2844)                   |      |     POST    | `/futures/{settle}/funding_rates`                             |
| [getFuturesInsuranceBalanceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2862)      |      |     GET     | `/futures/{settle}/insurance`                                 |
| [getFuturesStats()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2881)                        |      |     GET     | `/futures/{settle}/contract_stats`                            |
| [getIndexConstituents()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2892)                   |      |     GET     | `/futures/{settle}/index_constituents/{index}`                |
| [getLiquidationHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2909)                  |      |     GET     | `/futures/{settle}/liq_orders`                                |
| [getRiskLimitTiers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2926)                      |      |     GET     | `/futures/{settle}/risk_limit_tiers`                          |
| [getFuturesAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2939)                      |  🔐  |     GET     | `/futures/{settle}/accounts`                                  |
| [getFuturesAccountBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2953)                  |  🔐  |     GET     | `/futures/{settle}/account_book`                              |
| [getFuturesPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2966)                    |  🔐  |     GET     | `/futures/{settle}/positions`                                 |
| [getFuturesPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2981)                     |  🔐  |     GET     | `/futures/{settle}/positions/{contract}`                      |
| [updateFuturesMargin()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L2998)                    |  🔐  |     POST    | `/futures/{settle}/positions/{contract}/margin`               |
| [updateFuturesLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3026)                  |  🔐  |     POST    | `/futures/{settle}/positions/{contract}/leverage`             |
| [getFuturesContractLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3046)             |  🔐  |     GET     | `/futures/{settle}/get_leverage/{contract}`                   |
| [updateFuturesPositionMode()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3062)              |  🔐  |     POST    | `/futures/{settle}/positions/cross_mode`                      |
| [updatePositionRiskLimit()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3079)                |  🔐  |     POST    | `/futures/{settle}/positions/{contract}/risk_limit`           |
| [updateFuturesDualMode()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3099)                  |  🔐  |     POST    | `/futures/{settle}/dual_mode`                                 |
| [getDualModePosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3115)                    |  🔐  |     GET     | `/futures/{settle}/dual_comp/positions/{contract}`            |
| [updateDualModePositionMargin()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3130)           |  🔐  |     POST    | `/futures/{settle}/dual_comp/positions/{contract}/margin`     |
| [updateDualModePositionLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3146)         |  🔐  |     POST    | `/futures/{settle}/dual_comp/positions/{contract}/leverage`   |
| [updateDualModePositionRiskLimit()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3170)        |  🔐  |     POST    | `/futures/{settle}/dual_comp/positions/{contract}/risk_limit` |
| [submitFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3197)                     |  🔐  |     POST    | `/futures/{settle}/orders`                                    |
| [getFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3218)                       |  🔐  |     GET     | `/futures/{settle}/orders`                                    |
| [cancelAllFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3233)                 |  🔐  |    DELETE   | `/futures/{settle}/orders`                                    |
| [getFuturesOrdersByTimeRange()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3253)            |  🔐  |     GET     | `/futures/{settle}/orders_timerange`                          |
| [submitFuturesBatchOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3276)               |  🔐  |     POST    | `/futures/{settle}/batch_orders`                              |
| [getFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3301)                        |  🔐  |     GET     | `/futures/{settle}/orders/{order_id}`                         |
| [cancelFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3318)                     |  🔐  |    DELETE   | `/futures/{settle}/orders/{order_id}`                         |
| [updateFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3343)                     |  🔐  |     PUT     | `/futures/{settle}/orders/{order_id}`                         |
| [getFuturesTradingHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3364)               |  🔐  |     GET     | `/futures/{settle}/my_trades`                                 |
| [getFuturesTradingHistoryByTimeRange()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3379)    |  🔐  |     GET     | `/futures/{settle}/my_trades_timerange`                       |
| [getFuturesPositionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3392)              |  🔐  |     GET     | `/futures/{settle}/position_close`                            |
| [getFuturesLiquidationHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3405)           |  🔐  |     GET     | `/futures/{settle}/liquidates`                                |
| [getFuturesAutoDeleveragingHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3418)      |  🔐  |     GET     | `/futures/{settle}/auto_deleverages`                          |
| [setFuturesOrderCancelCountdown()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3435)         |  🔐  |     POST    | `/futures/{settle}/countdown_cancel_all`                      |
| [getFuturesUserTradingFees()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3452)              |  🔐  |     GET     | `/futures/{settle}/fee`                                       |
| [batchCancelFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3470)               |  🔐  |     POST    | `/futures/{settle}/batch_cancel_orders`                       |
| [batchUpdateFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3497)               |  🔐  |     POST    | `/futures/{settle}/batch_amend_orders`                        |
| [getRiskLimitTable()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3519)                      |      |     GET     | `/futures/{settle}/risk_limit_table`                          |
| [submitFuturesPriceTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3532)       |  🔐  |     POST    | `/futures/{settle}/price_orders`                              |
| [getFuturesAutoOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3545)                   |  🔐  |     GET     | `/futures/{settle}/price_orders`                              |
| [cancelAllOpenFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3558)             |  🔐  |    DELETE   | `/futures/{settle}/price_orders`                              |
| [getFuturesPriceTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3574)          |  🔐  |     GET     | `/futures/{settle}/price_orders/{order_id}`                   |
| [cancelFuturesPriceTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3589)       |  🔐  |    DELETE   | `/futures/{settle}/price_orders/{order_id}`                   |
| [updateFuturesPriceTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3607)       |  🔐  |     PUT     | `/futures/{settle}/price_orders/amend/{order_id}`             |
| [createTrailOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3625)                       |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/trail/create`                 |
| [terminateTrailOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3644)                    |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/trail/stop`                   |
| [batchTerminateTrailOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3663)              |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/trail/stop_all`               |
| [getTrailOrderList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3682)                      |  🔐  |     GET     | `/futures/{settle}/autoorder/v1/trail/list`                   |
| [getTrailOrderDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3699)                    |  🔐  |     GET     | `/futures/{settle}/autoorder/v1/trail/detail`                 |
| [updateTrailOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3718)                       |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/trail/update`                 |
| [getTrailOrderChangeLog()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3737)                 |  🔐  |     GET     | `/futures/{settle}/autoorder/v1/trail/change_log`             |
| [createChaseOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3754)                       |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/chase/create`                 |
| [stopChaseOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3764)                         |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/chase/stop`                   |
| [stopAllChaseOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3774)                     |  🔐  |     POST    | `/futures/{settle}/autoorder/v1/chase/stop_all`               |
| [getChaseOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3786)                         |  🔐  |     GET     | `/futures/{settle}/autoorder/v1/chase/list`                   |
| [getChaseOrderDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3794)                    |  🔐  |     GET     | `/futures/{settle}/autoorder/v1/chase/detail`                 |
| [getFuturesPositionCloseHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3803)         |  🔐  |     GET     | `/futures/{settle}/position_close_history`                    |
| [getFuturesInsuranceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3812)             |  🔐  |     GET     | `/futures/{settle}/insurance`                                 |
| [getAllDeliveryContracts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3829)                |      |     GET     | `/delivery/{settle}/contracts`                                |
| [getDeliveryContract()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3841)                    |      |     GET     | `/delivery/{settle}/contracts/{contract}`                     |
| [getDeliveryOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3856)                   |      |     GET     | `/delivery/{settle}/order_book`                               |
| [getDeliveryTrades()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3869)                      |      |     GET     | `/delivery/{settle}/trades`                                   |
| [getDeliveryCandles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3883)                     |      |     GET     | `/delivery/{settle}/candlesticks`                             |
| [getDeliveryTickers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3894)                     |      |     GET     | `/delivery/{settle}/tickers`                                  |
| [getDeliveryInsuranceBalanceHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3911)     |      |     GET     | `/delivery/{settle}/insurance`                                |
| [getDeliveryAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3930)                     |  🔐  |     GET     | `/delivery/{settle}/accounts`                                 |
| [getDeliveryBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3941)                        |  🔐  |     GET     | `/delivery/{settle}/account_book`                             |
| [getDeliveryPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3952)                   |  🔐  |     GET     | `/delivery/{settle}/positions`                                |
| [getDeliveryPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3962)                    |  🔐  |     GET     | `/delivery/{settle}/positions/{contract}`                     |
| [updateDeliveryMargin()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3977)                   |  🔐  |     POST    | `/delivery/{settle}/positions/{contract}/margin`              |
| [updateDeliveryLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L3995)                 |  🔐  |     POST    | `/delivery/{settle}/positions/{contract}/leverage`            |
| [updateDeliveryRiskLimit()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4013)                |  🔐  |     POST    | `/delivery/{settle}/positions/{contract}/risk_limit`          |
| [submitDeliveryOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4033)                    |  🔐  |     POST    | `/delivery/{settle}/orders`                                   |
| [getDeliveryOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4048)                      |  🔐  |     GET     | `/delivery/{settle}/orders`                                   |
| [cancelAllDeliveryOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4061)                |  🔐  |    DELETE   | `/delivery/{settle}/orders`                                   |
| [getDeliveryOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4080)                       |  🔐  |     GET     | `/delivery/{settle}/orders/{order_id}`                        |
| [cancelDeliveryOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4095)                    |  🔐  |    DELETE   | `/delivery/{settle}/orders/{order_id}`                        |
| [getDeliveryTradingHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4110)              |  🔐  |     GET     | `/delivery/{settle}/my_trades`                                |
| [getDeliveryClosedPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4123)             |  🔐  |     GET     | `/delivery/{settle}/position_close`                           |
| [getDeliveryLiquidationHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4136)          |  🔐  |     GET     | `/delivery/{settle}/liquidates`                               |
| [getDeliverySettlementHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4149)           |  🔐  |     GET     | `/delivery/{settle}/settlements`                              |
| [submitDeliveryTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4162)           |  🔐  |     POST    | `/delivery/{settle}/price_orders`                             |
| [getDeliveryAutoOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4177)                  |  🔐  |     GET     | `/delivery/{settle}/price_orders`                             |
| [cancelAllOpenDeliveryOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4190)            |  🔐  |    DELETE   | `/delivery/{settle}/price_orders`                             |
| [getDeliveryTriggeredOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4206)              |  🔐  |     GET     | `/delivery/{settle}/price_orders/{order_id}`                  |
| [cancelTriggeredDeliveryOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4221)           |  🔐  |    DELETE   | `/delivery/{settle}/price_orders/{order_id}`                  |
| [getOptionsUnderlyings()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4240)                  |      |     GET     | `/options/underlyings`                                        |
| [getOptionsExpirationTimes()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4250)              |      |     GET     | `/options/expirations`                                        |
| [getOptionsContracts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4260)                    |      |     GET     | `/options/contracts`                                          |
| [getOptionsContract()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4273)                     |      |     GET     | `/options/contracts/{contract}`                               |
| [getOptionsSettlementHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4283)            |      |     GET     | `/options/settlements`                                        |
| [getOptionsContractSettlement()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4295)           |      |     GET     | `/options/settlements/{contract}`                             |
| [getOptionsMySettlements()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4310)                |  🔐  |     GET     | `/options/my_settlements`                                     |
| [getOptionsOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4324)                    |      |     GET     | `/options/order_book`                                         |
| [getOptionsTickers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4336)                      |      |     GET     | `/options/tickers`                                            |
| [getOptionsUnderlyingTicker()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4350)             |      |     GET     | `/options/underlying/tickers/{underlying}`                    |
| [getOptionsCandles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4364)                      |      |     GET     | `/options/candlesticks`                                       |
| [getOptionsUnderlyingCandles()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4374)            |      |     GET     | `/options/underlying/candlesticks`                            |
| [getOptionsTrades()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4386)                       |      |     GET     | `/options/trades`                                             |
| [getOptionsAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4397)                      |  🔐  |     GET     | `/options/accounts`                                           |
| [getOptionsAccountChange()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4407)                |  🔐  |     GET     | `/options/account_book`                                       |
| [getOptionsPositionsUnderlying()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4419)          |  🔐  |     GET     | `/options/positions`                                          |
| [getOptionsPositionContract()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4431)             |  🔐  |     GET     | `/options/positions/{contract}`                               |
| [getOptionsLiquidation()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4443)                  |  🔐  |     GET     | `/options/position_close`                                     |
| [submitOptionsOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4456)                     |  🔐  |     POST    | `/options/orders`                                             |
| [getOptionsOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4468)                       |  🔐  |     GET     | `/options/orders`                                             |
| [cancelAllOpenOptionsOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4480)             |  🔐  |    DELETE   | `/options/orders`                                             |
| [getOptionsOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4494)                        |  🔐  |     GET     | `/options/orders/{order_id}`                                  |
| [amendOptionsOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4506)                      |  🔐  |     PUT     | `/options/orders/{order_id}`                                  |
| [cancelOptionsOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4521)                     |  🔐  |    DELETE   | `/options/orders/{order_id}`                                  |
| [submitOptionsCountdownCancel()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4540)           |  🔐  |     POST    | `/options/countdown_cancel_all`                               |
| [getOptionsPersonalHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4556)              |  🔐  |     GET     | `/options/my_trades`                                          |
| [setOptionsMMPSettings()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4568)                  |  🔐  |     POST    | `/options/mmp`                                                |
| [getOptionsMMPSettings()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4580)                  |  🔐  |     GET     | `/options/mmp`                                                |
| [resetOptionsMMPSettings()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4592)                |  🔐  |     POST    | `/options/mmp/reset`                                          |
| [getLendingCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4608)                   |      |     GET     | `/earn/uni/currencies`                                        |
| [getLendingCurrency()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4618)                     |      |     GET     | `/earn/uni/currencies/{currency}`                             |
| [submitLendOrRedeemOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4628)                |  🔐  |     POST    | `/earn/uni/lends`                                             |
| [getLendingOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4638)                       |  🔐  |     GET     | `/earn/uni/lends`                                             |
| [updateLendingOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4650)                     |  🔐  |    PATCH    | `/earn/uni/lends`                                             |
| [getLendingRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4663)                      |  🔐  |     GET     | `/earn/uni/lend_records`                                      |
| [getLendingTotalInterest()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4676)                |  🔐  |     GET     | `/earn/uni/interests/{currency}`                              |
| [getLendingInterestRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4689)              |  🔐  |     GET     | `/earn/uni/interest_records`                                  |
| [updateInterestReinvestment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4702)             |  🔐  |     PUT     | `/earn/uni/interest_reinvest`                                 |
| [getLendingInterestStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4718)               |  🔐  |     GET     | `/earn/uni/interest_status/{currency}`                        |
| [getLendingAnnualizedTrendChart()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4733)         |  🔐  |     GET     | `/earn/uni/chart`                                             |
| [getLendingEstimatedRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4741)               |  🔐  |     GET     | `/earn/uni/rate`                                              |
| [submitMultiLoanOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4758)                   |  🔐  |     POST    | `/loan/multi_collateral/orders`                               |
| [getMultiLoanOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4770)                     |  🔐  |     GET     | `/loan/multi_collateral/orders`                               |
| [getMultiLoanOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4782)                      |  🔐  |     GET     | `/loan/multi_collateral/orders/{order_id}`                    |
| [repayMultiLoan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4792)                         |  🔐  |     POST    | `/loan/multi_collateral/repay`                                |
| [getMultiLoanRepayRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4802)               |  🔐  |     GET     | `/loan/multi_collateral/repay`                                |
| [updateMultiLoan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4814)                        |  🔐  |     POST    | `/loan/multi_collateral/mortgage`                             |
| [getMultiLoanAdjustmentRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4826)          |  🔐  |     GET     | `/loan/multi_collateral/mortgage`                             |
| [getMultiLoanCurrencyQuota()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4838)              |  🔐  |     GET     | `/loan/multi_collateral/currency_quota`                       |
| [getMultiLoanSupportedCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4850)        |      |     GET     | `/loan/multi_collateral/currencies`                           |
| [getMultiLoanRatio()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4859)                      |      |     GET     | `/loan/multi_collateral/ltv`                                  |
| [getMultiLoanFixedRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4868)                 |      |     GET     | `/loan/multi_collateral/fixed_rate`                           |
| [getMultiLoanCurrentRates()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4881)               |      |     GET     | `/loan/multi_collateral/current_rate`                         |
| [getDualInvestmentProducts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4905)              |      |     GET     | `/earn/dual/investment_plan`                                  |
| [getDualInvestmentOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4916)                |  🔐  |     GET     | `/earn/dual/orders`                                           |
| [submitDualInvestmentOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4928)              |  🔐  |     POST    | `/earn/dual/orders`                                           |
| [getDualOrderRefundPreview()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4937)              |  🔐  |     GET     | `/earn/dual/order-refund-preview`                             |
| [submitDualOrderRefund()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4946)                  |  🔐  |     POST    | `/earn/dual/order-refund`                                     |
| [updateDualOrderReinvest()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4955)                |  🔐  |     POST    | `/earn/dual/modify-order-reinvest`                            |
| [getDualProjectRecommend()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4966)                |  🔐  |     GET     | `/earn/dual/project-recommend`                                |
| [getDualStockInvestmentPlans()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4977)            |      |     GET     | `/earn/dual/stock/investment_plan`                            |
| [getDualStockProjectRecommend()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4989)           |      |     GET     | `/earn/dual/stock/project-recommend`                          |
| [getDualStockOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L4998)                     |  🔐  |     GET     | `/earn/dual/stock/orders`                                     |
| [submitDualStockOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5010)                   |  🔐  |     POST    | `/earn/dual/stock/orders`                                     |
| [getDualStockBalance()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5019)                    |  🔐  |     GET     | `/earn/dual/stock/balance`                                    |
| [getDualStockOrderRefundPreview()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5026)         |  🔐  |     GET     | `/earn/dual/stock/order-refund-preview`                       |
| [submitDualStockOrderRefund()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5035)             |  🔐  |     POST    | `/earn/dual/stock/order-refund`                               |
| [updateDualStockOrderReinvest()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5044)           |  🔐  |     POST    | `/earn/dual/stock/modify-order-reinvest`                      |
| [getEarnFixedTermProducts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5055)               |      |     GET     | `/earn/fixed-term/product`                                    |
| [getEarnFixedTermProductsByAsset()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5064)        |      |     GET     | `/earn/fixed-term/product/{asset}/list`                       |
| [createEarnFixedTermLend()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5074)                |  🔐  |     POST    | `/earn/fixed-term/user/lend`                                  |
| [getEarnFixedTermLends()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5083)                  |  🔐  |     GET     | `/earn/fixed-term/user/lend`                                  |
| [createEarnFixedTermPreRedeem()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5092)           |  🔐  |     POST    | `/earn/fixed-term/user/pre-redeem`                            |
| [getEarnFixedTermHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5103)                |  🔐  |     GET     | `/earn/fixed-term/user/history`                               |
| [createAutoInvestPlan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5112)                   |  🔐  |     POST    | `/earn/autoinvest/plans/create`                               |
| [updateAutoInvestPlan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5121)                   |  🔐  |     POST    | `/earn/autoinvest/plans/update`                               |
| [stopAutoInvestPlan()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5128)                     |  🔐  |     POST    | `/earn/autoinvest/plans/stop`                                 |
| [addAutoInvestPlanPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5135)              |  🔐  |     POST    | `/earn/autoinvest/plans/add_position`                         |
| [getAutoInvestCoins()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5146)                     |  🔐  |     GET     | `/earn/autoinvest/coins`                                      |
| [getAutoInvestMinAmount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5155)                 |  🔐  |     POST    | `/earn/autoinvest/min_invest_amount`                          |
| [getAutoInvestPlanRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5166)               |  🔐  |     GET     | `/earn/autoinvest/plans/records`                              |
| [getAutoInvestOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5175)                    |  🔐  |     GET     | `/earn/autoinvest/orders`                                     |
| [getAutoInvestConfig()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5184)                    |  🔐  |     GET     | `/earn/autoinvest/config`                                     |
| [getAutoInvestPlanDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5191)                |  🔐  |     GET     | `/earn/autoinvest/plans/detail`                               |
| [getAutoInvestPlans()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5200)                     |  🔐  |     GET     | `/earn/autoinvest/plans/list_info`                            |
| [getStakingCoins()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5212)                        |  🔐  |     GET     | `/earn/staking/coins`                                         |
| [submitStakingSwap()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5225)                      |  🔐  |     POST    | `/earn/staking/swap`                                          |
| [getAccountDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5244)                       |  🔐  |     GET     | `/account/detail`                                             |
| [getAccountRateLimit()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5253)                    |  🔐  |     GET     | `/account/rate_limit`                                         |
| [createStpGroup()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5263)                         |  🔐  |     POST    | `/account/stp_groups`                                         |
| [getStpGroups()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5273)                           |  🔐  |     GET     | `/account/stp_groups`                                         |
| [getStpGroupUsers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5283)                       |  🔐  |     GET     | `/account/stp_groups/{stp_id}/users`                          |
| [addUsersToStpGroup()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5293)                     |  🔐  |     POST    | `/account/stp_groups/{stp_id}/users`                          |
| [deleteUserFromStpGroup()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5309)                 |  🔐  |    DELETE   | `/account/stp_groups/{stp_id}/users`                          |
| [setGTDeduction()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5327)                         |  🔐  |     POST    | `/account/debit_fee`                                          |
| [getGTDeduction()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5338)                         |  🔐  |     GET     | `/account/debit_fee`                                          |
| [getAccountMainKeys()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5347)                     |  🔐  |     GET     | `/account/main_keys`                                          |
| [getAgencyTransactionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5363)            |  🔐  |     GET     | `/rebate/agency/transaction_history`                          |
| [getAgencyCommissionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5376)             |  🔐  |     GET     | `/rebate/agency/commission_history`                           |
| [getPartnerTransactionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5390)           |  🔐  |     GET     | `/rebate/partner/transaction_history`                         |
| [getPartnerCommissionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5405)            |  🔐  |     GET     | `/rebate/partner/commission_history`                          |
| [getPartnerSubordinateList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5428)              |  🔐  |     GET     | `/rebate/partner/sub_list`                                    |
| [getPartnerAgentDataAggregated()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5438)          |  🔐  |     GET     | `/rebate/partner/data/aggregated`                             |
| [getBrokerCommissionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5451)             |  🔐  |     GET     | `/rebate/broker/commission_history`                           |
| [getBrokerTransactionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5464)            |  🔐  |     GET     | `/rebate/broker/transaction_history`                          |
| [getUserRebateInfo()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5473)                      |  🔐  |     GET     | `/rebate/user/info`                                           |
| [createOTCQuote()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5508)                         |  🔐  |     POST    | `/otc/quote`                                                  |
| [createOTCFiatOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5520)                     |  🔐  |     POST    | `/otc/order/create`                                           |
| [createOTCStablecoinOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5534)               |  🔐  |     POST    | `/otc/stable_coin/order/create`                               |
| [getOTCBankList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5543)                         |  🔐  |     GET     | `/otc/bank/list`                                              |
| [getOTCBankListLegacy()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5550)                   |  🔐  |     GET     | `/otc/bank_list`                                              |
| [createOTCUploadPreUpload()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5554)               |  🔐  |     POST    | `/otc/upload/pre_upload`                                      |
| [createOTCBank()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5563)                          |  🔐  |     POST    | `/otc/bank/create`                                            |
| [deleteOTCBank()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5577)                          |  🔐  |     POST    | `/otc/bank/delete`                                            |
| [setDefaultOTCBank()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5584)                      |  🔐  |     POST    | `/otc/bank/set_default`                                       |
| [getOTCBankSupplementChecklist()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5591)          |  🔐  |     GET     | `/otc/bank/bank_supplement_checklist`                         |
| [submitOTCBankPersonalSupplement()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5600)        |  🔐  |     POST    | `/otc/order/paid`                                             |
| [submitOTCBankEnterpriseSupplement()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5619)      |  🔐  |     POST    | `/otc/order/paid`                                             |
| [markOTCOrderAsPaid()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5655)                     |  🔐  |     POST    | `/otc/order/paid`                                             |
| [cancelOTCOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5669)                         |  🔐  |     POST    | `/otc/order/cancel`                                           |
| [getOTCFiatOrderList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5681)                    |  🔐  |     GET     | `/otc/order/list`                                             |
| [getOTCStablecoinOrderList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5695)              |  🔐  |     GET     | `/otc/stable_coin/order/list`                                 |
| [getOTCFiatOrderDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5709)                  |  🔐  |     GET     | `/otc/order/detail`                                           |
| [getP2PMerchantUserInfo()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5723)                 |  🔐  |     POST    | `/p2p/merchant/account/get_user_info`                         |
| [getP2PMerchantCounterpartyUserInfo()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5732)     |  🔐  |     POST    | `/p2p/merchant/account/get_counterparty_user_info`            |
| [getP2PMerchantMyselfPayment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5744)            |  🔐  |     POST    | `/p2p/merchant/account/get_myself_payment`                    |
| [getP2PMerchantSpotBalance()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5757)              |  🔐  |     POST    | `/p2p/merchant/account/set_merchant_work_hours`               |
| [setP2PMerchantWorkHours()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5766)                |  🔐  |     POST    | `/p2p/merchant/account/set_merchant_work_hours`               |
| [getP2PMerchantPendingTransactionList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5777)   |  🔐  |     POST    | `/p2p/merchant/transaction/get_pending_transaction_list`      |
| [getP2PMerchantCompletedTransactionList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5789) |  🔐  |     POST    | `/p2p/merchant/transaction/get_completed_transaction_list`    |
| [getP2PMerchantTransactionDetails()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5801)       |  🔐  |     POST    | `/p2p/merchant/transaction/get_transaction_details`           |
| [confirmP2PMerchantPayment()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5813)              |  🔐  |     POST    | `/p2p/merchant/transaction/confirm-payment`                   |
| [confirmP2PMerchantReceipt()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5824)              |  🔐  |     POST    | `/p2p/merchant/transaction/confirm-receipt`                   |
| [cancelP2PMerchantTransaction()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5835)           |  🔐  |     POST    | `/p2p/merchant/transaction/cancel`                            |
| [placeP2PMerchantBizPushOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5846)           |  🔐  |     POST    | `/p2p/merchant/books/place_biz_push_order`                    |
| [updateP2PMerchantAdsStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5857)             |  🔐  |     POST    | `/p2p/merchant/books/ads_update_status`                       |
| [getP2PMerchantAdsDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5870)                |  🔐  |     POST    | `/p2p/merchant/books/ads_detail`                              |
| [getP2PMerchantMyAdsList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5879)                |  🔐  |     POST    | `/p2p/merchant/books/my_ads_list`                             |
| [getP2PMerchantAdsList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5890)                  |  🔐  |     POST    | `/p2p/merchant/books/ads_list`                                |
| [getP2PMerchantChatsList()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5899)                |  🔐  |     POST    | `/p2p/merchant/chat/get_chats_list`                           |
| [sendP2PMerchantChatMessage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5910)             |  🔐  |     POST    | `/p2p/merchant/chat/send_chat_message`                        |
| [uploadP2PMerchantChatFile()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5921)              |  🔐  |     POST    | `/p2p/merchant/chat/upload_chat_file`                         |
| [getCrossExSymbols()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5944)                      |      |     GET     | `/crossex/rule/symbols`                                       |
| [getCrossExRiskLimits()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5956)                   |      |     GET     | `/crossex/rule/risk_limits`                                   |
| [getCrossExTransferCoins()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5970)                |      |     GET     | `/crossex/transfers/coin`                                     |
| [createCrossExTransfer()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5984)                  |  🔐  |     POST    | `/crossex/transfers`                                          |
| [getCrossExTransferHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L5998)              |  🔐  |     GET     | `/crossex/transfers`                                          |
| [createCrossExOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6015)                     |  🔐  |     POST    | `/crossex/orders`                                             |
| [cancelBatchCrossExOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6029)               |  🔐  |     POST    | `/crossex/batch_cancel_orders`                                |
| [cancelCrossExOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6043)                     |  🔐  |    DELETE   | `/crossex/orders/{order_id}`                                  |
| [modifyCrossExOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6056)                     |  🔐  |     PUT     | `/crossex/orders/{order_id}`                                  |
| [getCrossExOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6071)                        |  🔐  |     GET     | `/crossex/orders/{order_id}`                                  |
| [createCrossExConvertQuote()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6083)              |  🔐  |     POST    | `/crossex/convert/quote`                                      |
| [createCrossExConvertOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6097)              |  🔐  |     POST    | `/crossex/convert/orders`                                     |
| [updateCrossExAccount()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6111)                   |  🔐  |     PUT     | `/crossex/accounts`                                           |
| [getCrossExAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6125)                     |  🔐  |     GET     | `/crossex/accounts`                                           |
| [setCrossExPositionLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6137)             |  🔐  |     POST    | `/crossex/positions/leverage`                                 |
| [getCrossExPositionLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6151)             |  🔐  |     GET     | `/crossex/positions/leverage`                                 |
| [setCrossExMarginPositionLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6165)       |  🔐  |     POST    | `/crossex/margin_positions/leverage`                          |
| [getCrossExMarginPositionLeverage()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6181)       |  🔐  |     GET     | `/crossex/margin_positions/leverage`                          |
| [closeCrossExPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6195)                   |  🔐  |     POST    | `/crossex/position`                                           |
| [updateCrossExPositionsMargin()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6201)           |  🔐  |     POST    | `/crossex/positions/margin`                                   |
| [getCrossExInterestRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6215)                 |  🔐  |     GET     | `/crossex/interest_rate`                                      |
| [getCrossExFeeRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6228)                      |  🔐  |     GET     | `/crossex/fee`                                                |
| [getCrossExPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6240)                    |  🔐  |     GET     | `/crossex/positions`                                          |
| [getCrossExSecurityPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6254)            |  🔐  |     GET     | `/crossex/security_positions`                                 |
| [getCrossExMarginPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6268)              |  🔐  |     GET     | `/crossex/margin_positions`                                   |
| [getCrossExAdlRank()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6282)                      |  🔐  |     GET     | `/crossex/adl_rank`                                           |
| [getCrossExOpenOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6294)                   |  🔐  |     GET     | `/crossex/open_orders`                                        |
| [getCrossExHistoryOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6308)                |  🔐  |     GET     | `/crossex/history_orders`                                     |
| [getCrossExHistoryPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6322)             |  🔐  |     GET     | `/crossex/history_positions`                                  |
| [getCrossExHistoryMarginPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6336)       |  🔐  |     GET     | `/crossex/history_margin_positions`                           |
| [getCrossExHistoryMarginInterests()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6350)       |  🔐  |     GET     | `/crossex/history_margin_interests`                           |
| [getCrossExHistoryTrades()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6364)                |  🔐  |     GET     | `/crossex/history_trades`                                     |
| [getCrossExAccountBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6380)                  |  🔐  |     GET     | `/crossex/account_book`                                       |
| [getCrossExCoinDiscountRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6394)             |  🔐  |     GET     | `/crossex/coin_discount_rate`                                 |
| [getCrossExMarketTickers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6408)                |      |     GET     | `/crossex/market/tickers`                                     |
| [getCrossExMarketFundingInfo()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6422)            |      |     GET     | `/crossex/market/funding_info`                                |
| [getAlphaAccounts()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6440)                       |  🔐  |     GET     | `/alpha/accounts`                                             |
| [getAlphaAccountBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6452)                    |  🔐  |     GET     | `/alpha/account_book`                                         |
| [createAlphaQuote()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6466)                       |  🔐  |     POST    | `/alpha/quote`                                                |
| [createAlphaOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6478)                       |  🔐  |     POST    | `/alpha/orders`                                               |
| [getAlphaOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6490)                         |  🔐  |     GET     | `/alpha/orders`                                               |
| [getAlphaOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6502)                          |  🔐  |     GET     | `/alpha/order`                                                |
| [getAlphaCurrencies()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6514)                     |      |     GET     | `/alpha/currencies`                                           |
| [getAlphaTickers()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6526)                        |      |     GET     | `/alpha/tickers`                                              |
| [getTradFiMT5Account()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6532)                    |  🔐  |     GET     | `/tradfi/users/mt5-account`                                   |
| [getTradFiSymbolCategories()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6536)              |      |     GET     | `/tradfi/symbols/categories`                                  |
| [getTradFiSymbols()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6542)                       |      |     GET     | `/tradfi/symbols`                                             |
| [getTradFiSymbolCommissions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6554)             |  🔐  |     GET     | `/tradfi/symbols/commissions`                                 |
| [getTradFiSymbolDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6560)                  |  🔐  |     GET     | `/tradfi/symbols/detail`                                      |
| [getTradFiKlines()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6575)                        |      |     GET     | `/tradfi/symbols/{symbol}/klines`                             |
| [getTradFiTicker()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6582)                        |      |     GET     | `/tradfi/symbols/{symbol}/tickers`                            |
| [createTradFiUser()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6586)                       |  🔐  |     POST    | `/tradfi/users`                                               |
| [getTradFiAssets()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6590)                        |  🔐  |     GET     | `/tradfi/users/assets`                                        |
| [createTradFiTransaction()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6594)                |  🔐  |     POST    | `/tradfi/transactions`                                        |
| [getTradFiTransactions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6600)                  |  🔐  |     GET     | `/tradfi/transactions`                                        |
| [createTradFiOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6606)                      |  🔐  |     POST    | `/tradfi/orders`                                              |
| [getTradFiOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6612)                        |  🔐  |     GET     | `/tradfi/orders`                                              |
| [modifyTradFiOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6616)                      |  🔐  |     PUT     | `/tradfi/orders/{orderId}`                                    |
| [cancelTradFiOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6623)                      |  🔐  |    DELETE   | `/tradfi/orders/{orderId}`                                    |
| [getTradFiOrderHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6627)                  |  🔐  |     GET     | `/tradfi/orders/history`                                      |
| [getTradFiPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6633)                     |  🔐  |     GET     | `/tradfi/positions`                                           |
| [modifyTradFiPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6639)                   |  🔐  |     PUT     | `/tradfi/positions/{positionId}`                              |
| [closeTradFiPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6648)                    |  🔐  |     POST    | `/tradfi/positions/{positionId}/close`                        |
| [getTradFiPositionHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6657)               |  🔐  |     GET     | `/tradfi/positions/history`                                   |
| [getTradFiOrderLog()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6666)                      |  🔐  |     GET     | `/tradfi/orders/log/{log_id}`                                 |
| [getStockUserAssets()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6680)                     |  🔐  |     GET     | `/stock/users/assets`                                         |
| [setStockMarginFeature()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6692)                  |  🔐  |     PUT     | `/stock/users/margin-feature`                                 |
| [getStockBalanceRecords()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6704)                 |  🔐  |     GET     | `/stock/users/balance-records`                                |
| [getStockSymbols()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6716)                        |      |     GET     | `/stock/symbols`                                              |
| [getStockSymbolDetail()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6728)                   |  🔐  |     GET     | `/stock/symbols/detail`                                       |
| [getStockOrderBook()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6740)                      |      |     GET     | `/stock/market/{symbol}/orderbook`                            |
| [getStockOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6750)                         |  🔐  |     GET     | `/stock/orders`                                               |
| [createStockOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6764)                       |  🔐  |     POST    | `/stock/orders`                                               |
| [cancelAllStockOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6775)                   |  🔐  |    DELETE   | `/stock/orders`                                               |
| [getStockOrderHistory()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6785)                   |  🔐  |     GET     | `/stock/orders/history`                                       |
| [getStockOrderDeals()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6797)                     |  🔐  |     GET     | `/stock/orders/deals`                                         |
| [updateStockOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6810)                       |  🔐  |     PUT     | `/stock/orders/{orderId}`                                     |
| [cancelStockOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6823)                       |  🔐  |    DELETE   | `/stock/orders/{orderId}`                                     |
| [getStockPositions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6835)                      |  🔐  |     GET     | `/stock/positions`                                            |
| [closeStockPosition()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6847)                     |  🔐  |     POST    | `/stock/positions/close`                                      |
| [getStockTransactions()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6859)                   |  🔐  |     GET     | `/stock/transactions`                                         |
| [createStockTransaction()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6873)                 |  🔐  |     POST    | `/stock/transactions`                                         |
| [getStockExchanges()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6884)                      |      |     GET     | `/stock/exchanges`                                            |
| [getStockFeeRate()](https://github.com/sieblyio/gateio-api/blob/master/src/RestClient.ts#L6895)                        |      |     GET     | `/stock/fee-rate`                                             |

### 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/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts).

This client provides WebSocket API endpoints which allow for faster interactions with the Gate.io API via a WebSocket connection.

| Function                                                                                                          | AUTH | HTTP Method | Endpoint                    |
| ----------------------------------------------------------------------------------------------------------------- | :--: | :---------: | --------------------------- |
| [submitNewSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L97)          |  🔐  |      WS     | `spot.order_place`          |
| [cancelSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L111)            |  🔐  |      WS     | `spot.order_cancel`         |
| [cancelSpotOrderById()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L125)        |  🔐  |      WS     | `spot.order_cancel_ids`     |
| [cancelSpotOrderForSymbol()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L139)   |  🔐  |      WS     | `spot.order_cancel_cp`      |
| [updateSpotOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L153)            |  🔐  |      WS     | `spot.order_amend`          |
| [getSpotOrderStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L167)         |  🔐  |      WS     | `spot.order_status`         |
| [getSpotOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L181)              |  🔐  |      WS     | `spot.order_list`           |
| [submitNewFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L203)      |  🔐  |      WS     | `futures.order_place`       |
| [submitNewFuturesBatchOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L219) |  🔐  |      WS     | `futures.order_batch_place` |
| [cancelFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L235)         |  🔐  |      WS     | `futures.order_cancel`      |
| [cancelFuturesOrderById()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L251)     |  🔐  |      WS     | `futures.order_cancel_ids`  |
| [cancelFuturesAllOpenOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L267) |  🔐  |      WS     | `futures.order_cancel_cp`   |
| [updateFuturesOrder()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L283)         |  🔐  |      WS     | `futures.order_amend`       |
| [getFuturesOrders()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L299)           |  🔐  |      WS     | `futures.order_list`        |
| [getFuturesOrderStatus()](https://github.com/sieblyio/gateio-api/blob/master/src/WebsocketAPIClient.ts#L315)      |  🔐  |      WS     | `futures.order_status`      |

## Gate JavaScript FAQ

### What does the Gate JavaScript SDK cover?

Gate supports Spot, Futures, Margin, Options, WebSockets, and WebSocket API workflows. The JavaScript guide covers the main REST and WebSocket integration patterns.

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

The public REST example above needs no credentials. For private calls, follow the authentication setup for gateio-api in the full tutorial, including the credentials or signer required by your exchange.

- [Gate authentication and setup](/sdk/gate/javascript/tutorial)

### Does the Gate 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.

### When should I use the Gate WebSocket API instead of REST?

Use REST for standard request and response workflows such as account queries and order management. Use the WebSocket API flow when you want persistent low-latency interactions over a connected session.

## 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)
