gate-api
v7.2.184
Published
NodeJS client for gate-api
Readme
[email protected]
TypeScript NodeJS client for gate-api.
Fields declared as JSON number with format: decimal use BigNumber in this
SDK. The HTTP decoder preserves their original numeric text before constructing
the value; it never routes them through JavaScript Number. Construct monetary
inputs from decimal strings, for example new BigNumber('16777217.01'), rather
than from a previously rounded JavaScript number. The SDK cannot recover digits
already lost before a BigNumber instance was passed to it.
The generated request serializer writes these values as JSON numbers. Use that
serializer instead of ordinary JSON.stringify, which may quote a BigNumber's
toJSON() output. Decimal strings outside BigNumber's supported exponent range
raise an explicit overflow or underflow error instead of silently becoming
Infinity or zero. Ordinary numeric fields retain their existing representation.
Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.
This SDK is automatically generated by the OpenAPI Generator project:
- API version: v4.106.184
- Package version:
- Build package: io.gate.codegen.PreciseNodeClientCodegen For more information, please visit https://www.gate.com/page/contacts
Environment
- Node.js
Language level
- ES2017
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via package.json. (Reference)
Integer fields with OpenAPI format: int64 accept safe JavaScript numbers and
bigint. Keep existing small-number calls, and construct large IDs as
BigInt('9007199254740993'); passing an already rounded unsafe number is rejected.
Unmarked int64 responses are number | bigint (small values remain numbers), while
fields explicitly marked x-is-bigint retain their established bigint response
contract. Decimal amount strings remain strings and must not be converted to
JavaScript numbers. Earn array results that historically returned raw objects
keep their original wire property names (for example mortgage_coin) on the new
item types; existing typed models keep their usual camelCase property names.
This package is targeting Node.js applications only, because it's not safe to store API secret in browser. gateapi-js can be used in browser but with public endpoints only.
Versioning
Trying our best to follow the semantic versioning, while enjoying recent features provided by programming language and libraries, from 4.15.2, one major versioning difference will be introduced:
If extra code rewrite is required when you upgrade the SDK, such as:
- some outdated programming language version support is dropped
- API method signature has breaking changes.
the MAJOR version will be incremented, but the MINOR and PATCH version are still following REST API's instead of resetting to 0, so that you can recognize it has some breaking changes, but still getting the idea of from which REST API version the change is introduced.
For example, the previous REST API and SDK version are both 4.14.0. But if we decide to introduce some breaking changes in SDK along with REST API 4.15.2 upgrade, then the version of next SDK release will be 5.15.2(the MAJOR version is incremented to denote breaking changes, but the MINOR and PATCH version are identical to REST API's instead of resetting them to 0)
If MAJOR version is incremented, make sure you read the release note on Releases page
Installation
npm install gate-apiGetting Started
Please follow the installation instruction and execute the following TypeScript code:
const GateApi = require('gate-api');
const client = new GateApi.ApiClient();
// uncomment the next line to change base path
// client.basePath = "https://some-other-host"
// Configure Gate APIv4 key authentication:
client.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
const api = new GateApi.AccountApi(client);
api.getAccountDetail()
.then(value => console.log('API called successfully. Returned data: ', value.body),
error => console.error(error));Documentation for API Endpoints
All URIs are relative to https://api.gateio.ws/api/v4
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AccountApi | getAccountDetail | GET /account/detail | Retrieve user account information AccountApi | getAccountMainKeys | GET /account/main_keys | Query All Main Account Key Information AccountApi | getAccountRateLimit | GET /account/rate_limit | Get user transaction rate limit information AccountApi | listSTPGroups | GET /account/stp_groups | Query STP user groups created by the user AccountApi | createSTPGroup | POST /account/stp_groups | Create STP user group AccountApi | listSTPGroupsUsers | GET /account/stp_groups/{stp_id}/users | Query users in the STP user group AccountApi | addSTPGroupUsers | POST /account/stp_groups/{stp_id}/users | Add users to the STP user group AccountApi | deleteSTPGroupUsers | DELETE /account/stp_groups/{stp_id}/users | Delete users from the STP user group AccountApi | getDebitFee | GET /account/debit_fee | Query GT fee deduction configuration AccountApi | setDebitFee | POST /account/debit_fee | Configure GT fee deduction ActivityApi | getMyActivityEntry | GET /rewards/activity/my-activity-entry | My activity entry ActivityApi | listActivities | GET /rewards/activity/activity-list | Recommended activity list ActivityApi | listActivityTypes | GET /rewards/activity/activity-type | Activity type list AlphaApi | listAlphaAccounts | GET /alpha/accounts | Alpha Account API AlphaApi | listAlphaAccountBook | GET /alpha/account_book | Alpha Account Transaction History API AlphaApi | quoteAlphaOrder | POST /alpha/quote | Alpha Quote API AlphaApi | listAlphaOrder | GET /alpha/orders | Alpha Order List API AlphaApi | placeAlphaOrder | POST /alpha/orders | Alpha Order API AlphaApi | getAlphaOrder | GET /alpha/order | Alpha Single Order Query API AlphaApi | listAlphaCurrencies | GET /alpha/currencies | Query currency information AlphaApi | listAlphaTickers | GET /alpha/tickers | Query currency ticker AlphaApi | listAlphaTokens | GET /alpha/tokens | Query Token Information AnnouncementApi | listAnnouncementArticles | POST /ann/list_article | List announcement articles AssetswapApi | listAssetSwapAssets | GET /asset-swap/asset/list | Portfolio optimization — currency list AssetswapApi | getAssetSwapConfig | GET /asset-swap/config | Portfolio optimization — configuration AssetswapApi | evaluateAssetSwap | GET /asset-swap/evaluate | Portfolio optimization — valuation AssetswapApi | createAssetSwapOrderV1 | POST /asset-swap/order/create | Portfolio optimization — place order AssetswapApi | listAssetSwapOrdersV1 | GET /asset-swap/order/list | Portfolio optimization — order list AssetswapApi | previewAssetSwapOrderV1 | POST /asset-swap/order/preview | Portfolio optimization — preview AssetswapApi | getAssetSwapOrderV1 | GET /asset-swap/order/{order_id} | Portfolio optimization — query order BotApi | getAIHubStrategyRecommend | GET /bot/strategy/recommend | Get AIHub strategy recommendations BotApi | postAIHubSpotGridCreate | POST /bot/spot-grid/create | Create spot grid BotApi | postAIHubMarginGridCreate | POST /bot/margin-grid/create | Create a lever grid BotApi | postAIHubInfiniteGridCreate | POST /bot/infinite-grid/create | Create infinite grid BotApi | postAIHubFuturesGridCreate | POST /bot/futures-grid/create | Create a contract grid BotApi | postAIHubSpotMartingaleCreate | POST /bot/spot-martingale/create | Create Spot Martin BotApi | postAIHubContractMartingaleCreate | POST /bot/contract-martingale/create | Create contract martin BotApi | getAIHubPortfolioRunning | GET /bot/portfolio/running | List running strategies. BotApi | getAIHubPortfolioDetail | GET /bot/portfolio/detail | Query order policy details BotApi | postAIHubPortfolioStop | POST /bot/portfolio/stop | Terminate a single running policy BotApi | postAIHubSmartPositionCreate | POST /bot/smart-position/create | Create rebalance bot BotApi | postAIHubFuturesComboCreate | POST /bot/futures-combo/create | Create futures-combo bot CFDApi | queryMt5AccountInfo | GET /tradfi/users/mt5-account | Query MT5 account information CFDApi | queryCategories | GET /tradfi/symbols/categories | Query trading symbol categories CFDApi | querySymbolCommissions | GET /tradfi/symbols/commissions | Query symbol commission rates CFDApi | querySymbols | GET /tradfi/symbols | Query trading symbol list CFDApi | querySymbolDetail | GET /tradfi/symbols/detail | Query trading symbol details CFDApi | querySymbolKline | GET /tradfi/symbols/{symbol}/klines | Query trading symbol klines CFDApi | querySymbolTicker | GET /tradfi/symbols/{symbol}/tickers | Query trading symbol ticker CFDApi | createTradFiUser | POST /tradfi/users | Create CFD user CFDApi | queryUserAssets | GET /tradfi/users/assets | Query account assets CFDApi | queryTransaction | GET /tradfi/transactions | Query Fund Transfer In/Out Records CFDApi | createTransaction | POST /tradfi/transactions | Fund transfer CFDApi | queryOrderList | GET /tradfi/orders | Query active order list CFDApi | createTradFiOrder | POST /tradfi/orders | Create order CFDApi | updateOrder | PUT /tradfi/orders/{order_id} | Modify order CFDApi | deleteOrder | DELETE /tradfi/orders/{order_id} | Cancel order CFDApi | queryOrderHistoryList | GET /tradfi/orders/history | Query historical order list CFDApi | queryOrderLog | GET /tradfi/orders/log/{log_id} | Get order details by log ID CFDApi | queryPositionList | GET /tradfi/positions | Query active position list CFDApi | updatePosition | PUT /tradfi/positions/{position_id} | Modify position CFDApi | closePosition | POST /tradfi/positions/{position_id}/close | Close position CFDApi | queryPositionHistoryList | GET /tradfi/positions/history | Query historical position list CouponApi | listUserCoupons | GET /coupon/user-coupon-list | Coupon Center list CouponApi | getUserCouponDetail | GET /coupon/user-coupon-detail | Coupon Center details CrossExApi | listCrossexRuleSymbols | GET /crossex/rule/symbols | Query symbol information CrossExApi | listCrossexRuleOpenCapacity | GET /crossex/rule/open_capacity | Query remaining platform opening capacity CrossExApi | listCrossexRuleRiskLimits | GET /crossex/rule/risk_limits | Query risk limit information CrossExApi | listCrossexTransferCoins | GET /crossex/transfers/coin | Query supported transfer currencies CrossExApi | listCrossexTransfers | GET /crossex/transfers | Query Fund Transfer History CrossExApi | createCrossexTransfer | POST /crossex/transfers | Fund Transfer CrossExApi | createCrossexOrder | POST /crossex/orders | Create order CrossExApi | cancelBatchCrossexOrders | POST /crossex/batch_cancel_orders | Batch cancel orders CrossExApi | getCrossexOrder | GET /crossex/orders/{order_id} | Query order details CrossExApi | updateCrossexOrder | PUT /crossex/orders/{order_id} | Modify Order CrossExApi | cancelCrossexOrder | DELETE /crossex/orders/{order_id} | Cancel Order CrossExApi | createCrossexConvertQuote | POST /crossex/convert/quote | Flash Swap Inquiry CrossExApi | createCrossexConvertOrder | POST /crossex/convert/orders | Flash Swap Transaction CrossExApi | getCrossexAccount | GET /crossex/accounts | Query Account Assets CrossExApi | updateCrossexAccount | PUT /crossex/accounts | Modify Account Contract Position Mode and Account Mode CrossExApi | getCrossexPositionsLeverage | GET /crossex/positions/leverage | Query Contract Trading Pair Leverage Multiplier CrossExApi | updateCrossexPositionsLeverage | POST /crossex/positions/leverage | Modify Contract Trading Pair Leverage Multiplier CrossExApi | getCrossexMarginPositionsLeverage | GET /crossex/margin_positions/leverage | Query Leveraged Trading Pair Leverage Multiplier CrossExApi | updateCrossexMarginPositionsLeverage | POST /crossex/margin_positions/leverage | Modify Leveraged Trading Pair Leverage Multiplier CrossExApi | closeCrossexPosition | POST /crossex/position | Close a position in full. CrossExApi | getCrossexPositionsMarginMode | GET /crossex/positions/margin_mode | Get futures position margin mode CrossExApi | updateCrossexPositionsMarginMode | POST /crossex/positions/margin_mode | Update futures position margin mode CrossExApi | updateCrossexPositionsMargin | POST /crossex/positions/margin | Increase or decrease isolated margin CrossExApi | getCrossexInterestRate | GET /crossex/interest_rate | Query margin asset interest rates CrossExApi | getCrossexFee | GET /crossex/fee | Query User Fee Rates CrossExApi | listCrossexPositions | GET /crossex/positions | Query Contract Positions CrossExApi | listCrossexSecurityPositions | GET /crossex/security_positions | List security positions CrossExApi | listCrossexMarginPositions | GET /crossex/margin_positions | Query Leveraged Positions CrossExApi | listCrossexAdlRank | GET /crossex/adl_rank | Query ADL Position Reduction Ranking CrossExApi | listCrossexOpenOrders | GET /crossex/open_orders | Query All Current Open Orders CrossExApi | listCrossexHistoryOrders | GET /crossex/history_orders | Query order history CrossExApi | listCrossexHistoryPositions | GET /crossex/history_positions | Query Contract Position History CrossExApi | listCrossexHistoryMarginPositions | GET /crossex/history_margin_positions | Query Leveraged Position History CrossExApi | listCrossexHistoryMarginInterests | GET /crossex/history_margin_interests | Query Leveraged Interest Deduction History CrossExApi | listCrossexHistoryTrades | GET /crossex/history_trades | Query filled history CrossExApi | listCrossexAccountBook | GET /crossex/account_book | Query Account Asset Change History CrossExApi | listCrossexCoinDiscountRate | GET /crossex/coin_discount_rate | Query Currency Discount Rate CrossExApi | listCrossexMarketTickers | GET /crossex/market/tickers | Get exchange tickers CrossExApi | listCrossexMarketFundingInfo | GET /crossex/market/funding_info | Get exchange futures funding rate information DeliveryApi | listDeliveryContracts | GET /delivery/{settle}/contracts | Query all futures contracts DeliveryApi | getDeliveryContract | GET /delivery/{settle}/contracts/{contract} | Query single contract information DeliveryApi | listDeliveryOrderBook | GET /delivery/{settle}/order_book | Query futures market depth information DeliveryApi | listDeliveryTrades | GET /delivery/{settle}/trades | Futures market transaction records DeliveryApi | listDeliveryCandlesticks | GET /delivery/{settle}/candlesticks | Futures market K-line chart DeliveryApi | listDeliveryTickers | GET /delivery/{settle}/tickers | Get all futures trading statistics DeliveryApi | listDeliveryInsuranceLedger | GET /delivery/{settle}/insurance | Futures market insurance fund history DeliveryApi | listDeliveryAccounts | GET /delivery/{settle}/accounts | Get futures account DeliveryApi | listDeliveryAccountBook | GET /delivery/{settle}/account_book | Query futures account change history DeliveryApi | listDeliveryPositions | GET /delivery/{settle}/positions | Get user position list DeliveryApi | getDeliveryPosition | GET /delivery/{settle}/positions/{contract} | Get single position information DeliveryApi | updateDeliveryPositionMargin | POST /delivery/{settle}/positions/{contract}/margin | Update position margin DeliveryApi | updateDeliveryPositionLeverage | POST /delivery/{settle}/positions/{contract}/leverage | Update position leverage DeliveryApi | updateDeliveryPositionRiskLimit | POST /delivery/{settle}/positions/{contract}/risk_limit | Update position risk limit DeliveryApi | listDeliveryOrders | GET /delivery/{settle}/orders | Query futures order list DeliveryApi | createDeliveryOrder | POST /delivery/{settle}/orders | Place futures order DeliveryApi | cancelDeliveryOrders | DELETE /delivery/{settle}/orders | Cancel all orders with 'open' status DeliveryApi | getDeliveryOrder | GET /delivery/{settle}/orders/{order_id} | Query single order details DeliveryApi | cancelDeliveryOrder | DELETE /delivery/{settle}/orders/{order_id} | Cancel single order DeliveryApi | getMyDeliveryTrades | GET /delivery/{settle}/my_trades | Query personal trading records DeliveryApi | listDeliveryPositionClose | GET /delivery/{settle}/position_close | Query position close history DeliveryApi | listDeliveryLiquidates | GET /delivery/{settle}/liquidates | Query liquidation history DeliveryApi | listDeliverySettlements | GET /delivery/{settle}/settlements | Query settlement records DeliveryApi | listDeliveryRiskLimitTiers | GET /delivery/{settle}/risk_limit_tiers | Query risk limit tiers DeliveryApi | listPriceTriggeredDeliveryOrders | GET /delivery/{settle}/price_orders | Query auto order list DeliveryApi | createPriceTriggeredDeliveryOrder | POST /delivery/{settle}/price_orders | Create price-triggered order DeliveryApi | cancelPriceTriggeredDeliveryOrderList | DELETE /delivery/{settle}/price_orders | Cancel all auto orders DeliveryApi | getPriceTriggeredDeliveryOrder | GET /delivery/{settle}/price_orders/{order_id} | Query single auto order details DeliveryApi | cancelPriceTriggeredDeliveryOrder | DELETE /delivery/{settle}/price_orders/{order_id} | Cancel single auto order EarnApi | listDualInvestmentPlans | GET /earn/dual/investment_plan | Dual Investment product list EarnApi | listDualOrders | GET /earn/dual/orders | Dual Investment order list EarnApi | placeDualOrder | POST /earn/dual/orders | Place Dual Investment order EarnApi | listDualBalance | GET /earn/dual/balance | Dual-Currency Earning Assets EarnApi | getDualOrderRefundPreview | GET /earn/dual/order-refund-preview | Dual-currency early redemption preview EarnApi | placeDualOrderRefund | POST /earn/dual/order-refund | Dual-currency order early redemption EarnApi | modifyDualOrderReinvest | POST /earn/dual/modify-order-reinvest | Modify dual-currency order reinvest EarnApi | getDualProjectRecommend | GET /earn/dual/project-recommend | Dual-currency recommended projects EarnApi | listDualStockInvestmentPlans | GET /earn/dual/stock/investment_plan | List stock dual investment products EarnApi | getDualStockProjectRecommend | GET /earn/dual/stock/project-recommend | Get recommendations for stock dual investment products EarnApi | listDualStockOrders | GET /earn/dual/stock/orders | List stock dual investment orders EarnApi | placeDualStockOrder | POST /earn/dual/stock/orders | Place a stock dual investment order EarnApi | listDualStockBalance | GET /earn/dual/stock/balance | Get stock dual investment asset statistics EarnApi | getDualStockOrderRefundPreview | GET /earn/dual/stock/order-refund-preview | Preview stock dual investment redemption EarnApi | placeDualStockOrderRefund | POST /earn/dual/stock/order-refund | Redeem a stock dual investment order EarnApi | modifyDualStockOrderReinvest | POST /earn/dual/stock/modify-order-reinvest | Reinvest a stock dual investment order EarnApi | findCoin | GET /earn/staking/coins | Staking coins EarnApi | swapStakingCoin | POST /earn/staking/swap | On-chain token swap for earned coins EarnApi | orderList | GET /earn/staking/order_list | List of on-chain coin-earning orders EarnApi | awardList | GET /earn/staking/award_list | On-chain coin-earning dividend records EarnApi | assetList | GET /earn/staking/assets | On-chain coin-earning assets EarnApi | createAutoInvestPlan | POST /earn/autoinvest/plans/create | Create auto invest plan EarnApi | updateAutoInvestPlan | POST /earn/autoinvest/plans/update | UpdateAuto invest plan EarnApi | stopAutoInvestPlan | POST /earn/autoinvest/plans/stop | StopAuto invest plan EarnApi | addPositionAutoInvestPlan | POST /earn/autoinvest/plans/add_position | Add position immediately EarnApi | listAutoInvestCoins | GET /earn/autoinvest/coins | QueryCurrencies supporting auto invest EarnApi | getAutoInvestMinAmount | POST /earn/autoinvest/min_invest_amount | Get minimum investment amount EarnApi | listAutoInvestPlanRecords | GET /earn/autoinvest/plans/records | List plan execution records EarnApi | listAutoInvestOrders | GET /earn/autoinvest/orders | List plan execution recordsDetails(OrderDetails) EarnApi | listAutoInvestConfig | GET /earn/autoinvest/config | List investment currency configuration EarnApi | getAutoInvestPlanDetail | GET /earn/autoinvest/plans/detail | QueryAuto invest planDetails EarnApi | listAutoInvestPlans | GET /earn/autoinvest/plans/list_info | QueryAuto invest planList EarnApi | listEarnFixedTermProducts | GET /earn/fixed-term/product | Get product list EarnApi | listEarnFixedTermProductsByAsset | GET /earn/fixed-term/product/{asset}/list | Get product list by single currency EarnApi | listEarnFixedTermLends | GET /earn/fixed-term/user/lend | Subscription list EarnApi | createEarnFixedTermLend | POST /earn/fixed-term/user/lend | Subscription EarnApi | createEarnFixedTermPreRedeem | POST /earn/fixed-term/user/pre-redeem | Redeem EarnApi | listEarnFixedTermHistory | GET /earn/fixed-term/user/history | Subscription history EarnUniApi | listUniCurrencies | GET /earn/uni/currencies | Query lending currency list EarnUniApi | getUniCurrency | GET /earn/uni/currencies/{currency} | Query single lending currency details EarnUniApi | listUserUniLends | GET /earn/uni/lends | Query user's lending order list EarnUniApi | createUniLend | POST /earn/uni/lends | Create lending or redemption EarnUniApi | changeUniLend | PATCH /earn/uni/lends | Amend user lending information EarnUniApi | listUniLendRecords | GET /earn/uni/lend_records | Query lending transaction records EarnUniApi | getUniInterest | GET /earn/uni/interests/{currency} | Query user's total interest income for specified currency EarnUniApi | listUniInterestRecords | GET /earn/uni/interest_records | Query user dividend records EarnUniApi | getUniInterestStatus | GET /earn/uni/interest_status/{currency} | Query currency interest compounding status EarnUniApi | listUniChart | GET /earn/uni/chart | UniLoan currency annualized trend chart EarnUniApi | listUniRate | GET /earn/uni/rate | Currency estimated annualized interest rate FlashSwapApi | listFlashSwapCurrencyPair | GET /flash_swap/currency_pairs | List All Supported Currency Pairs In Flash Swap FlashSwapApi | listFlashSwapOrders | GET /flash_swap/orders | Query flash swap order list FlashSwapApi | createFlashSwapOrder | POST /flash_swap/orders | Create a flash swap order FlashSwapApi | getFlashSwapOrder | GET /flash_swap/orders/{order_id} | Query single flash swap order FlashSwapApi | previewFlashSwapOrder | POST /flash_swap/orders/preview | Flash swap order preview FlashSwapApi | listFlashSwapCurrencyPairV1 | GET /flash-swap/v1/currency-pair | List Flash Swap currency pairs FuturesApi | listFuturesContracts | GET /futures/{settle}/contracts | Query all futures contracts FuturesApi | listFuturesContractsAll | GET /futures/{settle}/contracts_all | Query all contract information (including delisted) FuturesApi | getFuturesContract | GET /futures/{settle}/contracts/{contract} | Query single contract information FuturesApi | listFuturesADLRiskStates | GET /futures/{settle}/adl_risk_states | List market-level ADL risk states FuturesApi | listFuturesOrderBook | GET /futures/{settle}/order_book | Query futures market depth information FuturesApi | listFuturesRPIOrderBook | GET /futures/{settle}/rpi_order_book | Query futures RPI order book FuturesApi | listFuturesTrades | GET /futures/{settle}/trades | Futures market transaction records FuturesApi | listFuturesCandlesticks | GET /futures/{settle}/candlesticks | Futures market K-line chart FuturesApi | listFuturesPremiumIndex | GET /futures/{settle}/premium_index | Premium Index K-line chart FuturesApi | listFuturesTickers | GET /futures/{settle}/tickers | Get all futures trading statistics FuturesApi | listFuturesFundingRateHistory | GET /futures/{settle}/funding_rate | Futures market historical funding rate FuturesApi | listBatchFuturesFundingRates | POST /futures/{settle}/funding_rates | Batch Query Historical Funding Rate Data for Perpetual Contracts FuturesApi | listFuturesInsuranceLedger | GET /futures/{settle}/insurance | Futures market insurance fund history FuturesApi | listContractStats | GET /futures/{settle}/contract_stats | Futures statistics FuturesApi | getIndexConstituents | GET /futures/{settle}/index_constituents/{index} | Query index constituents FuturesApi | listLiquidatedOrders | GET /futures/{settle}/liq_orders | Query liquidation order history FuturesApi | listFuturesRiskLimitTiers | GET /futures/{settle}/risk_limit_tiers | Query risk limit tiers FuturesApi | listFuturesAccounts | GET /futures/{settle}/accounts | Get futures account FuturesApi | listFuturesAccountBook | GET /futures/{settle}/account_book | Query futures account change history FuturesApi | listPositions | GET /futures/{settle}/positions | Get user position list FuturesApi | listPositionsTimerange | GET /futures/{settle}/positions_timerange | Get user's historical position information list by time FuturesApi | getPosition | GET /futures/{settle}/positions/{contract} | Get single position information FuturesApi | getLeverage | GET /futures/{settle}/get_leverage/{contract} | Get Leverage Information for Specified Mode FuturesApi | updatePositionMargin | POST /futures/{settle}/positions/{contract}/margin | Update position margin FuturesApi | updatePositionLeverage | POST /futures/{settle}/positions/{contract}/leverage | Update position leverage FuturesApi | updateContractPositionLeverage | POST /futures/{settle}/positions/{contract}/set_leverage | Update Leverage for Specified Mode FuturesApi | updatePositionCrossMode | POST /futures/{settle}/positions/cross_mode | Switch Position Margin Mode FuturesApi | updateDualCompPositionCrossMode | POST /futures/{settle}/dual_comp/positions/cross_mode | Switch Between Cross and Isolated Margin Modes Under Hedge Mode FuturesApi | updatePositionRiskLimit | POST /futures/{settle}/positions/{contract}/risk_limit | Update position risk limit FuturesApi | setDualMode | POST /futures/{settle}/dual_mode | Set position mode FuturesApi | setPositionMode | POST /futures/{settle}/set_position_mode | Set Position Holding Mode, replacing the dual_mode interface FuturesApi | getDualModePosition | GET /futures/{settle}/dual_comp/positions/{contract} | Get position information in Hedge Mode FuturesApi | updateDualModePositionMargin | POST /futures/{settle}/dual_comp/positions/{contract}/margin | Update position margin in Hedge Mode FuturesApi | updateDualModePositionLeverage | POST /futures/{settle}/dual_comp/positions/{contract}/leverage | Update position leverage in Hedge Mode FuturesApi | updateDualModePositionRiskLimit | POST /futures/{settle}/dual_comp/positions/{contract}/risk_limit | Update position risk limit in Hedge Mode FuturesApi | listFuturesOrders | GET /futures/{settle}/orders | Query futures order list FuturesApi | createFuturesOrder | POST /futures/{settle}/orders | Place futures order FuturesApi | cancelFuturesOrders | DELETE /futures/{settle}/orders | Cancel all orders with 'open' status FuturesApi | getOrdersWithTimeRange | GET /futures/{settle}/orders_timerange | Query futures order list by time range FuturesApi | createBatchFuturesOrder | POST /futures/{settle}/batch_orders | Place batch futures orders FuturesApi | getFuturesOrder | GET /futures/{settle}/orders/{order_id} | Query single order details FuturesApi | amendFuturesOrder | PUT /futures/{settle}/orders/{order_id} | Amend single order FuturesApi | cancelFuturesOrder | DELETE /futures/{settle}/orders/{order_id} | Cancel single order FuturesApi | getMyTrades | GET /futures/{settle}/my_trades | Query personal trading records FuturesApi | getMyTradesWithTimeRange | GET /futures/{settle}/my_trades_timerange | Query personal trading records by time range FuturesApi | listPositionClose | GET /futures/{settle}/position_close | Query position close history FuturesApi | listLiquidates | GET /futures/{settle}/liquidates | Query liquidation history FuturesApi | listAutoDeleverages | GET /futures/{settle}/auto_deleverages | Query ADL auto-deleveraging order information FuturesApi | countdownCancelAllFutures | POST /futures/{settle}/countdown_cancel_all | Countdown cancel orders FuturesApi | getFuturesFee | GET /futures/{settle}/fee | Query futures market trading fee rates FuturesApi | cancelBatchFutureOrders | POST /futures/{settle}/batch_cancel_orders | Cancel batch orders by specified ID list FuturesApi | amendBatchFutureOrders | POST /futures/{settle}/batch_amend_orders | Batch modify orders by specified IDs FuturesApi | getFuturesRiskLimitTable | GET /futures/{settle}/risk_limit_table | Query risk limit table by table_id FuturesApi | createFuturesBBOOrder | POST /futures/{settle}/bbo_orders | Level-based BBO Contract Order Placement FuturesApi | createTrailOrder | POST /futures/{settle}/autoorder/v1/trail/create | Create trail order FuturesApi | stopTrailOrder | POST /futures/{settle}/autoorder/v1/trail/stop | Terminate trail order FuturesApi | stopAllTrailOrders | POST /futures/{settle}/autoorder/v1/trail/stop_all | Batch terminate trail orders FuturesApi | getTrailOrders | GET /futures/{settle}/autoorder/v1/trail/list | Get trail order list FuturesApi | getTrailOrderDetail | GET /futures/{settle}/autoorder/v1/trail/detail | Get trail order details FuturesApi | updateTrailOrder | POST /futures/{settle}/autoorder/v1/trail/update | Update trail order FuturesApi | getTrailOrderChangeLog | GET /futures/{settle}/autoorder/v1/trail/change_log | Get trail order user modification records FuturesApi | createChaseOrder | POST /futures/{settle}/autoorder/v1/chase/create | Create a chase order FuturesApi | stopChaseOrder | POST /futures/{settle}/autoorder/v1/chase/stop | Stop a chase order FuturesApi | stopAllChaseOrders | POST /futures/{settle}/autoorder/v1/chase/stop_all | Stop chase orders in batch FuturesApi | getChaseOrders | GET /futures/{settle}/autoorder/v1/chase/list | List chase orders FuturesApi | getChaseOrderDetail | GET /futures/{settle}/autoorder/v1/chase/detail | Get chase order detail FuturesApi | listPriceTriggeredOrders | GET /futures/{settle}/price_orders | Query auto order list FuturesApi | createPriceTriggeredOrder | POST /futures/{settle}/price_orders | Create price-triggered order FuturesApi | cancelPriceTriggeredOrderList | DELETE /futures/{settle}/price_orders | Cancel all auto orders FuturesApi | getPriceTriggeredOrder | GET /futures/{settle}/price_orders/{order_id} | Query single auto order details FuturesApi | cancelPriceTriggeredOrder | DELETE /futures/{settle}/price_orders/{order_id} | Cancel single auto order FuturesApi | updatePriceTriggeredOrder | PUT /futures/{settle}/price_orders/amend/{order_id} | Modify a Single Auto Order LaunchApi | listLaunchPoolProjects | GET /launch/project-list | Query LaunchPool project list LaunchApi | createLaunchPoolOrder | POST /launch/create-order | Create LaunchPool staking order LaunchApi | redeemLaunchPool | POST /launch/redeem | Redeem LaunchPool staked assets LaunchApi | listLaunchPoolPledgeRecords | GET /launch/user-pledge-records | Query user pledge records LaunchApi | listLaunchPoolRewardRecords | GET /launch/get-user-reward-records | Query user reward records LaunchApi | getHodlerAirdropProjectList | GET /launch/hodler-airdrop/project-list | Check the list of HODLer Airdrop activities LaunchApi | hodlerAirdropOrder | POST /launch/hodler-airdrop/order | Participate in the HODLer Airdrop event LaunchApi | getHodlerAirdropUserOrderRecords | GET /launch/hodler-airdrop/user-order-records | Check HODLer Airdrop participation records LaunchApi | getHodlerAirdropUserAirdropRecords | GET /launch/hodler-airdrop/user-airdrop-records | Query HODLer Airdrop records LaunchApi | getCandyDropActivityListV4 | GET /launch/candydrop/activity-list | Query activity list LaunchApi | registerCandyDropV4 | POST /launch/candydrop/register | Sign up for events LaunchApi | getCandyDropActivityRulesV4 | GET /launch/candydrop/activity-rules | Query activity rules LaunchApi | getCandyDropTaskProgressV4 | GET /launch/candydrop/task-progress | Query task completion progress LaunchApi | getCandyDropParticipationRecordsV4 | GET /launch/candydrop/participation-records | Query participation records LaunchApi | getCandyDropAirdropRecordsV4 | GET /launch/candydrop/airdrop-records | Query airdrop records MarginApi | listMarginAccounts | GET /margin/accounts | Margin account list MarginApi | listMarginAccountBook | GET /margin/account_book | Query margin account balance change history MarginApi | listFundingAccounts | GET /margin/funding_accounts | Funding account list MarginApi | getAutoRepayStatus | GET /margin/auto_repay | Query user auto repayment settings MarginApi | setAutoRepay | POST /margin/auto_repay | Update user auto repayment settings MarginApi | getMarginTransferable | GET /margin/transferable | Get maximum transferable amount for isolated margin MarginApi | getUserMarginTier | GET /margin/user/loan_margin_tiers | Query user's own leverage lending tiers in current market MarginApi | getMarketMarginTier | GET /margin/loan_margin_tiers | Query current market leverage lending tiers MarginApi | setUserMarketLeverage | POST /margin/leverage/user_market_setting | Set user market leverage multiplier MarginApi | listMarginUserAccount | GET /margin/user/account | Query user's isolated margin account list MarginApi | listCrossMarginLoans | GET /margin/cross/loans | Query cross margin borrow history (deprecated) MarginApi | listCrossMarginRepayments | GET /margin/cross/repayments | Retrieve cross margin repayments. (deprecated) MarginUniApi | listUniCurrencyPairs | GET /margin/uni/currency_pairs | List lending markets MarginUniApi | getUniCurrencyPair | GET /margin/uni/currency_pairs/{currency_pair} | Get lending market details MarginUniApi | getMarginUniEstimateRate | GET /margin/uni/estimate_rate | Estimate interest rate for isolated margin currencies MarginUniApi | listUniLoans | GET /margin/uni/loans | Query loans MarginUniApi | createUniLoan | POST /margin/uni/loans | Borrow or repay MarginUniApi | listUniLoanRecords | GET /margin/uni/loan_records | Query loan records MarginUniApi | listUniLoanInterestRecords | GET /margin/uni/interest_records | Query interest deduction records MarginUniApi | getUniBorrowable | GET /margin/uni/borrowable | Query maximum borrowable amount by currency MultiCollateralLoanApi | listMultiCollateralOrders | GET /loan/multi_collateral/orders | Query multi-currency collateral order list MultiCollateralLoanApi | createMultiCollateral | POST /loan/multi_collateral/orders | Place multi-currency collateral order MultiCollateralLoanApi | getMultiCollateralOrderDetail | GET /loan/multi_collateral/orders/{order_id} | Query order details MultiCollateralLoanApi | listMultiRepayRecords | GET /loan/multi_collateral/repay | Query multi-currency collateral repayment records MultiCollateralLoanApi | repayMultiCollateralLoan | POST /loan/multi_collateral/repay | Multi-currency collateral repayment MultiCollateralLoanApi | listMultiCollateralRecords | GET /loan/multi_collateral/mortgage | Query collateral adjustment records MultiCollateralLoanApi | operateMultiCollateral | POST /loan/multi_collateral/mortgage | Add or withdraw collateral MultiCollateralLoanApi | listUserCurrencyQuota | GET /loan/multi_collateral/currency_quota | Query user's collateral and borrowing currency quota information MultiCollateralLoanApi | listMultiCollateralCurrencies | GET /loan/multi_collateral/currencies | Query borrow currencies and collateral currencies supported by multi-currency collateral MultiCollateralLoanApi | getMultiCollateralLtv | GET /loan/multi_collateral/ltv | Query collateralization ratio information MultiCollateralLoanApi | getMultiCollateralFixRate | GET /loan/multi_collateral/fixed_rate | Query currency's 7-day and 30-day fixed interest rates MultiCollateralLoanApi | getMultiCollateralCurrentRate | GET /loan/multi_collateral/current_rate | Query currency's current interest rate OTCApi | createOtcQuote | POST /otc/quote | Fiat and stablecoin quote OTCApi | createOtcOrder | POST /otc/order/create | Create fiat order OTCApi | createStableCoinOrder | POST /otc/stable_coin/order/create | Create stablecoin order OTCApi | getBankListInnerPath | GET /otc/bank/list | Get user bank card list OTCApi | createOtcBank | POST /otc/bank/create | Create bank card OTCApi | deleteOtcBank | POST /otc/bank/delete | Delete bank card OTCApi | setDefaultOtcBank | POST /otc/bank/set_default | Set default bank card OTCApi | getOtcBankSupplementChecklist | GET /otc/bank/bank_supplement_checklist | Query the checklist of materials to supplement for a bank card OTCApi | submitOtcBankPersonalSupplement | POST /otc/bank/personal/bank_supplement | Submit Bank Card Supplement Materials (Personal) OTCApi | submitOtcBankEnterpriseSupplement | POST /otc/bank/enterprise/bank_supplement | Submit Bank Card Supplement Materials (Enterprise) OTCApi | createOtcUploadPreUpload | POST /otc/upload/pre_upload | Pre-upload file (temporary bucket) OTCApi | markOtcOrderPaid | POST /otc/order/paid | Mark fiat order as paid (deposit confirmation) OTCApi | cancelOtcOrder | POST /otc/order/cancel | Fiat order cancellation OTCApi | listOtcOrders | GET /otc/order/list | Fiat order list OTCApi | listStableCoinOrders | GET /otc/stable_coin/order/list | Stablecoin order list OTCApi | getOtcOrderDetail | GET /otc/order/detail | Fiat order details OptionsApi | listOptionsUnderlyings | GET /options/underlyings | List all underlying assets OptionsApi | listOptionsExpirations | GET /options/expirations | List all expiration dates OptionsApi | listOptionsContracts | GET /options/contracts | List all contracts for specified underlying and expiration date OptionsApi | getOptionsContract | GET /options/contracts/{contract} | Query specified contract details OptionsApi | listOptionsSettlements | GET /options/settlements | List settlement history OptionsApi | getOptionsSettlement | GET /options/settlements/{contract} | Get specified contract settlement information OptionsApi | listMyOptionsSettlements | GET /options/my_settlements | Query personal settlement records OptionsApi | listOptionsOrderBook | GET /options/order_book | Query options contract order book OptionsApi | listOptionsTickers | GET /options/tickers | Query options market ticker information OptionsApi | listOptionsUnderlyingTickers | GET /options/underlying/tickers/{underlying} | Query underlying ticker information OptionsApi | listOptionsCandlesticks | GET /options/candlesticks | Options contract market candlestick chart OptionsApi | listOptionsUnderlyingCandlesticks | GET /options/underlying/candlesticks | Underlying index price candlestick chart OptionsApi | listOptionsTrades | GET /options/trades | Market trade records OptionsApi | listOptionsAccount | GET /options/accounts | Query account information OptionsApi | listOptionsAccountBook | GET /options/account_book | Query account change history OptionsApi | listOptionsPositions | GET /options/positions | List user's positions of specified underlying OptionsApi | getOptionsPosition | GET /options/positions/{contract} | Get specified contract position OptionsApi | listOptionsPositionClose | GET /options/position_close | List user's liquidation history of specified underlying OptionsApi | listOptionsOrders | GET /options/orders | List options orders OptionsApi | createOptionsOrder | POST /options/orders | Create an options order OptionsApi | cancelOptionsOrders | DELETE /options/orders | Cancel all orders with 'open' status OptionsApi | getOptionsOrder | GET /options/orders/{order_id} | Query single order details OptionsApi | amendOptionsOrder | PUT /options/orders/{order_id} | Option Order Modification OptionsApi | cancelOptionsOrder | DELETE /options/orders/{order_id} | Cancel single order OptionsApi | countdownCancelAllOptions | POST /options/countdown_cancel_all | Countdown cancel orders OptionsApi | listMyOptionsTrades | GET /options/my_trades | Query personal trading records OptionsApi | getOptionsMMP | GET /options/mmp | MMP Query. OptionsApi | setOptionsMMP | POST /options/mmp | MMP Settings OptionsApi | resetOptionsMMP | POST /options/mmp/reset | Reset MMP for the specified underlying. P2pApi | p2pMerchantAccountGetUserInfo | POST /p2p/merchant/account/get_user_info | Get account information P2pApi | p2pMerchantAccountGetCounterpartyUserInfo | POST /p2p/merchant/account/get_counterparty_user_info | Get counterparty information P2pApi | p2pMerchantAccountGetMyselfPayment | POST /p2p/merchant/account/get_myself_payment | Get payment method list P2pApi | p2pMerchantAccountSetMerchantWorkHours | POST /p2p/merchant/account/set_merchant_work_hours | Set merchant working status and custom working hours P2pApi | p2pMerchantTransactionGetPendingTransactionList | POST /p2p/merchant/transaction/get_pending_transaction_list | Get pending orders P2pApi | p2pMerchantTransactionGetCompletedTransactionList | POST /p2p/merchant/transaction/get_completed_transaction_list | Get all/historical orders P2pApi | p2pMerchantTransactionGetTransactionDetails | POST /p2p/merchant/transaction/get_transaction_details | Query order details P2pApi | p2pMerchantTransactionConfirmPayment | POST /p2p/merchant/transaction/confirm-payment | Confirm payment P2pApi | p2pMerchantTransactionConfirmReceipt | POST /p2p/merchant/transaction/confirm-receipt | Confirm receipt P2pApi | p2pMerchantTransactionCancel | POST /p2p/merchant/transaction/cancel | Cancel order P2pApi | p2pMerchantBooksPlaceBizPushOrder | POST /p2p/merchant/books/place_biz_push_order | Publish ad order P2pApi | p2pMerchantBooksAdsUpdateStatus | POST /p2p/merchant/books/ads_update_status | Update ad status P2pApi | p2pMerchantBooksAdsDetail | POST /p2p/merchant/books/ads_detail | Query ad details P2pApi | p2pMerchantBooksMyAdsList | POST /p2p/merchant/books/my_ads_list | Get my ad list P2pApi | p2pMerchantBooksAdsList | POST /p2p/merchant/books/ads_list | Get Advertisement List P2pApi | p2pMerchantChatGetChatsList | POST /p2p/merchant/chat/get_chats_list | Get chat history P2pApi | p2pMerchantChatSendChatMessage | POST /p2p/merchant/chat/send_chat_message | Send text message P2pApi | p2pMerchantChatUploadChatFile | POST /p2p/merchant/chat/upload_chat_file | Upload chat file P2pApi | p2pMerchantChatPreUploadChatFile | POST /p2p/merchant/chat/pre_upload_chat_file | Pre-upload chat file RebateApi | agencyTransactionHistory | GET /rebate/agency/transaction_history | Broker obtains transaction history of recommended users RebateApi | agencyCommissionsHistory | GET /rebate/agency/commission_history | Broker obtains rebate history of recommended users RebateApi | partnerTransactionHistory | GET /rebate/partner/transaction_history | Partner obtains transaction history of recommended users RebateApi | partnerCommissionsHistory | GET /rebate/partner/commission_history | Partner obtains rebate records of recommended users RebateApi | partnerSubList | GET /rebate/partner/sub_list | Partner subordinate list RebateApi | rebateBrokerCommissionHistory | GET /rebate/broker/commission_history | Broker obtains user's rebate records RebateApi | rebateBrokerTransactionHistory | GET /rebate/broker/transaction_history | Broker obtains user's trading history RebateApi | rebateUserInfo | GET /rebate/user/info | User obtains rebate information RebateApi | userSubRelation | GET /rebate/user/sub_relation | User subordinate relationship RebateApi | getPartnerApplicationRecent | GET /rebate/partner/applications/recent | Get recent partner application records RebateApi | getPartnerEligibility | GET /rebate/partner/eligibility | Check partner application eligibility RebateApi | getPartnerAgentDataAggregated | GET /rebate/partner/data/aggregated | Aggregated partner agent statistics SpotApi | listCurrencies | GET /spot/currencies | Query all currency information SpotApi | getCurrency | GET /spot/currencies/{currency} | Query single currency information SpotApi | listCurrencyPairs | GET /spot/currency_pairs | Query all supported currency pairs SpotApi | getCurrencyPair | GET /spot/currency_pairs/{currency_pair} | Query single currency pair details SpotApi |
