Package: gate-api
gate-apiWelcome to Gate.io APIAPIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.This Python package is automatically generated by theOpenAPI Generatorproject:API version: 4.60.2Package version: 4.60.2Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visithttps://www.gate.io/page/contactsVersioningTrying our best to follow thesemantic 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 droppedAPI 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 onReleasespageRequirements.Python 2.7 and 3.4+Installation & Usagepip installYou can install directly using:pipinstall--usergate-apiThen import the package:importgate_apiSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importgate_apiGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimportgate_apifromgate_api.exceptionsimportApiException,GateApiException# Defining the host is optional and defaults to https://api.gateio.ws/api/v4# See configuration.py for a list of all supported configuration parameters.configuration=gate_api.Configuration(host="https://api.gateio.ws/api/v4")api_client=gate_api.ApiClient(configuration)# Create an instance of the API classapi_instance=gate_api.EarnUniApi(api_client)try:# List currencies for lendingapi_response=api_instance.list_uni_currencies()print(api_response)exceptGateApiExceptionasex:print("Gate api exception, label:%s, message:%s\n"%(ex.label,ex.message))exceptApiExceptionase:print("Exception when calling EarnUniApi->list_uni_currencies:%s\n"%e)For a more complete API usage example, refer to the demo application inexampledirectoryDocumentation for API EndpointsAll URIs are relative tohttps://api.gateio.ws/api/v4ClassMethodHTTP requestDescriptionEarnUniApilist_uni_currenciesGET/earn/uni/currenciesList currencies for lendingEarnUniApiget_uni_currencyGET/earn/uni/currencies/{currency}Get currency detail for lendingEarnUniApilist_user_uni_lendsGET/earn/uni/lendsList user's lending ordersEarnUniApicreate_uni_lendPOST/earn/uni/lendsLend or redeemEarnUniApichange_uni_lendPATCH/earn/uni/lendsAmend lending orderEarnUniApilist_uni_lend_recordsGET/earn/uni/lend_recordsList records of lendingEarnUniApiget_uni_interestGET/earn/uni/interests/{currency}Get the user's total interest income of specified currencyEarnUniApilist_uni_interest_recordsGET/earn/uni/interest_recordsList interest recordsEarnUniApiswitch_interest_reinvestPUT/earn/uni/interest_reinvestSet interest reinvestment toggleEarnUniApiget_uni_interest_statusGET/earn/uni/interest_status/{currency}query currency interest compounding statusMarginUniApilist_uni_currency_pairsGET/margin/uni/currency_pairsList lending marketsMarginUniApiget_uni_currency_pairGET/margin/uni/currency_pairs/{currency_pair}Get detail of lending marketMarginUniApiget_margin_uni_estimate_rateGET/margin/uni/estimate_rateEstimate interest RateMarginUniApilist_uni_loansGET/margin/uni/loansList loansMarginUniApicreate_uni_loanPOST/margin/uni/loansBorrow or repayMarginUniApilist_uni_loan_recordsGET/margin/uni/loan_recordsGet load recordsMarginUniApilist_uni_loan_interest_recordsGET/margin/uni/interest_recordsList interest recordsMarginUniApiget_uni_borrowableGET/margin/uni/borrowableGet maximum borrowableSubAccountApilist_sub_accountsGET/sub_accountsList sub-accountsSubAccountApicreate_sub_accountsPOST/sub_accountsCreate a new sub-accountSubAccountApiget_sub_accountGET/sub_accounts/{user_id}Get the sub-accountSubAccountApilist_sub_account_keysGET/sub_accounts/{user_id}/keysList all API Key of the sub-accountSubAccountApicreate_sub_account_keysPOST/sub_accounts/{user_id}/keysCreate API Key of the sub-accountSubAccountApiget_sub_account_keyGET/sub_accounts/{user_id}/keys/{key}Get the API Key of the sub-accountSubAccountApiupdate_sub_account_keysPUT/sub_accounts/{user_id}/keys/{key}Update API key of the sub-accountSubAccountApidelete_sub_account_keysDELETE/sub_accounts/{user_id}/keys/{key}Delete API key of the sub-accountSubAccountApilock_sub_accountPOST/sub_accounts/{user_id}/lockLock the sub-accountSubAccountApiunlock_sub_accountPOST/sub_accounts/{user_id}/unlockUnlock the sub-accountUnifiedApilist_unified_accountsGET/unified/accountsGet unified account informationUnifiedApilist_unified_account_modeGET/unified/account_modeQuery mode of the unified accountUnifiedApiset_unified_account_modePOST/unified/account_modeSet mode of the unified accountUnifiedApiget_unified_borrowableGET/unified/borrowableQuery about the maximum borrowing for the unified accountUnifiedApiget_unified_transferableGET/unified/transferableQuery about the maximum transferable for the unified accountUnifiedApilist_unified_loansGET/unified/loansList loansUnifiedApicreate_unified_loanPOST/unified/loansBorrow or repayUnifiedApilist_unified_loan_recordsGET/unified/loan_recordsGet load recordsUnifiedApilist_unified_loan_interest_recordsGET/unified/interest_recordsList interest recordsAccountApiget_account_detailGET/account/detailGet account detailAccountApilist_stp_groupsGET/account/stp_groupsList STP GroupsAccountApicreate_stp_groupPOST/account/stp_groupsCreate STP GroupAccountApilist_stp_groups_usersGET/account/stp_groups/{stp_id}/usersList users of the STP groupAccountApiadd_stp_group_usersPOST/account/stp_groups/{stp_id}/usersAdd users to the STP groupAccountApidelete_stp_group_usersDELETE/account/stp_groups/{stp_id}/usersDelete the user in the STP groupCollateralLoanApilist_collateral_loan_ordersGET/loan/collateral/ordersList OrdersCollateralLoanApicreate_collateral_loanPOST/loan/collateral/ordersPlace orderCollateralLoanApiget_collateral_loan_order_detailGET/loan/collateral/orders/{order_id}Get a single orderCollateralLoanApirepay_collateral_loanPOST/loan/collateral/repayRepaymentCollateralLoanApilist_repay_recordsGET/loan/collateral/repay_recordsRepayment historyCollateralLoanApilist_collateral_recordsGET/loan/collateral/collateralsQuery collateral adjustment recordsCollateralLoanApioperate_collateralPOST/loan/collateral/collateralsIncrease or redeem collateralCollateralLoanApiget_user_total_amountGET/loan/collateral/total_amountQuery the total borrowing and collateral amount for the userCollateralLoanApiget_user_ltv_infoGET/loan/collateral/ltvQuery user's collateralization ratioCollateralLoanApilist_collateral_currenciesGET/loan/collateral/currenciesQuery supported borrowing and collateral currenciesDeliveryApilist_delivery_contractsGET/delivery/{settle}/contractsList all futures contractsDeliveryApiget_delivery_contractGET/delivery/{settle}/contracts/{contract}Get a single contractDeliveryApilist_delivery_order_bookGET/delivery/{settle}/order_bookFutures order bookDeliveryApilist_delivery_tradesGET/delivery/{settle}/tradesFutures trading historyDeliveryApilist_delivery_candlesticksGET/delivery/{settle}/candlesticksGet futures candlesticksDeliveryApilist_delivery_tickersGET/delivery/{settle}/tickersList futures tickersDeliveryApilist_delivery_insurance_ledgerGET/delivery/{settle}/insuranceFutures insurance balance historyDeliveryApilist_delivery_accountsGET/delivery/{settle}/accountsQuery futures accountDeliveryApilist_delivery_account_bookGET/delivery/{settle}/account_bookQuery account bookDeliveryApilist_delivery_positionsGET/delivery/{settle}/positionsList all positions of a userDeliveryApiget_delivery_positionGET/delivery/{settle}/positions/{contract}Get single positionDeliveryApiupdate_delivery_position_marginPOST/delivery/{settle}/positions/{contract}/marginUpdate position marginDeliveryApiupdate_delivery_position_leveragePOST/delivery/{settle}/positions/{contract}/leverageUpdate position leverageDeliveryApiupdate_delivery_position_risk_limitPOST/delivery/{settle}/positions/{contract}/risk_limitUpdate position risk limitDeliveryApilist_delivery_ordersGET/delivery/{settle}/ordersList futures ordersDeliveryApicreate_delivery_orderPOST/delivery/{settle}/ordersCreate a futures orderDeliveryApicancel_delivery_ordersDELETE/delivery/{settle}/ordersCancel all `open` orders matchedDeliveryApiget_delivery_orderGET/delivery/{settle}/orders/{order_id}Get a single orderDeliveryApicancel_delivery_orderDELETE/delivery/{settle}/orders/{order_id}Cancel a single orderDeliveryApiget_my_delivery_tradesGET/delivery/{settle}/my_tradesList personal trading historyDeliveryApilist_delivery_position_closeGET/delivery/{settle}/position_closeList position close historyDeliveryApilist_delivery_liquidatesGET/delivery/{settle}/liquidatesList liquidation historyDeliveryApilist_delivery_settlementsGET/delivery/{settle}/settlementsList settlement historyDeliveryApilist_price_triggered_delivery_ordersGET/delivery/{settle}/price_ordersList all auto ordersDeliveryApicreate_price_triggered_delivery_orderPOST/delivery/{settle}/price_ordersCreate a price-triggered orderDeliveryApicancel_price_triggered_delivery_order_listDELETE/delivery/{settle}/price_ordersCancel all open ordersDeliveryApiget_price_triggered_delivery_orderGET/delivery/{settle}/price_orders/{order_id}Get a price-triggered orderDeliveryApicancel_price_triggered_delivery_orderDELETE/delivery/{settle}/price_orders/{order_id}cancel a price-triggered orderEarnApiswap_eth2POST/earn/staking/eth2/swapETH2 swapEarnApilist_dual_investment_plansGET/earn/dual/investment_planDual Investment product listEarnApilist_dual_ordersGET/earn/dual/ordersDual Investment order listEarnApiplace_dual_orderPOST/earn/dual/ordersPlace Dual Investment orderEarnApicancel_dual_orderDELETE/earn/dual/orders/{order_id}Cancel Dual Investment orderEarnApilist_structured_productsGET/earn/structured/productsStructured Product ListEarnApilist_structured_ordersGET/earn/structured/ordersStructured Product Order ListEarnApiplace_structured_orderPOST/earn/structured/ordersPlace Structured Product OrderFlashSwapApilist_flash_swap_currenciesGET/flash_swap/currenciesList All Supported Currencies In Flash Swap (deprecated)FlashSwapApilist_flash_swap_currency_pairGET/flash_swap/currency_pairsList All Supported Currency Pairs In Flash SwapFlashSwapApilist_flash_swap_ordersGET/flash_swap/ordersList all flash swap ordersFlashSwapApicreate_flash_swap_orderPOST/flash_swap/ordersCreate a flash swap orderFlashSwapApiget_flash_swap_orderGET/flash_swap/orders/{order_id}Get a single flash swap order's detailFlashSwapApipreview_flash_swap_orderPOST/flash_swap/orders/previewInitiate a flash swap order previewFuturesApilist_futures_contractsGET/futures/{settle}/contractsList all futures contractsFuturesApiget_futures_contractGET/futures/{settle}/contracts/{contract}Get a single contractFuturesApilist_futures_order_bookGET/futures/{settle}/order_bookFutures order bookFuturesApilist_futures_tradesGET/futures/{settle}/tradesFutures trading historyFuturesApilist_futures_candlesticksGET/futures/{settle}/candlesticksGet futures candlesticksFuturesApilist_futures_premium_indexGET/futures/{settle}/premium_indexPremium Index K-LineFuturesApilist_futures_tickersGET/futures/{settle}/tickersList futures tickersFuturesApilist_futures_funding_rate_historyGET/futures/{settle}/funding_rateFunding rate historyFuturesApilist_futures_insurance_ledgerGET/futures/{settle}/insuranceFutures insurance balance historyFuturesApilist_contract_statsGET/futures/{settle}/contract_statsFutures statsFuturesApiget_index_constituentsGET/futures/{settle}/index_constituents/{index}Get index constituentsFuturesApilist_liquidated_ordersGET/futures/{settle}/liq_ordersRetrieve liquidation historyFuturesApilist_futures_accountsGET/futures/{settle}/accountsQuery futures accountFuturesApilist_futures_account_bookGET/futures/{settle}/account_bookQuery account bookFuturesApilist_positionsGET/futures/{settle}/positionsList all positions of a userFuturesApiget_positionGET/futures/{settle}/positions/{contract}Get single positionFuturesApiupdate_position_marginPOST/futures/{settle}/positions/{contract}/marginUpdate position marginFuturesApiupdate_position_leveragePOST/futures/{settle}/positions/{contract}/leverageUpdate position leverageFuturesApiupdate_position_risk_limitPOST/futures/{settle}/positions/{contract}/risk_limitUpdate position risk limitFuturesApiset_dual_modePOST/futures/{settle}/dual_modeEnable or disable dual modeFuturesApiget_dual_mode_positionGET/futures/{settle}/dual_comp/positions/{contract}Retrieve position detail in dual modeFuturesApiupdate_dual_mode_position_marginPOST/futures/{settle}/dual_comp/positions/{contract}/marginUpdate position margin in dual modeFuturesApiupdate_dual_mode_position_leveragePOST/futures/{settle}/dual_comp/positions/{contract}/leverageUpdate position leverage in dual modeFuturesApiupdate_dual_mode_position_risk_limitPOST/futures/{settle}/dual_comp/positions/{contract}/risk_limitUpdate position risk limit in dual modeFuturesApilist_futures_ordersGET/futures/{settle}/ordersList futures ordersFuturesApicreate_futures_orderPOST/futures/{settle}/ordersCreate a futures orderFuturesApicancel_futures_ordersDELETE/futures/{settle}/ordersCancel all `open` orders matchedFuturesApiget_orders_with_time_rangeGET/futures/{settle}/orders_timerangeList Futures Orders By Time RangeFuturesApicreate_batch_futures_orderPOST/futures/{settle}/batch_ordersCreate a batch of futures ordersFuturesApiget_futures_orderGET/futures/{settle}/orders/{order_id}Get a single orderFuturesApiamend_futures_orderPUT/futures/{settle}/orders/{order_id}Amend an orderFuturesApicancel_futures_orderDELETE/futures/{settle}/orders/{order_id}Cancel a single orderFuturesApiget_my_tradesGET/futures/{settle}/my_tradesList personal trading historyFuturesApiget_my_trades_with_time_rangeGET/futures/{settle}/my_trades_timerangeList personal trading history by time rangeFuturesApilist_position_closeGET/futures/{settle}/position_closeList position close historyFuturesApilist_liquidatesGET/futures/{settle}/liquidatesList liquidation historyFuturesApilist_auto_deleveragesGET/futures/{settle}/auto_deleveragesList Auto-Deleveraging HistoryFuturesApicountdown_cancel_all_futuresPOST/futures/{settle}/countdown_cancel_allCountdown cancel ordersFuturesApiget_futures_feeGET/futures/{settle}/feeQuery user trading fee ratesFuturesApilist_price_triggered_ordersGET/futures/{settle}/price_ordersList all auto ordersFuturesApicreate_price_triggered_orderPOST/futures/{settle}/price_ordersCreate a price-triggered orderFuturesApicancel_price_triggered_order_listDELETE/futures/{settle}/price_ordersCancel all open ordersFuturesApiget_price_triggered_orderGET/futures/{settle}/price_orders/{order_id}Get a price-triggered orderFuturesApicancel_price_triggered_orderDELETE/futures/{settle}/price_orders/{order_id}cancel a price-triggered orderMarginApilist_margin_accountsGET/margin/accountsMargin account listMarginApilist_margin_account_bookGET/margin/account_bookList margin account balance change historyMarginApilist_funding_accountsGET/margin/funding_accountsFunding account listMarginApiget_auto_repay_statusGET/margin/auto_repayRetrieve user auto repayment settingMarginApiset_auto_repayPOST/margin/auto_repayUpdate user's auto repayment settingMarginApiget_margin_transferableGET/margin/transferableGet the max transferable amount for a specific margin currencyMarginApilist_margin_currency_pairsGET/margin/currency_pairsList all supported currency pairs supported in margin trading(Deprecated)MarginApiget_margin_currency_pairGET/margin/currency_pairs/{currency_pair}Query one single margin currency pair(Deprecated)MarginApilist_funding_bookGET/margin/funding_bookOrder book of lending loans(Deprecated)MarginApilist_loansGET/margin/loansList all loans(Deprecated)MarginApicreate_loanPOST/margin/loansLend or borrow(Deprecated)MarginApimerge_loansPOST/margin/merged_loansMerge multiple lending loans(Deprecated)MarginApiget_loanGET/margin/loans/{loan_id}Retrieve one single loan detail(Deprecated)MarginApicancel_loanDELETE/margin/loans/{loan_id}Cancel lending loan(Deprecated)MarginApiupdate_loanPATCH/margin/loans/{loan_id}Modify a loan(Deprecated)MarginApilist_loan_repaymentsGET/margin/loans/{loan_id}/repaymentList loan repayment records(Deprecated)MarginApirepay_loanPOST/margin/loans/{loan_id}/repaymentRepay a loan(Deprecated)MarginApilist_loan_recordsGET/margin/loan_recordsList repayment records of a specific loan(Deprecated)MarginApiget_loan_recordGET/margin/loan_records/{loan_record_id}Get one single loan record(Deprecated)MarginApiupdate_loan_recordPATCH/margin/loan_records/{loan_record_id}Modify a loan record(Deprecated)MarginApiget_margin_borrowableGET/margin/borrowableGet the max borrowable amount for a specific margin currency(Deprecated)MarginApilist_cross_margin_currenciesGET/margin/cross/currenciesCurrencies supported by cross margin.MarginApiget_cross_margin_currencyGET/margin/cross/currencies/{currency}Retrieve detail of one single currency supported by cross marginMarginApiget_cross_margin_accountGET/margin/cross/accountsRetrieve cross margin accountMarginApilist_cross_margin_account_bookGET/margin/cross/account_bookRetrieve cross margin account change historyMarginApilist_cross_margin_loansGET/margin/cross/loansList cross margin borrow historyMarginApicreate_cross_margin_loanPOST/margin/cross/loansCreate a cross margin borrow loanMarginApiget_cross_margin_loanGET/margin/cross/loans/{loan_id}Retrieve single borrow loan detailMarginApilist_cross_margin_repaymentsGET/margin/cross/repaymentsRetrieve cross margin repaymentsMarginApirepay_cross_margin_loanPOST/margin/cross/repaymentsCross margin repaymentsMarginApiget_cross_margin_interest_recordsGET/margin/cross/interest_recordsInterest records for the cross margin accountMarginApiget_cross_margin_transferableGET/margin/cross/transferableGet the max transferable amount for a specific cross margin currencyMarginApiget_cross_margin_estimate_rateGET/margin/cross/estimate_rateEstimated interest ratesMarginApiget_cross_margin_borrowableGET/margin/cross/borrowableGet the max borrowable amount for a specific cross margin currencyOptionsApilist_options_underlyingsGET/options/underlyingsList all underlyingsOptionsApilist_options_expirationsGET/options/expirationsList all expiration timesOptionsApilist_options_contractsGET/options/contractsList all the contracts with specified underlying and expiration timeOptionsApiget_options_contractGET/options/contracts/{contract}Query specified contract detailOptionsApilist_options_settlementsGET/options/settlementsList settlement historyOptionsApiget_options_settlementGET/options/settlements/{contract}Get specified contract's settlementOptionsApilist_my_options_settlementsGET/options/my_settlementsList my options settlementsOptionsApilist_options_order_bookGET/options/order_bookOptions order bookOptionsApilist_options_tickersGET/options/tickersList tickers of options contractsOptionsApilist_options_underlying_tickersGET/options/underlying/tickers/{underlying}Get underlying tickerOptionsApilist_options_candlesticksGET/options/candlesticksGet options candlesticksOptionsApilist_options_underlying_candlesticksGET/options/underlying/candlesticksMark price candlesticks of an underlyingOptionsApilist_options_tradesGET/options/tradesOptions trade historyOptionsApilist_options_accountGET/options/accountsList options accountOptionsApilist_options_account_bookGET/options/account_bookList account changing historyOptionsApilist_options_positionsGET/options/positionsList user's positions of specified underlyingOptionsApiget_options_positionGET/options/positions/{contract}Get specified contract positionOptionsApilist_options_position_closeGET/options/position_closeList user's liquidation history of specified underlyingOptionsApilist_options_ordersGET/options/ordersList options ordersOptionsApicreate_options_orderPOST/options/ordersCreate an options orderOptionsApicancel_options_ordersDELETE/options/ordersCancel all `open` orders matchedOptionsApiget_options_orderGET/options/orders/{order_id}Get a single orderOptionsApicancel_options_orderDELETE/options/orders/{order_id}Cancel a single orderOptionsApilist_my_options_tradesGET/options/my_tradesList personal trading historyRebateApiagency_transaction_historyGET/rebate/agency/transaction_historyThe broker obtains the transaction history of the recommended userRebateApiagency_commissions_historyGET/rebate/agency/commission_historyThe broker obtains the commission history of the recommended userSpotApilist_currenciesGET/spot/currenciesList all currencies' detailsSpotApiget_currencyGET/spot/currencies/{currency}Get details of a specific currencySpotApilist_currency_pairsGET/spot/currency_pairsList all currency pairs supportedSpotApiget_currency_pairGET/spot/currency_pairs/{currency_pair}Get details of a specifc currency pairSpotApilist_tickersGET/spot/tickersRetrieve ticker informationSpotApilist_order_bookGET/spot/order_bookRetrieve order bookSpotApilist_tradesGET/spot/tradesRetrieve market tradesSpotApilist_candlesticksGET/spot/candlesticksMarket candlesticksSpotApiget_feeGET/spot/feeQuery user trading fee ratesSpotApiget_batch_spot_feeGET/spot/batch_feeQuery a batch of user trading fee ratesSpotApilist_spot_accountsGET/spot/accountsList spot accountsSpotApilist_spot_account_bookGET/spot/account_bookQuery account bookSpotApicreate_batch_ordersPOST/spot/batch_ordersCreate a batch of ordersSpotApilist_all_open_ordersGET/spot/open_ordersList all open ordersSpotApicreate_cross_liquidate_orderPOST/spot/cross_liquidate_ordersclose position when cross-currency is disabledSpotApilist_ordersGET/spot/ordersList ordersSpotApicreate_orderPOST/spot/ordersCreate an orderSpotApicancel_ordersDELETE/spot/ordersCancel all `open` orders in specified currency pairSpotApicancel_batch_ordersPOST/spot/cancel_batch_ordersCancel a batch of orders with an ID listSpotApiget_orderGET/spot/orders/{order_id}Get a single orderSpotApicancel_orderDELETE/spot/orders/{order_id}Cancel a single orderSpotApiamend_orderPATCH/spot/orders/{order_id}Amend an orderSpotApilist_my_tradesGET/spot/my_tradesList personal trading historySpotApiget_system_timeGET/spot/timeGet server current timeSpotApicountdown_cancel_all_spotPOST/spot/countdown_cancel_allCountdown cancel ordersSpotApiamend_batch_ordersPOST/spot/amend_batch_ordersBatch modification of ordersSpotApilist_spot_price_triggered_ordersGET/spot/price_ordersRetrieve running auto order listSpotApicreate_spot_price_triggered_orderPOST/spot/price_ordersCreate a price-triggered orderSpotApicancel_spot_price_triggered_order_listDELETE/spot/price_ordersCancel all open ordersSpotApiget_spot_price_triggered_orderGET/spot/price_orders/{order_id}Get a price-triggered orderSpotApicancel_spot_price_triggered_orderDELETE/spot/price_orders/{order_id}cancel a price-triggered orderWalletApilist_currency_chainsGET/wallet/currency_chainsList chains supported for specified currencyWalletApiget_deposit_addressGET/wallet/deposit_addressGenerate currency deposit addressWalletApilist_withdrawalsGET/wallet/withdrawalsRetrieve withdrawal recordsWalletApilist_depositsGET/wallet/depositsRetrieve deposit recordsWalletApitransferPOST/wallet/transfersTransfer between trading accountsWalletApilist_sub_account_transfersGET/wallet/sub_account_transfersRetrieve transfer records between main and sub accountsWalletApitransfer_with_sub_accountPOST/wallet/sub_account_transfersTransfer between main and sub accountsWalletApisub_account_to_sub_accountPOST/wallet/sub_account_to_sub_accountSub-account transfers to sub-accountWalletApilist_withdraw_statusGET/wallet/withdraw_statusRetrieve withdrawal statusWalletApilist_sub_account_balancesGET/wallet/sub_account_balancesRetrieve sub account balancesWalletApilist_sub_account_margin_balancesGET/wallet/sub_account_margin_balancesQuery sub accounts' margin balancesWalletApilist_sub_account_futures_balancesGET/wallet/sub_account_futures_balancesQuery sub accounts' futures account balancesWalletApilist_sub_account_cross_margin_balancesGET/wallet/sub_account_cross_margin_balancesQuery subaccount's cross_margin account infoWalletApilist_saved_addressGET/wallet/saved_addressQuery saved addressWalletApiget_trade_feeGET/wallet/feeRetrieve personal trading feeWalletApiget_total_balanceGET/wallet/total_balanceRetrieve user's total balancesWithdrawalApiwithdrawPOST/withdrawalsWithdrawWithdrawalApicancel_withdrawalDELETE/withdrawals/{withdrawal_id}Cancel withdrawal with specified IDDocumentation For ModelsAccountBalanceAccountDetailAccountDetailKeyAgencyCommissionAgencyCommissionHistoryAgencyTransactionAgencyTransactionHistoryAmendOrderResultApiV4KeyPermAutoRepaySettingBatchAmendItemBatchFuturesOrderBatchOrderCancelBatchOrderCancelOrderResultCollateralAlignCollateralLoanCurrencyCollateralOrderCollateralRecordContractContractStatCountdownCancelAllFuturesTaskCountdownCancelAllSpotTaskCreateCollateralOrderCreateUniLendCreateUniLoanCrossMarginAccountCrossMarginAccountBookCrossMarginBalanceCrossMarginBalance1CrossMarginCurrencyCrossMarginLoanCrossMarginRepayRequestCrossMarginRepaymentCrossMarginTransferableCurrencyCurrencyChainCurrencyPairDeliveryCandlestickDeliveryContractDeliverySettlementDepositAddressDualGetOrdersDualGetPlansEth2SwapFlashSwapCurrencyFlashSwapCurrencyPairFlashSwapOrderFlashSwapOrderPreviewFlashSwapOrderRequestFlashSwapPreviewRequestFundingAccountFundingBookItemFundingRateRecordFuturesAccountFuturesAccountBookFuturesAccountHistoryFuturesAutoDeleverageFuturesCandlestickFuturesFeeFuturesIndexConstituentsFuturesInitialOrderFuturesLiqOrderFuturesLiquidateFuturesOrderFuturesOrderAmendmentFuturesOrderBookFuturesOrderBookItemFuturesPremiumIndexFuturesPriceTriggerFuturesPriceTriggeredOrderFuturesTickerFuturesTradeIndexConstituentInsuranceRecordLedgerRecordLiquidateOrderLoanLoanPatchLoanRecordMarginAccountMarginAccountBookMarginAccountCurrencyMarginBorrowableMarginCurrencyPairMarginTransferableMaxUniBorrowableMultiChainAddressItemMyFuturesTradeMyFuturesTradeTimeRangeOpenOrdersOptionsAccountOptionsAccountBookOptionsCandlestickOptionsContractOptionsMySettlementsOptionsMyTradeOptionsOrderOptionsPositionOptionsPositionCloseOptionsPositionCloseOrderOptionsSettlementOptionsTickerOptionsUnderlyingOptionsUnderlyingTickerOrderOrderBookOrderPatchOrderRespPatchUniLendPlaceDualInvestmentOrderPositionPositionClosePositionCloseOrderRepayLoanRepayRecordRepayRequestRepayRespRepaymentSavedAddressSpotAccountSpotAccountBookSpotFeeSpotPricePutOrderSpotPriceTriggerSpotPriceTriggeredOrderStpGroupStpGroupUserStructuredBuyStructuredGetProjectListStructuredGetProjectListRequestStructuredOrderListStructuredOrderListRequestSubAccountSubAccountBalanceSubAccountCrossMarginBalanceSubAccountFuturesBalanceSubAccountKeySubAccountMarginBalanceSubAccountToSubAccountSubAccountTransferSubCrossMarginAccountSystemTimeTickerTotalBalanceTradeTradeFeeTransactionIDTransferTriggerOrderResponseTriggerTimeUniCurrencyUniCurrencyInterestUniCurrencyPairUniInterestModeUniInterestRecordUniLendUniLendInterestUniLendRecordUniLoanUniLoanInterestRecordUniLoanRecordUnifiedAccountUnifiedBalanceUnifiedBorrowableUnifiedLoanUnifiedLoanRecordUnifiedModeUnifiedTransferableUserLtvInfoUserTotalAmountWithdrawStatusWithdrawalRecordDocumentation For Authorizationapiv4Authentication with APIv4 key and secretFor details, refer to:APIv4 signed request requirementsAuthorsupport@mail.gate.io