From adc81b1bf80cc1792670af32484ca688b061b18d Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:18:48 +0200 Subject: [PATCH] feat(): updaed readme, examples --- README.md | 1 + docs/endpointFunctionList.md | 539 +++++++++--------- .../apidoc/RestClient/addUsersToStpGroup.js | 8 +- .../RestClient/batchCancelFuturesOrders.js | 8 +- .../RestClient/batchCancelSpotOrders.js | 8 +- .../RestClient/batchUpdateFuturesOrders.js | 8 +- .../RestClient/batchUpdateSpotOrders.js | 8 +- .../RestClient/cancelAllDeliveryOrders.js | 8 +- .../RestClient/cancelAllFuturesOrders.js | 8 +- .../RestClient/cancelAllOpenDeliveryOrders.js | 8 +- .../RestClient/cancelAllOpenFuturesOrders.js | 8 +- .../RestClient/cancelAllOpenOptionsOrders.js | 8 +- .../RestClient/cancelAllOpenSpotOrders.js | 8 +- .../apidoc/RestClient/cancelDeliveryOrder.js | 8 +- .../apidoc/RestClient/cancelFuturesOrder.js | 8 +- .../cancelFuturesPriceTriggeredOrder.js | 8 +- .../apidoc/RestClient/cancelOptionsOrder.js | 8 +- .../apidoc/RestClient/cancelSpotOpenOrders.js | 8 +- examples/apidoc/RestClient/cancelSpotOrder.js | 8 +- .../RestClient/cancelSpotTriggeredOrder.js | 8 +- .../cancelTriggeredDeliveryOrder.js | 8 +- .../apidoc/RestClient/cancelWithdrawal.js | 8 +- .../apidoc/RestClient/convertSmallBalance.js | 8 +- .../apidoc/RestClient/createDepositAddress.js | 8 +- examples/apidoc/RestClient/createStpGroup.js | 8 +- .../apidoc/RestClient/createSubAccount.js | 8 +- .../RestClient/createSubAccountApiKey.js | 8 +- .../RestClient/deleteSubAccountApiKey.js | 8 +- .../RestClient/deleteUserFromStpGroup.js | 8 +- .../apidoc/RestClient/getAccountDetail.js | 8 +- .../apidoc/RestClient/getAccountRateLimit.js | 8 +- .../RestClient/getAgencyCommissionHistory.js | 8 +- .../RestClient/getAgencyTransactionHistory.js | 8 +- .../RestClient/getAllDeliveryContracts.js | 8 +- .../RestClient/getAutoRepaymentSetting.js | 8 +- examples/apidoc/RestClient/getBalances.js | 8 +- .../RestClient/getBrokerCommissionHistory.js | 8 +- .../RestClient/getBrokerTransactionHistory.js | 8 +- .../RestClient/getCrossMarginAccount.js | 8 +- .../getCrossMarginAccountHistory.js | 8 +- .../RestClient/getCrossMarginBorrowHistory.js | 8 +- .../RestClient/getCrossMarginBorrowLoan.js | 8 +- .../getCrossMarginBorrowableAmount.js | 8 +- .../RestClient/getCrossMarginCurrencies.js | 8 +- .../RestClient/getCrossMarginCurrency.js | 8 +- .../getCrossMarginInterestRecords.js | 8 +- .../RestClient/getCrossMarginRepayments.js | 8 +- .../getCrossMarginTransferableAmount.js | 8 +- .../apidoc/RestClient/getCurrencyChains.js | 8 +- .../apidoc/RestClient/getDeliveryAccount.js | 8 +- .../RestClient/getDeliveryAutoOrders.js | 8 +- examples/apidoc/RestClient/getDeliveryBook.js | 8 +- .../apidoc/RestClient/getDeliveryCandles.js | 8 +- .../RestClient/getDeliveryClosedPositions.js | 8 +- .../apidoc/RestClient/getDeliveryContract.js | 8 +- .../getDeliveryInsuranceBalanceHistory.js | 8 +- .../getDeliveryLiquidationHistory.js | 8 +- .../apidoc/RestClient/getDeliveryOrder.js | 8 +- .../apidoc/RestClient/getDeliveryOrderBook.js | 8 +- .../apidoc/RestClient/getDeliveryOrders.js | 8 +- .../apidoc/RestClient/getDeliveryPosition.js | 8 +- .../apidoc/RestClient/getDeliveryPositions.js | 8 +- .../getDeliverySettlementHistory.js | 8 +- .../apidoc/RestClient/getDeliveryTickers.js | 8 +- .../apidoc/RestClient/getDeliveryTrades.js | 8 +- .../RestClient/getDeliveryTradingHistory.js | 8 +- .../RestClient/getDeliveryTriggeredOrder.js | 8 +- .../apidoc/RestClient/getDepositRecords.js | 8 +- .../RestClient/getDualInvestmentOrders.js | 8 +- .../RestClient/getDualInvestmentProducts.js | 8 +- .../apidoc/RestClient/getDualModePosition.js | 8 +- .../RestClient/getEstimatedInterestRate.js | 8 +- .../RestClient/getEstimatedInterestRates.js | 8 +- .../RestClient/getFlashSwapCurrencyPairs.js | 8 +- .../apidoc/RestClient/getFlashSwapOrder.js | 8 +- .../apidoc/RestClient/getFlashSwapOrders.js | 8 +- .../apidoc/RestClient/getFundingAccounts.js | 8 +- examples/apidoc/RestClient/getFundingRates.js | 8 +- .../apidoc/RestClient/getFuturesAccount.js | 8 +- .../RestClient/getFuturesAccountBook.js | 8 +- .../getFuturesAutoDeleveragingHistory.js | 8 +- .../apidoc/RestClient/getFuturesAutoOrders.js | 8 +- .../apidoc/RestClient/getFuturesCandles.js | 8 +- .../apidoc/RestClient/getFuturesContract.js | 8 +- .../apidoc/RestClient/getFuturesContracts.js | 8 +- .../getFuturesInsuranceBalanceHistory.js | 8 +- .../getFuturesLiquidationHistory.js | 8 +- examples/apidoc/RestClient/getFuturesOrder.js | 8 +- .../apidoc/RestClient/getFuturesOrderBook.js | 8 +- .../apidoc/RestClient/getFuturesOrders.js | 8 +- .../RestClient/getFuturesOrdersByTimeRange.js | 8 +- .../apidoc/RestClient/getFuturesPosition.js | 8 +- .../RestClient/getFuturesPositionHistory.js | 8 +- .../apidoc/RestClient/getFuturesPositions.js | 8 +- .../getFuturesPriceTriggeredOrder.js | 8 +- examples/apidoc/RestClient/getFuturesStats.js | 8 +- .../apidoc/RestClient/getFuturesTickers.js | 8 +- .../apidoc/RestClient/getFuturesTrades.js | 8 +- .../RestClient/getFuturesTradingHistory.js | 8 +- .../getFuturesTradingHistoryByTimeRange.js | 8 +- .../RestClient/getFuturesUserTradingFees.js | 8 +- examples/apidoc/RestClient/getGTDeduction.js | 8 +- .../apidoc/RestClient/getIndexConstituents.js | 8 +- .../apidoc/RestClient/getLendingCurrencies.js | 8 +- .../apidoc/RestClient/getLendingCurrency.js | 8 +- .../RestClient/getLendingInterestRecords.js | 8 +- .../RestClient/getLendingInterestStatus.js | 8 +- .../apidoc/RestClient/getLendingMarket.js | 8 +- .../apidoc/RestClient/getLendingMarkets.js | 8 +- .../apidoc/RestClient/getLendingOrders.js | 8 +- .../apidoc/RestClient/getLendingRecords.js | 8 +- .../RestClient/getLendingTotalInterest.js | 8 +- .../RestClient/getLiquidationHistory.js | 8 +- .../RestClient/getLoanCollateralRecords.js | 8 +- .../getLoanCollateralizationRatio.js | 8 +- .../apidoc/RestClient/getLoanMarginTiers.js | 8 +- examples/apidoc/RestClient/getLoanOrder.js | 8 +- examples/apidoc/RestClient/getLoanOrders.js | 8 +- .../RestClient/getLoanRepaymentHistory.js | 8 +- .../RestClient/getLoanSupportedCurrencies.js | 8 +- .../apidoc/RestClient/getLoanTotalAmount.js | 8 +- .../apidoc/RestClient/getMainSubTransfers.js | 8 +- .../apidoc/RestClient/getMarginAccounts.js | 8 +- .../RestClient/getMarginBalanceHistory.js | 8 +- .../RestClient/getMarginTransferableAmount.js | 8 +- .../RestClient/getMarginUNIInterestRecords.js | 8 +- .../RestClient/getMarginUNILoanRecords.js | 8 +- .../apidoc/RestClient/getMarginUNILoans.js | 8 +- .../RestClient/getMarginUNIMaxBorrow.js | 8 +- .../getMultiLoanAdjustmentRecords.js | 8 +- .../RestClient/getMultiLoanCurrencyQuota.js | 8 +- .../RestClient/getMultiLoanFixedRates.js | 8 +- .../apidoc/RestClient/getMultiLoanOrder.js | 8 +- .../apidoc/RestClient/getMultiLoanOrders.js | 8 +- .../apidoc/RestClient/getMultiLoanRatio.js | 8 +- .../RestClient/getMultiLoanRepayRecords.js | 8 +- .../getMultiLoanSupportedCurrencies.js | 8 +- .../apidoc/RestClient/getOptionsAccount.js | 8 +- .../RestClient/getOptionsAccountChange.js | 8 +- .../apidoc/RestClient/getOptionsCandles.js | 8 +- .../apidoc/RestClient/getOptionsContract.js | 8 +- .../getOptionsContractSettlement.js | 8 +- .../apidoc/RestClient/getOptionsContracts.js | 8 +- .../RestClient/getOptionsExpirationTimes.js | 8 +- .../RestClient/getOptionsLiquidation.js | 8 +- .../RestClient/getOptionsMMPSettings.js | 8 +- .../RestClient/getOptionsMySettlements.js | 8 +- examples/apidoc/RestClient/getOptionsOrder.js | 8 +- .../apidoc/RestClient/getOptionsOrderBook.js | 8 +- .../apidoc/RestClient/getOptionsOrders.js | 8 +- .../RestClient/getOptionsPersonalHistory.js | 8 +- .../RestClient/getOptionsPositionContract.js | 8 +- .../getOptionsPositionsUnderlying.js | 8 +- .../RestClient/getOptionsSettlementHistory.js | 8 +- .../apidoc/RestClient/getOptionsTickers.js | 8 +- .../apidoc/RestClient/getOptionsTrades.js | 8 +- .../RestClient/getOptionsUnderlyingCandles.js | 8 +- .../RestClient/getOptionsUnderlyingTicker.js | 8 +- .../RestClient/getOptionsUnderlyings.js | 8 +- .../RestClient/getPartnerCommissionHistory.js | 8 +- .../RestClient/getPartnerSubordinateList.js | 8 +- .../getPartnerTransactionHistory.js | 8 +- .../RestClient/getPremiumIndexKLines.js | 8 +- .../RestClient/getPriceTriggeredOrder.js | 8 +- examples/apidoc/RestClient/getPushOrders.js | 8 +- .../apidoc/RestClient/getRiskLimitTiers.js | 8 +- .../apidoc/RestClient/getSavedAddresses.js | 8 +- examples/apidoc/RestClient/getServerTime.js | 8 +- .../RestClient/getSmallBalanceHistory.js | 8 +- .../apidoc/RestClient/getSmallBalances.js | 8 +- .../apidoc/RestClient/getSpotAccountBook.js | 8 +- examples/apidoc/RestClient/getSpotAccounts.js | 8 +- .../apidoc/RestClient/getSpotAutoOrders.js | 8 +- .../apidoc/RestClient/getSpotBatchFeeRates.js | 8 +- examples/apidoc/RestClient/getSpotCandles.js | 8 +- .../apidoc/RestClient/getSpotCurrencies.js | 8 +- examples/apidoc/RestClient/getSpotCurrency.js | 8 +- .../apidoc/RestClient/getSpotCurrencyPair.js | 8 +- .../apidoc/RestClient/getSpotCurrencyPairs.js | 8 +- examples/apidoc/RestClient/getSpotFeeRates.js | 8 +- .../apidoc/RestClient/getSpotOpenOrders.js | 8 +- examples/apidoc/RestClient/getSpotOrder.js | 8 +- .../apidoc/RestClient/getSpotOrderBook.js | 8 +- examples/apidoc/RestClient/getSpotOrders.js | 8 +- examples/apidoc/RestClient/getSpotTicker.js | 8 +- examples/apidoc/RestClient/getSpotTrades.js | 8 +- .../RestClient/getSpotTradingHistory.js | 8 +- .../apidoc/RestClient/getStpGroupUsers.js | 8 +- examples/apidoc/RestClient/getStpGroups.js | 8 +- .../RestClient/getStructuredProductOrders.js | 8 +- .../RestClient/getStructuredProducts.js | 8 +- examples/apidoc/RestClient/getSubAccount.js | 8 +- .../apidoc/RestClient/getSubAccountApiKey.js | 8 +- .../apidoc/RestClient/getSubAccountApiKeys.js | 8 +- .../apidoc/RestClient/getSubAccountMode.js | 8 +- examples/apidoc/RestClient/getSubAccounts.js | 8 +- examples/apidoc/RestClient/getSubBalance.js | 8 +- .../RestClient/getSubCrossMarginBalances.js | 8 +- .../RestClient/getSubFuturesBalances.js | 8 +- .../apidoc/RestClient/getSubMarginBalances.js | 8 +- .../RestClient/getSystemMaintenanceStatus.js | 8 +- examples/apidoc/RestClient/getTradingFees.js | 8 +- .../RestClient/getUnifiedAccountInfo.js | 8 +- .../RestClient/getUnifiedAccountMode.js | 8 +- .../getUnifiedCurrencyDiscountTiers.js | 8 +- .../RestClient/getUnifiedEstimateRate.js | 8 +- .../RestClient/getUnifiedInterestRecords.js | 8 +- .../RestClient/getUnifiedLoanRecords.js | 8 +- examples/apidoc/RestClient/getUnifiedLoans.js | 8 +- .../apidoc/RestClient/getUnifiedMaxBorrow.js | 8 +- .../RestClient/getUnifiedMaxTransferable.js | 8 +- .../RestClient/getUnifiedRiskUnitDetails.js | 8 +- .../apidoc/RestClient/getUserRebateInfo.js | 8 +- .../apidoc/RestClient/getWithdrawalRecords.js | 8 +- .../apidoc/RestClient/getWithdrawalStatus.js | 8 +- examples/apidoc/RestClient/lockSubAccount.js | 8 +- .../RestClient/portfolioMarginCalculate.js | 8 +- examples/apidoc/RestClient/repayMultiLoan.js | 8 +- .../RestClient/resetOptionsMMPSettings.js | 8 +- .../setFuturesOrderCancelCountdown.js | 8 +- examples/apidoc/RestClient/setGTDeduction.js | 8 +- .../RestClient/setOptionsMMPSettings.js | 8 +- .../RestClient/setUnifiedAccountMode.js | 8 +- .../RestClient/submitCrossMarginBorrowLoan.js | 8 +- .../RestClient/submitCrossMarginRepayment.js | 8 +- .../apidoc/RestClient/submitDeliveryOrder.js | 8 +- .../submitDeliveryTriggeredOrder.js | 8 +- .../RestClient/submitDualInvestmentOrder.js | 8 +- examples/apidoc/RestClient/submitEth2Swap.js | 8 +- .../apidoc/RestClient/submitFlashSwapOrder.js | 8 +- .../RestClient/submitFlashSwapOrderPreview.js | 8 +- .../RestClient/submitFuturesBatchOrders.js | 8 +- .../apidoc/RestClient/submitFuturesOrder.js | 8 +- .../submitFuturesPriceTriggeredOrder.js | 8 +- .../RestClient/submitLendOrRedeemOrder.js | 8 +- examples/apidoc/RestClient/submitLoanOrder.js | 8 +- examples/apidoc/RestClient/submitLoanRepay.js | 8 +- .../RestClient/submitMainSubTransfer.js | 8 +- .../submitMarginUNIBorrowOrRepay.js | 8 +- .../apidoc/RestClient/submitMultiLoanOrder.js | 8 +- .../submitOptionsCountdownCancel.js | 21 + .../apidoc/RestClient/submitOptionsOrder.js | 8 +- .../RestClient/submitSpotBatchOrders.js | 8 +- .../submitSpotClosePosCrossDisabled.js | 8 +- .../RestClient/submitSpotCountdownOrders.js | 8 +- .../submitSpotMainAccountTransfer.js | 8 +- examples/apidoc/RestClient/submitSpotOrder.js | 8 +- .../RestClient/submitSpotPriceTriggerOrder.js | 8 +- .../submitStructuredProductOrder.js | 8 +- .../RestClient/submitSubToSubTransfer.js | 8 +- examples/apidoc/RestClient/submitTransfer.js | 8 +- .../RestClient/submitUnifiedBorrowOrRepay.js | 8 +- .../apidoc/RestClient/submitWithdrawal.js | 8 +- .../apidoc/RestClient/unlockSubAccount.js | 8 +- .../RestClient/updateAutoRepaymentSetting.js | 8 +- .../RestClient/updateDeliveryLeverage.js | 8 +- .../apidoc/RestClient/updateDeliveryMargin.js | 8 +- .../RestClient/updateDeliveryRiskLimit.js | 8 +- .../updateDualModePositionLeverage.js | 8 +- .../updateDualModePositionMargin.js | 8 +- .../updateDualModePositionRiskLimit.js | 8 +- .../RestClient/updateFuturesDualMode.js | 8 +- .../RestClient/updateFuturesLeverage.js | 8 +- .../apidoc/RestClient/updateFuturesMargin.js | 8 +- .../apidoc/RestClient/updateFuturesOrder.js | 8 +- .../RestClient/updateInterestReinvestment.js | 8 +- .../apidoc/RestClient/updateLendingOrder.js | 8 +- .../apidoc/RestClient/updateLoanCollateral.js | 8 +- examples/apidoc/RestClient/updateMultiLoan.js | 8 +- .../RestClient/updatePositionRiskLimit.js | 8 +- examples/apidoc/RestClient/updateSpotOrder.js | 8 +- .../RestClient/updateSubAccountApiKey.js | 8 +- package-lock.json | 4 +- package.json | 2 +- 274 files changed, 1640 insertions(+), 1079 deletions(-) create mode 100644 examples/apidoc/RestClient/submitOptionsCountdownCancel.js diff --git a/README.md b/README.md index 2198bdd..1ff1a32 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Updated & performant JavaScript & Node.js SDK for the Gate.io REST APIs and WebS - Issues? Check the [issues tab](https://github.com/tiagosiebler/gateio-api/issues). - Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram. +- Follow our announcement channel for real-time updates on [X/Twitter](https://x.com/QuantSDKs) diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index 97b0bd2..26353b3 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -48,272 +48,273 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| [getSystemMaintenanceStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L335) | | GET | `/v1/public/system_info` | -| [submitWithdrawal()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L352) | :closed_lock_with_key: | POST | `/withdrawals` | -| [submitSpotMainAccountTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L366) | :closed_lock_with_key: | POST | `/withdrawals/push` | -| [cancelWithdrawal()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L382) | :closed_lock_with_key: | DELETE | `/withdrawals/{withdrawal_id}` | -| [getCurrencyChains()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L399) | | GET | `/wallet/currency_chains` | -| [createDepositAddress()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L409) | :closed_lock_with_key: | GET | `/wallet/deposit_address` | -| [getWithdrawalRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L423) | :closed_lock_with_key: | GET | `/wallet/withdrawals` | -| [getDepositRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L437) | :closed_lock_with_key: | GET | `/wallet/deposits` | -| [submitTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L456) | :closed_lock_with_key: | POST | `/wallet/transfers` | -| [submitMainSubTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L468) | :closed_lock_with_key: | POST | `/wallet/sub_account_transfers` | -| [getMainSubTransfers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L482) | :closed_lock_with_key: | GET | `/wallet/sub_account_transfers` | -| [submitSubToSubTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L496) | :closed_lock_with_key: | POST | `/wallet/sub_account_to_sub_account` | -| [getWithdrawalStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L508) | :closed_lock_with_key: | GET | `/wallet/withdraw_status` | -| [getSubBalance()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L523) | :closed_lock_with_key: | GET | `/wallet/sub_account_balances` | -| [getSubMarginBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L538) | :closed_lock_with_key: | GET | `/wallet/sub_account_margin_balances` | -| [getSubFuturesBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L550) | :closed_lock_with_key: | GET | `/wallet/sub_account_futures_balances` | -| [getSubCrossMarginBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L563) | :closed_lock_with_key: | GET | `/wallet/sub_account_cross_margin_balances` | -| [getSavedAddresses()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L575) | :closed_lock_with_key: | GET | `/wallet/saved_address` | -| [getTradingFees()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L585) | :closed_lock_with_key: | GET | `/wallet/fee` | -| [getBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L606) | :closed_lock_with_key: | GET | `/wallet/total_balance` | -| [getSmallBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L615) | :closed_lock_with_key: | GET | `/wallet/small_balance` | -| [convertSmallBalance()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L625) | :closed_lock_with_key: | POST | `/wallet/small_balance` | -| [getSmallBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L638) | :closed_lock_with_key: | GET | `/wallet/small_balance_history` | -| [getPushOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L650) | :closed_lock_with_key: | GET | `/wallet/push` | -| [createSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L665) | :closed_lock_with_key: | POST | `/sub_accounts` | -| [getSubAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L676) | :closed_lock_with_key: | GET | `/sub_accounts` | -| [getSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L686) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}` | -| [createSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L696) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/keys` | -| [getSubAccountApiKeys()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L708) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys` | -| [updateSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L720) | :closed_lock_with_key: | PUT | `/sub_accounts/{user_id}/keys/{key}` | -| [deleteSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L731) | :closed_lock_with_key: | DELETE | `/sub_accounts/{user_id}/keys/{key}` | -| [getSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L746) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys/{key}` | -| [lockSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L761) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/lock` | -| [unlockSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L771) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/unlock` | -| [getSubAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L785) | :closed_lock_with_key: | GET | `/sub_accounts/unified_mode` | -| [getUnifiedAccountInfo()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L802) | :closed_lock_with_key: | GET | `/unified/accounts` | -| [getUnifiedMaxBorrow()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L817) | :closed_lock_with_key: | GET | `/unified/borrowable` | -| [getUnifiedMaxTransferable()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L833) | :closed_lock_with_key: | GET | `/unified/transferable` | -| [submitUnifiedBorrowOrRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L852) | :closed_lock_with_key: | POST | `/unified/loans` | -| [getUnifiedLoans()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L864) | :closed_lock_with_key: | GET | `/unified/loans` | -| [getUnifiedLoanRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L874) | :closed_lock_with_key: | GET | `/unified/loan_records` | -| [getUnifiedInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L886) | :closed_lock_with_key: | GET | `/unified/interest_records` | -| [getUnifiedRiskUnitDetails()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L897) | :closed_lock_with_key: | GET | `/unified/risk_units` | -| [setUnifiedAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L909) | :closed_lock_with_key: | PUT | `/unified/unified_mode` | -| [getUnifiedAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L918) | :closed_lock_with_key: | GET | `/unified/unified_mode` | -| [getUnifiedEstimateRate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L930) | :closed_lock_with_key: | GET | `/unified/estimate_rate` | -| [getUnifiedCurrencyDiscountTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L941) | | GET | `/unified/currency_discount_tiers` | -| [getLoanMarginTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L953) | | GET | `/unified/loan_margin_tiers` | -| [portfolioMarginCalculate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L970) | | POST | `/unified/portfolio_calculator` | -| [getSpotCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L992) | | GET | `/spot/currencies` | -| [getSpotCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1002) | | GET | `/spot/currencies/{currency}` | -| [getSpotCurrencyPairs()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1011) | | GET | `/spot/currency_pairs` | -| [getSpotCurrencyPair()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1021) | | GET | `/spot/currency_pairs/{currency_pair}` | -| [getSpotTicker()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1035) | | GET | `/spot/tickers` | -| [getSpotOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1050) | | GET | `/spot/order_book` | -| [getSpotTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1063) | | GET | `/spot/trades` | -| [getSpotCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1075) | | GET | `/spot/candlesticks` | -| [getSpotFeeRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1087) | :closed_lock_with_key: | GET | `/spot/fee` | -| [getSpotBatchFeeRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1096) | :closed_lock_with_key: | GET | `/spot/batch_fee` | -| [getSpotAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1108) | :closed_lock_with_key: | GET | `/spot/accounts` | -| [getSpotAccountBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1120) | :closed_lock_with_key: | GET | `/spot/account_book` | -| [submitSpotBatchOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1137) | :closed_lock_with_key: | POST | `/spot/batch_orders` | -| [getSpotOpenOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1153) | :closed_lock_with_key: | GET | `/spot/open_orders` | -| [submitSpotClosePosCrossDisabled()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1169) | :closed_lock_with_key: | POST | `/spot/cross_liquidate_orders` | -| [submitSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1183) | :closed_lock_with_key: | POST | `/spot/orders` | -| [getSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1195) | :closed_lock_with_key: | GET | `/spot/orders` | -| [cancelSpotOpenOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1208) | :closed_lock_with_key: | DELETE | `/spot/orders` | -| [batchCancelSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1225) | :closed_lock_with_key: | POST | `/spot/cancel_batch_orders` | -| [getSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1239) | :closed_lock_with_key: | GET | `/spot/orders/{order_id}` | -| [updateSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1254) | :closed_lock_with_key: | PATCH | `/spot/orders/{order_id}` | -| [cancelSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1276) | :closed_lock_with_key: | DELETE | `/spot/orders/{order_id}` | -| [getSpotTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1293) | :closed_lock_with_key: | GET | `/spot/my_trades` | -| [getServerTime()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1306) | | GET | `/spot/time` | -| [submitSpotCountdownOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1322) | :closed_lock_with_key: | POST | `/spot/countdown_cancel_all` | -| [batchUpdateSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1339) | :closed_lock_with_key: | POST | `/spot/amend_batch_orders` | -| [submitSpotPriceTriggerOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1353) | :closed_lock_with_key: | POST | `/spot/price_orders` | -| [getSpotAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1365) | :closed_lock_with_key: | GET | `/spot/price_orders` | -| [cancelAllOpenSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1377) | :closed_lock_with_key: | DELETE | `/spot/price_orders` | -| [getPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1390) | :closed_lock_with_key: | GET | `/spot/price_orders/{order_id}` | -| [cancelSpotTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1402) | :closed_lock_with_key: | DELETE | `/spot/price_orders/{order_id}` | -| [getMarginAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1419) | :closed_lock_with_key: | GET | `/margin/accounts` | -| [getMarginBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1433) | :closed_lock_with_key: | GET | `/margin/account_book` | -| [getFundingAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1451) | :closed_lock_with_key: | GET | `/margin/funding_accounts` | -| [updateAutoRepaymentSetting()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1469) | :closed_lock_with_key: | POST | `/margin/auto_repay` | -| [getAutoRepaymentSetting()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1480) | :closed_lock_with_key: | GET | `/margin/auto_repay` | -| [getMarginTransferableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1494) | :closed_lock_with_key: | GET | `/margin/transferable` | -| [getCrossMarginCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1510) | | GET | `/margin/cross/currencies` | -| [getCrossMarginCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1520) | | GET | `/margin/cross/currencies/{currency}` | -| [getCrossMarginAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1531) | :closed_lock_with_key: | GET | `/margin/cross/accounts` | -| [getCrossMarginAccountHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1543) | :closed_lock_with_key: | GET | `/margin/cross/account_book` | -| [submitCrossMarginBorrowLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1557) | :closed_lock_with_key: | POST | `/margin/cross/loans` | -| [getCrossMarginBorrowHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1571) | :closed_lock_with_key: | GET | `/margin/cross/loans` | -| [getCrossMarginBorrowLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1583) | :closed_lock_with_key: | GET | `/margin/cross/loans/{loan_id}` | -| [submitCrossMarginRepayment()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1596) | :closed_lock_with_key: | POST | `/margin/cross/repayments` | -| [getCrossMarginRepayments()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1611) | :closed_lock_with_key: | GET | `/margin/cross/repayments` | -| [getCrossMarginInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1623) | :closed_lock_with_key: | GET | `/margin/cross/interest_records` | -| [getCrossMarginTransferableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1638) | :closed_lock_with_key: | GET | `/margin/cross/transferable` | -| [getEstimatedInterestRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1653) | :closed_lock_with_key: | GET | `/margin/cross/estimate_rate` | -| [getCrossMarginBorrowableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1666) | :closed_lock_with_key: | GET | `/margin/cross/borrowable` | -| [getLendingMarkets()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1682) | | GET | `/margin/uni/currency_pairs` | -| [getLendingMarket()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1697) | | GET | `/margin/uni/currency_pairs/{currency_pair}` | -| [getEstimatedInterestRate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1709) | :closed_lock_with_key: | GET | `/margin/uni/estimate_rate` | -| [submitMarginUNIBorrowOrRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1719) | :closed_lock_with_key: | POST | `/margin/uni/loans` | -| [getMarginUNILoans()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1735) | :closed_lock_with_key: | GET | `/margin/uni/loans` | -| [getMarginUNILoanRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1745) | :closed_lock_with_key: | GET | `/margin/uni/loan_records` | -| [getMarginUNIInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1757) | :closed_lock_with_key: | GET | `/margin/uni/interest_records` | -| [getMarginUNIMaxBorrow()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1769) | :closed_lock_with_key: | GET | `/margin/uni/borrowable` | -| [getFlashSwapCurrencyPairs()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1785) | | GET | `/flash_swap/currency_pairs` | -| [submitFlashSwapOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1801) | :closed_lock_with_key: | POST | `/flash_swap/orders` | -| [getFlashSwapOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1813) | :closed_lock_with_key: | GET | `/flash_swap/orders` | -| [getFlashSwapOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1825) | :closed_lock_with_key: | GET | `/flash_swap/orders/{order_id}` | -| [submitFlashSwapOrderPreview()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1835) | :closed_lock_with_key: | POST | `/flash_swap/orders/preview` | -| [getFuturesContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1852) | | GET | `/futures/{settle}/contracts` | -| [getFuturesContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1867) | | GET | `/futures/{settle}/contracts/{contract}` | -| [getFuturesOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1882) | | GET | `/futures/{settle}/order_book` | -| [getFuturesTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1895) | | GET | `/futures/{settle}/trades` | -| [getFuturesCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1910) | | GET | `/futures/{settle}/candlesticks` | -| [getPremiumIndexKLines()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1923) | | GET | `/futures/{settle}/premium_index` | -| [getFuturesTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1936) | | GET | `/futures/{settle}/tickers` | -| [getFundingRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1953) | | GET | `/futures/{settle}/funding_rate` | -| [getFuturesInsuranceBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1976) | | GET | `/futures/{settle}/insurance` | -| [getFuturesStats()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1995) | | GET | `/futures/{settle}/contract_stats` | -| [getIndexConstituents()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2006) | | GET | `/futures/{settle}/index_constituents/{index}` | -| [getLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2023) | | GET | `/futures/{settle}/liq_orders` | -| [getRiskLimitTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2040) | | GET | `/futures/{settle}/risk_limit_tiers` | -| [getFuturesAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2051) | :closed_lock_with_key: | GET | `/futures/{settle}/accounts` | -| [getFuturesAccountBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2065) | :closed_lock_with_key: | GET | `/futures/{settle}/account_book` | -| [getFuturesPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2078) | :closed_lock_with_key: | GET | `/futures/{settle}/positions` | -| [getFuturesPosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2090) | :closed_lock_with_key: | GET | `/futures/{settle}/positions/{contract}` | -| [updateFuturesMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2105) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/margin` | -| [updateFuturesLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2122) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/leverage` | -| [updatePositionRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2141) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/risk_limit` | -| [updateFuturesDualMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2161) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_mode` | -| [getDualModePosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2177) | :closed_lock_with_key: | GET | `/futures/{settle}/dual_comp/positions/{contract}` | -| [updateDualModePositionMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2192) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/margin` | -| [updateDualModePositionLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2208) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/leverage` | -| [updateDualModePositionRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2224) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/risk_limit` | -| [submitFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2249) | :closed_lock_with_key: | POST | `/futures/{settle}/orders` | -| [getFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2263) | :closed_lock_with_key: | GET | `/futures/{settle}/orders` | -| [cancelAllFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2276) | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders` | -| [getFuturesOrdersByTimeRange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2291) | :closed_lock_with_key: | GET | `/futures/{settle}/orders_timerange` | -| [submitFuturesBatchOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2312) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_orders` | -| [getFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2331) | :closed_lock_with_key: | GET | `/futures/{settle}/orders/{order_id}` | -| [cancelFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2346) | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders/{order_id}` | -| [updateFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2361) | :closed_lock_with_key: | PUT | `/futures/{settle}/orders/{order_id}` | -| [getFuturesTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2376) | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades` | -| [getFuturesTradingHistoryByTimeRange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2391) | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades_timerange` | -| [getFuturesPositionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2404) | :closed_lock_with_key: | GET | `/futures/{settle}/position_close` | -| [getFuturesLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2417) | :closed_lock_with_key: | GET | `/futures/{settle}/liquidates` | -| [getFuturesAutoDeleveragingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2430) | :closed_lock_with_key: | GET | `/futures/{settle}/auto_deleverages` | -| [setFuturesOrderCancelCountdown()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2447) | :closed_lock_with_key: | POST | `/futures/{settle}/countdown_cancel_all` | -| [getFuturesUserTradingFees()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2464) | :closed_lock_with_key: | GET | `/futures/{settle}/fee` | -| [batchCancelFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2480) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_cancel_orders` | -| [batchUpdateFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2499) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_amend_orders` | -| [submitFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2514) | :closed_lock_with_key: | POST | `/futures/{settle}/price_orders` | -| [getFuturesAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2527) | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders` | -| [cancelAllOpenFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2540) | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders` | -| [getFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2556) | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders/{order_id}` | -| [cancelFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2571) | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders/{order_id}` | -| [getAllDeliveryContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2591) | | GET | `/delivery/{settle}/contracts` | -| [getDeliveryContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2603) | | GET | `/delivery/{settle}/contracts/{contract}` | -| [getDeliveryOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2618) | | GET | `/delivery/{settle}/order_book` | -| [getDeliveryTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2631) | | GET | `/delivery/{settle}/trades` | -| [getDeliveryCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2645) | | GET | `/delivery/{settle}/candlesticks` | -| [getDeliveryTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2656) | | GET | `/delivery/{settle}/tickers` | -| [getDeliveryInsuranceBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2673) | | GET | `/delivery/{settle}/insurance` | -| [getDeliveryAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2692) | :closed_lock_with_key: | GET | `/delivery/{settle}/accounts` | -| [getDeliveryBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2703) | :closed_lock_with_key: | GET | `/delivery/{settle}/account_book` | -| [getDeliveryPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2714) | :closed_lock_with_key: | GET | `/delivery/{settle}/positions` | -| [getDeliveryPosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2724) | :closed_lock_with_key: | GET | `/delivery/{settle}/positions/{contract}` | -| [updateDeliveryMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2739) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/margin` | -| [updateDeliveryLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2757) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/leverage` | -| [updateDeliveryRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2775) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/risk_limit` | -| [submitDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2795) | :closed_lock_with_key: | POST | `/delivery/{settle}/orders` | -| [getDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2810) | :closed_lock_with_key: | GET | `/delivery/{settle}/orders` | -| [cancelAllDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2822) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders` | -| [getDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2841) | :closed_lock_with_key: | GET | `/delivery/{settle}/orders/{order_id}` | -| [cancelDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2856) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders/{order_id}` | -| [getDeliveryTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2871) | :closed_lock_with_key: | GET | `/delivery/{settle}/my_trades` | -| [getDeliveryClosedPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2884) | :closed_lock_with_key: | GET | `/delivery/{settle}/position_close` | -| [getDeliveryLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2897) | :closed_lock_with_key: | GET | `/delivery/{settle}/liquidates` | -| [getDeliverySettlementHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2910) | :closed_lock_with_key: | GET | `/delivery/{settle}/settlements` | -| [submitDeliveryTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2923) | :closed_lock_with_key: | POST | `/delivery/{settle}/price_orders` | -| [getDeliveryAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2938) | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders` | -| [cancelAllOpenDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2951) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders` | -| [getDeliveryTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2967) | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders/{order_id}` | -| [cancelTriggeredDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2982) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders/{order_id}` | -| [getOptionsUnderlyings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3001) | | GET | `/options/underlyings` | -| [getOptionsExpirationTimes()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3011) | | GET | `/options/expirations` | -| [getOptionsContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3021) | | GET | `/options/contracts` | -| [getOptionsContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3034) | | GET | `/options/contracts/{contract}` | -| [getOptionsSettlementHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3044) | | GET | `/options/settlements` | -| [getOptionsContractSettlement()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3056) | | GET | `/options/settlements/{contract}` | -| [getOptionsMySettlements()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3071) | :closed_lock_with_key: | GET | `/options/my_settlements` | -| [getOptionsOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3085) | | GET | `/options/order_book` | -| [getOptionsTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3097) | | GET | `/options/tickers` | -| [getOptionsUnderlyingTicker()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3111) | | GET | `/options/underlying/tickers/{underlying}` | -| [getOptionsCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3125) | | GET | `/options/candlesticks` | -| [getOptionsUnderlyingCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3135) | | GET | `/options/underlying/candlesticks` | -| [getOptionsTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3147) | | GET | `/options/trades` | -| [getOptionsAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3156) | :closed_lock_with_key: | GET | `/options/accounts` | -| [getOptionsAccountChange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3166) | :closed_lock_with_key: | GET | `/options/account_book` | -| [getOptionsPositionsUnderlying()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3178) | :closed_lock_with_key: | GET | `/options/positions` | -| [getOptionsPositionContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3190) | :closed_lock_with_key: | GET | `/options/positions/{contract}` | -| [getOptionsLiquidation()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3202) | :closed_lock_with_key: | GET | `/options/position_close` | -| [submitOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3215) | :closed_lock_with_key: | POST | `/options/orders` | -| [getOptionsOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3227) | :closed_lock_with_key: | GET | `/options/orders` | -| [cancelAllOpenOptionsOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3239) | :closed_lock_with_key: | DELETE | `/options/orders` | -| [getOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3253) | :closed_lock_with_key: | GET | `/options/orders/{order_id}` | -| [cancelOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3265) | :closed_lock_with_key: | DELETE | `/options/orders/{order_id}` | -| [getOptionsPersonalHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3277) | :closed_lock_with_key: | GET | `/options/my_trades` | -| [setOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3289) | :closed_lock_with_key: | POST | `/options/mmp` | -| [getOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3301) | :closed_lock_with_key: | GET | `/options/mmp` | -| [resetOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3313) | :closed_lock_with_key: | POST | `/options/mmp/reset` | -| [getLendingCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3329) | | GET | `/earn/uni/currencies` | -| [getLendingCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3339) | | GET | `/earn/uni/currencies/{currency}` | -| [submitLendOrRedeemOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3349) | :closed_lock_with_key: | POST | `/earn/uni/lends` | -| [getLendingOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3359) | :closed_lock_with_key: | GET | `/earn/uni/lends` | -| [updateLendingOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3371) | :closed_lock_with_key: | PATCH | `/earn/uni/lends` | -| [getLendingRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3384) | :closed_lock_with_key: | GET | `/earn/uni/lend_records` | -| [getLendingTotalInterest()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3397) | :closed_lock_with_key: | GET | `/earn/uni/interests/{currency}` | -| [getLendingInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3410) | :closed_lock_with_key: | GET | `/earn/uni/interest_records` | -| [updateInterestReinvestment()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3422) | :closed_lock_with_key: | PUT | `/earn/uni/interest_reinvest` | -| [getLendingInterestStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3438) | :closed_lock_with_key: | GET | `/earn/uni/interest_status/{currency}` | -| [submitLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3456) | :closed_lock_with_key: | POST | `/loan/collateral/orders` | -| [getLoanOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3466) | :closed_lock_with_key: | GET | `/loan/collateral/orders` | -| [getLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3475) | :closed_lock_with_key: | GET | `/loan/collateral/orders/{order_id}` | -| [submitLoanRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3488) | :closed_lock_with_key: | POST | `/loan/collateral/repay` | -| [getLoanRepaymentHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3505) | :closed_lock_with_key: | GET | `/loan/collateral/repay_records` | -| [updateLoanCollateral()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3517) | :closed_lock_with_key: | POST | `/loan/collateral/collaterals` | -| [getLoanCollateralRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3527) | :closed_lock_with_key: | GET | `/loan/collateral/collaterals` | -| [getLoanTotalAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3541) | :closed_lock_with_key: | GET | `/loan/collateral/total_amount` | -| [getLoanCollateralizationRatio()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3554) | :closed_lock_with_key: | GET | `/loan/collateral/ltv` | -| [getLoanSupportedCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3570) | | GET | `/loan/collateral/currencies` | -| [submitMultiLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3590) | :closed_lock_with_key: | POST | `/loan/multi_collateral/orders` | -| [getMultiLoanOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3602) | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders` | -| [getMultiLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3614) | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders/{order_id}` | -| [repayMultiLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3624) | :closed_lock_with_key: | POST | `/loan/multi_collateral/repay` | -| [getMultiLoanRepayRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3634) | :closed_lock_with_key: | GET | `/loan/multi_collateral/repay` | -| [updateMultiLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3646) | :closed_lock_with_key: | POST | `/loan/multi_collateral/mortgage` | -| [getMultiLoanAdjustmentRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3658) | :closed_lock_with_key: | GET | `/loan/multi_collateral/mortgage` | -| [getMultiLoanCurrencyQuota()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3670) | :closed_lock_with_key: | GET | `/loan/multi_collateral/currency_quota` | -| [getMultiLoanSupportedCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3682) | | GET | `/loan/multi_collateral/currencies` | -| [getMultiLoanRatio()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3691) | | GET | `/loan/multi_collateral/ltv` | -| [getMultiLoanFixedRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3700) | | GET | `/loan/multi_collateral/fixed_rate` | -| [submitEth2Swap()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3715) | :closed_lock_with_key: | POST | `/earn/staking/eth2/swap` | -| [getDualInvestmentProducts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3724) | | GET | `/earn/dual/investment_plan` | -| [getDualInvestmentOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3733) | :closed_lock_with_key: | GET | `/earn/dual/orders` | -| [submitDualInvestmentOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3742) | :closed_lock_with_key: | POST | `/earn/dual/orders` | -| [getStructuredProducts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3755) | | GET | `/earn/structured/products` | -| [getStructuredProductOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3767) | :closed_lock_with_key: | GET | `/earn/structured/orders` | -| [submitStructuredProductOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3778) | :closed_lock_with_key: | POST | `/earn/structured/orders` | -| [getAccountDetail()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3795) | :closed_lock_with_key: | GET | `/account/detail` | -| [getAccountRateLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3804) | :closed_lock_with_key: | GET | `/account/rate_limit` | -| [createStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3814) | :closed_lock_with_key: | POST | `/account/stp_groups` | -| [getStpGroups()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3824) | :closed_lock_with_key: | GET | `/account/stp_groups` | -| [getStpGroupUsers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3834) | :closed_lock_with_key: | GET | `/account/stp_groups/{stp_id}/users` | -| [addUsersToStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3844) | :closed_lock_with_key: | POST | `/account/stp_groups/{stp_id}/users` | -| [deleteUserFromStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3860) | :closed_lock_with_key: | DELETE | `/account/stp_groups/{stp_id}/users` | -| [setGTDeduction()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3878) | :closed_lock_with_key: | POST | `/account/debit_fee` | -| [getGTDeduction()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3889) | :closed_lock_with_key: | GET | `/account/debit_fee` | -| [getAgencyTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3905) | :closed_lock_with_key: | GET | `/rebate/agency/transaction_history` | -| [getAgencyCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3918) | :closed_lock_with_key: | GET | `/rebate/agency/commission_history` | -| [getPartnerTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3932) | :closed_lock_with_key: | GET | `/rebate/partner/transaction_history` | -| [getPartnerCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3947) | :closed_lock_with_key: | GET | `/rebate/partner/commission_history` | -| [getPartnerSubordinateList()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3970) | :closed_lock_with_key: | GET | `/rebate/partner/sub_list` | -| [getBrokerCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3984) | :closed_lock_with_key: | GET | `/rebate/broker/commission_history` | -| [getBrokerTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3997) | :closed_lock_with_key: | GET | `/rebate/broker/transaction_history` | -| [getUserRebateInfo()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4006) | :closed_lock_with_key: | GET | `/rebate/user/info` | \ No newline at end of file +| [getSystemMaintenanceStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L336) | | GET | `/v1/public/system_info` | +| [submitWithdrawal()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L353) | :closed_lock_with_key: | POST | `/withdrawals` | +| [submitSpotMainAccountTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L367) | :closed_lock_with_key: | POST | `/withdrawals/push` | +| [cancelWithdrawal()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L383) | :closed_lock_with_key: | DELETE | `/withdrawals/{withdrawal_id}` | +| [getCurrencyChains()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L400) | | GET | `/wallet/currency_chains` | +| [createDepositAddress()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L410) | :closed_lock_with_key: | GET | `/wallet/deposit_address` | +| [getWithdrawalRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L424) | :closed_lock_with_key: | GET | `/wallet/withdrawals` | +| [getDepositRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L438) | :closed_lock_with_key: | GET | `/wallet/deposits` | +| [submitTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L457) | :closed_lock_with_key: | POST | `/wallet/transfers` | +| [submitMainSubTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L469) | :closed_lock_with_key: | POST | `/wallet/sub_account_transfers` | +| [getMainSubTransfers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L483) | :closed_lock_with_key: | GET | `/wallet/sub_account_transfers` | +| [submitSubToSubTransfer()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L497) | :closed_lock_with_key: | POST | `/wallet/sub_account_to_sub_account` | +| [getWithdrawalStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L509) | :closed_lock_with_key: | GET | `/wallet/withdraw_status` | +| [getSubBalance()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L524) | :closed_lock_with_key: | GET | `/wallet/sub_account_balances` | +| [getSubMarginBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L539) | :closed_lock_with_key: | GET | `/wallet/sub_account_margin_balances` | +| [getSubFuturesBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L551) | :closed_lock_with_key: | GET | `/wallet/sub_account_futures_balances` | +| [getSubCrossMarginBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L564) | :closed_lock_with_key: | GET | `/wallet/sub_account_cross_margin_balances` | +| [getSavedAddresses()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L576) | :closed_lock_with_key: | GET | `/wallet/saved_address` | +| [getTradingFees()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L586) | :closed_lock_with_key: | GET | `/wallet/fee` | +| [getBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L607) | :closed_lock_with_key: | GET | `/wallet/total_balance` | +| [getSmallBalances()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L616) | :closed_lock_with_key: | GET | `/wallet/small_balance` | +| [convertSmallBalance()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L626) | :closed_lock_with_key: | POST | `/wallet/small_balance` | +| [getSmallBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L639) | :closed_lock_with_key: | GET | `/wallet/small_balance_history` | +| [getPushOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L651) | :closed_lock_with_key: | GET | `/wallet/push` | +| [createSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L666) | :closed_lock_with_key: | POST | `/sub_accounts` | +| [getSubAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L677) | :closed_lock_with_key: | GET | `/sub_accounts` | +| [getSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L687) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}` | +| [createSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L697) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/keys` | +| [getSubAccountApiKeys()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L709) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys` | +| [updateSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L721) | :closed_lock_with_key: | PUT | `/sub_accounts/{user_id}/keys/{key}` | +| [deleteSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L732) | :closed_lock_with_key: | DELETE | `/sub_accounts/{user_id}/keys/{key}` | +| [getSubAccountApiKey()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L747) | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys/{key}` | +| [lockSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L762) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/lock` | +| [unlockSubAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L772) | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/unlock` | +| [getSubAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L786) | :closed_lock_with_key: | GET | `/sub_accounts/unified_mode` | +| [getUnifiedAccountInfo()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L803) | :closed_lock_with_key: | GET | `/unified/accounts` | +| [getUnifiedMaxBorrow()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L818) | :closed_lock_with_key: | GET | `/unified/borrowable` | +| [getUnifiedMaxTransferable()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L834) | :closed_lock_with_key: | GET | `/unified/transferable` | +| [submitUnifiedBorrowOrRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L853) | :closed_lock_with_key: | POST | `/unified/loans` | +| [getUnifiedLoans()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L865) | :closed_lock_with_key: | GET | `/unified/loans` | +| [getUnifiedLoanRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L875) | :closed_lock_with_key: | GET | `/unified/loan_records` | +| [getUnifiedInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L887) | :closed_lock_with_key: | GET | `/unified/interest_records` | +| [getUnifiedRiskUnitDetails()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L898) | :closed_lock_with_key: | GET | `/unified/risk_units` | +| [setUnifiedAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L910) | :closed_lock_with_key: | PUT | `/unified/unified_mode` | +| [getUnifiedAccountMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L919) | :closed_lock_with_key: | GET | `/unified/unified_mode` | +| [getUnifiedEstimateRate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L931) | :closed_lock_with_key: | GET | `/unified/estimate_rate` | +| [getUnifiedCurrencyDiscountTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L942) | | GET | `/unified/currency_discount_tiers` | +| [getLoanMarginTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L954) | | GET | `/unified/loan_margin_tiers` | +| [portfolioMarginCalculate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L971) | | POST | `/unified/portfolio_calculator` | +| [getSpotCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L993) | | GET | `/spot/currencies` | +| [getSpotCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1003) | | GET | `/spot/currencies/{currency}` | +| [getSpotCurrencyPairs()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1012) | | GET | `/spot/currency_pairs` | +| [getSpotCurrencyPair()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1022) | | GET | `/spot/currency_pairs/{currency_pair}` | +| [getSpotTicker()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1036) | | GET | `/spot/tickers` | +| [getSpotOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1051) | | GET | `/spot/order_book` | +| [getSpotTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1064) | | GET | `/spot/trades` | +| [getSpotCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1076) | | GET | `/spot/candlesticks` | +| [getSpotFeeRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1088) | :closed_lock_with_key: | GET | `/spot/fee` | +| [getSpotBatchFeeRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1097) | :closed_lock_with_key: | GET | `/spot/batch_fee` | +| [getSpotAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1109) | :closed_lock_with_key: | GET | `/spot/accounts` | +| [getSpotAccountBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1121) | :closed_lock_with_key: | GET | `/spot/account_book` | +| [submitSpotBatchOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1138) | :closed_lock_with_key: | POST | `/spot/batch_orders` | +| [getSpotOpenOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1154) | :closed_lock_with_key: | GET | `/spot/open_orders` | +| [submitSpotClosePosCrossDisabled()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1170) | :closed_lock_with_key: | POST | `/spot/cross_liquidate_orders` | +| [submitSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1184) | :closed_lock_with_key: | POST | `/spot/orders` | +| [getSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1196) | :closed_lock_with_key: | GET | `/spot/orders` | +| [cancelSpotOpenOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1209) | :closed_lock_with_key: | DELETE | `/spot/orders` | +| [batchCancelSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1226) | :closed_lock_with_key: | POST | `/spot/cancel_batch_orders` | +| [getSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1240) | :closed_lock_with_key: | GET | `/spot/orders/{order_id}` | +| [updateSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1255) | :closed_lock_with_key: | PATCH | `/spot/orders/{order_id}` | +| [cancelSpotOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1277) | :closed_lock_with_key: | DELETE | `/spot/orders/{order_id}` | +| [getSpotTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1294) | :closed_lock_with_key: | GET | `/spot/my_trades` | +| [getServerTime()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1307) | | GET | `/spot/time` | +| [submitSpotCountdownOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1323) | :closed_lock_with_key: | POST | `/spot/countdown_cancel_all` | +| [batchUpdateSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1340) | :closed_lock_with_key: | POST | `/spot/amend_batch_orders` | +| [submitSpotPriceTriggerOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1354) | :closed_lock_with_key: | POST | `/spot/price_orders` | +| [getSpotAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1366) | :closed_lock_with_key: | GET | `/spot/price_orders` | +| [cancelAllOpenSpotOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1378) | :closed_lock_with_key: | DELETE | `/spot/price_orders` | +| [getPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1391) | :closed_lock_with_key: | GET | `/spot/price_orders/{order_id}` | +| [cancelSpotTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1403) | :closed_lock_with_key: | DELETE | `/spot/price_orders/{order_id}` | +| [getMarginAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1420) | :closed_lock_with_key: | GET | `/margin/accounts` | +| [getMarginBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1434) | :closed_lock_with_key: | GET | `/margin/account_book` | +| [getFundingAccounts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1452) | :closed_lock_with_key: | GET | `/margin/funding_accounts` | +| [updateAutoRepaymentSetting()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1470) | :closed_lock_with_key: | POST | `/margin/auto_repay` | +| [getAutoRepaymentSetting()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1481) | :closed_lock_with_key: | GET | `/margin/auto_repay` | +| [getMarginTransferableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1495) | :closed_lock_with_key: | GET | `/margin/transferable` | +| [getCrossMarginCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1511) | | GET | `/margin/cross/currencies` | +| [getCrossMarginCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1521) | | GET | `/margin/cross/currencies/{currency}` | +| [getCrossMarginAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1532) | :closed_lock_with_key: | GET | `/margin/cross/accounts` | +| [getCrossMarginAccountHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1544) | :closed_lock_with_key: | GET | `/margin/cross/account_book` | +| [submitCrossMarginBorrowLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1558) | :closed_lock_with_key: | POST | `/margin/cross/loans` | +| [getCrossMarginBorrowHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1572) | :closed_lock_with_key: | GET | `/margin/cross/loans` | +| [getCrossMarginBorrowLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1584) | :closed_lock_with_key: | GET | `/margin/cross/loans/{loan_id}` | +| [submitCrossMarginRepayment()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1597) | :closed_lock_with_key: | POST | `/margin/cross/repayments` | +| [getCrossMarginRepayments()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1612) | :closed_lock_with_key: | GET | `/margin/cross/repayments` | +| [getCrossMarginInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1624) | :closed_lock_with_key: | GET | `/margin/cross/interest_records` | +| [getCrossMarginTransferableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1639) | :closed_lock_with_key: | GET | `/margin/cross/transferable` | +| [getEstimatedInterestRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1654) | :closed_lock_with_key: | GET | `/margin/cross/estimate_rate` | +| [getCrossMarginBorrowableAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1667) | :closed_lock_with_key: | GET | `/margin/cross/borrowable` | +| [getLendingMarkets()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1683) | | GET | `/margin/uni/currency_pairs` | +| [getLendingMarket()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1698) | | GET | `/margin/uni/currency_pairs/{currency_pair}` | +| [getEstimatedInterestRate()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1710) | :closed_lock_with_key: | GET | `/margin/uni/estimate_rate` | +| [submitMarginUNIBorrowOrRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1720) | :closed_lock_with_key: | POST | `/margin/uni/loans` | +| [getMarginUNILoans()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1736) | :closed_lock_with_key: | GET | `/margin/uni/loans` | +| [getMarginUNILoanRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1746) | :closed_lock_with_key: | GET | `/margin/uni/loan_records` | +| [getMarginUNIInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1758) | :closed_lock_with_key: | GET | `/margin/uni/interest_records` | +| [getMarginUNIMaxBorrow()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1770) | :closed_lock_with_key: | GET | `/margin/uni/borrowable` | +| [getFlashSwapCurrencyPairs()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1786) | | GET | `/flash_swap/currency_pairs` | +| [submitFlashSwapOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1802) | :closed_lock_with_key: | POST | `/flash_swap/orders` | +| [getFlashSwapOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1814) | :closed_lock_with_key: | GET | `/flash_swap/orders` | +| [getFlashSwapOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1826) | :closed_lock_with_key: | GET | `/flash_swap/orders/{order_id}` | +| [submitFlashSwapOrderPreview()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1836) | :closed_lock_with_key: | POST | `/flash_swap/orders/preview` | +| [getFuturesContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1853) | | GET | `/futures/{settle}/contracts` | +| [getFuturesContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1868) | | GET | `/futures/{settle}/contracts/{contract}` | +| [getFuturesOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1883) | | GET | `/futures/{settle}/order_book` | +| [getFuturesTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1896) | | GET | `/futures/{settle}/trades` | +| [getFuturesCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1911) | | GET | `/futures/{settle}/candlesticks` | +| [getPremiumIndexKLines()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1924) | | GET | `/futures/{settle}/premium_index` | +| [getFuturesTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1937) | | GET | `/futures/{settle}/tickers` | +| [getFundingRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1954) | | GET | `/futures/{settle}/funding_rate` | +| [getFuturesInsuranceBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1973) | | GET | `/futures/{settle}/insurance` | +| [getFuturesStats()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1992) | | GET | `/futures/{settle}/contract_stats` | +| [getIndexConstituents()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2003) | | GET | `/futures/{settle}/index_constituents/{index}` | +| [getLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2020) | | GET | `/futures/{settle}/liq_orders` | +| [getRiskLimitTiers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2037) | | GET | `/futures/{settle}/risk_limit_tiers` | +| [getFuturesAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2048) | :closed_lock_with_key: | GET | `/futures/{settle}/accounts` | +| [getFuturesAccountBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2062) | :closed_lock_with_key: | GET | `/futures/{settle}/account_book` | +| [getFuturesPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2075) | :closed_lock_with_key: | GET | `/futures/{settle}/positions` | +| [getFuturesPosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2087) | :closed_lock_with_key: | GET | `/futures/{settle}/positions/{contract}` | +| [updateFuturesMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2102) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/margin` | +| [updateFuturesLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2119) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/leverage` | +| [updatePositionRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2138) | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/risk_limit` | +| [updateFuturesDualMode()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2158) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_mode` | +| [getDualModePosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2174) | :closed_lock_with_key: | GET | `/futures/{settle}/dual_comp/positions/{contract}` | +| [updateDualModePositionMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2189) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/margin` | +| [updateDualModePositionLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2205) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/leverage` | +| [updateDualModePositionRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2221) | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/risk_limit` | +| [submitFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2246) | :closed_lock_with_key: | POST | `/futures/{settle}/orders` | +| [getFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2260) | :closed_lock_with_key: | GET | `/futures/{settle}/orders` | +| [cancelAllFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2273) | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders` | +| [getFuturesOrdersByTimeRange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2288) | :closed_lock_with_key: | GET | `/futures/{settle}/orders_timerange` | +| [submitFuturesBatchOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2309) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_orders` | +| [getFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2328) | :closed_lock_with_key: | GET | `/futures/{settle}/orders/{order_id}` | +| [cancelFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2343) | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders/{order_id}` | +| [updateFuturesOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2358) | :closed_lock_with_key: | PUT | `/futures/{settle}/orders/{order_id}` | +| [getFuturesTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2373) | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades` | +| [getFuturesTradingHistoryByTimeRange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2388) | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades_timerange` | +| [getFuturesPositionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2401) | :closed_lock_with_key: | GET | `/futures/{settle}/position_close` | +| [getFuturesLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2414) | :closed_lock_with_key: | GET | `/futures/{settle}/liquidates` | +| [getFuturesAutoDeleveragingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2427) | :closed_lock_with_key: | GET | `/futures/{settle}/auto_deleverages` | +| [setFuturesOrderCancelCountdown()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2444) | :closed_lock_with_key: | POST | `/futures/{settle}/countdown_cancel_all` | +| [getFuturesUserTradingFees()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2461) | :closed_lock_with_key: | GET | `/futures/{settle}/fee` | +| [batchCancelFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2477) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_cancel_orders` | +| [batchUpdateFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2496) | :closed_lock_with_key: | POST | `/futures/{settle}/batch_amend_orders` | +| [submitFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2511) | :closed_lock_with_key: | POST | `/futures/{settle}/price_orders` | +| [getFuturesAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2524) | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders` | +| [cancelAllOpenFuturesOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2537) | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders` | +| [getFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2553) | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders/{order_id}` | +| [cancelFuturesPriceTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2568) | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders/{order_id}` | +| [getAllDeliveryContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2588) | | GET | `/delivery/{settle}/contracts` | +| [getDeliveryContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2600) | | GET | `/delivery/{settle}/contracts/{contract}` | +| [getDeliveryOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2615) | | GET | `/delivery/{settle}/order_book` | +| [getDeliveryTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2628) | | GET | `/delivery/{settle}/trades` | +| [getDeliveryCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2642) | | GET | `/delivery/{settle}/candlesticks` | +| [getDeliveryTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2653) | | GET | `/delivery/{settle}/tickers` | +| [getDeliveryInsuranceBalanceHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2670) | | GET | `/delivery/{settle}/insurance` | +| [getDeliveryAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2689) | :closed_lock_with_key: | GET | `/delivery/{settle}/accounts` | +| [getDeliveryBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2700) | :closed_lock_with_key: | GET | `/delivery/{settle}/account_book` | +| [getDeliveryPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2711) | :closed_lock_with_key: | GET | `/delivery/{settle}/positions` | +| [getDeliveryPosition()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2721) | :closed_lock_with_key: | GET | `/delivery/{settle}/positions/{contract}` | +| [updateDeliveryMargin()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2736) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/margin` | +| [updateDeliveryLeverage()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2754) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/leverage` | +| [updateDeliveryRiskLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2772) | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/risk_limit` | +| [submitDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2792) | :closed_lock_with_key: | POST | `/delivery/{settle}/orders` | +| [getDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2807) | :closed_lock_with_key: | GET | `/delivery/{settle}/orders` | +| [cancelAllDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2819) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders` | +| [getDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2838) | :closed_lock_with_key: | GET | `/delivery/{settle}/orders/{order_id}` | +| [cancelDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2853) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders/{order_id}` | +| [getDeliveryTradingHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2868) | :closed_lock_with_key: | GET | `/delivery/{settle}/my_trades` | +| [getDeliveryClosedPositions()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2881) | :closed_lock_with_key: | GET | `/delivery/{settle}/position_close` | +| [getDeliveryLiquidationHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2894) | :closed_lock_with_key: | GET | `/delivery/{settle}/liquidates` | +| [getDeliverySettlementHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2907) | :closed_lock_with_key: | GET | `/delivery/{settle}/settlements` | +| [submitDeliveryTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2920) | :closed_lock_with_key: | POST | `/delivery/{settle}/price_orders` | +| [getDeliveryAutoOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2935) | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders` | +| [cancelAllOpenDeliveryOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2948) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders` | +| [getDeliveryTriggeredOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2964) | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders/{order_id}` | +| [cancelTriggeredDeliveryOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2979) | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders/{order_id}` | +| [getOptionsUnderlyings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2998) | | GET | `/options/underlyings` | +| [getOptionsExpirationTimes()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3008) | | GET | `/options/expirations` | +| [getOptionsContracts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3018) | | GET | `/options/contracts` | +| [getOptionsContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3031) | | GET | `/options/contracts/{contract}` | +| [getOptionsSettlementHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3041) | | GET | `/options/settlements` | +| [getOptionsContractSettlement()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3053) | | GET | `/options/settlements/{contract}` | +| [getOptionsMySettlements()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3068) | :closed_lock_with_key: | GET | `/options/my_settlements` | +| [getOptionsOrderBook()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3082) | | GET | `/options/order_book` | +| [getOptionsTickers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3094) | | GET | `/options/tickers` | +| [getOptionsUnderlyingTicker()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3108) | | GET | `/options/underlying/tickers/{underlying}` | +| [getOptionsCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3122) | | GET | `/options/candlesticks` | +| [getOptionsUnderlyingCandles()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3132) | | GET | `/options/underlying/candlesticks` | +| [getOptionsTrades()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3144) | | GET | `/options/trades` | +| [getOptionsAccount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3153) | :closed_lock_with_key: | GET | `/options/accounts` | +| [getOptionsAccountChange()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3163) | :closed_lock_with_key: | GET | `/options/account_book` | +| [getOptionsPositionsUnderlying()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3175) | :closed_lock_with_key: | GET | `/options/positions` | +| [getOptionsPositionContract()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3187) | :closed_lock_with_key: | GET | `/options/positions/{contract}` | +| [getOptionsLiquidation()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3199) | :closed_lock_with_key: | GET | `/options/position_close` | +| [submitOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3212) | :closed_lock_with_key: | POST | `/options/orders` | +| [getOptionsOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3224) | :closed_lock_with_key: | GET | `/options/orders` | +| [cancelAllOpenOptionsOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3236) | :closed_lock_with_key: | DELETE | `/options/orders` | +| [getOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3250) | :closed_lock_with_key: | GET | `/options/orders/{order_id}` | +| [cancelOptionsOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3262) | :closed_lock_with_key: | DELETE | `/options/orders/{order_id}` | +| [submitOptionsCountdownCancel()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3281) | :closed_lock_with_key: | POST | `/options/countdown_cancel_all` | +| [getOptionsPersonalHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3297) | :closed_lock_with_key: | GET | `/options/my_trades` | +| [setOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3309) | :closed_lock_with_key: | POST | `/options/mmp` | +| [getOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3321) | :closed_lock_with_key: | GET | `/options/mmp` | +| [resetOptionsMMPSettings()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3333) | :closed_lock_with_key: | POST | `/options/mmp/reset` | +| [getLendingCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3349) | | GET | `/earn/uni/currencies` | +| [getLendingCurrency()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3359) | | GET | `/earn/uni/currencies/{currency}` | +| [submitLendOrRedeemOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3369) | :closed_lock_with_key: | POST | `/earn/uni/lends` | +| [getLendingOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3379) | :closed_lock_with_key: | GET | `/earn/uni/lends` | +| [updateLendingOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3391) | :closed_lock_with_key: | PATCH | `/earn/uni/lends` | +| [getLendingRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3404) | :closed_lock_with_key: | GET | `/earn/uni/lend_records` | +| [getLendingTotalInterest()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3417) | :closed_lock_with_key: | GET | `/earn/uni/interests/{currency}` | +| [getLendingInterestRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3430) | :closed_lock_with_key: | GET | `/earn/uni/interest_records` | +| [updateInterestReinvestment()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3442) | :closed_lock_with_key: | PUT | `/earn/uni/interest_reinvest` | +| [getLendingInterestStatus()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3458) | :closed_lock_with_key: | GET | `/earn/uni/interest_status/{currency}` | +| [submitLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3476) | :closed_lock_with_key: | POST | `/loan/collateral/orders` | +| [getLoanOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3486) | :closed_lock_with_key: | GET | `/loan/collateral/orders` | +| [getLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3495) | :closed_lock_with_key: | GET | `/loan/collateral/orders/{order_id}` | +| [submitLoanRepay()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3508) | :closed_lock_with_key: | POST | `/loan/collateral/repay` | +| [getLoanRepaymentHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3525) | :closed_lock_with_key: | GET | `/loan/collateral/repay_records` | +| [updateLoanCollateral()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3537) | :closed_lock_with_key: | POST | `/loan/collateral/collaterals` | +| [getLoanCollateralRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3547) | :closed_lock_with_key: | GET | `/loan/collateral/collaterals` | +| [getLoanTotalAmount()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3561) | :closed_lock_with_key: | GET | `/loan/collateral/total_amount` | +| [getLoanCollateralizationRatio()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3574) | :closed_lock_with_key: | GET | `/loan/collateral/ltv` | +| [getLoanSupportedCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3590) | | GET | `/loan/collateral/currencies` | +| [submitMultiLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3610) | :closed_lock_with_key: | POST | `/loan/multi_collateral/orders` | +| [getMultiLoanOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3622) | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders` | +| [getMultiLoanOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3634) | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders/{order_id}` | +| [repayMultiLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3644) | :closed_lock_with_key: | POST | `/loan/multi_collateral/repay` | +| [getMultiLoanRepayRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3654) | :closed_lock_with_key: | GET | `/loan/multi_collateral/repay` | +| [updateMultiLoan()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3666) | :closed_lock_with_key: | POST | `/loan/multi_collateral/mortgage` | +| [getMultiLoanAdjustmentRecords()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3678) | :closed_lock_with_key: | GET | `/loan/multi_collateral/mortgage` | +| [getMultiLoanCurrencyQuota()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3690) | :closed_lock_with_key: | GET | `/loan/multi_collateral/currency_quota` | +| [getMultiLoanSupportedCurrencies()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3702) | | GET | `/loan/multi_collateral/currencies` | +| [getMultiLoanRatio()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3711) | | GET | `/loan/multi_collateral/ltv` | +| [getMultiLoanFixedRates()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3720) | | GET | `/loan/multi_collateral/fixed_rate` | +| [submitEth2Swap()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3735) | :closed_lock_with_key: | POST | `/earn/staking/eth2/swap` | +| [getDualInvestmentProducts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3744) | | GET | `/earn/dual/investment_plan` | +| [getDualInvestmentOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3753) | :closed_lock_with_key: | GET | `/earn/dual/orders` | +| [submitDualInvestmentOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3762) | :closed_lock_with_key: | POST | `/earn/dual/orders` | +| [getStructuredProducts()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3775) | | GET | `/earn/structured/products` | +| [getStructuredProductOrders()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3787) | :closed_lock_with_key: | GET | `/earn/structured/orders` | +| [submitStructuredProductOrder()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3798) | :closed_lock_with_key: | POST | `/earn/structured/orders` | +| [getAccountDetail()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3815) | :closed_lock_with_key: | GET | `/account/detail` | +| [getAccountRateLimit()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3824) | :closed_lock_with_key: | GET | `/account/rate_limit` | +| [createStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3834) | :closed_lock_with_key: | POST | `/account/stp_groups` | +| [getStpGroups()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3844) | :closed_lock_with_key: | GET | `/account/stp_groups` | +| [getStpGroupUsers()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3854) | :closed_lock_with_key: | GET | `/account/stp_groups/{stp_id}/users` | +| [addUsersToStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3864) | :closed_lock_with_key: | POST | `/account/stp_groups/{stp_id}/users` | +| [deleteUserFromStpGroup()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3880) | :closed_lock_with_key: | DELETE | `/account/stp_groups/{stp_id}/users` | +| [setGTDeduction()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3898) | :closed_lock_with_key: | POST | `/account/debit_fee` | +| [getGTDeduction()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3909) | :closed_lock_with_key: | GET | `/account/debit_fee` | +| [getAgencyTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3925) | :closed_lock_with_key: | GET | `/rebate/agency/transaction_history` | +| [getAgencyCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3938) | :closed_lock_with_key: | GET | `/rebate/agency/commission_history` | +| [getPartnerTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3952) | :closed_lock_with_key: | GET | `/rebate/partner/transaction_history` | +| [getPartnerCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3967) | :closed_lock_with_key: | GET | `/rebate/partner/commission_history` | +| [getPartnerSubordinateList()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3990) | :closed_lock_with_key: | GET | `/rebate/partner/sub_list` | +| [getBrokerCommissionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4004) | :closed_lock_with_key: | GET | `/rebate/broker/commission_history` | +| [getBrokerTransactionHistory()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4017) | :closed_lock_with_key: | GET | `/rebate/broker/transaction_history` | +| [getUserRebateInfo()](https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4026) | :closed_lock_with_key: | GET | `/rebate/user/info` | \ No newline at end of file diff --git a/examples/apidoc/RestClient/addUsersToStpGroup.js b/examples/apidoc/RestClient/addUsersToStpGroup.js index f97b369..ed3f5b7 100644 --- a/examples/apidoc/RestClient/addUsersToStpGroup.js +++ b/examples/apidoc/RestClient/addUsersToStpGroup.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/stp_groups/{stp_id}/users // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3844 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3864 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.addUsersToStpGroup(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/batchCancelFuturesOrders.js b/examples/apidoc/RestClient/batchCancelFuturesOrders.js index c21b258..780faa6 100644 --- a/examples/apidoc/RestClient/batchCancelFuturesOrders.js +++ b/examples/apidoc/RestClient/batchCancelFuturesOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/batch_cancel_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2480 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2477 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.batchCancelFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/batchCancelSpotOrders.js b/examples/apidoc/RestClient/batchCancelSpotOrders.js index 1c882d9..1b0581c 100644 --- a/examples/apidoc/RestClient/batchCancelSpotOrders.js +++ b/examples/apidoc/RestClient/batchCancelSpotOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/cancel_batch_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1225 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1226 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.batchCancelSpotOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/batchUpdateFuturesOrders.js b/examples/apidoc/RestClient/batchUpdateFuturesOrders.js index 8d0db10..5557c92 100644 --- a/examples/apidoc/RestClient/batchUpdateFuturesOrders.js +++ b/examples/apidoc/RestClient/batchUpdateFuturesOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/batch_amend_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2499 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2496 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.batchUpdateFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/batchUpdateSpotOrders.js b/examples/apidoc/RestClient/batchUpdateSpotOrders.js index 3da43a9..d5bde66 100644 --- a/examples/apidoc/RestClient/batchUpdateSpotOrders.js +++ b/examples/apidoc/RestClient/batchUpdateSpotOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/amend_batch_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1339 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1340 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.batchUpdateSpotOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllDeliveryOrders.js b/examples/apidoc/RestClient/cancelAllDeliveryOrders.js index 9757a8b..5613f9c 100644 --- a/examples/apidoc/RestClient/cancelAllDeliveryOrders.js +++ b/examples/apidoc/RestClient/cancelAllDeliveryOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2822 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2819 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllDeliveryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllFuturesOrders.js b/examples/apidoc/RestClient/cancelAllFuturesOrders.js index 6db73cd..4762774 100644 --- a/examples/apidoc/RestClient/cancelAllFuturesOrders.js +++ b/examples/apidoc/RestClient/cancelAllFuturesOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2276 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2273 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js b/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js index 7de7b23..9b34e50 100644 --- a/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js +++ b/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/price_orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2951 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2948 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllOpenDeliveryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js b/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js index 9d6e511..e4ad82f 100644 --- a/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js +++ b/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/price_orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2540 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2537 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllOpenFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js b/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js index 11e3b1b..c515a82 100644 --- a/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js +++ b/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3239 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3236 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllOpenOptionsOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js b/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js index 8077050..10983c3 100644 --- a/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js +++ b/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/price_orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1377 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1378 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllOpenSpotOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelDeliveryOrder.js b/examples/apidoc/RestClient/cancelDeliveryOrder.js index c5d6bcd..5d040fb 100644 --- a/examples/apidoc/RestClient/cancelDeliveryOrder.js +++ b/examples/apidoc/RestClient/cancelDeliveryOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2856 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2853 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelDeliveryOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelFuturesOrder.js b/examples/apidoc/RestClient/cancelFuturesOrder.js index 935947f..6ada5a1 100644 --- a/examples/apidoc/RestClient/cancelFuturesOrder.js +++ b/examples/apidoc/RestClient/cancelFuturesOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2346 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2343 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js index 6861727..873bade 100644 --- a/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js +++ b/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/price_orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2571 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2568 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelFuturesPriceTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelOptionsOrder.js b/examples/apidoc/RestClient/cancelOptionsOrder.js index 91c4a40..76a4d99 100644 --- a/examples/apidoc/RestClient/cancelOptionsOrder.js +++ b/examples/apidoc/RestClient/cancelOptionsOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3265 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3262 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelOptionsOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotOpenOrders.js b/examples/apidoc/RestClient/cancelSpotOpenOrders.js index a0e76c1..ab37071 100644 --- a/examples/apidoc/RestClient/cancelSpotOpenOrders.js +++ b/examples/apidoc/RestClient/cancelSpotOpenOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1208 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1209 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotOrder.js b/examples/apidoc/RestClient/cancelSpotOrder.js index 97d6c58..3271ec1 100644 --- a/examples/apidoc/RestClient/cancelSpotOrder.js +++ b/examples/apidoc/RestClient/cancelSpotOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1276 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1277 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js b/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js index 4de4ae4..7c5cc48 100644 --- a/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js +++ b/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/price_orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1402 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1403 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js b/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js index 35a7a47..556b7a7 100644 --- a/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js +++ b/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/price_orders/{order_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2982 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2979 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelTriggeredDeliveryOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelWithdrawal.js b/examples/apidoc/RestClient/cancelWithdrawal.js index bfe8f0d..9e00f23 100644 --- a/examples/apidoc/RestClient/cancelWithdrawal.js +++ b/examples/apidoc/RestClient/cancelWithdrawal.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /withdrawals/{withdrawal_id} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L382 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L383 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelWithdrawal(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/convertSmallBalance.js b/examples/apidoc/RestClient/convertSmallBalance.js index c69b711..0e2228a 100644 --- a/examples/apidoc/RestClient/convertSmallBalance.js +++ b/examples/apidoc/RestClient/convertSmallBalance.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/small_balance // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L625 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L626 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.convertSmallBalance(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/createDepositAddress.js b/examples/apidoc/RestClient/createDepositAddress.js index 5af40d4..aa39bfb 100644 --- a/examples/apidoc/RestClient/createDepositAddress.js +++ b/examples/apidoc/RestClient/createDepositAddress.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/deposit_address // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L409 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L410 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.createDepositAddress(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/createStpGroup.js b/examples/apidoc/RestClient/createStpGroup.js index c01861f..293eda9 100644 --- a/examples/apidoc/RestClient/createStpGroup.js +++ b/examples/apidoc/RestClient/createStpGroup.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/stp_groups // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3814 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3834 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.createStpGroup(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/createSubAccount.js b/examples/apidoc/RestClient/createSubAccount.js index 7b85136..445db52 100644 --- a/examples/apidoc/RestClient/createSubAccount.js +++ b/examples/apidoc/RestClient/createSubAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L665 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L666 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.createSubAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/createSubAccountApiKey.js b/examples/apidoc/RestClient/createSubAccountApiKey.js index 8997624..1578adb 100644 --- a/examples/apidoc/RestClient/createSubAccountApiKey.js +++ b/examples/apidoc/RestClient/createSubAccountApiKey.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/keys // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L696 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L697 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.createSubAccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/deleteSubAccountApiKey.js b/examples/apidoc/RestClient/deleteSubAccountApiKey.js index 9b8cdb4..ce820cc 100644 --- a/examples/apidoc/RestClient/deleteSubAccountApiKey.js +++ b/examples/apidoc/RestClient/deleteSubAccountApiKey.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/keys/{key} // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L731 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L732 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.deleteSubAccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/deleteUserFromStpGroup.js b/examples/apidoc/RestClient/deleteUserFromStpGroup.js index 992d0af..652dca2 100644 --- a/examples/apidoc/RestClient/deleteUserFromStpGroup.js +++ b/examples/apidoc/RestClient/deleteUserFromStpGroup.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/stp_groups/{stp_id}/users // METHOD: DELETE // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3860 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3880 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.deleteUserFromStpGroup(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountDetail.js b/examples/apidoc/RestClient/getAccountDetail.js index e477616..bf733c7 100644 --- a/examples/apidoc/RestClient/getAccountDetail.js +++ b/examples/apidoc/RestClient/getAccountDetail.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/detail // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3795 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3815 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountDetail(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountRateLimit.js b/examples/apidoc/RestClient/getAccountRateLimit.js index 713bc03..8a8264a 100644 --- a/examples/apidoc/RestClient/getAccountRateLimit.js +++ b/examples/apidoc/RestClient/getAccountRateLimit.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/rate_limit // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3804 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3824 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountRateLimit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAgencyCommissionHistory.js b/examples/apidoc/RestClient/getAgencyCommissionHistory.js index 4793c1d..a09c095 100644 --- a/examples/apidoc/RestClient/getAgencyCommissionHistory.js +++ b/examples/apidoc/RestClient/getAgencyCommissionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/agency/commission_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3918 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3938 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAgencyCommissionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAgencyTransactionHistory.js b/examples/apidoc/RestClient/getAgencyTransactionHistory.js index 67c11ff..8409908 100644 --- a/examples/apidoc/RestClient/getAgencyTransactionHistory.js +++ b/examples/apidoc/RestClient/getAgencyTransactionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/agency/transaction_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3905 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3925 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAgencyTransactionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAllDeliveryContracts.js b/examples/apidoc/RestClient/getAllDeliveryContracts.js index c579212..47ca70a 100644 --- a/examples/apidoc/RestClient/getAllDeliveryContracts.js +++ b/examples/apidoc/RestClient/getAllDeliveryContracts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/contracts // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2591 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2588 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAllDeliveryContracts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAutoRepaymentSetting.js b/examples/apidoc/RestClient/getAutoRepaymentSetting.js index 659e8c4..5461b7b 100644 --- a/examples/apidoc/RestClient/getAutoRepaymentSetting.js +++ b/examples/apidoc/RestClient/getAutoRepaymentSetting.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/auto_repay // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1480 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1481 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAutoRepaymentSetting(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getBalances.js b/examples/apidoc/RestClient/getBalances.js index f3f3938..82a099f 100644 --- a/examples/apidoc/RestClient/getBalances.js +++ b/examples/apidoc/RestClient/getBalances.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/total_balance // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L606 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L607 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getBrokerCommissionHistory.js b/examples/apidoc/RestClient/getBrokerCommissionHistory.js index fc766ea..597ba8c 100644 --- a/examples/apidoc/RestClient/getBrokerCommissionHistory.js +++ b/examples/apidoc/RestClient/getBrokerCommissionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/broker/commission_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3984 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4004 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getBrokerCommissionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getBrokerTransactionHistory.js b/examples/apidoc/RestClient/getBrokerTransactionHistory.js index 2d7cd75..02d4bb5 100644 --- a/examples/apidoc/RestClient/getBrokerTransactionHistory.js +++ b/examples/apidoc/RestClient/getBrokerTransactionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/broker/transaction_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3997 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4017 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getBrokerTransactionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginAccount.js b/examples/apidoc/RestClient/getCrossMarginAccount.js index fb9f2a3..425a2f5 100644 --- a/examples/apidoc/RestClient/getCrossMarginAccount.js +++ b/examples/apidoc/RestClient/getCrossMarginAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1531 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1532 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginAccountHistory.js b/examples/apidoc/RestClient/getCrossMarginAccountHistory.js index 968fc3e..6914730 100644 --- a/examples/apidoc/RestClient/getCrossMarginAccountHistory.js +++ b/examples/apidoc/RestClient/getCrossMarginAccountHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1543 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1544 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginAccountHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js b/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js index 812a0f6..85fc038 100644 --- a/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js +++ b/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/loans // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1571 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1572 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginBorrowHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js b/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js index 9b79448..0618f8d 100644 --- a/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js +++ b/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/loans/{loan_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1583 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1584 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginBorrowLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js b/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js index 3626da7..ff05664 100644 --- a/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js +++ b/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/borrowable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1666 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1667 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginBorrowableAmount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginCurrencies.js b/examples/apidoc/RestClient/getCrossMarginCurrencies.js index 4f4cd3a..56ccdca 100644 --- a/examples/apidoc/RestClient/getCrossMarginCurrencies.js +++ b/examples/apidoc/RestClient/getCrossMarginCurrencies.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/currencies // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1510 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1511 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginCurrency.js b/examples/apidoc/RestClient/getCrossMarginCurrency.js index 4bb1d9a..e7ce039 100644 --- a/examples/apidoc/RestClient/getCrossMarginCurrency.js +++ b/examples/apidoc/RestClient/getCrossMarginCurrency.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/currencies/{currency} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1520 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1521 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginCurrency(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginInterestRecords.js b/examples/apidoc/RestClient/getCrossMarginInterestRecords.js index 0fd8851..01823f9 100644 --- a/examples/apidoc/RestClient/getCrossMarginInterestRecords.js +++ b/examples/apidoc/RestClient/getCrossMarginInterestRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/interest_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1623 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1624 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginInterestRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginRepayments.js b/examples/apidoc/RestClient/getCrossMarginRepayments.js index 5cb384d..70e2bc0 100644 --- a/examples/apidoc/RestClient/getCrossMarginRepayments.js +++ b/examples/apidoc/RestClient/getCrossMarginRepayments.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/repayments // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1611 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1612 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginRepayments(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js b/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js index cbb01b9..a4a7d4b 100644 --- a/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js +++ b/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/transferable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1638 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1639 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCrossMarginTransferableAmount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getCurrencyChains.js b/examples/apidoc/RestClient/getCurrencyChains.js index 380c86c..0bb0028 100644 --- a/examples/apidoc/RestClient/getCurrencyChains.js +++ b/examples/apidoc/RestClient/getCurrencyChains.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/currency_chains // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L399 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L400 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getCurrencyChains(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryAccount.js b/examples/apidoc/RestClient/getDeliveryAccount.js index ec43750..4048ba5 100644 --- a/examples/apidoc/RestClient/getDeliveryAccount.js +++ b/examples/apidoc/RestClient/getDeliveryAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2692 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2689 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryAutoOrders.js b/examples/apidoc/RestClient/getDeliveryAutoOrders.js index 20d1147..524dd0e 100644 --- a/examples/apidoc/RestClient/getDeliveryAutoOrders.js +++ b/examples/apidoc/RestClient/getDeliveryAutoOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/price_orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2938 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2935 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryAutoOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryBook.js b/examples/apidoc/RestClient/getDeliveryBook.js index a2afac1..9f1bd58 100644 --- a/examples/apidoc/RestClient/getDeliveryBook.js +++ b/examples/apidoc/RestClient/getDeliveryBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2703 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2700 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryCandles.js b/examples/apidoc/RestClient/getDeliveryCandles.js index b6674ce..cb16eea 100644 --- a/examples/apidoc/RestClient/getDeliveryCandles.js +++ b/examples/apidoc/RestClient/getDeliveryCandles.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/candlesticks // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2645 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2642 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryClosedPositions.js b/examples/apidoc/RestClient/getDeliveryClosedPositions.js index d244acc..6a4009e 100644 --- a/examples/apidoc/RestClient/getDeliveryClosedPositions.js +++ b/examples/apidoc/RestClient/getDeliveryClosedPositions.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/position_close // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2884 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2881 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryClosedPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryContract.js b/examples/apidoc/RestClient/getDeliveryContract.js index 311a3f3..fca6695 100644 --- a/examples/apidoc/RestClient/getDeliveryContract.js +++ b/examples/apidoc/RestClient/getDeliveryContract.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/contracts/{contract} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2603 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2600 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryContract(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js b/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js index 5a2c48a..09e9547 100644 --- a/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js +++ b/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/insurance // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2673 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2670 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryInsuranceBalanceHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js b/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js index c1abbe7..94d9fb1 100644 --- a/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js +++ b/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/liquidates // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2897 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2894 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryLiquidationHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryOrder.js b/examples/apidoc/RestClient/getDeliveryOrder.js index 806b52d..89ad1ca 100644 --- a/examples/apidoc/RestClient/getDeliveryOrder.js +++ b/examples/apidoc/RestClient/getDeliveryOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2841 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2838 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryOrderBook.js b/examples/apidoc/RestClient/getDeliveryOrderBook.js index 2598d24..c07aac1 100644 --- a/examples/apidoc/RestClient/getDeliveryOrderBook.js +++ b/examples/apidoc/RestClient/getDeliveryOrderBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/order_book // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2618 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2615 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryOrderBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryOrders.js b/examples/apidoc/RestClient/getDeliveryOrders.js index ba2ba7c..fd12683 100644 --- a/examples/apidoc/RestClient/getDeliveryOrders.js +++ b/examples/apidoc/RestClient/getDeliveryOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2810 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2807 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryPosition.js b/examples/apidoc/RestClient/getDeliveryPosition.js index 853d87f..9224778 100644 --- a/examples/apidoc/RestClient/getDeliveryPosition.js +++ b/examples/apidoc/RestClient/getDeliveryPosition.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/positions/{contract} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2724 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2721 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryPosition(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryPositions.js b/examples/apidoc/RestClient/getDeliveryPositions.js index 42f0446..b5bc025 100644 --- a/examples/apidoc/RestClient/getDeliveryPositions.js +++ b/examples/apidoc/RestClient/getDeliveryPositions.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2714 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2711 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliverySettlementHistory.js b/examples/apidoc/RestClient/getDeliverySettlementHistory.js index 6507b71..79b843c 100644 --- a/examples/apidoc/RestClient/getDeliverySettlementHistory.js +++ b/examples/apidoc/RestClient/getDeliverySettlementHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/settlements // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2910 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2907 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliverySettlementHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryTickers.js b/examples/apidoc/RestClient/getDeliveryTickers.js index 5bef5fc..6a3fc61 100644 --- a/examples/apidoc/RestClient/getDeliveryTickers.js +++ b/examples/apidoc/RestClient/getDeliveryTickers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2656 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2653 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryTickers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryTrades.js b/examples/apidoc/RestClient/getDeliveryTrades.js index ffc0289..0fe4ad2 100644 --- a/examples/apidoc/RestClient/getDeliveryTrades.js +++ b/examples/apidoc/RestClient/getDeliveryTrades.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2631 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2628 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryTradingHistory.js b/examples/apidoc/RestClient/getDeliveryTradingHistory.js index dcc24d0..2febbeb 100644 --- a/examples/apidoc/RestClient/getDeliveryTradingHistory.js +++ b/examples/apidoc/RestClient/getDeliveryTradingHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/my_trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2871 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2868 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryTradingHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js b/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js index 1485f8a..3a515dc 100644 --- a/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js +++ b/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/price_orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2967 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2964 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDeliveryTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDepositRecords.js b/examples/apidoc/RestClient/getDepositRecords.js index 6567c08..a502626 100644 --- a/examples/apidoc/RestClient/getDepositRecords.js +++ b/examples/apidoc/RestClient/getDepositRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/deposits // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L437 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L438 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDepositRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDualInvestmentOrders.js b/examples/apidoc/RestClient/getDualInvestmentOrders.js index 0783e47..07bdfb2 100644 --- a/examples/apidoc/RestClient/getDualInvestmentOrders.js +++ b/examples/apidoc/RestClient/getDualInvestmentOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/dual/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3733 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3753 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDualInvestmentOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDualInvestmentProducts.js b/examples/apidoc/RestClient/getDualInvestmentProducts.js index c1d602d..7471fbd 100644 --- a/examples/apidoc/RestClient/getDualInvestmentProducts.js +++ b/examples/apidoc/RestClient/getDualInvestmentProducts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/dual/investment_plan // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3724 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3744 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDualInvestmentProducts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDualModePosition.js b/examples/apidoc/RestClient/getDualModePosition.js index 4466b6c..abeed60 100644 --- a/examples/apidoc/RestClient/getDualModePosition.js +++ b/examples/apidoc/RestClient/getDualModePosition.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/dual_comp/positions/{contract} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2177 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2174 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDualModePosition(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getEstimatedInterestRate.js b/examples/apidoc/RestClient/getEstimatedInterestRate.js index a824336..d890399 100644 --- a/examples/apidoc/RestClient/getEstimatedInterestRate.js +++ b/examples/apidoc/RestClient/getEstimatedInterestRate.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/estimate_rate // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1709 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1710 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getEstimatedInterestRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getEstimatedInterestRates.js b/examples/apidoc/RestClient/getEstimatedInterestRates.js index ec1e544..e9aa71d 100644 --- a/examples/apidoc/RestClient/getEstimatedInterestRates.js +++ b/examples/apidoc/RestClient/getEstimatedInterestRates.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/estimate_rate // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1653 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1654 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getEstimatedInterestRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js b/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js index 0337d5c..3ab09f0 100644 --- a/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js +++ b/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /flash_swap/currency_pairs // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1785 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1786 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFlashSwapCurrencyPairs(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFlashSwapOrder.js b/examples/apidoc/RestClient/getFlashSwapOrder.js index 955b162..9674ae4 100644 --- a/examples/apidoc/RestClient/getFlashSwapOrder.js +++ b/examples/apidoc/RestClient/getFlashSwapOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /flash_swap/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1825 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1826 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFlashSwapOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFlashSwapOrders.js b/examples/apidoc/RestClient/getFlashSwapOrders.js index e5131f6..e05ce9d 100644 --- a/examples/apidoc/RestClient/getFlashSwapOrders.js +++ b/examples/apidoc/RestClient/getFlashSwapOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /flash_swap/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1813 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1814 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFlashSwapOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFundingAccounts.js b/examples/apidoc/RestClient/getFundingAccounts.js index 0b87c32..e80868a 100644 --- a/examples/apidoc/RestClient/getFundingAccounts.js +++ b/examples/apidoc/RestClient/getFundingAccounts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/funding_accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1451 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1452 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFundingAccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFundingRates.js b/examples/apidoc/RestClient/getFundingRates.js index 3811369..145a44d 100644 --- a/examples/apidoc/RestClient/getFundingRates.js +++ b/examples/apidoc/RestClient/getFundingRates.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/funding_rate // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1953 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1954 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFundingRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccount.js b/examples/apidoc/RestClient/getFuturesAccount.js index 5faec4a..9504fe2 100644 --- a/examples/apidoc/RestClient/getFuturesAccount.js +++ b/examples/apidoc/RestClient/getFuturesAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2051 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2048 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountBook.js b/examples/apidoc/RestClient/getFuturesAccountBook.js index 385d82d..fd9c925 100644 --- a/examples/apidoc/RestClient/getFuturesAccountBook.js +++ b/examples/apidoc/RestClient/getFuturesAccountBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2065 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2062 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js b/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js index a5bf728..54d248f 100644 --- a/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js +++ b/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/auto_deleverages // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2430 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2427 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAutoDeleveragingHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAutoOrders.js b/examples/apidoc/RestClient/getFuturesAutoOrders.js index 7294f75..f1c95c6 100644 --- a/examples/apidoc/RestClient/getFuturesAutoOrders.js +++ b/examples/apidoc/RestClient/getFuturesAutoOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/price_orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2527 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2524 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAutoOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesCandles.js b/examples/apidoc/RestClient/getFuturesCandles.js index 2a9de46..4499198 100644 --- a/examples/apidoc/RestClient/getFuturesCandles.js +++ b/examples/apidoc/RestClient/getFuturesCandles.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/candlesticks // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1910 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1911 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesContract.js b/examples/apidoc/RestClient/getFuturesContract.js index e30fca2..dbca5e8 100644 --- a/examples/apidoc/RestClient/getFuturesContract.js +++ b/examples/apidoc/RestClient/getFuturesContract.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/contracts/{contract} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1867 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1868 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesContract(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesContracts.js b/examples/apidoc/RestClient/getFuturesContracts.js index 82248b4..c68ef75 100644 --- a/examples/apidoc/RestClient/getFuturesContracts.js +++ b/examples/apidoc/RestClient/getFuturesContracts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/contracts // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1852 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1853 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesContracts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js b/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js index 826ae7f..c139cf0 100644 --- a/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js +++ b/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/insurance // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1976 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1973 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesInsuranceBalanceHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesLiquidationHistory.js b/examples/apidoc/RestClient/getFuturesLiquidationHistory.js index 9b9cde0..52a3df2 100644 --- a/examples/apidoc/RestClient/getFuturesLiquidationHistory.js +++ b/examples/apidoc/RestClient/getFuturesLiquidationHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/liquidates // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2417 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2414 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesLiquidationHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesOrder.js b/examples/apidoc/RestClient/getFuturesOrder.js index 68fe296..e5c0afc 100644 --- a/examples/apidoc/RestClient/getFuturesOrder.js +++ b/examples/apidoc/RestClient/getFuturesOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2331 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2328 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesOrderBook.js b/examples/apidoc/RestClient/getFuturesOrderBook.js index 1fcfd7a..6d918c2 100644 --- a/examples/apidoc/RestClient/getFuturesOrderBook.js +++ b/examples/apidoc/RestClient/getFuturesOrderBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/order_book // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1882 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1883 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesOrderBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesOrders.js b/examples/apidoc/RestClient/getFuturesOrders.js index f65b7c0..522f9f0 100644 --- a/examples/apidoc/RestClient/getFuturesOrders.js +++ b/examples/apidoc/RestClient/getFuturesOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2263 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2260 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js b/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js index a9fe7a3..ad933fa 100644 --- a/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js +++ b/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders_timerange // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2291 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2288 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesOrdersByTimeRange(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesPosition.js b/examples/apidoc/RestClient/getFuturesPosition.js index 866af97..d519664 100644 --- a/examples/apidoc/RestClient/getFuturesPosition.js +++ b/examples/apidoc/RestClient/getFuturesPosition.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/positions/{contract} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2090 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2087 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesPosition(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesPositionHistory.js b/examples/apidoc/RestClient/getFuturesPositionHistory.js index afb1175..a323395 100644 --- a/examples/apidoc/RestClient/getFuturesPositionHistory.js +++ b/examples/apidoc/RestClient/getFuturesPositionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/position_close // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2404 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2401 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesPositionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesPositions.js b/examples/apidoc/RestClient/getFuturesPositions.js index 33243c0..48b0357 100644 --- a/examples/apidoc/RestClient/getFuturesPositions.js +++ b/examples/apidoc/RestClient/getFuturesPositions.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2078 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2075 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js index a1e4c83..3891b6e 100644 --- a/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js +++ b/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/price_orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2556 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2553 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesPriceTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesStats.js b/examples/apidoc/RestClient/getFuturesStats.js index f9f8746..517cfe4 100644 --- a/examples/apidoc/RestClient/getFuturesStats.js +++ b/examples/apidoc/RestClient/getFuturesStats.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/contract_stats // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1995 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1992 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesStats(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesTickers.js b/examples/apidoc/RestClient/getFuturesTickers.js index 5838cbc..61fd987 100644 --- a/examples/apidoc/RestClient/getFuturesTickers.js +++ b/examples/apidoc/RestClient/getFuturesTickers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1936 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1937 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesTickers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesTrades.js b/examples/apidoc/RestClient/getFuturesTrades.js index 440bf0d..edc161c 100644 --- a/examples/apidoc/RestClient/getFuturesTrades.js +++ b/examples/apidoc/RestClient/getFuturesTrades.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1895 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1896 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesTradingHistory.js b/examples/apidoc/RestClient/getFuturesTradingHistory.js index 54a8393..cf6f8b5 100644 --- a/examples/apidoc/RestClient/getFuturesTradingHistory.js +++ b/examples/apidoc/RestClient/getFuturesTradingHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/my_trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2376 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2373 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesTradingHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js b/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js index 7cd5716..00beb53 100644 --- a/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js +++ b/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/my_trades_timerange // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2391 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2388 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesTradingHistoryByTimeRange(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesUserTradingFees.js b/examples/apidoc/RestClient/getFuturesUserTradingFees.js index 13281eb..c137a71 100644 --- a/examples/apidoc/RestClient/getFuturesUserTradingFees.js +++ b/examples/apidoc/RestClient/getFuturesUserTradingFees.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2464 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2461 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesUserTradingFees(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getGTDeduction.js b/examples/apidoc/RestClient/getGTDeduction.js index b3bfa53..81cc31f 100644 --- a/examples/apidoc/RestClient/getGTDeduction.js +++ b/examples/apidoc/RestClient/getGTDeduction.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/debit_fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3889 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3909 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getGTDeduction(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getIndexConstituents.js b/examples/apidoc/RestClient/getIndexConstituents.js index 13aee2a..0346b5f 100644 --- a/examples/apidoc/RestClient/getIndexConstituents.js +++ b/examples/apidoc/RestClient/getIndexConstituents.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/index_constituents/{index} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2006 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2003 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getIndexConstituents(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingCurrencies.js b/examples/apidoc/RestClient/getLendingCurrencies.js index f0609e2..fc65ce3 100644 --- a/examples/apidoc/RestClient/getLendingCurrencies.js +++ b/examples/apidoc/RestClient/getLendingCurrencies.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/currencies // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3329 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3349 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingCurrency.js b/examples/apidoc/RestClient/getLendingCurrency.js index 4477b89..79ce196 100644 --- a/examples/apidoc/RestClient/getLendingCurrency.js +++ b/examples/apidoc/RestClient/getLendingCurrency.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/currencies/{currency} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3339 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3359 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingCurrency(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingInterestRecords.js b/examples/apidoc/RestClient/getLendingInterestRecords.js index 4d57f25..4ff98ac 100644 --- a/examples/apidoc/RestClient/getLendingInterestRecords.js +++ b/examples/apidoc/RestClient/getLendingInterestRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/interest_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3410 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3430 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingInterestRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingInterestStatus.js b/examples/apidoc/RestClient/getLendingInterestStatus.js index 9e304a0..a58c764 100644 --- a/examples/apidoc/RestClient/getLendingInterestStatus.js +++ b/examples/apidoc/RestClient/getLendingInterestStatus.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/interest_status/{currency} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3438 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3458 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingInterestStatus(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingMarket.js b/examples/apidoc/RestClient/getLendingMarket.js index a1c06d5..e594b3a 100644 --- a/examples/apidoc/RestClient/getLendingMarket.js +++ b/examples/apidoc/RestClient/getLendingMarket.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/currency_pairs/{currency_pair} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1697 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1698 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingMarket(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingMarkets.js b/examples/apidoc/RestClient/getLendingMarkets.js index e3f8ad9..7b59607 100644 --- a/examples/apidoc/RestClient/getLendingMarkets.js +++ b/examples/apidoc/RestClient/getLendingMarkets.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/currency_pairs // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1682 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1683 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingMarkets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingOrders.js b/examples/apidoc/RestClient/getLendingOrders.js index 9eec298..ac5b995 100644 --- a/examples/apidoc/RestClient/getLendingOrders.js +++ b/examples/apidoc/RestClient/getLendingOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/lends // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3359 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3379 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingRecords.js b/examples/apidoc/RestClient/getLendingRecords.js index 2fe6000..e313866 100644 --- a/examples/apidoc/RestClient/getLendingRecords.js +++ b/examples/apidoc/RestClient/getLendingRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/lend_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3384 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3404 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLendingTotalInterest.js b/examples/apidoc/RestClient/getLendingTotalInterest.js index b511ca0..2e85717 100644 --- a/examples/apidoc/RestClient/getLendingTotalInterest.js +++ b/examples/apidoc/RestClient/getLendingTotalInterest.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/interests/{currency} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3397 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3417 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLendingTotalInterest(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLiquidationHistory.js b/examples/apidoc/RestClient/getLiquidationHistory.js index 93c2fc4..e212170 100644 --- a/examples/apidoc/RestClient/getLiquidationHistory.js +++ b/examples/apidoc/RestClient/getLiquidationHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/liq_orders // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2023 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2020 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLiquidationHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanCollateralRecords.js b/examples/apidoc/RestClient/getLoanCollateralRecords.js index c34d1f0..9093773 100644 --- a/examples/apidoc/RestClient/getLoanCollateralRecords.js +++ b/examples/apidoc/RestClient/getLoanCollateralRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/collaterals // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3527 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3547 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanCollateralRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanCollateralizationRatio.js b/examples/apidoc/RestClient/getLoanCollateralizationRatio.js index 3693f27..ed3cfac 100644 --- a/examples/apidoc/RestClient/getLoanCollateralizationRatio.js +++ b/examples/apidoc/RestClient/getLoanCollateralizationRatio.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/ltv // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3554 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3574 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanCollateralizationRatio(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanMarginTiers.js b/examples/apidoc/RestClient/getLoanMarginTiers.js index 1bc9543..2b00167 100644 --- a/examples/apidoc/RestClient/getLoanMarginTiers.js +++ b/examples/apidoc/RestClient/getLoanMarginTiers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/loan_margin_tiers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L953 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L954 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanMarginTiers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanOrder.js b/examples/apidoc/RestClient/getLoanOrder.js index 5425fa1..866acb9 100644 --- a/examples/apidoc/RestClient/getLoanOrder.js +++ b/examples/apidoc/RestClient/getLoanOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3475 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3495 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanOrders.js b/examples/apidoc/RestClient/getLoanOrders.js index 26c21df..40ea2ca 100644 --- a/examples/apidoc/RestClient/getLoanOrders.js +++ b/examples/apidoc/RestClient/getLoanOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3466 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3486 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanRepaymentHistory.js b/examples/apidoc/RestClient/getLoanRepaymentHistory.js index 540a56f..74923f7 100644 --- a/examples/apidoc/RestClient/getLoanRepaymentHistory.js +++ b/examples/apidoc/RestClient/getLoanRepaymentHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/repay_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3505 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3525 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanRepaymentHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanSupportedCurrencies.js b/examples/apidoc/RestClient/getLoanSupportedCurrencies.js index 05cd1c0..73cf0ea 100644 --- a/examples/apidoc/RestClient/getLoanSupportedCurrencies.js +++ b/examples/apidoc/RestClient/getLoanSupportedCurrencies.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/currencies // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3570 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3590 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanSupportedCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getLoanTotalAmount.js b/examples/apidoc/RestClient/getLoanTotalAmount.js index d800ea6..23de8aa 100644 --- a/examples/apidoc/RestClient/getLoanTotalAmount.js +++ b/examples/apidoc/RestClient/getLoanTotalAmount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/total_amount // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3541 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3561 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getLoanTotalAmount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMainSubTransfers.js b/examples/apidoc/RestClient/getMainSubTransfers.js index 8230da6..b35b0bf 100644 --- a/examples/apidoc/RestClient/getMainSubTransfers.js +++ b/examples/apidoc/RestClient/getMainSubTransfers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_transfers // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L482 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L483 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMainSubTransfers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginAccounts.js b/examples/apidoc/RestClient/getMarginAccounts.js index fd449df..152c21d 100644 --- a/examples/apidoc/RestClient/getMarginAccounts.js +++ b/examples/apidoc/RestClient/getMarginAccounts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1419 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1420 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginAccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginBalanceHistory.js b/examples/apidoc/RestClient/getMarginBalanceHistory.js index 1a3a833..d91d79c 100644 --- a/examples/apidoc/RestClient/getMarginBalanceHistory.js +++ b/examples/apidoc/RestClient/getMarginBalanceHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1433 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1434 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginBalanceHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginTransferableAmount.js b/examples/apidoc/RestClient/getMarginTransferableAmount.js index bdbea8c..653d4ca 100644 --- a/examples/apidoc/RestClient/getMarginTransferableAmount.js +++ b/examples/apidoc/RestClient/getMarginTransferableAmount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/transferable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1494 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1495 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginTransferableAmount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginUNIInterestRecords.js b/examples/apidoc/RestClient/getMarginUNIInterestRecords.js index 397ce71..048deb3 100644 --- a/examples/apidoc/RestClient/getMarginUNIInterestRecords.js +++ b/examples/apidoc/RestClient/getMarginUNIInterestRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/interest_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1757 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1758 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginUNIInterestRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginUNILoanRecords.js b/examples/apidoc/RestClient/getMarginUNILoanRecords.js index 40a7496..9098206 100644 --- a/examples/apidoc/RestClient/getMarginUNILoanRecords.js +++ b/examples/apidoc/RestClient/getMarginUNILoanRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/loan_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1745 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1746 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginUNILoanRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginUNILoans.js b/examples/apidoc/RestClient/getMarginUNILoans.js index 138424a..f64553a 100644 --- a/examples/apidoc/RestClient/getMarginUNILoans.js +++ b/examples/apidoc/RestClient/getMarginUNILoans.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/loans // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1735 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1736 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginUNILoans(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js b/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js index 5f3c311..da86961 100644 --- a/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js +++ b/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/borrowable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1769 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1770 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginUNIMaxBorrow(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js b/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js index e1aa4d0..3b34396 100644 --- a/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js +++ b/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/mortgage // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3658 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3678 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanAdjustmentRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js b/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js index 7b19eb2..24c03fc 100644 --- a/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js +++ b/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/currency_quota // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3670 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3690 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanCurrencyQuota(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanFixedRates.js b/examples/apidoc/RestClient/getMultiLoanFixedRates.js index 9d595dd..9fb62cf 100644 --- a/examples/apidoc/RestClient/getMultiLoanFixedRates.js +++ b/examples/apidoc/RestClient/getMultiLoanFixedRates.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/fixed_rate // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3700 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3720 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanFixedRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanOrder.js b/examples/apidoc/RestClient/getMultiLoanOrder.js index 14d3f01..022b110 100644 --- a/examples/apidoc/RestClient/getMultiLoanOrder.js +++ b/examples/apidoc/RestClient/getMultiLoanOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3614 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3634 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanOrders.js b/examples/apidoc/RestClient/getMultiLoanOrders.js index a3acbe7..dacb3dc 100644 --- a/examples/apidoc/RestClient/getMultiLoanOrders.js +++ b/examples/apidoc/RestClient/getMultiLoanOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3602 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3622 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanRatio.js b/examples/apidoc/RestClient/getMultiLoanRatio.js index 3d6be78..bdf750e 100644 --- a/examples/apidoc/RestClient/getMultiLoanRatio.js +++ b/examples/apidoc/RestClient/getMultiLoanRatio.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/ltv // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3691 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3711 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanRatio(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanRepayRecords.js b/examples/apidoc/RestClient/getMultiLoanRepayRecords.js index 4a71406..e5ae226 100644 --- a/examples/apidoc/RestClient/getMultiLoanRepayRecords.js +++ b/examples/apidoc/RestClient/getMultiLoanRepayRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/repay // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3634 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3654 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanRepayRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js b/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js index 96671ee..a7f80f5 100644 --- a/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js +++ b/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/currencies // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3682 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3702 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMultiLoanSupportedCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsAccount.js b/examples/apidoc/RestClient/getOptionsAccount.js index 6e3a528..651702b 100644 --- a/examples/apidoc/RestClient/getOptionsAccount.js +++ b/examples/apidoc/RestClient/getOptionsAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3156 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3153 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsAccountChange.js b/examples/apidoc/RestClient/getOptionsAccountChange.js index e96cd3a..51bf296 100644 --- a/examples/apidoc/RestClient/getOptionsAccountChange.js +++ b/examples/apidoc/RestClient/getOptionsAccountChange.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3166 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3163 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsAccountChange(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsCandles.js b/examples/apidoc/RestClient/getOptionsCandles.js index e0564d6..9cf2f7c 100644 --- a/examples/apidoc/RestClient/getOptionsCandles.js +++ b/examples/apidoc/RestClient/getOptionsCandles.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/candlesticks // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3125 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3122 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsContract.js b/examples/apidoc/RestClient/getOptionsContract.js index 7842330..9242a28 100644 --- a/examples/apidoc/RestClient/getOptionsContract.js +++ b/examples/apidoc/RestClient/getOptionsContract.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/contracts/{contract} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3034 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3031 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsContract(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsContractSettlement.js b/examples/apidoc/RestClient/getOptionsContractSettlement.js index 169d77b..3d74090 100644 --- a/examples/apidoc/RestClient/getOptionsContractSettlement.js +++ b/examples/apidoc/RestClient/getOptionsContractSettlement.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/settlements/{contract} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3056 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3053 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsContractSettlement(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsContracts.js b/examples/apidoc/RestClient/getOptionsContracts.js index 947af35..d8bc947 100644 --- a/examples/apidoc/RestClient/getOptionsContracts.js +++ b/examples/apidoc/RestClient/getOptionsContracts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/contracts // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3021 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3018 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsContracts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsExpirationTimes.js b/examples/apidoc/RestClient/getOptionsExpirationTimes.js index 4ff5a31..b28602a 100644 --- a/examples/apidoc/RestClient/getOptionsExpirationTimes.js +++ b/examples/apidoc/RestClient/getOptionsExpirationTimes.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/expirations // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3011 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3008 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsExpirationTimes(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsLiquidation.js b/examples/apidoc/RestClient/getOptionsLiquidation.js index 7dd0fb1..a55b7e4 100644 --- a/examples/apidoc/RestClient/getOptionsLiquidation.js +++ b/examples/apidoc/RestClient/getOptionsLiquidation.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/position_close // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3202 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3199 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsLiquidation(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsMMPSettings.js b/examples/apidoc/RestClient/getOptionsMMPSettings.js index a14be72..53c6e9b 100644 --- a/examples/apidoc/RestClient/getOptionsMMPSettings.js +++ b/examples/apidoc/RestClient/getOptionsMMPSettings.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/mmp // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3301 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3321 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsMMPSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsMySettlements.js b/examples/apidoc/RestClient/getOptionsMySettlements.js index a41c298..bc52c04 100644 --- a/examples/apidoc/RestClient/getOptionsMySettlements.js +++ b/examples/apidoc/RestClient/getOptionsMySettlements.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/my_settlements // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3071 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3068 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsMySettlements(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsOrder.js b/examples/apidoc/RestClient/getOptionsOrder.js index 827aa93..1003bfa 100644 --- a/examples/apidoc/RestClient/getOptionsOrder.js +++ b/examples/apidoc/RestClient/getOptionsOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3253 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3250 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsOrderBook.js b/examples/apidoc/RestClient/getOptionsOrderBook.js index 829feae..993690e 100644 --- a/examples/apidoc/RestClient/getOptionsOrderBook.js +++ b/examples/apidoc/RestClient/getOptionsOrderBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/order_book // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3085 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3082 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsOrderBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsOrders.js b/examples/apidoc/RestClient/getOptionsOrders.js index 151e374..18e3d56 100644 --- a/examples/apidoc/RestClient/getOptionsOrders.js +++ b/examples/apidoc/RestClient/getOptionsOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3227 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3224 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsPersonalHistory.js b/examples/apidoc/RestClient/getOptionsPersonalHistory.js index 3645035..3cad184 100644 --- a/examples/apidoc/RestClient/getOptionsPersonalHistory.js +++ b/examples/apidoc/RestClient/getOptionsPersonalHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/my_trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3277 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3297 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsPersonalHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsPositionContract.js b/examples/apidoc/RestClient/getOptionsPositionContract.js index 4172cc2..0c3e68f 100644 --- a/examples/apidoc/RestClient/getOptionsPositionContract.js +++ b/examples/apidoc/RestClient/getOptionsPositionContract.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/positions/{contract} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3190 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3187 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsPositionContract(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js b/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js index b082153..7a9ed3d 100644 --- a/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js +++ b/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3178 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3175 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsPositionsUnderlying(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsSettlementHistory.js b/examples/apidoc/RestClient/getOptionsSettlementHistory.js index 8190aa1..8ede62a 100644 --- a/examples/apidoc/RestClient/getOptionsSettlementHistory.js +++ b/examples/apidoc/RestClient/getOptionsSettlementHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/settlements // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3044 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3041 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsSettlementHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsTickers.js b/examples/apidoc/RestClient/getOptionsTickers.js index 7fcf208..d81bd6a 100644 --- a/examples/apidoc/RestClient/getOptionsTickers.js +++ b/examples/apidoc/RestClient/getOptionsTickers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3097 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3094 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsTickers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsTrades.js b/examples/apidoc/RestClient/getOptionsTrades.js index 5d76c3a..42bc429 100644 --- a/examples/apidoc/RestClient/getOptionsTrades.js +++ b/examples/apidoc/RestClient/getOptionsTrades.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3147 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3144 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js b/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js index 648eded..d113a7f 100644 --- a/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js +++ b/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/underlying/candlesticks // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3135 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3132 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsUnderlyingCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js b/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js index 67ea468..636d440 100644 --- a/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js +++ b/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/underlying/tickers/{underlying} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3111 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3108 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsUnderlyingTicker(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyings.js b/examples/apidoc/RestClient/getOptionsUnderlyings.js index 5c30e4e..6e8b7d5 100644 --- a/examples/apidoc/RestClient/getOptionsUnderlyings.js +++ b/examples/apidoc/RestClient/getOptionsUnderlyings.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/underlyings // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3001 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2998 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getOptionsUnderlyings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPartnerCommissionHistory.js b/examples/apidoc/RestClient/getPartnerCommissionHistory.js index ebbaeb6..c3d3aeb 100644 --- a/examples/apidoc/RestClient/getPartnerCommissionHistory.js +++ b/examples/apidoc/RestClient/getPartnerCommissionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/partner/commission_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3947 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3967 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPartnerCommissionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPartnerSubordinateList.js b/examples/apidoc/RestClient/getPartnerSubordinateList.js index 950d8ad..6265101 100644 --- a/examples/apidoc/RestClient/getPartnerSubordinateList.js +++ b/examples/apidoc/RestClient/getPartnerSubordinateList.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/partner/sub_list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3970 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3990 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPartnerSubordinateList(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPartnerTransactionHistory.js b/examples/apidoc/RestClient/getPartnerTransactionHistory.js index 9c5743c..477a998 100644 --- a/examples/apidoc/RestClient/getPartnerTransactionHistory.js +++ b/examples/apidoc/RestClient/getPartnerTransactionHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/partner/transaction_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3932 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3952 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPartnerTransactionHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPremiumIndexKLines.js b/examples/apidoc/RestClient/getPremiumIndexKLines.js index a397bf4..a8a1ac6 100644 --- a/examples/apidoc/RestClient/getPremiumIndexKLines.js +++ b/examples/apidoc/RestClient/getPremiumIndexKLines.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/premium_index // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1923 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1924 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPremiumIndexKLines(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPriceTriggeredOrder.js b/examples/apidoc/RestClient/getPriceTriggeredOrder.js index 91ee3c1..4ac8e27 100644 --- a/examples/apidoc/RestClient/getPriceTriggeredOrder.js +++ b/examples/apidoc/RestClient/getPriceTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/price_orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1390 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1391 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPriceTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPushOrders.js b/examples/apidoc/RestClient/getPushOrders.js index 437c157..6039946 100644 --- a/examples/apidoc/RestClient/getPushOrders.js +++ b/examples/apidoc/RestClient/getPushOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/push // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L650 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L651 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPushOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getRiskLimitTiers.js b/examples/apidoc/RestClient/getRiskLimitTiers.js index ac891cc..680fd76 100644 --- a/examples/apidoc/RestClient/getRiskLimitTiers.js +++ b/examples/apidoc/RestClient/getRiskLimitTiers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/risk_limit_tiers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2040 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2037 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getRiskLimitTiers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSavedAddresses.js b/examples/apidoc/RestClient/getSavedAddresses.js index bf78a2d..f0deeb6 100644 --- a/examples/apidoc/RestClient/getSavedAddresses.js +++ b/examples/apidoc/RestClient/getSavedAddresses.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/saved_address // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L575 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L576 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSavedAddresses(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getServerTime.js b/examples/apidoc/RestClient/getServerTime.js index 4a4513f..19a5379 100644 --- a/examples/apidoc/RestClient/getServerTime.js +++ b/examples/apidoc/RestClient/getServerTime.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/time // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1306 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1307 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getServerTime(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSmallBalanceHistory.js b/examples/apidoc/RestClient/getSmallBalanceHistory.js index 54311fa..6814631 100644 --- a/examples/apidoc/RestClient/getSmallBalanceHistory.js +++ b/examples/apidoc/RestClient/getSmallBalanceHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/small_balance_history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L638 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L639 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSmallBalanceHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSmallBalances.js b/examples/apidoc/RestClient/getSmallBalances.js index b55fb6d..0f282a8 100644 --- a/examples/apidoc/RestClient/getSmallBalances.js +++ b/examples/apidoc/RestClient/getSmallBalances.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/small_balance // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L615 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L616 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSmallBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotAccountBook.js b/examples/apidoc/RestClient/getSpotAccountBook.js index 063381f..45b3a79 100644 --- a/examples/apidoc/RestClient/getSpotAccountBook.js +++ b/examples/apidoc/RestClient/getSpotAccountBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/account_book // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1120 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1121 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotAccountBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotAccounts.js b/examples/apidoc/RestClient/getSpotAccounts.js index 232f09d..845ba0a 100644 --- a/examples/apidoc/RestClient/getSpotAccounts.js +++ b/examples/apidoc/RestClient/getSpotAccounts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1108 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1109 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotAccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotAutoOrders.js b/examples/apidoc/RestClient/getSpotAutoOrders.js index c4e2dd0..00b4afa 100644 --- a/examples/apidoc/RestClient/getSpotAutoOrders.js +++ b/examples/apidoc/RestClient/getSpotAutoOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/price_orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1365 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1366 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotAutoOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotBatchFeeRates.js b/examples/apidoc/RestClient/getSpotBatchFeeRates.js index 162c006..c4e35bc 100644 --- a/examples/apidoc/RestClient/getSpotBatchFeeRates.js +++ b/examples/apidoc/RestClient/getSpotBatchFeeRates.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/batch_fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1096 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1097 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotBatchFeeRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCandles.js b/examples/apidoc/RestClient/getSpotCandles.js index ddb22fd..58494f2 100644 --- a/examples/apidoc/RestClient/getSpotCandles.js +++ b/examples/apidoc/RestClient/getSpotCandles.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/candlesticks // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1075 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1076 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCurrencies.js b/examples/apidoc/RestClient/getSpotCurrencies.js index 4ce5186..922a791 100644 --- a/examples/apidoc/RestClient/getSpotCurrencies.js +++ b/examples/apidoc/RestClient/getSpotCurrencies.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/currencies // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L992 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L993 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCurrency.js b/examples/apidoc/RestClient/getSpotCurrency.js index d52ace1..02d2c78 100644 --- a/examples/apidoc/RestClient/getSpotCurrency.js +++ b/examples/apidoc/RestClient/getSpotCurrency.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/currencies/{currency} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1002 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1003 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCurrency(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCurrencyPair.js b/examples/apidoc/RestClient/getSpotCurrencyPair.js index 1c3d7de..864bd57 100644 --- a/examples/apidoc/RestClient/getSpotCurrencyPair.js +++ b/examples/apidoc/RestClient/getSpotCurrencyPair.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/currency_pairs/{currency_pair} // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1021 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1022 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCurrencyPair(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCurrencyPairs.js b/examples/apidoc/RestClient/getSpotCurrencyPairs.js index 78008a6..3abaf56 100644 --- a/examples/apidoc/RestClient/getSpotCurrencyPairs.js +++ b/examples/apidoc/RestClient/getSpotCurrencyPairs.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/currency_pairs // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1011 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1012 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCurrencyPairs(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotFeeRates.js b/examples/apidoc/RestClient/getSpotFeeRates.js index 1285da7..9a55c80 100644 --- a/examples/apidoc/RestClient/getSpotFeeRates.js +++ b/examples/apidoc/RestClient/getSpotFeeRates.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1087 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1088 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotFeeRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOpenOrders.js b/examples/apidoc/RestClient/getSpotOpenOrders.js index d032915..bd99684 100644 --- a/examples/apidoc/RestClient/getSpotOpenOrders.js +++ b/examples/apidoc/RestClient/getSpotOpenOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/open_orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1153 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1154 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrder.js b/examples/apidoc/RestClient/getSpotOrder.js index 44e14fb..d40fc27 100644 --- a/examples/apidoc/RestClient/getSpotOrder.js +++ b/examples/apidoc/RestClient/getSpotOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders/{order_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1239 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1240 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrderBook.js b/examples/apidoc/RestClient/getSpotOrderBook.js index 788a7e6..042d015 100644 --- a/examples/apidoc/RestClient/getSpotOrderBook.js +++ b/examples/apidoc/RestClient/getSpotOrderBook.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/order_book // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1050 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1051 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrderBook(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrders.js b/examples/apidoc/RestClient/getSpotOrders.js index e4e59f2..c609d39 100644 --- a/examples/apidoc/RestClient/getSpotOrders.js +++ b/examples/apidoc/RestClient/getSpotOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1195 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1196 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTicker.js b/examples/apidoc/RestClient/getSpotTicker.js index 0a3eb0c..54cda93 100644 --- a/examples/apidoc/RestClient/getSpotTicker.js +++ b/examples/apidoc/RestClient/getSpotTicker.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1035 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1036 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTicker(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTrades.js b/examples/apidoc/RestClient/getSpotTrades.js index 3101172..5ee94a3 100644 --- a/examples/apidoc/RestClient/getSpotTrades.js +++ b/examples/apidoc/RestClient/getSpotTrades.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1063 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1064 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTradingHistory.js b/examples/apidoc/RestClient/getSpotTradingHistory.js index 524c046..bf2d2c0 100644 --- a/examples/apidoc/RestClient/getSpotTradingHistory.js +++ b/examples/apidoc/RestClient/getSpotTradingHistory.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/my_trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1293 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1294 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTradingHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getStpGroupUsers.js b/examples/apidoc/RestClient/getStpGroupUsers.js index 1d1134c..db49657 100644 --- a/examples/apidoc/RestClient/getStpGroupUsers.js +++ b/examples/apidoc/RestClient/getStpGroupUsers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/stp_groups/{stp_id}/users // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3834 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3854 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getStpGroupUsers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getStpGroups.js b/examples/apidoc/RestClient/getStpGroups.js index ff778cb..27f5d00 100644 --- a/examples/apidoc/RestClient/getStpGroups.js +++ b/examples/apidoc/RestClient/getStpGroups.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/stp_groups // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3824 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3844 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getStpGroups(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getStructuredProductOrders.js b/examples/apidoc/RestClient/getStructuredProductOrders.js index 0565219..67ffc49 100644 --- a/examples/apidoc/RestClient/getStructuredProductOrders.js +++ b/examples/apidoc/RestClient/getStructuredProductOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/structured/orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3767 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3787 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getStructuredProductOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getStructuredProducts.js b/examples/apidoc/RestClient/getStructuredProducts.js index ad438b0..8b5cc2a 100644 --- a/examples/apidoc/RestClient/getStructuredProducts.js +++ b/examples/apidoc/RestClient/getStructuredProducts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/structured/products // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3755 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3775 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getStructuredProducts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccount.js b/examples/apidoc/RestClient/getSubAccount.js index ef6644f..fc6d56a 100644 --- a/examples/apidoc/RestClient/getSubAccount.js +++ b/examples/apidoc/RestClient/getSubAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L686 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L687 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccountApiKey.js b/examples/apidoc/RestClient/getSubAccountApiKey.js index c54b8f1..1aa5b02 100644 --- a/examples/apidoc/RestClient/getSubAccountApiKey.js +++ b/examples/apidoc/RestClient/getSubAccountApiKey.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/keys/{key} // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L746 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L747 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccountApiKeys.js b/examples/apidoc/RestClient/getSubAccountApiKeys.js index e5ab58a..b2377fe 100644 --- a/examples/apidoc/RestClient/getSubAccountApiKeys.js +++ b/examples/apidoc/RestClient/getSubAccountApiKeys.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/keys // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L708 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L709 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccountApiKeys(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccountMode.js b/examples/apidoc/RestClient/getSubAccountMode.js index 33af54f..a78706d 100644 --- a/examples/apidoc/RestClient/getSubAccountMode.js +++ b/examples/apidoc/RestClient/getSubAccountMode.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/unified_mode // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L785 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L786 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccountMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccounts.js b/examples/apidoc/RestClient/getSubAccounts.js index e8d99ba..2a38bb7 100644 --- a/examples/apidoc/RestClient/getSubAccounts.js +++ b/examples/apidoc/RestClient/getSubAccounts.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L676 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L677 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubBalance.js b/examples/apidoc/RestClient/getSubBalance.js index 22bc86b..99bd431 100644 --- a/examples/apidoc/RestClient/getSubBalance.js +++ b/examples/apidoc/RestClient/getSubBalance.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L523 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L524 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubBalance(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubCrossMarginBalances.js b/examples/apidoc/RestClient/getSubCrossMarginBalances.js index 1fbdaa8..1c0a388 100644 --- a/examples/apidoc/RestClient/getSubCrossMarginBalances.js +++ b/examples/apidoc/RestClient/getSubCrossMarginBalances.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_cross_margin_balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L563 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L564 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubCrossMarginBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubFuturesBalances.js b/examples/apidoc/RestClient/getSubFuturesBalances.js index 37017dc..bb16635 100644 --- a/examples/apidoc/RestClient/getSubFuturesBalances.js +++ b/examples/apidoc/RestClient/getSubFuturesBalances.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_futures_balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L550 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L551 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubFuturesBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubMarginBalances.js b/examples/apidoc/RestClient/getSubMarginBalances.js index f1c80cf..ddae146 100644 --- a/examples/apidoc/RestClient/getSubMarginBalances.js +++ b/examples/apidoc/RestClient/getSubMarginBalances.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_margin_balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L538 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L539 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubMarginBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSystemMaintenanceStatus.js b/examples/apidoc/RestClient/getSystemMaintenanceStatus.js index 57abd0b..32fbc2f 100644 --- a/examples/apidoc/RestClient/getSystemMaintenanceStatus.js +++ b/examples/apidoc/RestClient/getSystemMaintenanceStatus.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /v1/public/system_info // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L335 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L336 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSystemMaintenanceStatus(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getTradingFees.js b/examples/apidoc/RestClient/getTradingFees.js index 5442594..aa05f7f 100644 --- a/examples/apidoc/RestClient/getTradingFees.js +++ b/examples/apidoc/RestClient/getTradingFees.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L585 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L586 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getTradingFees(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedAccountInfo.js b/examples/apidoc/RestClient/getUnifiedAccountInfo.js index 998e33f..0d2ea4d 100644 --- a/examples/apidoc/RestClient/getUnifiedAccountInfo.js +++ b/examples/apidoc/RestClient/getUnifiedAccountInfo.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/accounts // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L802 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L803 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedAccountInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedAccountMode.js b/examples/apidoc/RestClient/getUnifiedAccountMode.js index 66b2ff1..38f5733 100644 --- a/examples/apidoc/RestClient/getUnifiedAccountMode.js +++ b/examples/apidoc/RestClient/getUnifiedAccountMode.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/unified_mode // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L918 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L919 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedAccountMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js b/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js index fd22ef5..cb57554 100644 --- a/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js +++ b/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/currency_discount_tiers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L941 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L942 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedCurrencyDiscountTiers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedEstimateRate.js b/examples/apidoc/RestClient/getUnifiedEstimateRate.js index 48fdd32..638bae8 100644 --- a/examples/apidoc/RestClient/getUnifiedEstimateRate.js +++ b/examples/apidoc/RestClient/getUnifiedEstimateRate.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/estimate_rate // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L930 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L931 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedEstimateRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedInterestRecords.js b/examples/apidoc/RestClient/getUnifiedInterestRecords.js index 5c7871b..fb77f23 100644 --- a/examples/apidoc/RestClient/getUnifiedInterestRecords.js +++ b/examples/apidoc/RestClient/getUnifiedInterestRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/interest_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L886 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L887 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedInterestRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedLoanRecords.js b/examples/apidoc/RestClient/getUnifiedLoanRecords.js index 91d87b8..8dd6410 100644 --- a/examples/apidoc/RestClient/getUnifiedLoanRecords.js +++ b/examples/apidoc/RestClient/getUnifiedLoanRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/loan_records // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L874 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L875 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedLoanRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedLoans.js b/examples/apidoc/RestClient/getUnifiedLoans.js index 3ee6764..d4c330c 100644 --- a/examples/apidoc/RestClient/getUnifiedLoans.js +++ b/examples/apidoc/RestClient/getUnifiedLoans.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/loans // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L864 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L865 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedLoans(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedMaxBorrow.js b/examples/apidoc/RestClient/getUnifiedMaxBorrow.js index 6f0aa1a..6339028 100644 --- a/examples/apidoc/RestClient/getUnifiedMaxBorrow.js +++ b/examples/apidoc/RestClient/getUnifiedMaxBorrow.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/borrowable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L817 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L818 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedMaxBorrow(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedMaxTransferable.js b/examples/apidoc/RestClient/getUnifiedMaxTransferable.js index a0a37a8..b64b8eb 100644 --- a/examples/apidoc/RestClient/getUnifiedMaxTransferable.js +++ b/examples/apidoc/RestClient/getUnifiedMaxTransferable.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/transferable // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L833 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L834 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedMaxTransferable(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js b/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js index 8d8c8e7..8d4a466 100644 --- a/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js +++ b/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/risk_units // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L897 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L898 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUnifiedRiskUnitDetails(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getUserRebateInfo.js b/examples/apidoc/RestClient/getUserRebateInfo.js index e140daa..67ee866 100644 --- a/examples/apidoc/RestClient/getUserRebateInfo.js +++ b/examples/apidoc/RestClient/getUserRebateInfo.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /rebate/user/info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4006 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L4026 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getUserRebateInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getWithdrawalRecords.js b/examples/apidoc/RestClient/getWithdrawalRecords.js index 595007c..2be5b39 100644 --- a/examples/apidoc/RestClient/getWithdrawalRecords.js +++ b/examples/apidoc/RestClient/getWithdrawalRecords.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/withdrawals // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L423 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L424 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getWithdrawalRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getWithdrawalStatus.js b/examples/apidoc/RestClient/getWithdrawalStatus.js index 80036b7..6fc7632 100644 --- a/examples/apidoc/RestClient/getWithdrawalStatus.js +++ b/examples/apidoc/RestClient/getWithdrawalStatus.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/withdraw_status // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L508 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L509 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getWithdrawalStatus(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/lockSubAccount.js b/examples/apidoc/RestClient/lockSubAccount.js index 6074593..77f0111 100644 --- a/examples/apidoc/RestClient/lockSubAccount.js +++ b/examples/apidoc/RestClient/lockSubAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/lock // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L761 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L762 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.lockSubAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/portfolioMarginCalculate.js b/examples/apidoc/RestClient/portfolioMarginCalculate.js index b68b6da..001ce6f 100644 --- a/examples/apidoc/RestClient/portfolioMarginCalculate.js +++ b/examples/apidoc/RestClient/portfolioMarginCalculate.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/portfolio_calculator // METHOD: POST // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L970 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L971 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.portfolioMarginCalculate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/repayMultiLoan.js b/examples/apidoc/RestClient/repayMultiLoan.js index 8296077..9d963df 100644 --- a/examples/apidoc/RestClient/repayMultiLoan.js +++ b/examples/apidoc/RestClient/repayMultiLoan.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3624 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3644 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.repayMultiLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/resetOptionsMMPSettings.js b/examples/apidoc/RestClient/resetOptionsMMPSettings.js index 182c899..dd2b54e 100644 --- a/examples/apidoc/RestClient/resetOptionsMMPSettings.js +++ b/examples/apidoc/RestClient/resetOptionsMMPSettings.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/mmp/reset // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3313 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3333 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.resetOptionsMMPSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js b/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js index 1411bbe..66276d6 100644 --- a/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js +++ b/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/countdown_cancel_all // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2447 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2444 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.setFuturesOrderCancelCountdown(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/setGTDeduction.js b/examples/apidoc/RestClient/setGTDeduction.js index 3a23092..a3d4cb2 100644 --- a/examples/apidoc/RestClient/setGTDeduction.js +++ b/examples/apidoc/RestClient/setGTDeduction.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /account/debit_fee // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3878 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3898 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.setGTDeduction(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/setOptionsMMPSettings.js b/examples/apidoc/RestClient/setOptionsMMPSettings.js index dbd5e7f..34c81a0 100644 --- a/examples/apidoc/RestClient/setOptionsMMPSettings.js +++ b/examples/apidoc/RestClient/setOptionsMMPSettings.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/mmp // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3289 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3309 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.setOptionsMMPSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/setUnifiedAccountMode.js b/examples/apidoc/RestClient/setUnifiedAccountMode.js index b060e11..1099e8b 100644 --- a/examples/apidoc/RestClient/setUnifiedAccountMode.js +++ b/examples/apidoc/RestClient/setUnifiedAccountMode.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/unified_mode // METHOD: PUT // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L909 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L910 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.setUnifiedAccountMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js b/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js index d031797..b03e744 100644 --- a/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js +++ b/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/loans // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1557 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1558 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitCrossMarginBorrowLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitCrossMarginRepayment.js b/examples/apidoc/RestClient/submitCrossMarginRepayment.js index 7a42a94..d730c0b 100644 --- a/examples/apidoc/RestClient/submitCrossMarginRepayment.js +++ b/examples/apidoc/RestClient/submitCrossMarginRepayment.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/cross/repayments // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1596 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1597 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitCrossMarginRepayment(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitDeliveryOrder.js b/examples/apidoc/RestClient/submitDeliveryOrder.js index 15ae924..73536f6 100644 --- a/examples/apidoc/RestClient/submitDeliveryOrder.js +++ b/examples/apidoc/RestClient/submitDeliveryOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2795 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2792 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitDeliveryOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js b/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js index bfa4a78..3d94633 100644 --- a/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js +++ b/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/price_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2923 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2920 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitDeliveryTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitDualInvestmentOrder.js b/examples/apidoc/RestClient/submitDualInvestmentOrder.js index e9efe56..8d69b9c 100644 --- a/examples/apidoc/RestClient/submitDualInvestmentOrder.js +++ b/examples/apidoc/RestClient/submitDualInvestmentOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/dual/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3742 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3762 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitDualInvestmentOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitEth2Swap.js b/examples/apidoc/RestClient/submitEth2Swap.js index 253a321..82be728 100644 --- a/examples/apidoc/RestClient/submitEth2Swap.js +++ b/examples/apidoc/RestClient/submitEth2Swap.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/staking/eth2/swap // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3715 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3735 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitEth2Swap(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFlashSwapOrder.js b/examples/apidoc/RestClient/submitFlashSwapOrder.js index b454f2e..62f99c7 100644 --- a/examples/apidoc/RestClient/submitFlashSwapOrder.js +++ b/examples/apidoc/RestClient/submitFlashSwapOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /flash_swap/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1801 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1802 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFlashSwapOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js b/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js index b9af360..2170f81 100644 --- a/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js +++ b/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /flash_swap/orders/preview // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1835 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1836 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFlashSwapOrderPreview(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesBatchOrders.js b/examples/apidoc/RestClient/submitFuturesBatchOrders.js index 8bf95ff..f9a7662 100644 --- a/examples/apidoc/RestClient/submitFuturesBatchOrders.js +++ b/examples/apidoc/RestClient/submitFuturesBatchOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/batch_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2312 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2309 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesBatchOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesOrder.js b/examples/apidoc/RestClient/submitFuturesOrder.js index c3e88d7..770e7f6 100644 --- a/examples/apidoc/RestClient/submitFuturesOrder.js +++ b/examples/apidoc/RestClient/submitFuturesOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2249 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2246 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js index d3fbf6b..fd05208 100644 --- a/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js +++ b/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/price_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2514 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2511 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesPriceTriggeredOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitLendOrRedeemOrder.js b/examples/apidoc/RestClient/submitLendOrRedeemOrder.js index 119987d..f2adf9f 100644 --- a/examples/apidoc/RestClient/submitLendOrRedeemOrder.js +++ b/examples/apidoc/RestClient/submitLendOrRedeemOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/lends // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3349 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3369 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitLendOrRedeemOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitLoanOrder.js b/examples/apidoc/RestClient/submitLoanOrder.js index 581a82f..7503074 100644 --- a/examples/apidoc/RestClient/submitLoanOrder.js +++ b/examples/apidoc/RestClient/submitLoanOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3456 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3476 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitLoanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitLoanRepay.js b/examples/apidoc/RestClient/submitLoanRepay.js index b7b664a..8dcfcbb 100644 --- a/examples/apidoc/RestClient/submitLoanRepay.js +++ b/examples/apidoc/RestClient/submitLoanRepay.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3488 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3508 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitLoanRepay(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMainSubTransfer.js b/examples/apidoc/RestClient/submitMainSubTransfer.js index fc4fdbb..43de702 100644 --- a/examples/apidoc/RestClient/submitMainSubTransfer.js +++ b/examples/apidoc/RestClient/submitMainSubTransfer.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_transfers // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L468 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L469 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMainSubTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js b/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js index dbd285e..fc12fff 100644 --- a/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js +++ b/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/uni/loans // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1719 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1720 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMarginUNIBorrowOrRepay(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMultiLoanOrder.js b/examples/apidoc/RestClient/submitMultiLoanOrder.js index 5458fb8..ca1af03 100644 --- a/examples/apidoc/RestClient/submitMultiLoanOrder.js +++ b/examples/apidoc/RestClient/submitMultiLoanOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3590 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3610 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMultiLoanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitOptionsCountdownCancel.js b/examples/apidoc/RestClient/submitOptionsCountdownCancel.js new file mode 100644 index 0000000..d217668 --- /dev/null +++ b/examples/apidoc/RestClient/submitOptionsCountdownCancel.js @@ -0,0 +1,21 @@ +const { RestClient } = require('gateio-api'); + + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" + // ENDPOINT: /options/countdown_cancel_all + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3281 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitOptionsCountdownCancel(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitOptionsOrder.js b/examples/apidoc/RestClient/submitOptionsOrder.js index fff1656..08ff027 100644 --- a/examples/apidoc/RestClient/submitOptionsOrder.js +++ b/examples/apidoc/RestClient/submitOptionsOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /options/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3215 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3212 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitOptionsOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotBatchOrders.js b/examples/apidoc/RestClient/submitSpotBatchOrders.js index 43b1b19..04cfd85 100644 --- a/examples/apidoc/RestClient/submitSpotBatchOrders.js +++ b/examples/apidoc/RestClient/submitSpotBatchOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/batch_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1137 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1138 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotBatchOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js b/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js index c6a48cf..a8cb96a 100644 --- a/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js +++ b/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/cross_liquidate_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1169 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1170 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotClosePosCrossDisabled(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotCountdownOrders.js b/examples/apidoc/RestClient/submitSpotCountdownOrders.js index 0a1f6d6..1993a26 100644 --- a/examples/apidoc/RestClient/submitSpotCountdownOrders.js +++ b/examples/apidoc/RestClient/submitSpotCountdownOrders.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/countdown_cancel_all // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1322 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1323 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotCountdownOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js b/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js index 99cb736..eef1641 100644 --- a/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js +++ b/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /withdrawals/push // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L366 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L367 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotMainAccountTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotOrder.js b/examples/apidoc/RestClient/submitSpotOrder.js index 934fff9..cec8792 100644 --- a/examples/apidoc/RestClient/submitSpotOrder.js +++ b/examples/apidoc/RestClient/submitSpotOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1183 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1184 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js b/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js index eaf7457..8c3d971 100644 --- a/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js +++ b/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/price_orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1353 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1354 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotPriceTriggerOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitStructuredProductOrder.js b/examples/apidoc/RestClient/submitStructuredProductOrder.js index 7ed167d..c000dd7 100644 --- a/examples/apidoc/RestClient/submitStructuredProductOrder.js +++ b/examples/apidoc/RestClient/submitStructuredProductOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/structured/orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3778 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3798 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitStructuredProductOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSubToSubTransfer.js b/examples/apidoc/RestClient/submitSubToSubTransfer.js index 8580551..8af37ba 100644 --- a/examples/apidoc/RestClient/submitSubToSubTransfer.js +++ b/examples/apidoc/RestClient/submitSubToSubTransfer.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/sub_account_to_sub_account // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L496 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L497 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSubToSubTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitTransfer.js b/examples/apidoc/RestClient/submitTransfer.js index a1bf999..c7d6654 100644 --- a/examples/apidoc/RestClient/submitTransfer.js +++ b/examples/apidoc/RestClient/submitTransfer.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /wallet/transfers // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L456 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L457 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js b/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js index f940511..418143e 100644 --- a/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js +++ b/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /unified/loans // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L852 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L853 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitUnifiedBorrowOrRepay(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitWithdrawal.js b/examples/apidoc/RestClient/submitWithdrawal.js index bac766c..543d73b 100644 --- a/examples/apidoc/RestClient/submitWithdrawal.js +++ b/examples/apidoc/RestClient/submitWithdrawal.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /withdrawals // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L352 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L353 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitWithdrawal(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/unlockSubAccount.js b/examples/apidoc/RestClient/unlockSubAccount.js index 8d30b1d..7e54040 100644 --- a/examples/apidoc/RestClient/unlockSubAccount.js +++ b/examples/apidoc/RestClient/unlockSubAccount.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/unlock // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L771 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L772 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.unlockSubAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateAutoRepaymentSetting.js b/examples/apidoc/RestClient/updateAutoRepaymentSetting.js index ba52ee2..eb7e8c7 100644 --- a/examples/apidoc/RestClient/updateAutoRepaymentSetting.js +++ b/examples/apidoc/RestClient/updateAutoRepaymentSetting.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /margin/auto_repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1469 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1470 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateAutoRepaymentSetting(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDeliveryLeverage.js b/examples/apidoc/RestClient/updateDeliveryLeverage.js index 2fc07fb..907f9de 100644 --- a/examples/apidoc/RestClient/updateDeliveryLeverage.js +++ b/examples/apidoc/RestClient/updateDeliveryLeverage.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/positions/{contract}/leverage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2757 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2754 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDeliveryLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDeliveryMargin.js b/examples/apidoc/RestClient/updateDeliveryMargin.js index 30c8e59..e129d80 100644 --- a/examples/apidoc/RestClient/updateDeliveryMargin.js +++ b/examples/apidoc/RestClient/updateDeliveryMargin.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/positions/{contract}/margin // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2739 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2736 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDeliveryMargin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDeliveryRiskLimit.js b/examples/apidoc/RestClient/updateDeliveryRiskLimit.js index f2bb442..10c8788 100644 --- a/examples/apidoc/RestClient/updateDeliveryRiskLimit.js +++ b/examples/apidoc/RestClient/updateDeliveryRiskLimit.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /delivery/{settle}/positions/{contract}/risk_limit // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2775 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2772 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDeliveryRiskLimit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDualModePositionLeverage.js b/examples/apidoc/RestClient/updateDualModePositionLeverage.js index 8684b1f..d8ea72b 100644 --- a/examples/apidoc/RestClient/updateDualModePositionLeverage.js +++ b/examples/apidoc/RestClient/updateDualModePositionLeverage.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/dual_comp/positions/{contract}/leverage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2208 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2205 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDualModePositionLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDualModePositionMargin.js b/examples/apidoc/RestClient/updateDualModePositionMargin.js index 0b245c6..27c45bc 100644 --- a/examples/apidoc/RestClient/updateDualModePositionMargin.js +++ b/examples/apidoc/RestClient/updateDualModePositionMargin.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/dual_comp/positions/{contract}/margin // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2192 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2189 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDualModePositionMargin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js b/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js index cada912..b4ba953 100644 --- a/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js +++ b/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/dual_comp/positions/{contract}/risk_limit // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2224 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2221 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateDualModePositionRiskLimit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateFuturesDualMode.js b/examples/apidoc/RestClient/updateFuturesDualMode.js index 75eded7..04e0fa9 100644 --- a/examples/apidoc/RestClient/updateFuturesDualMode.js +++ b/examples/apidoc/RestClient/updateFuturesDualMode.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/dual_mode // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2161 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2158 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateFuturesDualMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateFuturesLeverage.js b/examples/apidoc/RestClient/updateFuturesLeverage.js index ddbd98a..2924ded 100644 --- a/examples/apidoc/RestClient/updateFuturesLeverage.js +++ b/examples/apidoc/RestClient/updateFuturesLeverage.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/positions/{contract}/leverage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2122 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2119 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateFuturesLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateFuturesMargin.js b/examples/apidoc/RestClient/updateFuturesMargin.js index 24e7677..01d963c 100644 --- a/examples/apidoc/RestClient/updateFuturesMargin.js +++ b/examples/apidoc/RestClient/updateFuturesMargin.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/positions/{contract}/margin // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2105 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2102 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateFuturesMargin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateFuturesOrder.js b/examples/apidoc/RestClient/updateFuturesOrder.js index acea7af..60f8fda 100644 --- a/examples/apidoc/RestClient/updateFuturesOrder.js +++ b/examples/apidoc/RestClient/updateFuturesOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/orders/{order_id} // METHOD: PUT // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2361 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2358 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateInterestReinvestment.js b/examples/apidoc/RestClient/updateInterestReinvestment.js index 20e2873..1fcc969 100644 --- a/examples/apidoc/RestClient/updateInterestReinvestment.js +++ b/examples/apidoc/RestClient/updateInterestReinvestment.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/interest_reinvest // METHOD: PUT // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3422 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3442 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateInterestReinvestment(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateLendingOrder.js b/examples/apidoc/RestClient/updateLendingOrder.js index 4ca0755..9fa0b83 100644 --- a/examples/apidoc/RestClient/updateLendingOrder.js +++ b/examples/apidoc/RestClient/updateLendingOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /earn/uni/lends // METHOD: PATCH // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3371 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3391 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateLendingOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateLoanCollateral.js b/examples/apidoc/RestClient/updateLoanCollateral.js index 929239f..fd1e433 100644 --- a/examples/apidoc/RestClient/updateLoanCollateral.js +++ b/examples/apidoc/RestClient/updateLoanCollateral.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/collateral/collaterals // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3517 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3537 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateLoanCollateral(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateMultiLoan.js b/examples/apidoc/RestClient/updateMultiLoan.js index c7e374d..ea229de 100644 --- a/examples/apidoc/RestClient/updateMultiLoan.js +++ b/examples/apidoc/RestClient/updateMultiLoan.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /loan/multi_collateral/mortgage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3646 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3666 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateMultiLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updatePositionRiskLimit.js b/examples/apidoc/RestClient/updatePositionRiskLimit.js index d4ab731..1603e37 100644 --- a/examples/apidoc/RestClient/updatePositionRiskLimit.js +++ b/examples/apidoc/RestClient/updatePositionRiskLimit.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /futures/{settle}/positions/{contract}/risk_limit // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2141 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L2138 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updatePositionRiskLimit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateSpotOrder.js b/examples/apidoc/RestClient/updateSpotOrder.js index 50e2cbd..8b7dd89 100644 --- a/examples/apidoc/RestClient/updateSpotOrder.js +++ b/examples/apidoc/RestClient/updateSpotOrder.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /spot/orders/{order_id} // METHOD: PATCH // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1254 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1255 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateSpotOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/updateSubAccountApiKey.js b/examples/apidoc/RestClient/updateSubAccountApiKey.js index cb113ed..ad973d4 100644 --- a/examples/apidoc/RestClient/updateSubAccountApiKey.js +++ b/examples/apidoc/RestClient/updateSubAccountApiKey.js @@ -1,9 +1,11 @@ const { RestClient } = require('gateio-api'); + // This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange + // This Gate.io API SDK is available on npm via "npm install gateio-api" // ENDPOINT: /sub_accounts/{user_id}/keys/{key} // METHOD: PUT // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L720 + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L721 const client = new RestClient({ apiKey: 'insert_api_key_here', @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.updateSubAccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/package-lock.json b/package-lock.json index 4e7f1b8..eda6e4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gateio-api", - "version": "1.0.19", + "version": "1.0.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gateio-api", - "version": "1.0.19", + "version": "1.0.20", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index 6a0c4d5..a17f6e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gateio-api", - "version": "1.0.19", + "version": "1.0.20", "description": "Complete & robust Node.js SDK for Gate.io's REST APIs, WebSockets & WebSocket APIs, with TypeScript declarations.", "scripts": { "clean": "rm -rf dist/*",