Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gate-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gate-api

Gate API v4

  • 4.83.0
  • PyPI
  • Socket score

Maintainers
1

gate-api

Welcome to Gate.io API

APIv4 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 the OpenAPI Generator project:

  • API version: 4.83.0
  • Package version: 4.83.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.gate.io/page/contacts

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

You can install directly using:

pip install --user gate-api

Then import the package:

import gate_api

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import gate_api

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import gate_api
from gate_api.exceptions import ApiException, 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 class
api_instance = gate_api.EarnUniApi(api_client)

try:
    # List currencies for lending
    api_response = api_instance.list_uni_currencies()
    print(api_response)
except GateApiException as ex:
    print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message))
except ApiException as e:
    print("Exception when calling EarnUniApi->list_uni_currencies: %s\n" % e)

For a more complete API usage example, refer to the demo application in example directory

Documentation for API Endpoints

All URIs are relative to https://api.gateio.ws/api/v4

ClassMethodHTTP requestDescription
EarnUniApilist_uni_currenciesGET /earn/uni/currenciesList currencies for lending
EarnUniApiget_uni_currencyGET /earn/uni/currencies/{currency}Get currency detail for lending
EarnUniApilist_user_uni_lendsGET /earn/uni/lendsList user's lending orders
EarnUniApicreate_uni_lendPOST /earn/uni/lendsLend or redeem
EarnUniApichange_uni_lendPATCH /earn/uni/lendsAmend lending order
EarnUniApilist_uni_lend_recordsGET /earn/uni/lend_recordsList records of lending
EarnUniApiget_uni_interestGET /earn/uni/interests/{currency}Get the user's total interest income of specified currency
EarnUniApilist_uni_interest_recordsGET /earn/uni/interest_recordsList interest records
EarnUniApiswitch_interest_reinvestPUT /earn/uni/interest_reinvestSet interest reinvestment toggle
EarnUniApiget_uni_interest_statusGET /earn/uni/interest_status/{currency}query currency interest compounding status
MarginUniApilist_uni_currency_pairsGET /margin/uni/currency_pairsList lending markets
MarginUniApiget_uni_currency_pairGET /margin/uni/currency_pairs/{currency_pair}Get detail of lending market
MarginUniApiget_margin_uni_estimate_rateGET /margin/uni/estimate_rateEstimate interest Rate
MarginUniApilist_uni_loansGET /margin/uni/loansList loans
MarginUniApicreate_uni_loanPOST /margin/uni/loansBorrow or repay
MarginUniApilist_uni_loan_recordsGET /margin/uni/loan_recordsGet load records
MarginUniApilist_uni_loan_interest_recordsGET /margin/uni/interest_recordsList interest records
MarginUniApiget_uni_borrowableGET /margin/uni/borrowableGet maximum borrowable
SubAccountApilist_sub_accountsGET /sub_accountsList sub-accounts
SubAccountApicreate_sub_accountsPOST /sub_accountsCreate a new sub-account
SubAccountApiget_sub_accountGET /sub_accounts/{user_id}Get the sub-account
SubAccountApilist_sub_account_keysGET /sub_accounts/{user_id}/keysList all API Key of the sub-account
SubAccountApicreate_sub_account_keysPOST /sub_accounts/{user_id}/keysCreate API Key of the sub-account
SubAccountApiget_sub_account_keyGET /sub_accounts/{user_id}/keys/{key}Get the API Key of the sub-account
SubAccountApiupdate_sub_account_keysPUT /sub_accounts/{user_id}/keys/{key}Update API key of the sub-account
SubAccountApidelete_sub_account_keysDELETE /sub_accounts/{user_id}/keys/{key}Delete API key of the sub-account
SubAccountApilock_sub_accountPOST /sub_accounts/{user_id}/lockLock the sub-account
SubAccountApiunlock_sub_accountPOST /sub_accounts/{user_id}/unlockUnlock the sub-account
SubAccountApilist_unified_modeGET /sub_accounts/unified_modeGet sub-account mode
UnifiedApilist_unified_accountsGET /unified/accountsGet unified account information
UnifiedApilist_unified_account_modeGET /unified/account_modeInquire about unified account mode (deprecated)
UnifiedApiset_unified_account_modePOST /unified/account_modeSet unified account mode (deprecated)
UnifiedApiget_unified_borrowableGET /unified/borrowableQuery about the maximum borrowing for the unified account
UnifiedApiget_unified_transferableGET /unified/transferableQuery about the maximum transferable for the unified account
UnifiedApilist_unified_loansGET /unified/loansList loans
UnifiedApicreate_unified_loanPOST /unified/loansBorrow or repay
UnifiedApilist_unified_loan_recordsGET /unified/loan_recordsGet load records
UnifiedApilist_unified_loan_interest_recordsGET /unified/interest_recordsList interest records
UnifiedApiget_unified_risk_unitsGET /unified/risk_unitsRetrieve user risk unit details, only valid in portfolio margin mode
UnifiedApiget_unified_modeGET /unified/unified_modeQuery mode of the unified account
UnifiedApiset_unified_modePUT /unified/unified_modeSet mode of the unified account
UnifiedApiget_unified_estimate_rateGET /unified/estimate_rateGet unified estimate rate
UnifiedApilist_currency_discount_tiersGET /unified/currency_discount_tiersList currency discount tiers
UnifiedApilist_loan_margin_tiersGET /unified/loan_margin_tiersList loan margin tiers
UnifiedApicalculate_portfolio_marginPOST /unified/portfolio_calculatorPortfolio margin calculator
UnifiedApiget_user_leverage_currency_configGET /unified/leverage/user_currency_configThe maximum and minimum leverage multiples that users can set for a currency type are:
UnifiedApiget_user_leverage_currency_settingGET /unified/leverage/user_currency_settingGet the user's currency leverage. If currency is not passed, query all currencies.
UnifiedApiset_user_leverage_currency_settingPOST /unified/leverage/user_currency_settingSet the currency leverage ratio
AccountApiget_account_detailGET /account/detailGet account detail
AccountApiget_account_rate_limitGET /account/rate_limitGet user transaction rate limit information
AccountApilist_stp_groupsGET /account/stp_groupsList STP Groups
AccountApicreate_stp_groupPOST /account/stp_groupsCreate STP Group
AccountApilist_stp_groups_usersGET /account/stp_groups/{stp_id}/usersList users of the STP group
AccountApiadd_stp_group_usersPOST /account/stp_groups/{stp_id}/usersAdd users to the STP group
AccountApidelete_stp_group_usersDELETE /account/stp_groups/{stp_id}/usersDelete the user in the STP group
AccountApiget_debit_feeGET /account/debit_feeQuery GT deduction configuration.
AccountApiset_debit_feePOST /account/debit_feeSet GT deduction.
CollateralLoanApilist_collateral_loan_ordersGET /loan/collateral/ordersList Orders
CollateralLoanApicreate_collateral_loanPOST /loan/collateral/ordersPlace order
CollateralLoanApiget_collateral_loan_order_detailGET /loan/collateral/orders/{order_id}Get a single order
CollateralLoanApirepay_collateral_loanPOST /loan/collateral/repayRepayment
CollateralLoanApilist_repay_recordsGET /loan/collateral/repay_recordsRepayment history
CollateralLoanApilist_collateral_recordsGET /loan/collateral/collateralsQuery collateral adjustment records
CollateralLoanApioperate_collateralPOST /loan/collateral/collateralsIncrease or redeem collateral
CollateralLoanApiget_user_total_amountGET /loan/collateral/total_amountQuery the total borrowing and collateral amount for the user
CollateralLoanApiget_user_ltv_infoGET /loan/collateral/ltvQuery user's collateralization ratio
CollateralLoanApilist_collateral_currenciesGET /loan/collateral/currenciesQuery supported borrowing and collateral currencies
DeliveryApilist_delivery_contractsGET /delivery/{settle}/contractsList all futures contracts
DeliveryApiget_delivery_contractGET /delivery/{settle}/contracts/{contract}Get a single contract
DeliveryApilist_delivery_order_bookGET /delivery/{settle}/order_bookFutures order book
DeliveryApilist_delivery_tradesGET /delivery/{settle}/tradesFutures trading history
DeliveryApilist_delivery_candlesticksGET /delivery/{settle}/candlesticksGet futures candlesticks
DeliveryApilist_delivery_tickersGET /delivery/{settle}/tickersList futures tickers
DeliveryApilist_delivery_insurance_ledgerGET /delivery/{settle}/insuranceFutures insurance balance history
DeliveryApilist_delivery_accountsGET /delivery/{settle}/accountsQuery futures account
DeliveryApilist_delivery_account_bookGET /delivery/{settle}/account_bookQuery account book
DeliveryApilist_delivery_positionsGET /delivery/{settle}/positionsList all positions of a user
DeliveryApiget_delivery_positionGET /delivery/{settle}/positions/{contract}Get single position
DeliveryApiupdate_delivery_position_marginPOST /delivery/{settle}/positions/{contract}/marginUpdate position margin
DeliveryApiupdate_delivery_position_leveragePOST /delivery/{settle}/positions/{contract}/leverageUpdate position leverage
DeliveryApiupdate_delivery_position_risk_limitPOST /delivery/{settle}/positions/{contract}/risk_limitUpdate position risk limit
DeliveryApilist_delivery_ordersGET /delivery/{settle}/ordersList futures orders
DeliveryApicreate_delivery_orderPOST /delivery/{settle}/ordersCreate a futures order
DeliveryApicancel_delivery_ordersDELETE /delivery/{settle}/ordersCancel all `open` orders matched
DeliveryApiget_delivery_orderGET /delivery/{settle}/orders/{order_id}Get a single order
DeliveryApicancel_delivery_orderDELETE /delivery/{settle}/orders/{order_id}Cancel a single order
DeliveryApiget_my_delivery_tradesGET /delivery/{settle}/my_tradesList personal trading history
DeliveryApilist_delivery_position_closeGET /delivery/{settle}/position_closeList position close history
DeliveryApilist_delivery_liquidatesGET /delivery/{settle}/liquidatesList liquidation history
DeliveryApilist_delivery_settlementsGET /delivery/{settle}/settlementsList settlement history
DeliveryApilist_delivery_risk_limit_tiersGET /delivery/{settle}/risk_limit_tiersList risk limit tiers
DeliveryApilist_price_triggered_delivery_ordersGET /delivery/{settle}/price_ordersList all auto orders
DeliveryApicreate_price_triggered_delivery_orderPOST /delivery/{settle}/price_ordersCreate a price-triggered order
DeliveryApicancel_price_triggered_delivery_order_listDELETE /delivery/{settle}/price_ordersCancel all open orders
DeliveryApiget_price_triggered_delivery_orderGET /delivery/{settle}/price_orders/{order_id}Get a price-triggered order
DeliveryApicancel_price_triggered_delivery_orderDELETE /delivery/{settle}/price_orders/{order_id}cancel a price-triggered order
EarnApiswap_eth2POST /earn/staking/eth2/swapETH2 swap
EarnApilist_dual_investment_plansGET /earn/dual/investment_planDual Investment product list
EarnApilist_dual_ordersGET /earn/dual/ordersDual Investment order list
EarnApiplace_dual_orderPOST /earn/dual/ordersPlace Dual Investment order
EarnApilist_structured_productsGET /earn/structured/productsStructured Product List
EarnApilist_structured_ordersGET /earn/structured/ordersStructured Product Order List
EarnApiplace_structured_orderPOST /earn/structured/ordersPlace Structured Product Order
FlashSwapApilist_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 Swap
FlashSwapApilist_flash_swap_ordersGET /flash_swap/ordersList all flash swap orders
FlashSwapApicreate_flash_swap_orderPOST /flash_swap/ordersCreate a flash swap order
FlashSwapApiget_flash_swap_orderGET /flash_swap/orders/{order_id}Get a single flash swap order's detail
FlashSwapApipreview_flash_swap_orderPOST /flash_swap/orders/previewInitiate a flash swap order preview
FuturesApilist_futures_contractsGET /futures/{settle}/contractsList all futures contracts
FuturesApiget_futures_contractGET /futures/{settle}/contracts/{contract}Get a single contract
FuturesApilist_futures_order_bookGET /futures/{settle}/order_bookFutures order book
FuturesApilist_futures_tradesGET /futures/{settle}/tradesFutures trading history
FuturesApilist_futures_candlesticksGET /futures/{settle}/candlesticksGet futures candlesticks
FuturesApilist_futures_premium_indexGET /futures/{settle}/premium_indexPremium Index K-Line
FuturesApilist_futures_tickersGET /futures/{settle}/tickersList futures tickers
FuturesApilist_futures_funding_rate_historyGET /futures/{settle}/funding_rateFunding rate history
FuturesApilist_futures_insurance_ledgerGET /futures/{settle}/insuranceFutures insurance balance history
FuturesApilist_contract_statsGET /futures/{settle}/contract_statsFutures stats
FuturesApiget_index_constituentsGET /futures/{settle}/index_constituents/{index}Get index constituents
FuturesApilist_liquidated_ordersGET /futures/{settle}/liq_ordersRetrieve liquidation history
FuturesApilist_futures_risk_limit_tiersGET /futures/{settle}/risk_limit_tiersList risk limit tiers
FuturesApilist_futures_accountsGET /futures/{settle}/accountsQuery futures account
FuturesApilist_futures_account_bookGET /futures/{settle}/account_bookQuery account book
FuturesApilist_positionsGET /futures/{settle}/positionsList all positions of a user
FuturesApiget_positionGET /futures/{settle}/positions/{contract}Get single position
FuturesApiupdate_position_marginPOST /futures/{settle}/positions/{contract}/marginUpdate position margin
FuturesApiupdate_position_leveragePOST /futures/{settle}/positions/{contract}/leverageUpdate position leverage
FuturesApiupdate_position_risk_limitPOST /futures/{settle}/positions/{contract}/risk_limitUpdate position risk limit
FuturesApiset_dual_modePOST /futures/{settle}/dual_modeEnable or disable dual mode
FuturesApiget_dual_mode_positionGET /futures/{settle}/dual_comp/positions/{contract}Retrieve position detail in dual mode
FuturesApiupdate_dual_mode_position_marginPOST /futures/{settle}/dual_comp/positions/{contract}/marginUpdate position margin in dual mode
FuturesApiupdate_dual_mode_position_leveragePOST /futures/{settle}/dual_comp/positions/{contract}/leverageUpdate position leverage in dual mode
FuturesApiupdate_dual_mode_position_risk_limitPOST /futures/{settle}/dual_comp/positions/{contract}/risk_limitUpdate position risk limit in dual mode
FuturesApilist_futures_ordersGET /futures/{settle}/ordersList futures orders
FuturesApicreate_futures_orderPOST /futures/{settle}/ordersCreate a futures order
FuturesApicancel_futures_ordersDELETE /futures/{settle}/ordersCancel all `open` orders matched
FuturesApiget_orders_with_time_rangeGET /futures/{settle}/orders_timerangeList Futures Orders By Time Range
FuturesApicreate_batch_futures_orderPOST /futures/{settle}/batch_ordersCreate a batch of futures orders
FuturesApiget_futures_orderGET /futures/{settle}/orders/{order_id}Get a single order
FuturesApiamend_futures_orderPUT /futures/{settle}/orders/{order_id}Amend an order
FuturesApicancel_futures_orderDELETE /futures/{settle}/orders/{order_id}Cancel a single order
FuturesApiget_my_tradesGET /futures/{settle}/my_tradesList personal trading history
FuturesApiget_my_trades_with_time_rangeGET /futures/{settle}/my_trades_timerangeList personal trading history by time range
FuturesApilist_position_closeGET /futures/{settle}/position_closeList position close history
FuturesApilist_liquidatesGET /futures/{settle}/liquidatesList liquidation history
FuturesApilist_auto_deleveragesGET /futures/{settle}/auto_deleveragesList Auto-Deleveraging History
FuturesApicountdown_cancel_all_futuresPOST /futures/{settle}/countdown_cancel_allCountdown cancel orders
FuturesApiget_futures_feeGET /futures/{settle}/feeQuery user trading fee rates
FuturesApicancel_batch_future_ordersPOST /futures/{settle}/batch_cancel_ordersCancel a batch of orders with an ID list
FuturesApiamend_batch_future_ordersPOST /futures/{settle}/batch_amend_ordersBatch modify orders with specified IDs
FuturesApilist_price_triggered_ordersGET /futures/{settle}/price_ordersList all auto orders
FuturesApicreate_price_triggered_orderPOST /futures/{settle}/price_ordersCreate a price-triggered order
FuturesApicancel_price_triggered_order_listDELETE /futures/{settle}/price_ordersCancel all open orders
FuturesApiget_price_triggered_orderGET /futures/{settle}/price_orders/{order_id}Get a price-triggered order
FuturesApicancel_price_triggered_orderDELETE /futures/{settle}/price_orders/{order_id}cancel a price-triggered order
MarginApilist_margin_accountsGET /margin/accountsMargin account list
MarginApilist_margin_account_bookGET /margin/account_bookList margin account balance change history
MarginApilist_funding_accountsGET /margin/funding_accountsFunding account list
MarginApiget_auto_repay_statusGET /margin/auto_repayRetrieve user auto repayment setting
MarginApiset_auto_repayPOST /margin/auto_repayUpdate user's auto repayment setting
MarginApiget_margin_transferableGET /margin/transferableGet the max transferable amount for a specific margin currency
MarginApilist_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 margin
MarginApiget_cross_margin_accountGET /margin/cross/accountsRetrieve cross margin account
MarginApilist_cross_margin_account_bookGET /margin/cross/account_bookRetrieve cross margin account change history
MarginApilist_cross_margin_loansGET /margin/cross/loansList cross margin borrow history
MarginApicreate_cross_margin_loanPOST /margin/cross/loansCreate a cross margin borrow loan
MarginApiget_cross_margin_loanGET /margin/cross/loans/{loan_id}Retrieve single borrow loan detail
MarginApilist_cross_margin_repaymentsGET /margin/cross/repaymentsRetrieve cross margin repayments
MarginApirepay_cross_margin_loanPOST /margin/cross/repaymentsCross margin repayments
MarginApiget_cross_margin_interest_recordsGET /margin/cross/interest_recordsInterest records for the cross margin account
MarginApiget_cross_margin_transferableGET /margin/cross/transferableGet the max transferable amount for a specific cross margin currency
MarginApiget_cross_margin_estimate_rateGET /margin/cross/estimate_rateEstimated interest rates
MarginApiget_cross_margin_borrowableGET /margin/cross/borrowableGet the max borrowable amount for a specific cross margin currency
MultiCollateralLoanApilist_multi_collateral_ordersGET /loan/multi_collateral/ordersList Multi-Collateral Orders
MultiCollateralLoanApicreate_multi_collateralPOST /loan/multi_collateral/ordersCreate Multi-Collateral Order
MultiCollateralLoanApiget_multi_collateral_order_detailGET /loan/multi_collateral/orders/{order_id}Get Multi-Collateral Order Detail
MultiCollateralLoanApilist_multi_repay_recordsGET /loan/multi_collateral/repayList Multi-Collateral Repay Records
MultiCollateralLoanApirepay_multi_collateral_loanPOST /loan/multi_collateral/repayRepay Multi-Collateral Loan
MultiCollateralLoanApilist_multi_collateral_recordsGET /loan/multi_collateral/mortgageQuery collateral adjustment records
MultiCollateralLoanApioperate_multi_collateralPOST /loan/multi_collateral/mortgageOperate Multi-Collateral
MultiCollateralLoanApilist_user_currency_quotaGET /loan/multi_collateral/currency_quotaList User Currency Quota
MultiCollateralLoanApilist_multi_collateral_currenciesGET /loan/multi_collateral/currenciesQuery supported borrowing and collateral currencies in Multi-Collateral
MultiCollateralLoanApiget_multi_collateral_ltvGET /loan/multi_collateral/ltvGet Multi-Collateral ratio
MultiCollateralLoanApiget_multi_collateral_fix_rateGET /loan/multi_collateral/fixed_rateQuery fixed interest rates for the currency for 7 days and 30 days
OptionsApilist_options_underlyingsGET /options/underlyingsList all underlyings
OptionsApilist_options_expirationsGET /options/expirationsList all expiration times
OptionsApilist_options_contractsGET /options/contractsList all the contracts with specified underlying and expiration time
OptionsApiget_options_contractGET /options/contracts/{contract}Query specified contract detail
OptionsApilist_options_settlementsGET /options/settlementsList settlement history
OptionsApiget_options_settlementGET /options/settlements/{contract}Get specified contract's settlement
OptionsApilist_my_options_settlementsGET /options/my_settlementsList my options settlements
OptionsApilist_options_order_bookGET /options/order_bookOptions order book
OptionsApilist_options_tickersGET /options/tickersList tickers of options contracts
OptionsApilist_options_underlying_tickersGET /options/underlying/tickers/{underlying}Get underlying ticker
OptionsApilist_options_candlesticksGET /options/candlesticksGet options candlesticks
OptionsApilist_options_underlying_candlesticksGET /options/underlying/candlesticksMark price candlesticks of an underlying
OptionsApilist_options_tradesGET /options/tradesOptions trade history
OptionsApilist_options_accountGET /options/accountsList options account
OptionsApilist_options_account_bookGET /options/account_bookList account changing history
OptionsApilist_options_positionsGET /options/positionsList user's positions of specified underlying
OptionsApiget_options_positionGET /options/positions/{contract}Get specified contract position
OptionsApilist_options_position_closeGET /options/position_closeList user's liquidation history of specified underlying
OptionsApilist_options_ordersGET /options/ordersList options orders
OptionsApicreate_options_orderPOST /options/ordersCreate an options order
OptionsApicancel_options_ordersDELETE /options/ordersCancel all `open` orders matched
OptionsApiget_options_orderGET /options/orders/{order_id}Get a single order
OptionsApicancel_options_orderDELETE /options/orders/{order_id}Cancel a single order
OptionsApicountdown_cancel_all_optionsPOST /options/countdown_cancel_allCountdown cancel orders
OptionsApilist_my_options_tradesGET /options/my_tradesList personal trading history
OptionsApiget_options_mmpGET /options/mmpMMP Query
OptionsApiset_options_mmpPOST /options/mmpMMP Settings
OptionsApireset_options_mmpPOST /options/mmp/resetMMP Reset
RebateApiagency_transaction_historyGET /rebate/agency/transaction_historyThe agency obtains the transaction history of the recommended user
RebateApiagency_commissions_historyGET /rebate/agency/commission_historyThe agency obtains the commission history of the recommended user
RebateApipartner_transaction_historyGET /rebate/partner/transaction_historyPartner obtains transaction records of recommended users
RebateApipartner_commissions_historyGET /rebate/partner/commission_historyPartner obtains commission records of recommended users
RebateApipartner_sub_listGET /rebate/partner/sub_listPartner subordinate list
RebateApirebate_broker_commission_historyGET /rebate/broker/commission_historyThe broker obtains the user's commission rebate records
RebateApirebate_broker_transaction_historyGET /rebate/broker/transaction_historyThe broker obtains the user's trading history
RebateApirebate_user_infoGET /rebate/user/infoUser retrieves rebate information
SpotApilist_currenciesGET /spot/currenciesList all currencies' details
SpotApiget_currencyGET /spot/currencies/{currency}Get details of a specific currency
SpotApilist_currency_pairsGET /spot/currency_pairsList all currency pairs supported
SpotApiget_currency_pairGET /spot/currency_pairs/{currency_pair}Get details of a specifc currency pair
SpotApilist_tickersGET /spot/tickersRetrieve ticker information
SpotApilist_order_bookGET /spot/order_bookRetrieve order book
SpotApilist_tradesGET /spot/tradesRetrieve market trades
SpotApilist_candlesticksGET /spot/candlesticksMarket candlesticks
SpotApiget_feeGET /spot/feeQuery user trading fee rates
SpotApiget_batch_spot_feeGET /spot/batch_feeQuery a batch of user trading fee rates
SpotApilist_spot_accountsGET /spot/accountsList spot accounts
SpotApilist_spot_account_bookGET /spot/account_bookQuery account book
SpotApicreate_batch_ordersPOST /spot/batch_ordersCreate a batch of orders
SpotApilist_all_open_ordersGET /spot/open_ordersList all open orders
SpotApicreate_cross_liquidate_orderPOST /spot/cross_liquidate_ordersclose position when cross-currency is disabled
SpotApilist_ordersGET /spot/ordersList orders
SpotApicreate_orderPOST /spot/ordersCreate an order
SpotApicancel_ordersDELETE /spot/ordersCancel all `open` orders in specified currency pair
SpotApicancel_batch_ordersPOST /spot/cancel_batch_ordersCancel a batch of orders with an ID list
SpotApiget_orderGET /spot/orders/{order_id}Get a single order
SpotApicancel_orderDELETE /spot/orders/{order_id}Cancel a single order
SpotApiamend_orderPATCH /spot/orders/{order_id}Amend an order
SpotApilist_my_tradesGET /spot/my_tradesList personal trading history
SpotApiget_system_timeGET /spot/timeGet server current time
SpotApicountdown_cancel_all_spotPOST /spot/countdown_cancel_allCountdown cancel orders
SpotApiamend_batch_ordersPOST /spot/amend_batch_ordersBatch modification of orders
SpotApilist_spot_price_triggered_ordersGET /spot/price_ordersRetrieve running auto order list
SpotApicreate_spot_price_triggered_orderPOST /spot/price_ordersCreate a price-triggered order
SpotApicancel_spot_price_triggered_order_listDELETE /spot/price_ordersCancel all open orders
SpotApiget_spot_price_triggered_orderGET /spot/price_orders/{order_id}Get a price-triggered order
SpotApicancel_spot_price_triggered_orderDELETE /spot/price_orders/{order_id}cancel a price-triggered order
WalletApilist_currency_chainsGET /wallet/currency_chainsList chains supported for specified currency
WalletApiget_deposit_addressGET /wallet/deposit_addressGenerate currency deposit address
WalletApilist_withdrawalsGET /wallet/withdrawalsRetrieve withdrawal records
WalletApilist_depositsGET /wallet/depositsRetrieve deposit records
WalletApitransferPOST /wallet/transfersTransfer between trading accounts
WalletApilist_sub_account_transfersGET /wallet/sub_account_transfersRetrieve transfer records between main and sub accounts
WalletApitransfer_with_sub_accountPOST /wallet/sub_account_transfersTransfer between main and sub accounts
WalletApisub_account_to_sub_accountPOST /wallet/sub_account_to_sub_accountSub-account transfers to sub-account
WalletApilist_withdraw_statusGET /wallet/withdraw_statusRetrieve withdrawal status
WalletApilist_sub_account_balancesGET /wallet/sub_account_balancesRetrieve sub account balances
WalletApilist_sub_account_margin_balancesGET /wallet/sub_account_margin_balancesQuery sub accounts' margin balances
WalletApilist_sub_account_futures_balancesGET /wallet/sub_account_futures_balancesQuery sub accounts' futures account balances
WalletApilist_sub_account_cross_margin_balancesGET /wallet/sub_account_cross_margin_balancesQuery subaccount's cross_margin account info
WalletApilist_saved_addressGET /wallet/saved_addressQuery saved address
WalletApiget_trade_feeGET /wallet/feeRetrieve personal trading fee
WalletApiget_total_balanceGET /wallet/total_balanceRetrieve user's total balances
WalletApilist_small_balanceGET /wallet/small_balanceList small balance
WalletApiconvert_small_balancePOST /wallet/small_balanceConvert small balance
WalletApilist_small_balance_historyGET /wallet/small_balance_historyList small balance history
WalletApilist_push_ordersGET /wallet/pushRetrieve the UID transfer history
WithdrawalApiwithdrawPOST /withdrawalsWithdraw
WithdrawalApiwithdraw_push_orderPOST /withdrawals/pushUID transfer
WithdrawalApicancel_withdrawalDELETE /withdrawals/{withdrawal_id}Cancel withdrawal with specified ID

Documentation For Models

Documentation For Authorization

apiv4

Authentication with APIv4 key and secret

For details, refer to: APIv4 signed request requirements

Author

support@mail.gate.io

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc