From 0f714cffb1a66bb19283c4c28271b81cb3207391 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:43:15 +0200 Subject: [PATCH 1/2] feat(): added new endpoints, added examples --- docs/endpointFunctionList.md | 537 +++++++++--------- .../apidoc/RestClient/addUsersToStpGroup.js | 19 + .../RestClient/batchCancelFuturesOrders.js | 19 + .../RestClient/batchCancelSpotOrders.js | 19 + .../RestClient/batchUpdateFuturesOrders.js | 19 + .../RestClient/batchUpdateSpotOrders.js | 19 + .../RestClient/cancelAllDeliveryOrders.js | 19 + .../RestClient/cancelAllFuturesOrders.js | 19 + .../RestClient/cancelAllOpenDeliveryOrders.js | 19 + .../RestClient/cancelAllOpenFuturesOrders.js | 19 + .../RestClient/cancelAllOpenOptionsOrders.js | 19 + .../RestClient/cancelAllOpenSpotOrders.js | 19 + .../apidoc/RestClient/cancelDeliveryOrder.js | 19 + .../apidoc/RestClient/cancelFuturesOrder.js | 19 + .../cancelFuturesPriceTriggeredOrder.js | 19 + .../apidoc/RestClient/cancelOptionsOrder.js | 19 + .../apidoc/RestClient/cancelSpotOpenOrders.js | 19 + examples/apidoc/RestClient/cancelSpotOrder.js | 19 + .../RestClient/cancelSpotTriggeredOrder.js | 19 + .../cancelTriggeredDeliveryOrder.js | 19 + .../apidoc/RestClient/cancelWithdrawal.js | 19 + .../apidoc/RestClient/convertSmallBalance.js | 19 + .../apidoc/RestClient/createDepositAddress.js | 19 + examples/apidoc/RestClient/createStpGroup.js | 19 + .../apidoc/RestClient/createSubAccount.js | 19 + .../RestClient/createSubAccountApiKey.js | 19 + .../RestClient/deleteSubAccountApiKey.js | 19 + .../RestClient/deleteUserFromStpGroup.js | 19 + .../apidoc/RestClient/getAccountDetail.js | 19 + .../apidoc/RestClient/getAccountRateLimit.js | 19 + .../RestClient/getAgencyCommissionHistory.js | 19 + .../RestClient/getAgencyTransactionHistory.js | 19 + .../RestClient/getAllDeliveryContracts.js | 19 + .../RestClient/getAutoRepaymentSetting.js | 19 + examples/apidoc/RestClient/getBalances.js | 19 + .../RestClient/getBrokerCommissionHistory.js | 19 + .../RestClient/getBrokerTransactionHistory.js | 19 + .../RestClient/getCrossMarginAccount.js | 19 + .../getCrossMarginAccountHistory.js | 19 + .../RestClient/getCrossMarginBorrowHistory.js | 19 + .../RestClient/getCrossMarginBorrowLoan.js | 19 + .../getCrossMarginBorrowableAmount.js | 19 + .../RestClient/getCrossMarginCurrencies.js | 19 + .../RestClient/getCrossMarginCurrency.js | 19 + .../getCrossMarginInterestRecords.js | 19 + .../RestClient/getCrossMarginRepayments.js | 19 + .../getCrossMarginTransferableAmount.js | 19 + .../apidoc/RestClient/getCurrencyChains.js | 19 + .../apidoc/RestClient/getDeliveryAccount.js | 19 + .../RestClient/getDeliveryAutoOrders.js | 19 + examples/apidoc/RestClient/getDeliveryBook.js | 19 + .../apidoc/RestClient/getDeliveryCandles.js | 19 + .../RestClient/getDeliveryClosedPositions.js | 19 + .../apidoc/RestClient/getDeliveryContract.js | 19 + .../getDeliveryInsuranceBalanceHistory.js | 19 + .../getDeliveryLiquidationHistory.js | 19 + .../apidoc/RestClient/getDeliveryOrder.js | 19 + .../apidoc/RestClient/getDeliveryOrderBook.js | 19 + .../apidoc/RestClient/getDeliveryOrders.js | 19 + .../apidoc/RestClient/getDeliveryPosition.js | 19 + .../apidoc/RestClient/getDeliveryPositions.js | 19 + .../getDeliverySettlementHistory.js | 19 + .../apidoc/RestClient/getDeliveryTickers.js | 19 + .../apidoc/RestClient/getDeliveryTrades.js | 19 + .../RestClient/getDeliveryTradingHistory.js | 19 + .../RestClient/getDeliveryTriggeredOrder.js | 19 + .../apidoc/RestClient/getDepositRecords.js | 19 + .../RestClient/getDualInvestmentOrders.js | 19 + .../RestClient/getDualInvestmentProducts.js | 19 + .../apidoc/RestClient/getDualModePosition.js | 19 + .../RestClient/getEstimatedInterestRate.js | 19 + .../RestClient/getEstimatedInterestRates.js | 19 + .../RestClient/getFlashSwapCurrencyPairs.js | 19 + .../apidoc/RestClient/getFlashSwapOrder.js | 19 + .../apidoc/RestClient/getFlashSwapOrders.js | 19 + .../apidoc/RestClient/getFundingAccounts.js | 19 + examples/apidoc/RestClient/getFundingRates.js | 19 + .../apidoc/RestClient/getFuturesAccount.js | 19 + .../RestClient/getFuturesAccountBook.js | 19 + .../getFuturesAutoDeleveragingHistory.js | 19 + .../apidoc/RestClient/getFuturesAutoOrders.js | 19 + .../apidoc/RestClient/getFuturesCandles.js | 19 + .../apidoc/RestClient/getFuturesContract.js | 19 + .../apidoc/RestClient/getFuturesContracts.js | 19 + .../getFuturesInsuranceBalanceHistory.js | 19 + .../getFuturesLiquidationHistory.js | 19 + examples/apidoc/RestClient/getFuturesOrder.js | 19 + .../apidoc/RestClient/getFuturesOrderBook.js | 19 + .../apidoc/RestClient/getFuturesOrders.js | 19 + .../RestClient/getFuturesOrdersByTimeRange.js | 19 + .../apidoc/RestClient/getFuturesPosition.js | 19 + .../RestClient/getFuturesPositionHistory.js | 19 + .../apidoc/RestClient/getFuturesPositions.js | 19 + .../getFuturesPriceTriggeredOrder.js | 19 + examples/apidoc/RestClient/getFuturesStats.js | 19 + .../apidoc/RestClient/getFuturesTickers.js | 19 + .../apidoc/RestClient/getFuturesTrades.js | 19 + .../RestClient/getFuturesTradingHistory.js | 19 + .../getFuturesTradingHistoryByTimeRange.js | 19 + .../RestClient/getFuturesUserTradingFees.js | 19 + examples/apidoc/RestClient/getGTDeduction.js | 19 + .../apidoc/RestClient/getIndexConstituents.js | 19 + .../apidoc/RestClient/getLendingCurrencies.js | 19 + .../apidoc/RestClient/getLendingCurrency.js | 19 + .../RestClient/getLendingInterestRecords.js | 19 + .../RestClient/getLendingInterestStatus.js | 19 + .../apidoc/RestClient/getLendingMarket.js | 19 + .../apidoc/RestClient/getLendingMarkets.js | 19 + .../apidoc/RestClient/getLendingOrders.js | 19 + .../apidoc/RestClient/getLendingRecords.js | 19 + .../RestClient/getLendingTotalInterest.js | 19 + .../RestClient/getLiquidationHistory.js | 19 + .../RestClient/getLoanCollateralRecords.js | 19 + .../getLoanCollateralizationRatio.js | 19 + .../apidoc/RestClient/getLoanMarginTiers.js | 19 + examples/apidoc/RestClient/getLoanOrder.js | 19 + examples/apidoc/RestClient/getLoanOrders.js | 19 + .../RestClient/getLoanRepaymentHistory.js | 19 + .../RestClient/getLoanSupportedCurrencies.js | 19 + .../apidoc/RestClient/getLoanTotalAmount.js | 19 + .../apidoc/RestClient/getMainSubTransfers.js | 19 + .../apidoc/RestClient/getMarginAccounts.js | 19 + .../RestClient/getMarginBalanceHistory.js | 19 + .../RestClient/getMarginTransferableAmount.js | 19 + .../RestClient/getMarginUNIInterestRecords.js | 19 + .../RestClient/getMarginUNILoanRecords.js | 19 + .../apidoc/RestClient/getMarginUNILoans.js | 19 + .../RestClient/getMarginUNIMaxBorrow.js | 19 + .../getMultiLoanAdjustmentRecords.js | 19 + .../RestClient/getMultiLoanCurrencyQuota.js | 19 + .../RestClient/getMultiLoanFixedRates.js | 19 + .../apidoc/RestClient/getMultiLoanOrder.js | 19 + .../apidoc/RestClient/getMultiLoanOrders.js | 19 + .../apidoc/RestClient/getMultiLoanRatio.js | 19 + .../RestClient/getMultiLoanRepayRecords.js | 19 + .../getMultiLoanSupportedCurrencies.js | 19 + .../apidoc/RestClient/getOptionsAccount.js | 19 + .../RestClient/getOptionsAccountChange.js | 19 + .../apidoc/RestClient/getOptionsCandles.js | 19 + .../apidoc/RestClient/getOptionsContract.js | 19 + .../getOptionsContractSettlement.js | 19 + .../apidoc/RestClient/getOptionsContracts.js | 19 + .../RestClient/getOptionsExpirationTimes.js | 19 + .../RestClient/getOptionsLiquidation.js | 19 + .../RestClient/getOptionsMMPSettings.js | 19 + .../RestClient/getOptionsMySettlements.js | 19 + examples/apidoc/RestClient/getOptionsOrder.js | 19 + .../apidoc/RestClient/getOptionsOrderBook.js | 19 + .../apidoc/RestClient/getOptionsOrders.js | 19 + .../RestClient/getOptionsPersonalHistory.js | 19 + .../RestClient/getOptionsPositionContract.js | 19 + .../getOptionsPositionsUnderlying.js | 19 + .../RestClient/getOptionsSettlementHistory.js | 19 + .../apidoc/RestClient/getOptionsTickers.js | 19 + .../apidoc/RestClient/getOptionsTrades.js | 19 + .../RestClient/getOptionsUnderlyingCandles.js | 19 + .../RestClient/getOptionsUnderlyingTicker.js | 19 + .../RestClient/getOptionsUnderlyings.js | 19 + .../RestClient/getPartnerCommissionHistory.js | 19 + .../RestClient/getPartnerSubordinateList.js | 19 + .../getPartnerTransactionHistory.js | 19 + .../RestClient/getPremiumIndexKLines.js | 19 + .../RestClient/getPriceTriggeredOrder.js | 19 + examples/apidoc/RestClient/getPushOrders.js | 19 + .../apidoc/RestClient/getRiskLimitTiers.js | 19 + .../apidoc/RestClient/getSavedAddresses.js | 19 + examples/apidoc/RestClient/getServerTime.js | 19 + .../RestClient/getSmallBalanceHistory.js | 19 + .../apidoc/RestClient/getSmallBalances.js | 19 + .../apidoc/RestClient/getSpotAccountBook.js | 19 + examples/apidoc/RestClient/getSpotAccounts.js | 19 + .../apidoc/RestClient/getSpotAutoOrders.js | 19 + .../apidoc/RestClient/getSpotBatchFeeRates.js | 19 + examples/apidoc/RestClient/getSpotCandles.js | 19 + .../apidoc/RestClient/getSpotCurrencies.js | 19 + examples/apidoc/RestClient/getSpotCurrency.js | 19 + .../apidoc/RestClient/getSpotCurrencyPair.js | 19 + .../apidoc/RestClient/getSpotCurrencyPairs.js | 19 + examples/apidoc/RestClient/getSpotFeeRates.js | 19 + .../apidoc/RestClient/getSpotOpenOrders.js | 19 + examples/apidoc/RestClient/getSpotOrder.js | 19 + .../apidoc/RestClient/getSpotOrderBook.js | 19 + examples/apidoc/RestClient/getSpotOrders.js | 19 + examples/apidoc/RestClient/getSpotTicker.js | 19 + examples/apidoc/RestClient/getSpotTrades.js | 19 + .../RestClient/getSpotTradingHistory.js | 19 + .../apidoc/RestClient/getStpGroupUsers.js | 19 + examples/apidoc/RestClient/getStpGroups.js | 19 + .../RestClient/getStructuredProductOrders.js | 19 + .../RestClient/getStructuredProducts.js | 19 + examples/apidoc/RestClient/getSubAccount.js | 19 + .../apidoc/RestClient/getSubAccountApiKey.js | 19 + .../apidoc/RestClient/getSubAccountApiKeys.js | 19 + .../apidoc/RestClient/getSubAccountMode.js | 19 + examples/apidoc/RestClient/getSubAccounts.js | 19 + examples/apidoc/RestClient/getSubBalance.js | 19 + .../RestClient/getSubCrossMarginBalances.js | 19 + .../RestClient/getSubFuturesBalances.js | 19 + .../apidoc/RestClient/getSubMarginBalances.js | 19 + .../RestClient/getSystemMaintenanceStatus.js | 19 + examples/apidoc/RestClient/getTradingFees.js | 19 + .../RestClient/getUnifiedAccountInfo.js | 19 + .../RestClient/getUnifiedAccountMode.js | 19 + .../getUnifiedCurrencyDiscountTiers.js | 19 + .../RestClient/getUnifiedEstimateRate.js | 19 + .../RestClient/getUnifiedInterestRecords.js | 19 + .../RestClient/getUnifiedLoanRecords.js | 19 + examples/apidoc/RestClient/getUnifiedLoans.js | 19 + .../apidoc/RestClient/getUnifiedMaxBorrow.js | 19 + .../RestClient/getUnifiedMaxTransferable.js | 19 + .../RestClient/getUnifiedRiskUnitDetails.js | 19 + .../apidoc/RestClient/getUserRebateInfo.js | 19 + .../apidoc/RestClient/getWithdrawalRecords.js | 19 + .../apidoc/RestClient/getWithdrawalStatus.js | 19 + examples/apidoc/RestClient/lockSubAccount.js | 19 + .../RestClient/portfolioMarginCalculate.js | 19 + examples/apidoc/RestClient/repayMultiLoan.js | 19 + .../RestClient/resetOptionsMMPSettings.js | 19 + .../setFuturesOrderCancelCountdown.js | 19 + examples/apidoc/RestClient/setGTDeduction.js | 19 + .../RestClient/setOptionsMMPSettings.js | 19 + .../RestClient/setUnifiedAccountMode.js | 19 + .../RestClient/submitCrossMarginBorrowLoan.js | 19 + .../RestClient/submitCrossMarginRepayment.js | 19 + .../apidoc/RestClient/submitDeliveryOrder.js | 19 + .../submitDeliveryTriggeredOrder.js | 19 + .../RestClient/submitDualInvestmentOrder.js | 19 + examples/apidoc/RestClient/submitEth2Swap.js | 19 + .../apidoc/RestClient/submitFlashSwapOrder.js | 19 + .../RestClient/submitFlashSwapOrderPreview.js | 19 + .../RestClient/submitFuturesBatchOrders.js | 19 + .../apidoc/RestClient/submitFuturesOrder.js | 19 + .../submitFuturesPriceTriggeredOrder.js | 19 + .../RestClient/submitLendOrRedeemOrder.js | 19 + examples/apidoc/RestClient/submitLoanOrder.js | 19 + examples/apidoc/RestClient/submitLoanRepay.js | 19 + .../RestClient/submitMainSubTransfer.js | 19 + .../submitMarginUNIBorrowOrRepay.js | 19 + .../apidoc/RestClient/submitMultiLoanOrder.js | 19 + .../apidoc/RestClient/submitOptionsOrder.js | 19 + .../RestClient/submitSpotBatchOrders.js | 19 + .../submitSpotClosePosCrossDisabled.js | 19 + .../RestClient/submitSpotCountdownOrders.js | 19 + .../submitSpotMainAccountTransfer.js | 19 + examples/apidoc/RestClient/submitSpotOrder.js | 19 + .../RestClient/submitSpotPriceTriggerOrder.js | 19 + .../submitStructuredProductOrder.js | 19 + .../RestClient/submitSubToSubTransfer.js | 19 + examples/apidoc/RestClient/submitTransfer.js | 19 + .../RestClient/submitUnifiedBorrowOrRepay.js | 19 + .../apidoc/RestClient/submitWithdrawal.js | 19 + .../apidoc/RestClient/unlockSubAccount.js | 19 + .../RestClient/updateAutoRepaymentSetting.js | 19 + .../RestClient/updateDeliveryLeverage.js | 19 + .../apidoc/RestClient/updateDeliveryMargin.js | 19 + .../RestClient/updateDeliveryRiskLimit.js | 19 + .../updateDualModePositionLeverage.js | 19 + .../updateDualModePositionMargin.js | 19 + .../updateDualModePositionRiskLimit.js | 19 + .../RestClient/updateFuturesDualMode.js | 19 + .../RestClient/updateFuturesLeverage.js | 19 + .../apidoc/RestClient/updateFuturesMargin.js | 19 + .../apidoc/RestClient/updateFuturesOrder.js | 19 + .../RestClient/updateInterestReinvestment.js | 19 + .../apidoc/RestClient/updateLendingOrder.js | 19 + .../apidoc/RestClient/updateLoanCollateral.js | 19 + examples/apidoc/RestClient/updateMultiLoan.js | 19 + .../RestClient/updatePositionRiskLimit.js | 19 + examples/apidoc/RestClient/updateSpotOrder.js | 19 + .../RestClient/updateSubAccountApiKey.js | 19 + src/RestClient.ts | 10 + src/types/response/account.ts | 9 + 272 files changed, 5399 insertions(+), 268 deletions(-) create mode 100644 examples/apidoc/RestClient/addUsersToStpGroup.js create mode 100644 examples/apidoc/RestClient/batchCancelFuturesOrders.js create mode 100644 examples/apidoc/RestClient/batchCancelSpotOrders.js create mode 100644 examples/apidoc/RestClient/batchUpdateFuturesOrders.js create mode 100644 examples/apidoc/RestClient/batchUpdateSpotOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllDeliveryOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllFuturesOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js create mode 100644 examples/apidoc/RestClient/cancelAllOpenSpotOrders.js create mode 100644 examples/apidoc/RestClient/cancelDeliveryOrder.js create mode 100644 examples/apidoc/RestClient/cancelFuturesOrder.js create mode 100644 examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/cancelOptionsOrder.js create mode 100644 examples/apidoc/RestClient/cancelSpotOpenOrders.js create mode 100644 examples/apidoc/RestClient/cancelSpotOrder.js create mode 100644 examples/apidoc/RestClient/cancelSpotTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js create mode 100644 examples/apidoc/RestClient/cancelWithdrawal.js create mode 100644 examples/apidoc/RestClient/convertSmallBalance.js create mode 100644 examples/apidoc/RestClient/createDepositAddress.js create mode 100644 examples/apidoc/RestClient/createStpGroup.js create mode 100644 examples/apidoc/RestClient/createSubAccount.js create mode 100644 examples/apidoc/RestClient/createSubAccountApiKey.js create mode 100644 examples/apidoc/RestClient/deleteSubAccountApiKey.js create mode 100644 examples/apidoc/RestClient/deleteUserFromStpGroup.js create mode 100644 examples/apidoc/RestClient/getAccountDetail.js create mode 100644 examples/apidoc/RestClient/getAccountRateLimit.js create mode 100644 examples/apidoc/RestClient/getAgencyCommissionHistory.js create mode 100644 examples/apidoc/RestClient/getAgencyTransactionHistory.js create mode 100644 examples/apidoc/RestClient/getAllDeliveryContracts.js create mode 100644 examples/apidoc/RestClient/getAutoRepaymentSetting.js create mode 100644 examples/apidoc/RestClient/getBalances.js create mode 100644 examples/apidoc/RestClient/getBrokerCommissionHistory.js create mode 100644 examples/apidoc/RestClient/getBrokerTransactionHistory.js create mode 100644 examples/apidoc/RestClient/getCrossMarginAccount.js create mode 100644 examples/apidoc/RestClient/getCrossMarginAccountHistory.js create mode 100644 examples/apidoc/RestClient/getCrossMarginBorrowHistory.js create mode 100644 examples/apidoc/RestClient/getCrossMarginBorrowLoan.js create mode 100644 examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js create mode 100644 examples/apidoc/RestClient/getCrossMarginCurrencies.js create mode 100644 examples/apidoc/RestClient/getCrossMarginCurrency.js create mode 100644 examples/apidoc/RestClient/getCrossMarginInterestRecords.js create mode 100644 examples/apidoc/RestClient/getCrossMarginRepayments.js create mode 100644 examples/apidoc/RestClient/getCrossMarginTransferableAmount.js create mode 100644 examples/apidoc/RestClient/getCurrencyChains.js create mode 100644 examples/apidoc/RestClient/getDeliveryAccount.js create mode 100644 examples/apidoc/RestClient/getDeliveryAutoOrders.js create mode 100644 examples/apidoc/RestClient/getDeliveryBook.js create mode 100644 examples/apidoc/RestClient/getDeliveryCandles.js create mode 100644 examples/apidoc/RestClient/getDeliveryClosedPositions.js create mode 100644 examples/apidoc/RestClient/getDeliveryContract.js create mode 100644 examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js create mode 100644 examples/apidoc/RestClient/getDeliveryLiquidationHistory.js create mode 100644 examples/apidoc/RestClient/getDeliveryOrder.js create mode 100644 examples/apidoc/RestClient/getDeliveryOrderBook.js create mode 100644 examples/apidoc/RestClient/getDeliveryOrders.js create mode 100644 examples/apidoc/RestClient/getDeliveryPosition.js create mode 100644 examples/apidoc/RestClient/getDeliveryPositions.js create mode 100644 examples/apidoc/RestClient/getDeliverySettlementHistory.js create mode 100644 examples/apidoc/RestClient/getDeliveryTickers.js create mode 100644 examples/apidoc/RestClient/getDeliveryTrades.js create mode 100644 examples/apidoc/RestClient/getDeliveryTradingHistory.js create mode 100644 examples/apidoc/RestClient/getDeliveryTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/getDepositRecords.js create mode 100644 examples/apidoc/RestClient/getDualInvestmentOrders.js create mode 100644 examples/apidoc/RestClient/getDualInvestmentProducts.js create mode 100644 examples/apidoc/RestClient/getDualModePosition.js create mode 100644 examples/apidoc/RestClient/getEstimatedInterestRate.js create mode 100644 examples/apidoc/RestClient/getEstimatedInterestRates.js create mode 100644 examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js create mode 100644 examples/apidoc/RestClient/getFlashSwapOrder.js create mode 100644 examples/apidoc/RestClient/getFlashSwapOrders.js create mode 100644 examples/apidoc/RestClient/getFundingAccounts.js create mode 100644 examples/apidoc/RestClient/getFundingRates.js create mode 100644 examples/apidoc/RestClient/getFuturesAccount.js create mode 100644 examples/apidoc/RestClient/getFuturesAccountBook.js create mode 100644 examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js create mode 100644 examples/apidoc/RestClient/getFuturesAutoOrders.js create mode 100644 examples/apidoc/RestClient/getFuturesCandles.js create mode 100644 examples/apidoc/RestClient/getFuturesContract.js create mode 100644 examples/apidoc/RestClient/getFuturesContracts.js create mode 100644 examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js create mode 100644 examples/apidoc/RestClient/getFuturesLiquidationHistory.js create mode 100644 examples/apidoc/RestClient/getFuturesOrder.js create mode 100644 examples/apidoc/RestClient/getFuturesOrderBook.js create mode 100644 examples/apidoc/RestClient/getFuturesOrders.js create mode 100644 examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js create mode 100644 examples/apidoc/RestClient/getFuturesPosition.js create mode 100644 examples/apidoc/RestClient/getFuturesPositionHistory.js create mode 100644 examples/apidoc/RestClient/getFuturesPositions.js create mode 100644 examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/getFuturesStats.js create mode 100644 examples/apidoc/RestClient/getFuturesTickers.js create mode 100644 examples/apidoc/RestClient/getFuturesTrades.js create mode 100644 examples/apidoc/RestClient/getFuturesTradingHistory.js create mode 100644 examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js create mode 100644 examples/apidoc/RestClient/getFuturesUserTradingFees.js create mode 100644 examples/apidoc/RestClient/getGTDeduction.js create mode 100644 examples/apidoc/RestClient/getIndexConstituents.js create mode 100644 examples/apidoc/RestClient/getLendingCurrencies.js create mode 100644 examples/apidoc/RestClient/getLendingCurrency.js create mode 100644 examples/apidoc/RestClient/getLendingInterestRecords.js create mode 100644 examples/apidoc/RestClient/getLendingInterestStatus.js create mode 100644 examples/apidoc/RestClient/getLendingMarket.js create mode 100644 examples/apidoc/RestClient/getLendingMarkets.js create mode 100644 examples/apidoc/RestClient/getLendingOrders.js create mode 100644 examples/apidoc/RestClient/getLendingRecords.js create mode 100644 examples/apidoc/RestClient/getLendingTotalInterest.js create mode 100644 examples/apidoc/RestClient/getLiquidationHistory.js create mode 100644 examples/apidoc/RestClient/getLoanCollateralRecords.js create mode 100644 examples/apidoc/RestClient/getLoanCollateralizationRatio.js create mode 100644 examples/apidoc/RestClient/getLoanMarginTiers.js create mode 100644 examples/apidoc/RestClient/getLoanOrder.js create mode 100644 examples/apidoc/RestClient/getLoanOrders.js create mode 100644 examples/apidoc/RestClient/getLoanRepaymentHistory.js create mode 100644 examples/apidoc/RestClient/getLoanSupportedCurrencies.js create mode 100644 examples/apidoc/RestClient/getLoanTotalAmount.js create mode 100644 examples/apidoc/RestClient/getMainSubTransfers.js create mode 100644 examples/apidoc/RestClient/getMarginAccounts.js create mode 100644 examples/apidoc/RestClient/getMarginBalanceHistory.js create mode 100644 examples/apidoc/RestClient/getMarginTransferableAmount.js create mode 100644 examples/apidoc/RestClient/getMarginUNIInterestRecords.js create mode 100644 examples/apidoc/RestClient/getMarginUNILoanRecords.js create mode 100644 examples/apidoc/RestClient/getMarginUNILoans.js create mode 100644 examples/apidoc/RestClient/getMarginUNIMaxBorrow.js create mode 100644 examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js create mode 100644 examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js create mode 100644 examples/apidoc/RestClient/getMultiLoanFixedRates.js create mode 100644 examples/apidoc/RestClient/getMultiLoanOrder.js create mode 100644 examples/apidoc/RestClient/getMultiLoanOrders.js create mode 100644 examples/apidoc/RestClient/getMultiLoanRatio.js create mode 100644 examples/apidoc/RestClient/getMultiLoanRepayRecords.js create mode 100644 examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js create mode 100644 examples/apidoc/RestClient/getOptionsAccount.js create mode 100644 examples/apidoc/RestClient/getOptionsAccountChange.js create mode 100644 examples/apidoc/RestClient/getOptionsCandles.js create mode 100644 examples/apidoc/RestClient/getOptionsContract.js create mode 100644 examples/apidoc/RestClient/getOptionsContractSettlement.js create mode 100644 examples/apidoc/RestClient/getOptionsContracts.js create mode 100644 examples/apidoc/RestClient/getOptionsExpirationTimes.js create mode 100644 examples/apidoc/RestClient/getOptionsLiquidation.js create mode 100644 examples/apidoc/RestClient/getOptionsMMPSettings.js create mode 100644 examples/apidoc/RestClient/getOptionsMySettlements.js create mode 100644 examples/apidoc/RestClient/getOptionsOrder.js create mode 100644 examples/apidoc/RestClient/getOptionsOrderBook.js create mode 100644 examples/apidoc/RestClient/getOptionsOrders.js create mode 100644 examples/apidoc/RestClient/getOptionsPersonalHistory.js create mode 100644 examples/apidoc/RestClient/getOptionsPositionContract.js create mode 100644 examples/apidoc/RestClient/getOptionsPositionsUnderlying.js create mode 100644 examples/apidoc/RestClient/getOptionsSettlementHistory.js create mode 100644 examples/apidoc/RestClient/getOptionsTickers.js create mode 100644 examples/apidoc/RestClient/getOptionsTrades.js create mode 100644 examples/apidoc/RestClient/getOptionsUnderlyingCandles.js create mode 100644 examples/apidoc/RestClient/getOptionsUnderlyingTicker.js create mode 100644 examples/apidoc/RestClient/getOptionsUnderlyings.js create mode 100644 examples/apidoc/RestClient/getPartnerCommissionHistory.js create mode 100644 examples/apidoc/RestClient/getPartnerSubordinateList.js create mode 100644 examples/apidoc/RestClient/getPartnerTransactionHistory.js create mode 100644 examples/apidoc/RestClient/getPremiumIndexKLines.js create mode 100644 examples/apidoc/RestClient/getPriceTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/getPushOrders.js create mode 100644 examples/apidoc/RestClient/getRiskLimitTiers.js create mode 100644 examples/apidoc/RestClient/getSavedAddresses.js create mode 100644 examples/apidoc/RestClient/getServerTime.js create mode 100644 examples/apidoc/RestClient/getSmallBalanceHistory.js create mode 100644 examples/apidoc/RestClient/getSmallBalances.js create mode 100644 examples/apidoc/RestClient/getSpotAccountBook.js create mode 100644 examples/apidoc/RestClient/getSpotAccounts.js create mode 100644 examples/apidoc/RestClient/getSpotAutoOrders.js create mode 100644 examples/apidoc/RestClient/getSpotBatchFeeRates.js create mode 100644 examples/apidoc/RestClient/getSpotCandles.js create mode 100644 examples/apidoc/RestClient/getSpotCurrencies.js create mode 100644 examples/apidoc/RestClient/getSpotCurrency.js create mode 100644 examples/apidoc/RestClient/getSpotCurrencyPair.js create mode 100644 examples/apidoc/RestClient/getSpotCurrencyPairs.js create mode 100644 examples/apidoc/RestClient/getSpotFeeRates.js create mode 100644 examples/apidoc/RestClient/getSpotOpenOrders.js create mode 100644 examples/apidoc/RestClient/getSpotOrder.js create mode 100644 examples/apidoc/RestClient/getSpotOrderBook.js create mode 100644 examples/apidoc/RestClient/getSpotOrders.js create mode 100644 examples/apidoc/RestClient/getSpotTicker.js create mode 100644 examples/apidoc/RestClient/getSpotTrades.js create mode 100644 examples/apidoc/RestClient/getSpotTradingHistory.js create mode 100644 examples/apidoc/RestClient/getStpGroupUsers.js create mode 100644 examples/apidoc/RestClient/getStpGroups.js create mode 100644 examples/apidoc/RestClient/getStructuredProductOrders.js create mode 100644 examples/apidoc/RestClient/getStructuredProducts.js create mode 100644 examples/apidoc/RestClient/getSubAccount.js create mode 100644 examples/apidoc/RestClient/getSubAccountApiKey.js create mode 100644 examples/apidoc/RestClient/getSubAccountApiKeys.js create mode 100644 examples/apidoc/RestClient/getSubAccountMode.js create mode 100644 examples/apidoc/RestClient/getSubAccounts.js create mode 100644 examples/apidoc/RestClient/getSubBalance.js create mode 100644 examples/apidoc/RestClient/getSubCrossMarginBalances.js create mode 100644 examples/apidoc/RestClient/getSubFuturesBalances.js create mode 100644 examples/apidoc/RestClient/getSubMarginBalances.js create mode 100644 examples/apidoc/RestClient/getSystemMaintenanceStatus.js create mode 100644 examples/apidoc/RestClient/getTradingFees.js create mode 100644 examples/apidoc/RestClient/getUnifiedAccountInfo.js create mode 100644 examples/apidoc/RestClient/getUnifiedAccountMode.js create mode 100644 examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js create mode 100644 examples/apidoc/RestClient/getUnifiedEstimateRate.js create mode 100644 examples/apidoc/RestClient/getUnifiedInterestRecords.js create mode 100644 examples/apidoc/RestClient/getUnifiedLoanRecords.js create mode 100644 examples/apidoc/RestClient/getUnifiedLoans.js create mode 100644 examples/apidoc/RestClient/getUnifiedMaxBorrow.js create mode 100644 examples/apidoc/RestClient/getUnifiedMaxTransferable.js create mode 100644 examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js create mode 100644 examples/apidoc/RestClient/getUserRebateInfo.js create mode 100644 examples/apidoc/RestClient/getWithdrawalRecords.js create mode 100644 examples/apidoc/RestClient/getWithdrawalStatus.js create mode 100644 examples/apidoc/RestClient/lockSubAccount.js create mode 100644 examples/apidoc/RestClient/portfolioMarginCalculate.js create mode 100644 examples/apidoc/RestClient/repayMultiLoan.js create mode 100644 examples/apidoc/RestClient/resetOptionsMMPSettings.js create mode 100644 examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js create mode 100644 examples/apidoc/RestClient/setGTDeduction.js create mode 100644 examples/apidoc/RestClient/setOptionsMMPSettings.js create mode 100644 examples/apidoc/RestClient/setUnifiedAccountMode.js create mode 100644 examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js create mode 100644 examples/apidoc/RestClient/submitCrossMarginRepayment.js create mode 100644 examples/apidoc/RestClient/submitDeliveryOrder.js create mode 100644 examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/submitDualInvestmentOrder.js create mode 100644 examples/apidoc/RestClient/submitEth2Swap.js create mode 100644 examples/apidoc/RestClient/submitFlashSwapOrder.js create mode 100644 examples/apidoc/RestClient/submitFlashSwapOrderPreview.js create mode 100644 examples/apidoc/RestClient/submitFuturesBatchOrders.js create mode 100644 examples/apidoc/RestClient/submitFuturesOrder.js create mode 100644 examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js create mode 100644 examples/apidoc/RestClient/submitLendOrRedeemOrder.js create mode 100644 examples/apidoc/RestClient/submitLoanOrder.js create mode 100644 examples/apidoc/RestClient/submitLoanRepay.js create mode 100644 examples/apidoc/RestClient/submitMainSubTransfer.js create mode 100644 examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js create mode 100644 examples/apidoc/RestClient/submitMultiLoanOrder.js create mode 100644 examples/apidoc/RestClient/submitOptionsOrder.js create mode 100644 examples/apidoc/RestClient/submitSpotBatchOrders.js create mode 100644 examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js create mode 100644 examples/apidoc/RestClient/submitSpotCountdownOrders.js create mode 100644 examples/apidoc/RestClient/submitSpotMainAccountTransfer.js create mode 100644 examples/apidoc/RestClient/submitSpotOrder.js create mode 100644 examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js create mode 100644 examples/apidoc/RestClient/submitStructuredProductOrder.js create mode 100644 examples/apidoc/RestClient/submitSubToSubTransfer.js create mode 100644 examples/apidoc/RestClient/submitTransfer.js create mode 100644 examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js create mode 100644 examples/apidoc/RestClient/submitWithdrawal.js create mode 100644 examples/apidoc/RestClient/unlockSubAccount.js create mode 100644 examples/apidoc/RestClient/updateAutoRepaymentSetting.js create mode 100644 examples/apidoc/RestClient/updateDeliveryLeverage.js create mode 100644 examples/apidoc/RestClient/updateDeliveryMargin.js create mode 100644 examples/apidoc/RestClient/updateDeliveryRiskLimit.js create mode 100644 examples/apidoc/RestClient/updateDualModePositionLeverage.js create mode 100644 examples/apidoc/RestClient/updateDualModePositionMargin.js create mode 100644 examples/apidoc/RestClient/updateDualModePositionRiskLimit.js create mode 100644 examples/apidoc/RestClient/updateFuturesDualMode.js create mode 100644 examples/apidoc/RestClient/updateFuturesLeverage.js create mode 100644 examples/apidoc/RestClient/updateFuturesMargin.js create mode 100644 examples/apidoc/RestClient/updateFuturesOrder.js create mode 100644 examples/apidoc/RestClient/updateInterestReinvestment.js create mode 100644 examples/apidoc/RestClient/updateLendingOrder.js create mode 100644 examples/apidoc/RestClient/updateLoanCollateral.js create mode 100644 examples/apidoc/RestClient/updateMultiLoan.js create mode 100644 examples/apidoc/RestClient/updatePositionRiskLimit.js create mode 100644 examples/apidoc/RestClient/updateSpotOrder.js create mode 100644 examples/apidoc/RestClient/updateSubAccountApiKey.js diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index 55a1b70..97b0bd2 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -48,271 +48,272 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| `getSystemMaintenanceStatus()` | | GET | `/v1/public/system_info` | -| `submitWithdrawal()` | :closed_lock_with_key: | POST | `/withdrawals` | -| `submitSpotMainAccountTransfer()` | :closed_lock_with_key: | POST | `/withdrawals/push` | -| `cancelWithdrawal()` | :closed_lock_with_key: | DELETE | `/withdrawals/{withdrawal_id}` | -| `getCurrencyChains()` | | GET | `/wallet/currency_chains` | -| `createDepositAddress()` | :closed_lock_with_key: | GET | `/wallet/deposit_address` | -| `getWithdrawalRecords()` | :closed_lock_with_key: | GET | `/wallet/withdrawals` | -| `getDepositRecords()` | :closed_lock_with_key: | GET | `/wallet/deposits` | -| `submitTransfer()` | :closed_lock_with_key: | POST | `/wallet/transfers` | -| `submitMainSubTransfer()` | :closed_lock_with_key: | POST | `/wallet/sub_account_transfers` | -| `getMainSubTransfers()` | :closed_lock_with_key: | GET | `/wallet/sub_account_transfers` | -| `submitSubToSubTransfer()` | :closed_lock_with_key: | POST | `/wallet/sub_account_to_sub_account` | -| `getWithdrawalStatus()` | :closed_lock_with_key: | GET | `/wallet/withdraw_status` | -| `getSubBalance()` | :closed_lock_with_key: | GET | `/wallet/sub_account_balances` | -| `getSubMarginBalances()` | :closed_lock_with_key: | GET | `/wallet/sub_account_margin_balances` | -| `getSubFuturesBalances()` | :closed_lock_with_key: | GET | `/wallet/sub_account_futures_balances` | -| `getSubCrossMarginBalances()` | :closed_lock_with_key: | GET | `/wallet/sub_account_cross_margin_balances` | -| `getSavedAddresses()` | :closed_lock_with_key: | GET | `/wallet/saved_address` | -| `getTradingFees()` | :closed_lock_with_key: | GET | `/wallet/fee` | -| `getBalances()` | :closed_lock_with_key: | GET | `/wallet/total_balance` | -| `getSmallBalances()` | :closed_lock_with_key: | GET | `/wallet/small_balance` | -| `convertSmallBalance()` | :closed_lock_with_key: | POST | `/wallet/small_balance` | -| `getSmallBalanceHistory()` | :closed_lock_with_key: | GET | `/wallet/small_balance_history` | -| `getPushOrders()` | :closed_lock_with_key: | GET | `/wallet/push` | -| `createSubAccount()` | :closed_lock_with_key: | POST | `/sub_accounts` | -| `getSubAccounts()` | :closed_lock_with_key: | GET | `/sub_accounts` | -| `getSubAccount()` | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}` | -| `createSubAccountApiKey()` | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/keys` | -| `getSubAccountApiKeys()` | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys` | -| `updateSubAccountApiKey()` | :closed_lock_with_key: | PUT | `/sub_accounts/{user_id}/keys/{key}` | -| `deleteSubAccountApiKey()` | :closed_lock_with_key: | DELETE | `/sub_accounts/{user_id}/keys/{key}` | -| `getSubAccountApiKey()` | :closed_lock_with_key: | GET | `/sub_accounts/{user_id}/keys/{key}` | -| `lockSubAccount()` | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/lock` | -| `unlockSubAccount()` | :closed_lock_with_key: | POST | `/sub_accounts/{user_id}/unlock` | -| `getSubAccountMode()` | :closed_lock_with_key: | GET | `/sub_accounts/unified_mode` | -| `getUnifiedAccountInfo()` | :closed_lock_with_key: | GET | `/unified/accounts` | -| `getUnifiedMaxBorrow()` | :closed_lock_with_key: | GET | `/unified/borrowable` | -| `getUnifiedMaxTransferable()` | :closed_lock_with_key: | GET | `/unified/transferable` | -| `submitUnifiedBorrowOrRepay()` | :closed_lock_with_key: | POST | `/unified/loans` | -| `getUnifiedLoans()` | :closed_lock_with_key: | GET | `/unified/loans` | -| `getUnifiedLoanRecords()` | :closed_lock_with_key: | GET | `/unified/loan_records` | -| `getUnifiedInterestRecords()` | :closed_lock_with_key: | GET | `/unified/interest_records` | -| `getUnifiedRiskUnitDetails()` | :closed_lock_with_key: | GET | `/unified/risk_units` | -| `setUnifiedAccountMode()` | :closed_lock_with_key: | PUT | `/unified/unified_mode` | -| `getUnifiedAccountMode()` | :closed_lock_with_key: | GET | `/unified/unified_mode` | -| `getUnifiedEstimateRate()` | :closed_lock_with_key: | GET | `/unified/estimate_rate` | -| `getUnifiedCurrencyDiscountTiers()` | | GET | `/unified/currency_discount_tiers` | -| `getLoanMarginTiers()` | | GET | `/unified/loan_margin_tiers` | -| `portfolioMarginCalculate()` | | POST | `/unified/portfolio_calculator` | -| `getSpotCurrencies()` | | GET | `/spot/currencies` | -| `getSpotCurrency()` | | GET | `/spot/currencies/{currency}` | -| `getSpotCurrencyPairs()` | | GET | `/spot/currency_pairs` | -| `getSpotCurrencyPair()` | | GET | `/spot/currency_pairs/{currency_pair}` | -| `getSpotTicker()` | | GET | `/spot/tickers` | -| `getSpotOrderBook()` | | GET | `/spot/order_book` | -| `getSpotTrades()` | | GET | `/spot/trades` | -| `getSpotCandles()` | | GET | `/spot/candlesticks` | -| `getSpotFeeRates()` | :closed_lock_with_key: | GET | `/spot/fee` | -| `getSpotBatchFeeRates()` | :closed_lock_with_key: | GET | `/spot/batch_fee` | -| `getSpotAccounts()` | :closed_lock_with_key: | GET | `/spot/accounts` | -| `getSpotAccountBook()` | :closed_lock_with_key: | GET | `/spot/account_book` | -| `submitSpotBatchOrders()` | :closed_lock_with_key: | POST | `/spot/batch_orders` | -| `getSpotOpenOrders()` | :closed_lock_with_key: | GET | `/spot/open_orders` | -| `submitSpotClosePosCrossDisabled()` | :closed_lock_with_key: | POST | `/spot/cross_liquidate_orders` | -| `submitSpotOrder()` | :closed_lock_with_key: | POST | `/spot/orders` | -| `getSpotOrders()` | :closed_lock_with_key: | GET | `/spot/orders` | -| `cancelSpotOpenOrders()` | :closed_lock_with_key: | DELETE | `/spot/orders` | -| `batchCancelSpotOrders()` | :closed_lock_with_key: | POST | `/spot/cancel_batch_orders` | -| `getSpotOrder()` | :closed_lock_with_key: | GET | `/spot/orders/{order_id}` | -| `updateSpotOrder()` | :closed_lock_with_key: | PATCH | `/spot/orders/{order_id}` | -| `cancelSpotOrder()` | :closed_lock_with_key: | DELETE | `/spot/orders/{order_id}` | -| `getSpotTradingHistory()` | :closed_lock_with_key: | GET | `/spot/my_trades` | -| `getServerTime()` | | GET | `/spot/time` | -| `submitSpotCountdownOrders()` | :closed_lock_with_key: | POST | `/spot/countdown_cancel_all` | -| `batchUpdateSpotOrders()` | :closed_lock_with_key: | POST | `/spot/amend_batch_orders` | -| `submitSpotPriceTriggerOrder()` | :closed_lock_with_key: | POST | `/spot/price_orders` | -| `getSpotAutoOrders()` | :closed_lock_with_key: | GET | `/spot/price_orders` | -| `cancelAllOpenSpotOrders()` | :closed_lock_with_key: | DELETE | `/spot/price_orders` | -| `getPriceTriggeredOrder()` | :closed_lock_with_key: | GET | `/spot/price_orders/{order_id}` | -| `cancelSpotTriggeredOrder()` | :closed_lock_with_key: | DELETE | `/spot/price_orders/{order_id}` | -| `getMarginAccounts()` | :closed_lock_with_key: | GET | `/margin/accounts` | -| `getMarginBalanceHistory()` | :closed_lock_with_key: | GET | `/margin/account_book` | -| `getFundingAccounts()` | :closed_lock_with_key: | GET | `/margin/funding_accounts` | -| `updateAutoRepaymentSetting()` | :closed_lock_with_key: | POST | `/margin/auto_repay` | -| `getAutoRepaymentSetting()` | :closed_lock_with_key: | GET | `/margin/auto_repay` | -| `getMarginTransferableAmount()` | :closed_lock_with_key: | GET | `/margin/transferable` | -| `getCrossMarginCurrencies()` | | GET | `/margin/cross/currencies` | -| `getCrossMarginCurrency()` | | GET | `/margin/cross/currencies/{currency}` | -| `getCrossMarginAccount()` | :closed_lock_with_key: | GET | `/margin/cross/accounts` | -| `getCrossMarginAccountHistory()` | :closed_lock_with_key: | GET | `/margin/cross/account_book` | -| `submitCrossMarginBorrowLoan()` | :closed_lock_with_key: | POST | `/margin/cross/loans` | -| `getCrossMarginBorrowHistory()` | :closed_lock_with_key: | GET | `/margin/cross/loans` | -| `getCrossMarginBorrowLoan()` | :closed_lock_with_key: | GET | `/margin/cross/loans/{loan_id}` | -| `submitCrossMarginRepayment()` | :closed_lock_with_key: | POST | `/margin/cross/repayments` | -| `getCrossMarginRepayments()` | :closed_lock_with_key: | GET | `/margin/cross/repayments` | -| `getCrossMarginInterestRecords()` | :closed_lock_with_key: | GET | `/margin/cross/interest_records` | -| `getCrossMarginTransferableAmount()` | :closed_lock_with_key: | GET | `/margin/cross/transferable` | -| `getEstimatedInterestRates()` | :closed_lock_with_key: | GET | `/margin/cross/estimate_rate` | -| `getCrossMarginBorrowableAmount()` | :closed_lock_with_key: | GET | `/margin/cross/borrowable` | -| `getLendingMarkets()` | | GET | `/margin/uni/currency_pairs` | -| `getLendingMarket()` | | GET | `/margin/uni/currency_pairs/{currency_pair}` | -| `getEstimatedInterestRate()` | :closed_lock_with_key: | GET | `/margin/uni/estimate_rate` | -| `submitMarginUNIBorrowOrRepay()` | :closed_lock_with_key: | POST | `/margin/uni/loans` | -| `getMarginUNILoans()` | :closed_lock_with_key: | GET | `/margin/uni/loans` | -| `getMarginUNILoanRecords()` | :closed_lock_with_key: | GET | `/margin/uni/loan_records` | -| `getMarginUNIInterestRecords()` | :closed_lock_with_key: | GET | `/margin/uni/interest_records` | -| `getMarginUNIMaxBorrow()` | :closed_lock_with_key: | GET | `/margin/uni/borrowable` | -| `getFlashSwapCurrencyPairs()` | | GET | `/flash_swap/currency_pairs` | -| `submitFlashSwapOrder()` | :closed_lock_with_key: | POST | `/flash_swap/orders` | -| `getFlashSwapOrders()` | :closed_lock_with_key: | GET | `/flash_swap/orders` | -| `getFlashSwapOrder()` | :closed_lock_with_key: | GET | `/flash_swap/orders/{order_id}` | -| `submitFlashSwapOrderPreview()` | :closed_lock_with_key: | POST | `/flash_swap/orders/preview` | -| `getFuturesContracts()` | | GET | `/futures/{settle}/contracts` | -| `getFuturesContract()` | | GET | `/futures/{settle}/contracts/{contract}` | -| `getFuturesOrderBook()` | | GET | `/futures/{settle}/order_book` | -| `getFuturesTrades()` | | GET | `/futures/{settle}/trades` | -| `getFuturesCandles()` | | GET | `/futures/{settle}/candlesticks` | -| `getPremiumIndexKLines()` | | GET | `/futures/{settle}/premium_index` | -| `getFuturesTickers()` | | GET | `/futures/{settle}/tickers` | -| `getFundingRates()` | | GET | `/futures/{settle}/funding_rate` | -| `getFuturesInsuranceBalanceHistory()` | | GET | `/futures/{settle}/insurance` | -| `getFuturesStats()` | | GET | `/futures/{settle}/contract_stats` | -| `getIndexConstituents()` | | GET | `/futures/{settle}/index_constituents/{index}` | -| `getLiquidationHistory()` | | GET | `/futures/{settle}/liq_orders` | -| `getRiskLimitTiers()` | | GET | `/futures/{settle}/risk_limit_tiers` | -| `getFuturesAccount()` | :closed_lock_with_key: | GET | `/futures/{settle}/accounts` | -| `getFuturesAccountBook()` | :closed_lock_with_key: | GET | `/futures/{settle}/account_book` | -| `getFuturesPositions()` | :closed_lock_with_key: | GET | `/futures/{settle}/positions` | -| `getFuturesPosition()` | :closed_lock_with_key: | GET | `/futures/{settle}/positions/{contract}` | -| `updateFuturesMargin()` | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/margin` | -| `updateFuturesLeverage()` | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/leverage` | -| `updatePositionRiskLimit()` | :closed_lock_with_key: | POST | `/futures/{settle}/positions/{contract}/risk_limit` | -| `updateFuturesDualMode()` | :closed_lock_with_key: | POST | `/futures/{settle}/dual_mode` | -| `getDualModePosition()` | :closed_lock_with_key: | GET | `/futures/{settle}/dual_comp/positions/{contract}` | -| `updateDualModePositionMargin()` | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/margin` | -| `updateDualModePositionLeverage()` | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/leverage` | -| `updateDualModePositionRiskLimit()` | :closed_lock_with_key: | POST | `/futures/{settle}/dual_comp/positions/{contract}/risk_limit` | -| `submitFuturesOrder()` | :closed_lock_with_key: | POST | `/futures/{settle}/orders` | -| `getFuturesOrders()` | :closed_lock_with_key: | GET | `/futures/{settle}/orders` | -| `cancelAllFuturesOrders()` | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders` | -| `getFuturesOrdersByTimeRange()` | :closed_lock_with_key: | GET | `/futures/{settle}/orders_timerange` | -| `submitFuturesBatchOrders()` | :closed_lock_with_key: | POST | `/futures/{settle}/batch_orders` | -| `getFuturesOrder()` | :closed_lock_with_key: | GET | `/futures/{settle}/orders/{order_id}` | -| `cancelFuturesOrder()` | :closed_lock_with_key: | DELETE | `/futures/{settle}/orders/{order_id}` | -| `updateFuturesOrder()` | :closed_lock_with_key: | PUT | `/futures/{settle}/orders/{order_id}` | -| `getFuturesTradingHistory()` | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades` | -| `getFuturesTradingHistoryByTimeRange()` | :closed_lock_with_key: | GET | `/futures/{settle}/my_trades_timerange` | -| `getFuturesPositionHistory()` | :closed_lock_with_key: | GET | `/futures/{settle}/position_close` | -| `getFuturesLiquidationHistory()` | :closed_lock_with_key: | GET | `/futures/{settle}/liquidates` | -| `getFuturesAutoDeleveragingHistory()` | :closed_lock_with_key: | GET | `/futures/{settle}/auto_deleverages` | -| `setFuturesOrderCancelCountdown()` | :closed_lock_with_key: | POST | `/futures/{settle}/countdown_cancel_all` | -| `getFuturesUserTradingFees()` | :closed_lock_with_key: | GET | `/futures/{settle}/fee` | -| `batchCancelFuturesOrders()` | :closed_lock_with_key: | POST | `/futures/{settle}/batch_cancel_orders` | -| `batchUpdateFuturesOrders()` | :closed_lock_with_key: | POST | `/futures/{settle}/batch_amend_orders` | -| `submitFuturesPriceTriggeredOrder()` | :closed_lock_with_key: | POST | `/futures/{settle}/price_orders` | -| `getFuturesAutoOrders()` | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders` | -| `cancelAllOpenFuturesOrders()` | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders` | -| `getFuturesPriceTriggeredOrder()` | :closed_lock_with_key: | GET | `/futures/{settle}/price_orders/{order_id}` | -| `cancelFuturesPriceTriggeredOrder()` | :closed_lock_with_key: | DELETE | `/futures/{settle}/price_orders/{order_id}` | -| `getAllDeliveryContracts()` | | GET | `/delivery/{settle}/contracts` | -| `getDeliveryContract()` | | GET | `/delivery/{settle}/contracts/{contract}` | -| `getDeliveryOrderBook()` | | GET | `/delivery/{settle}/order_book` | -| `getDeliveryTrades()` | | GET | `/delivery/{settle}/trades` | -| `getDeliveryCandles()` | | GET | `/delivery/{settle}/candlesticks` | -| `getDeliveryTickers()` | | GET | `/delivery/{settle}/tickers` | -| `getDeliveryInsuranceBalanceHistory()` | | GET | `/delivery/{settle}/insurance` | -| `getDeliveryAccount()` | :closed_lock_with_key: | GET | `/delivery/{settle}/accounts` | -| `getDeliveryBook()` | :closed_lock_with_key: | GET | `/delivery/{settle}/account_book` | -| `getDeliveryPositions()` | :closed_lock_with_key: | GET | `/delivery/{settle}/positions` | -| `getDeliveryPosition()` | :closed_lock_with_key: | GET | `/delivery/{settle}/positions/{contract}` | -| `updateDeliveryMargin()` | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/margin` | -| `updateDeliveryLeverage()` | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/leverage` | -| `updateDeliveryRiskLimit()` | :closed_lock_with_key: | POST | `/delivery/{settle}/positions/{contract}/risk_limit` | -| `submitDeliveryOrder()` | :closed_lock_with_key: | POST | `/delivery/{settle}/orders` | -| `getDeliveryOrders()` | :closed_lock_with_key: | GET | `/delivery/{settle}/orders` | -| `cancelAllDeliveryOrders()` | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders` | -| `getDeliveryOrder()` | :closed_lock_with_key: | GET | `/delivery/{settle}/orders/{order_id}` | -| `cancelDeliveryOrder()` | :closed_lock_with_key: | DELETE | `/delivery/{settle}/orders/{order_id}` | -| `getDeliveryTradingHistory()` | :closed_lock_with_key: | GET | `/delivery/{settle}/my_trades` | -| `getDeliveryClosedPositions()` | :closed_lock_with_key: | GET | `/delivery/{settle}/position_close` | -| `getDeliveryLiquidationHistory()` | :closed_lock_with_key: | GET | `/delivery/{settle}/liquidates` | -| `getDeliverySettlementHistory()` | :closed_lock_with_key: | GET | `/delivery/{settle}/settlements` | -| `submitDeliveryTriggeredOrder()` | :closed_lock_with_key: | POST | `/delivery/{settle}/price_orders` | -| `getDeliveryAutoOrders()` | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders` | -| `cancelAllOpenDeliveryOrders()` | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders` | -| `getDeliveryTriggeredOrder()` | :closed_lock_with_key: | GET | `/delivery/{settle}/price_orders/{order_id}` | -| `cancelTriggeredDeliveryOrder()` | :closed_lock_with_key: | DELETE | `/delivery/{settle}/price_orders/{order_id}` | -| `getOptionsUnderlyings()` | | GET | `/options/underlyings` | -| `getOptionsExpirationTimes()` | | GET | `/options/expirations` | -| `getOptionsContracts()` | | GET | `/options/contracts` | -| `getOptionsContract()` | | GET | `/options/contracts/{contract}` | -| `getOptionsSettlementHistory()` | | GET | `/options/settlements` | -| `getOptionsContractSettlement()` | | GET | `/options/settlements/{contract}` | -| `getOptionsMySettlements()` | :closed_lock_with_key: | GET | `/options/my_settlements` | -| `getOptionsOrderBook()` | | GET | `/options/order_book` | -| `getOptionsTickers()` | | GET | `/options/tickers` | -| `getOptionsUnderlyingTicker()` | | GET | `/options/underlying/tickers/{underlying}` | -| `getOptionsCandles()` | | GET | `/options/candlesticks` | -| `getOptionsUnderlyingCandles()` | | GET | `/options/underlying/candlesticks` | -| `getOptionsTrades()` | | GET | `/options/trades` | -| `getOptionsAccount()` | :closed_lock_with_key: | GET | `/options/accounts` | -| `getOptionsAccountChange()` | :closed_lock_with_key: | GET | `/options/account_book` | -| `getOptionsPositionsUnderlying()` | :closed_lock_with_key: | GET | `/options/positions` | -| `getOptionsPositionContract()` | :closed_lock_with_key: | GET | `/options/positions/{contract}` | -| `getOptionsLiquidation()` | :closed_lock_with_key: | GET | `/options/position_close` | -| `submitOptionsOrder()` | :closed_lock_with_key: | POST | `/options/orders` | -| `getOptionsOrders()` | :closed_lock_with_key: | GET | `/options/orders` | -| `cancelAllOpenOptionsOrders()` | :closed_lock_with_key: | DELETE | `/options/orders` | -| `getOptionsOrder()` | :closed_lock_with_key: | GET | `/options/orders/{order_id}` | -| `cancelOptionsOrder()` | :closed_lock_with_key: | DELETE | `/options/orders/{order_id}` | -| `getOptionsPersonalHistory()` | :closed_lock_with_key: | GET | `/options/my_trades` | -| `setOptionsMMPSettings()` | :closed_lock_with_key: | POST | `/options/mmp` | -| `getOptionsMMPSettings()` | :closed_lock_with_key: | GET | `/options/mmp` | -| `resetOptionsMMPSettings()` | :closed_lock_with_key: | POST | `/options/mmp/reset` | -| `getLendingCurrencies()` | | GET | `/earn/uni/currencies` | -| `getLendingCurrency()` | | GET | `/earn/uni/currencies/{currency}` | -| `submitLendOrRedeemOrder()` | :closed_lock_with_key: | POST | `/earn/uni/lends` | -| `getLendingOrders()` | :closed_lock_with_key: | GET | `/earn/uni/lends` | -| `updateLendingOrder()` | :closed_lock_with_key: | PATCH | `/earn/uni/lends` | -| `getLendingRecords()` | :closed_lock_with_key: | GET | `/earn/uni/lend_records` | -| `getLendingTotalInterest()` | :closed_lock_with_key: | GET | `/earn/uni/interests/{currency}` | -| `getLendingInterestRecords()` | :closed_lock_with_key: | GET | `/earn/uni/interest_records` | -| `updateInterestReinvestment()` | :closed_lock_with_key: | PUT | `/earn/uni/interest_reinvest` | -| `getLendingInterestStatus()` | :closed_lock_with_key: | GET | `/earn/uni/interest_status/{currency}` | -| `submitLoanOrder()` | :closed_lock_with_key: | POST | `/loan/collateral/orders` | -| `getLoanOrders()` | :closed_lock_with_key: | GET | `/loan/collateral/orders` | -| `getLoanOrder()` | :closed_lock_with_key: | GET | `/loan/collateral/orders/{order_id}` | -| `submitLoanRepay()` | :closed_lock_with_key: | POST | `/loan/collateral/repay` | -| `getLoanRepaymentHistory()` | :closed_lock_with_key: | GET | `/loan/collateral/repay_records` | -| `updateLoanCollateral()` | :closed_lock_with_key: | POST | `/loan/collateral/collaterals` | -| `getLoanCollateralRecords()` | :closed_lock_with_key: | GET | `/loan/collateral/collaterals` | -| `getLoanTotalAmount()` | :closed_lock_with_key: | GET | `/loan/collateral/total_amount` | -| `getLoanCollateralizationRatio()` | :closed_lock_with_key: | GET | `/loan/collateral/ltv` | -| `getLoanSupportedCurrencies()` | | GET | `/loan/collateral/currencies` | -| `submitMultiLoanOrder()` | :closed_lock_with_key: | POST | `/loan/multi_collateral/orders` | -| `getMultiLoanOrders()` | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders` | -| `getMultiLoanOrder()` | :closed_lock_with_key: | GET | `/loan/multi_collateral/orders/{order_id}` | -| `repayMultiLoan()` | :closed_lock_with_key: | POST | `/loan/multi_collateral/repay` | -| `getMultiLoanRepayRecords()` | :closed_lock_with_key: | GET | `/loan/multi_collateral/repay` | -| `updateMultiLoan()` | :closed_lock_with_key: | POST | `/loan/multi_collateral/mortgage` | -| `getMultiLoanAdjustmentRecords()` | :closed_lock_with_key: | GET | `/loan/multi_collateral/mortgage` | -| `getMultiLoanCurrencyQuota()` | :closed_lock_with_key: | GET | `/loan/multi_collateral/currency_quota` | -| `getMultiLoanSupportedCurrencies()` | | GET | `/loan/multi_collateral/currencies` | -| `getMultiLoanRatio()` | | GET | `/loan/multi_collateral/ltv` | -| `getMultiLoanFixedRates()` | | GET | `/loan/multi_collateral/fixed_rate` | -| `submitEth2Swap()` | :closed_lock_with_key: | POST | `/earn/staking/eth2/swap` | -| `getDualInvestmentProducts()` | | GET | `/earn/dual/investment_plan` | -| `getDualInvestmentOrders()` | :closed_lock_with_key: | GET | `/earn/dual/orders` | -| `submitDualInvestmentOrder()` | :closed_lock_with_key: | POST | `/earn/dual/orders` | -| `getStructuredProducts()` | | GET | `/earn/structured/products` | -| `getStructuredProductOrders()` | :closed_lock_with_key: | GET | `/earn/structured/orders` | -| `submitStructuredProductOrder()` | :closed_lock_with_key: | POST | `/earn/structured/orders` | -| `getAccountDetail()` | :closed_lock_with_key: | GET | `/account/detail` | -| `createStpGroup()` | :closed_lock_with_key: | POST | `/account/stp_groups` | -| `getStpGroups()` | :closed_lock_with_key: | GET | `/account/stp_groups` | -| `getStpGroupUsers()` | :closed_lock_with_key: | GET | `/account/stp_groups/{stp_id}/users` | -| `addUsersToStpGroup()` | :closed_lock_with_key: | POST | `/account/stp_groups/{stp_id}/users` | -| `deleteUserFromStpGroup()` | :closed_lock_with_key: | DELETE | `/account/stp_groups/{stp_id}/users` | -| `setGTDeduction()` | :closed_lock_with_key: | POST | `/account/debit_fee` | -| `getGTDeduction()` | :closed_lock_with_key: | GET | `/account/debit_fee` | -| `getAgencyTransactionHistory()` | :closed_lock_with_key: | GET | `/rebate/agency/transaction_history` | -| `getAgencyCommissionHistory()` | :closed_lock_with_key: | GET | `/rebate/agency/commission_history` | -| `getPartnerTransactionHistory()` | :closed_lock_with_key: | GET | `/rebate/partner/transaction_history` | -| `getPartnerCommissionHistory()` | :closed_lock_with_key: | GET | `/rebate/partner/commission_history` | -| `getPartnerSubordinateList()` | :closed_lock_with_key: | GET | `/rebate/partner/sub_list` | -| `getBrokerCommissionHistory()` | :closed_lock_with_key: | GET | `/rebate/broker/commission_history` | -| `getBrokerTransactionHistory()` | :closed_lock_with_key: | GET | `/rebate/broker/transaction_history` | -| `getUserRebateInfo()` | :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#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 diff --git a/examples/apidoc/RestClient/addUsersToStpGroup.js b/examples/apidoc/RestClient/addUsersToStpGroup.js new file mode 100644 index 0000000..f97b369 --- /dev/null +++ b/examples/apidoc/RestClient/addUsersToStpGroup.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.addUsersToStpGroup(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/batchCancelFuturesOrders.js b/examples/apidoc/RestClient/batchCancelFuturesOrders.js new file mode 100644 index 0000000..c21b258 --- /dev/null +++ b/examples/apidoc/RestClient/batchCancelFuturesOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.batchCancelFuturesOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/batchCancelSpotOrders.js b/examples/apidoc/RestClient/batchCancelSpotOrders.js new file mode 100644 index 0000000..1c882d9 --- /dev/null +++ b/examples/apidoc/RestClient/batchCancelSpotOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.batchCancelSpotOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/batchUpdateFuturesOrders.js b/examples/apidoc/RestClient/batchUpdateFuturesOrders.js new file mode 100644 index 0000000..8d0db10 --- /dev/null +++ b/examples/apidoc/RestClient/batchUpdateFuturesOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.batchUpdateFuturesOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/batchUpdateSpotOrders.js b/examples/apidoc/RestClient/batchUpdateSpotOrders.js new file mode 100644 index 0000000..3da43a9 --- /dev/null +++ b/examples/apidoc/RestClient/batchUpdateSpotOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.batchUpdateSpotOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllDeliveryOrders.js b/examples/apidoc/RestClient/cancelAllDeliveryOrders.js new file mode 100644 index 0000000..9757a8b --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllDeliveryOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllDeliveryOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllFuturesOrders.js b/examples/apidoc/RestClient/cancelAllFuturesOrders.js new file mode 100644 index 0000000..6db73cd --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllFuturesOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllFuturesOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js b/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js new file mode 100644 index 0000000..7de7b23 --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllOpenDeliveryOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenDeliveryOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js b/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js new file mode 100644 index 0000000..9d6e511 --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllOpenFuturesOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenFuturesOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js b/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js new file mode 100644 index 0000000..11e3b1b --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllOpenOptionsOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/orders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3239 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenOptionsOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js b/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js new file mode 100644 index 0000000..8077050 --- /dev/null +++ b/examples/apidoc/RestClient/cancelAllOpenSpotOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenSpotOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelDeliveryOrder.js b/examples/apidoc/RestClient/cancelDeliveryOrder.js new file mode 100644 index 0000000..c5d6bcd --- /dev/null +++ b/examples/apidoc/RestClient/cancelDeliveryOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelDeliveryOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelFuturesOrder.js b/examples/apidoc/RestClient/cancelFuturesOrder.js new file mode 100644 index 0000000..935947f --- /dev/null +++ b/examples/apidoc/RestClient/cancelFuturesOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelFuturesOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js new file mode 100644 index 0000000..6861727 --- /dev/null +++ b/examples/apidoc/RestClient/cancelFuturesPriceTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelFuturesPriceTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelOptionsOrder.js b/examples/apidoc/RestClient/cancelOptionsOrder.js new file mode 100644 index 0000000..91c4a40 --- /dev/null +++ b/examples/apidoc/RestClient/cancelOptionsOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelOptionsOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelSpotOpenOrders.js b/examples/apidoc/RestClient/cancelSpotOpenOrders.js new file mode 100644 index 0000000..a0e76c1 --- /dev/null +++ b/examples/apidoc/RestClient/cancelSpotOpenOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/orders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1208 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelSpotOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelSpotOrder.js b/examples/apidoc/RestClient/cancelSpotOrder.js new file mode 100644 index 0000000..97d6c58 --- /dev/null +++ b/examples/apidoc/RestClient/cancelSpotOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelSpotOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js b/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js new file mode 100644 index 0000000..4de4ae4 --- /dev/null +++ b/examples/apidoc/RestClient/cancelSpotTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelSpotTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js b/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js new file mode 100644 index 0000000..35a7a47 --- /dev/null +++ b/examples/apidoc/RestClient/cancelTriggeredDeliveryOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelTriggeredDeliveryOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/cancelWithdrawal.js b/examples/apidoc/RestClient/cancelWithdrawal.js new file mode 100644 index 0000000..bfe8f0d --- /dev/null +++ b/examples/apidoc/RestClient/cancelWithdrawal.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelWithdrawal(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/convertSmallBalance.js b/examples/apidoc/RestClient/convertSmallBalance.js new file mode 100644 index 0000000..c69b711 --- /dev/null +++ b/examples/apidoc/RestClient/convertSmallBalance.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.convertSmallBalance(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/createDepositAddress.js b/examples/apidoc/RestClient/createDepositAddress.js new file mode 100644 index 0000000..5af40d4 --- /dev/null +++ b/examples/apidoc/RestClient/createDepositAddress.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createDepositAddress(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/createStpGroup.js b/examples/apidoc/RestClient/createStpGroup.js new file mode 100644 index 0000000..c01861f --- /dev/null +++ b/examples/apidoc/RestClient/createStpGroup.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createStpGroup(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/createSubAccount.js b/examples/apidoc/RestClient/createSubAccount.js new file mode 100644 index 0000000..7b85136 --- /dev/null +++ b/examples/apidoc/RestClient/createSubAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /sub_accounts + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L665 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/createSubAccountApiKey.js b/examples/apidoc/RestClient/createSubAccountApiKey.js new file mode 100644 index 0000000..8997624 --- /dev/null +++ b/examples/apidoc/RestClient/createSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/deleteSubAccountApiKey.js b/examples/apidoc/RestClient/deleteSubAccountApiKey.js new file mode 100644 index 0000000..9b8cdb4 --- /dev/null +++ b/examples/apidoc/RestClient/deleteSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.deleteSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/deleteUserFromStpGroup.js b/examples/apidoc/RestClient/deleteUserFromStpGroup.js new file mode 100644 index 0000000..992d0af --- /dev/null +++ b/examples/apidoc/RestClient/deleteUserFromStpGroup.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.deleteUserFromStpGroup(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAccountDetail.js b/examples/apidoc/RestClient/getAccountDetail.js new file mode 100644 index 0000000..e477616 --- /dev/null +++ b/examples/apidoc/RestClient/getAccountDetail.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /account/detail + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3795 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountDetail(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAccountRateLimit.js b/examples/apidoc/RestClient/getAccountRateLimit.js new file mode 100644 index 0000000..713bc03 --- /dev/null +++ b/examples/apidoc/RestClient/getAccountRateLimit.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountRateLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAgencyCommissionHistory.js b/examples/apidoc/RestClient/getAgencyCommissionHistory.js new file mode 100644 index 0000000..4793c1d --- /dev/null +++ b/examples/apidoc/RestClient/getAgencyCommissionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAgencyCommissionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAgencyTransactionHistory.js b/examples/apidoc/RestClient/getAgencyTransactionHistory.js new file mode 100644 index 0000000..67c11ff --- /dev/null +++ b/examples/apidoc/RestClient/getAgencyTransactionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAgencyTransactionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAllDeliveryContracts.js b/examples/apidoc/RestClient/getAllDeliveryContracts.js new file mode 100644 index 0000000..c579212 --- /dev/null +++ b/examples/apidoc/RestClient/getAllDeliveryContracts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllDeliveryContracts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAutoRepaymentSetting.js b/examples/apidoc/RestClient/getAutoRepaymentSetting.js new file mode 100644 index 0000000..659e8c4 --- /dev/null +++ b/examples/apidoc/RestClient/getAutoRepaymentSetting.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoRepaymentSetting(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getBalances.js b/examples/apidoc/RestClient/getBalances.js new file mode 100644 index 0000000..f3f3938 --- /dev/null +++ b/examples/apidoc/RestClient/getBalances.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getBrokerCommissionHistory.js b/examples/apidoc/RestClient/getBrokerCommissionHistory.js new file mode 100644 index 0000000..fc766ea --- /dev/null +++ b/examples/apidoc/RestClient/getBrokerCommissionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerCommissionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getBrokerTransactionHistory.js b/examples/apidoc/RestClient/getBrokerTransactionHistory.js new file mode 100644 index 0000000..2d7cd75 --- /dev/null +++ b/examples/apidoc/RestClient/getBrokerTransactionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerTransactionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginAccount.js b/examples/apidoc/RestClient/getCrossMarginAccount.js new file mode 100644 index 0000000..fb9f2a3 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginAccountHistory.js b/examples/apidoc/RestClient/getCrossMarginAccountHistory.js new file mode 100644 index 0000000..968fc3e --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginAccountHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginAccountHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js b/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js new file mode 100644 index 0000000..812a0f6 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginBorrowHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginBorrowHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js b/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js new file mode 100644 index 0000000..9b79448 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginBorrowLoan.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginBorrowLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js b/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js new file mode 100644 index 0000000..3626da7 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginBorrowableAmount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginBorrowableAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginCurrencies.js b/examples/apidoc/RestClient/getCrossMarginCurrencies.js new file mode 100644 index 0000000..4f4cd3a --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginCurrencies.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginCurrencies(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginCurrency.js b/examples/apidoc/RestClient/getCrossMarginCurrency.js new file mode 100644 index 0000000..4bb1d9a --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginCurrency.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginCurrency(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginInterestRecords.js b/examples/apidoc/RestClient/getCrossMarginInterestRecords.js new file mode 100644 index 0000000..0fd8851 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginInterestRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginInterestRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginRepayments.js b/examples/apidoc/RestClient/getCrossMarginRepayments.js new file mode 100644 index 0000000..5cb384d --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginRepayments.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginRepayments(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js b/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js new file mode 100644 index 0000000..cbb01b9 --- /dev/null +++ b/examples/apidoc/RestClient/getCrossMarginTransferableAmount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginTransferableAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCurrencyChains.js b/examples/apidoc/RestClient/getCurrencyChains.js new file mode 100644 index 0000000..380c86c --- /dev/null +++ b/examples/apidoc/RestClient/getCurrencyChains.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCurrencyChains(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryAccount.js b/examples/apidoc/RestClient/getDeliveryAccount.js new file mode 100644 index 0000000..ec43750 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryAutoOrders.js b/examples/apidoc/RestClient/getDeliveryAutoOrders.js new file mode 100644 index 0000000..20d1147 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryAutoOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryAutoOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryBook.js b/examples/apidoc/RestClient/getDeliveryBook.js new file mode 100644 index 0000000..a2afac1 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryCandles.js b/examples/apidoc/RestClient/getDeliveryCandles.js new file mode 100644 index 0000000..b6674ce --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryCandles.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryCandles(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryClosedPositions.js b/examples/apidoc/RestClient/getDeliveryClosedPositions.js new file mode 100644 index 0000000..d244acc --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryClosedPositions.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryClosedPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryContract.js b/examples/apidoc/RestClient/getDeliveryContract.js new file mode 100644 index 0000000..311a3f3 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryContract.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryContract(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js b/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js new file mode 100644 index 0000000..5a2c48a --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryInsuranceBalanceHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryInsuranceBalanceHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js b/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js new file mode 100644 index 0000000..c1abbe7 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryLiquidationHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryLiquidationHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryOrder.js b/examples/apidoc/RestClient/getDeliveryOrder.js new file mode 100644 index 0000000..806b52d --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryOrderBook.js b/examples/apidoc/RestClient/getDeliveryOrderBook.js new file mode 100644 index 0000000..2598d24 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryOrderBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryOrders.js b/examples/apidoc/RestClient/getDeliveryOrders.js new file mode 100644 index 0000000..ba2ba7c --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryPosition.js b/examples/apidoc/RestClient/getDeliveryPosition.js new file mode 100644 index 0000000..853d87f --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryPosition.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryPositions.js b/examples/apidoc/RestClient/getDeliveryPositions.js new file mode 100644 index 0000000..42f0446 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryPositions.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliverySettlementHistory.js b/examples/apidoc/RestClient/getDeliverySettlementHistory.js new file mode 100644 index 0000000..6507b71 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliverySettlementHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliverySettlementHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryTickers.js b/examples/apidoc/RestClient/getDeliveryTickers.js new file mode 100644 index 0000000..5bef5fc --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryTickers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryTickers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryTrades.js b/examples/apidoc/RestClient/getDeliveryTrades.js new file mode 100644 index 0000000..ffc0289 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryTrades.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryTradingHistory.js b/examples/apidoc/RestClient/getDeliveryTradingHistory.js new file mode 100644 index 0000000..dcc24d0 --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryTradingHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryTradingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js b/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js new file mode 100644 index 0000000..1485f8a --- /dev/null +++ b/examples/apidoc/RestClient/getDeliveryTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDeliveryTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDepositRecords.js b/examples/apidoc/RestClient/getDepositRecords.js new file mode 100644 index 0000000..6567c08 --- /dev/null +++ b/examples/apidoc/RestClient/getDepositRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /wallet/deposits + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L437 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDepositRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDualInvestmentOrders.js b/examples/apidoc/RestClient/getDualInvestmentOrders.js new file mode 100644 index 0000000..0783e47 --- /dev/null +++ b/examples/apidoc/RestClient/getDualInvestmentOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDualInvestmentOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDualInvestmentProducts.js b/examples/apidoc/RestClient/getDualInvestmentProducts.js new file mode 100644 index 0000000..c1d602d --- /dev/null +++ b/examples/apidoc/RestClient/getDualInvestmentProducts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDualInvestmentProducts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getDualModePosition.js b/examples/apidoc/RestClient/getDualModePosition.js new file mode 100644 index 0000000..4466b6c --- /dev/null +++ b/examples/apidoc/RestClient/getDualModePosition.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDualModePosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getEstimatedInterestRate.js b/examples/apidoc/RestClient/getEstimatedInterestRate.js new file mode 100644 index 0000000..a824336 --- /dev/null +++ b/examples/apidoc/RestClient/getEstimatedInterestRate.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEstimatedInterestRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getEstimatedInterestRates.js b/examples/apidoc/RestClient/getEstimatedInterestRates.js new file mode 100644 index 0000000..ec1e544 --- /dev/null +++ b/examples/apidoc/RestClient/getEstimatedInterestRates.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEstimatedInterestRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js b/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js new file mode 100644 index 0000000..0337d5c --- /dev/null +++ b/examples/apidoc/RestClient/getFlashSwapCurrencyPairs.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlashSwapCurrencyPairs(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFlashSwapOrder.js b/examples/apidoc/RestClient/getFlashSwapOrder.js new file mode 100644 index 0000000..955b162 --- /dev/null +++ b/examples/apidoc/RestClient/getFlashSwapOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlashSwapOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFlashSwapOrders.js b/examples/apidoc/RestClient/getFlashSwapOrders.js new file mode 100644 index 0000000..e5131f6 --- /dev/null +++ b/examples/apidoc/RestClient/getFlashSwapOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlashSwapOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFundingAccounts.js b/examples/apidoc/RestClient/getFundingAccounts.js new file mode 100644 index 0000000..0b87c32 --- /dev/null +++ b/examples/apidoc/RestClient/getFundingAccounts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFundingRates.js b/examples/apidoc/RestClient/getFundingRates.js new file mode 100644 index 0000000..3811369 --- /dev/null +++ b/examples/apidoc/RestClient/getFundingRates.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesAccount.js b/examples/apidoc/RestClient/getFuturesAccount.js new file mode 100644 index 0000000..5faec4a --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesAccountBook.js b/examples/apidoc/RestClient/getFuturesAccountBook.js new file mode 100644 index 0000000..385d82d --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesAccountBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesAccountBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js b/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js new file mode 100644 index 0000000..a5bf728 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesAutoDeleveragingHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesAutoDeleveragingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesAutoOrders.js b/examples/apidoc/RestClient/getFuturesAutoOrders.js new file mode 100644 index 0000000..7294f75 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesAutoOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesAutoOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesCandles.js b/examples/apidoc/RestClient/getFuturesCandles.js new file mode 100644 index 0000000..2a9de46 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesCandles.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesCandles(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesContract.js b/examples/apidoc/RestClient/getFuturesContract.js new file mode 100644 index 0000000..e30fca2 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesContract.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesContract(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesContracts.js b/examples/apidoc/RestClient/getFuturesContracts.js new file mode 100644 index 0000000..82248b4 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesContracts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesContracts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js b/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js new file mode 100644 index 0000000..826ae7f --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesInsuranceBalanceHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesInsuranceBalanceHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesLiquidationHistory.js b/examples/apidoc/RestClient/getFuturesLiquidationHistory.js new file mode 100644 index 0000000..9b9cde0 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesLiquidationHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesLiquidationHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesOrder.js b/examples/apidoc/RestClient/getFuturesOrder.js new file mode 100644 index 0000000..68fe296 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesOrderBook.js b/examples/apidoc/RestClient/getFuturesOrderBook.js new file mode 100644 index 0000000..1fcfd7a --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesOrderBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesOrders.js b/examples/apidoc/RestClient/getFuturesOrders.js new file mode 100644 index 0000000..f65b7c0 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js b/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js new file mode 100644 index 0000000..a9fe7a3 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesOrdersByTimeRange.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrdersByTimeRange(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesPosition.js b/examples/apidoc/RestClient/getFuturesPosition.js new file mode 100644 index 0000000..866af97 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesPosition.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesPositionHistory.js b/examples/apidoc/RestClient/getFuturesPositionHistory.js new file mode 100644 index 0000000..afb1175 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesPositionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesPositionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesPositions.js b/examples/apidoc/RestClient/getFuturesPositions.js new file mode 100644 index 0000000..33243c0 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesPositions.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js new file mode 100644 index 0000000..a1e4c83 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesPriceTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesPriceTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesStats.js b/examples/apidoc/RestClient/getFuturesStats.js new file mode 100644 index 0000000..f9f8746 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesStats.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesStats(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesTickers.js b/examples/apidoc/RestClient/getFuturesTickers.js new file mode 100644 index 0000000..5838cbc --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesTickers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTickers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesTrades.js b/examples/apidoc/RestClient/getFuturesTrades.js new file mode 100644 index 0000000..440bf0d --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesTrades.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesTradingHistory.js b/examples/apidoc/RestClient/getFuturesTradingHistory.js new file mode 100644 index 0000000..54a8393 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesTradingHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTradingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js b/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js new file mode 100644 index 0000000..7cd5716 --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesTradingHistoryByTimeRange.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTradingHistoryByTimeRange(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getFuturesUserTradingFees.js b/examples/apidoc/RestClient/getFuturesUserTradingFees.js new file mode 100644 index 0000000..13281eb --- /dev/null +++ b/examples/apidoc/RestClient/getFuturesUserTradingFees.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesUserTradingFees(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getGTDeduction.js b/examples/apidoc/RestClient/getGTDeduction.js new file mode 100644 index 0000000..b3bfa53 --- /dev/null +++ b/examples/apidoc/RestClient/getGTDeduction.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getGTDeduction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getIndexConstituents.js b/examples/apidoc/RestClient/getIndexConstituents.js new file mode 100644 index 0000000..13aee2a --- /dev/null +++ b/examples/apidoc/RestClient/getIndexConstituents.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIndexConstituents(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingCurrencies.js b/examples/apidoc/RestClient/getLendingCurrencies.js new file mode 100644 index 0000000..f0609e2 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingCurrencies.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingCurrencies(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingCurrency.js b/examples/apidoc/RestClient/getLendingCurrency.js new file mode 100644 index 0000000..4477b89 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingCurrency.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingCurrency(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingInterestRecords.js b/examples/apidoc/RestClient/getLendingInterestRecords.js new file mode 100644 index 0000000..4d57f25 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingInterestRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingInterestRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingInterestStatus.js b/examples/apidoc/RestClient/getLendingInterestStatus.js new file mode 100644 index 0000000..9e304a0 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingInterestStatus.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingInterestStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingMarket.js b/examples/apidoc/RestClient/getLendingMarket.js new file mode 100644 index 0000000..a1c06d5 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingMarket.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingMarket(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingMarkets.js b/examples/apidoc/RestClient/getLendingMarkets.js new file mode 100644 index 0000000..e3f8ad9 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingMarkets.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingMarkets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingOrders.js b/examples/apidoc/RestClient/getLendingOrders.js new file mode 100644 index 0000000..9eec298 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingRecords.js b/examples/apidoc/RestClient/getLendingRecords.js new file mode 100644 index 0000000..2fe6000 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLendingTotalInterest.js b/examples/apidoc/RestClient/getLendingTotalInterest.js new file mode 100644 index 0000000..b511ca0 --- /dev/null +++ b/examples/apidoc/RestClient/getLendingTotalInterest.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingTotalInterest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLiquidationHistory.js b/examples/apidoc/RestClient/getLiquidationHistory.js new file mode 100644 index 0000000..93c2fc4 --- /dev/null +++ b/examples/apidoc/RestClient/getLiquidationHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLiquidationHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanCollateralRecords.js b/examples/apidoc/RestClient/getLoanCollateralRecords.js new file mode 100644 index 0000000..c34d1f0 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanCollateralRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanCollateralRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanCollateralizationRatio.js b/examples/apidoc/RestClient/getLoanCollateralizationRatio.js new file mode 100644 index 0000000..3693f27 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanCollateralizationRatio.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanCollateralizationRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanMarginTiers.js b/examples/apidoc/RestClient/getLoanMarginTiers.js new file mode 100644 index 0000000..1bc9543 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanMarginTiers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanMarginTiers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanOrder.js b/examples/apidoc/RestClient/getLoanOrder.js new file mode 100644 index 0000000..5425fa1 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanOrders.js b/examples/apidoc/RestClient/getLoanOrders.js new file mode 100644 index 0000000..26c21df --- /dev/null +++ b/examples/apidoc/RestClient/getLoanOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanRepaymentHistory.js b/examples/apidoc/RestClient/getLoanRepaymentHistory.js new file mode 100644 index 0000000..540a56f --- /dev/null +++ b/examples/apidoc/RestClient/getLoanRepaymentHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanRepaymentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanSupportedCurrencies.js b/examples/apidoc/RestClient/getLoanSupportedCurrencies.js new file mode 100644 index 0000000..05cd1c0 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanSupportedCurrencies.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanSupportedCurrencies(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanTotalAmount.js b/examples/apidoc/RestClient/getLoanTotalAmount.js new file mode 100644 index 0000000..d800ea6 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanTotalAmount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanTotalAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMainSubTransfers.js b/examples/apidoc/RestClient/getMainSubTransfers.js new file mode 100644 index 0000000..8230da6 --- /dev/null +++ b/examples/apidoc/RestClient/getMainSubTransfers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMainSubTransfers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginAccounts.js b/examples/apidoc/RestClient/getMarginAccounts.js new file mode 100644 index 0000000..fd449df --- /dev/null +++ b/examples/apidoc/RestClient/getMarginAccounts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /margin/accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1419 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginBalanceHistory.js b/examples/apidoc/RestClient/getMarginBalanceHistory.js new file mode 100644 index 0000000..1a3a833 --- /dev/null +++ b/examples/apidoc/RestClient/getMarginBalanceHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginBalanceHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginTransferableAmount.js b/examples/apidoc/RestClient/getMarginTransferableAmount.js new file mode 100644 index 0000000..bdbea8c --- /dev/null +++ b/examples/apidoc/RestClient/getMarginTransferableAmount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /margin/transferable + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1494 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginTransferableAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginUNIInterestRecords.js b/examples/apidoc/RestClient/getMarginUNIInterestRecords.js new file mode 100644 index 0000000..397ce71 --- /dev/null +++ b/examples/apidoc/RestClient/getMarginUNIInterestRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginUNIInterestRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginUNILoanRecords.js b/examples/apidoc/RestClient/getMarginUNILoanRecords.js new file mode 100644 index 0000000..40a7496 --- /dev/null +++ b/examples/apidoc/RestClient/getMarginUNILoanRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginUNILoanRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginUNILoans.js b/examples/apidoc/RestClient/getMarginUNILoans.js new file mode 100644 index 0000000..138424a --- /dev/null +++ b/examples/apidoc/RestClient/getMarginUNILoans.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginUNILoans(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js b/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js new file mode 100644 index 0000000..5f3c311 --- /dev/null +++ b/examples/apidoc/RestClient/getMarginUNIMaxBorrow.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginUNIMaxBorrow(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js b/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js new file mode 100644 index 0000000..e1aa4d0 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanAdjustmentRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanAdjustmentRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js b/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js new file mode 100644 index 0000000..7b19eb2 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanCurrencyQuota.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanCurrencyQuota(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanFixedRates.js b/examples/apidoc/RestClient/getMultiLoanFixedRates.js new file mode 100644 index 0000000..9d595dd --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanFixedRates.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanFixedRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanOrder.js b/examples/apidoc/RestClient/getMultiLoanOrder.js new file mode 100644 index 0000000..14d3f01 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanOrders.js b/examples/apidoc/RestClient/getMultiLoanOrders.js new file mode 100644 index 0000000..a3acbe7 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanRatio.js b/examples/apidoc/RestClient/getMultiLoanRatio.js new file mode 100644 index 0000000..3d6be78 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanRatio.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanRepayRecords.js b/examples/apidoc/RestClient/getMultiLoanRepayRecords.js new file mode 100644 index 0000000..4a71406 --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanRepayRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanRepayRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js b/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js new file mode 100644 index 0000000..96671ee --- /dev/null +++ b/examples/apidoc/RestClient/getMultiLoanSupportedCurrencies.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiLoanSupportedCurrencies(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsAccount.js b/examples/apidoc/RestClient/getOptionsAccount.js new file mode 100644 index 0000000..6e3a528 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3156 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsAccountChange.js b/examples/apidoc/RestClient/getOptionsAccountChange.js new file mode 100644 index 0000000..e96cd3a --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsAccountChange.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsAccountChange(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsCandles.js b/examples/apidoc/RestClient/getOptionsCandles.js new file mode 100644 index 0000000..e0564d6 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsCandles.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/candlesticks + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3125 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsCandles(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsContract.js b/examples/apidoc/RestClient/getOptionsContract.js new file mode 100644 index 0000000..7842330 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsContract.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsContract(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsContractSettlement.js b/examples/apidoc/RestClient/getOptionsContractSettlement.js new file mode 100644 index 0000000..169d77b --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsContractSettlement.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsContractSettlement(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsContracts.js b/examples/apidoc/RestClient/getOptionsContracts.js new file mode 100644 index 0000000..947af35 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsContracts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/contracts + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3021 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsContracts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsExpirationTimes.js b/examples/apidoc/RestClient/getOptionsExpirationTimes.js new file mode 100644 index 0000000..4ff5a31 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsExpirationTimes.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/expirations + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3011 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsExpirationTimes(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsLiquidation.js b/examples/apidoc/RestClient/getOptionsLiquidation.js new file mode 100644 index 0000000..7dd0fb1 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsLiquidation.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsLiquidation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsMMPSettings.js b/examples/apidoc/RestClient/getOptionsMMPSettings.js new file mode 100644 index 0000000..a14be72 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsMMPSettings.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/mmp + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3301 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsMMPSettings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsMySettlements.js b/examples/apidoc/RestClient/getOptionsMySettlements.js new file mode 100644 index 0000000..a41c298 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsMySettlements.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsMySettlements(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsOrder.js b/examples/apidoc/RestClient/getOptionsOrder.js new file mode 100644 index 0000000..827aa93 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsOrderBook.js b/examples/apidoc/RestClient/getOptionsOrderBook.js new file mode 100644 index 0000000..829feae --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsOrderBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsOrders.js b/examples/apidoc/RestClient/getOptionsOrders.js new file mode 100644 index 0000000..151e374 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3227 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsPersonalHistory.js b/examples/apidoc/RestClient/getOptionsPersonalHistory.js new file mode 100644 index 0000000..3645035 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsPersonalHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsPersonalHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsPositionContract.js b/examples/apidoc/RestClient/getOptionsPositionContract.js new file mode 100644 index 0000000..4172cc2 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsPositionContract.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsPositionContract(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js b/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js new file mode 100644 index 0000000..b082153 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsPositionsUnderlying.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/positions + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3178 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsPositionsUnderlying(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsSettlementHistory.js b/examples/apidoc/RestClient/getOptionsSettlementHistory.js new file mode 100644 index 0000000..8190aa1 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsSettlementHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/settlements + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3044 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsSettlementHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsTickers.js b/examples/apidoc/RestClient/getOptionsTickers.js new file mode 100644 index 0000000..7fcf208 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsTickers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/tickers + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3097 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsTickers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsTrades.js b/examples/apidoc/RestClient/getOptionsTrades.js new file mode 100644 index 0000000..5d76c3a --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsTrades.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/trades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3147 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js b/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js new file mode 100644 index 0000000..648eded --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsUnderlyingCandles.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsUnderlyingCandles(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js b/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js new file mode 100644 index 0000000..67ea468 --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsUnderlyingTicker.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsUnderlyingTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getOptionsUnderlyings.js b/examples/apidoc/RestClient/getOptionsUnderlyings.js new file mode 100644 index 0000000..5c30e4e --- /dev/null +++ b/examples/apidoc/RestClient/getOptionsUnderlyings.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/underlyings + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3001 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOptionsUnderlyings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPartnerCommissionHistory.js b/examples/apidoc/RestClient/getPartnerCommissionHistory.js new file mode 100644 index 0000000..ebbaeb6 --- /dev/null +++ b/examples/apidoc/RestClient/getPartnerCommissionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPartnerCommissionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPartnerSubordinateList.js b/examples/apidoc/RestClient/getPartnerSubordinateList.js new file mode 100644 index 0000000..950d8ad --- /dev/null +++ b/examples/apidoc/RestClient/getPartnerSubordinateList.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPartnerSubordinateList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPartnerTransactionHistory.js b/examples/apidoc/RestClient/getPartnerTransactionHistory.js new file mode 100644 index 0000000..9c5743c --- /dev/null +++ b/examples/apidoc/RestClient/getPartnerTransactionHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPartnerTransactionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPremiumIndexKLines.js b/examples/apidoc/RestClient/getPremiumIndexKLines.js new file mode 100644 index 0000000..a397bf4 --- /dev/null +++ b/examples/apidoc/RestClient/getPremiumIndexKLines.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPremiumIndexKLines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPriceTriggeredOrder.js b/examples/apidoc/RestClient/getPriceTriggeredOrder.js new file mode 100644 index 0000000..91ee3c1 --- /dev/null +++ b/examples/apidoc/RestClient/getPriceTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPriceTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getPushOrders.js b/examples/apidoc/RestClient/getPushOrders.js new file mode 100644 index 0000000..437c157 --- /dev/null +++ b/examples/apidoc/RestClient/getPushOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /wallet/push + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L650 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPushOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getRiskLimitTiers.js b/examples/apidoc/RestClient/getRiskLimitTiers.js new file mode 100644 index 0000000..ac891cc --- /dev/null +++ b/examples/apidoc/RestClient/getRiskLimitTiers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRiskLimitTiers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSavedAddresses.js b/examples/apidoc/RestClient/getSavedAddresses.js new file mode 100644 index 0000000..bf78a2d --- /dev/null +++ b/examples/apidoc/RestClient/getSavedAddresses.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSavedAddresses(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getServerTime.js b/examples/apidoc/RestClient/getServerTime.js new file mode 100644 index 0000000..4a4513f --- /dev/null +++ b/examples/apidoc/RestClient/getServerTime.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/time + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1306 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getServerTime(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSmallBalanceHistory.js b/examples/apidoc/RestClient/getSmallBalanceHistory.js new file mode 100644 index 0000000..54311fa --- /dev/null +++ b/examples/apidoc/RestClient/getSmallBalanceHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSmallBalanceHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSmallBalances.js b/examples/apidoc/RestClient/getSmallBalances.js new file mode 100644 index 0000000..b55fb6d --- /dev/null +++ b/examples/apidoc/RestClient/getSmallBalances.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSmallBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotAccountBook.js b/examples/apidoc/RestClient/getSpotAccountBook.js new file mode 100644 index 0000000..063381f --- /dev/null +++ b/examples/apidoc/RestClient/getSpotAccountBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAccountBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotAccounts.js b/examples/apidoc/RestClient/getSpotAccounts.js new file mode 100644 index 0000000..232f09d --- /dev/null +++ b/examples/apidoc/RestClient/getSpotAccounts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1108 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotAutoOrders.js b/examples/apidoc/RestClient/getSpotAutoOrders.js new file mode 100644 index 0000000..c4e2dd0 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotAutoOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAutoOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotBatchFeeRates.js b/examples/apidoc/RestClient/getSpotBatchFeeRates.js new file mode 100644 index 0000000..162c006 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotBatchFeeRates.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotBatchFeeRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotCandles.js b/examples/apidoc/RestClient/getSpotCandles.js new file mode 100644 index 0000000..ddb22fd --- /dev/null +++ b/examples/apidoc/RestClient/getSpotCandles.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/candlesticks + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1075 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotCandles(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotCurrencies.js b/examples/apidoc/RestClient/getSpotCurrencies.js new file mode 100644 index 0000000..4ce5186 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotCurrencies.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/currencies + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L992 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotCurrencies(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotCurrency.js b/examples/apidoc/RestClient/getSpotCurrency.js new file mode 100644 index 0000000..d52ace1 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotCurrency.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotCurrency(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotCurrencyPair.js b/examples/apidoc/RestClient/getSpotCurrencyPair.js new file mode 100644 index 0000000..1c3d7de --- /dev/null +++ b/examples/apidoc/RestClient/getSpotCurrencyPair.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotCurrencyPair(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotCurrencyPairs.js b/examples/apidoc/RestClient/getSpotCurrencyPairs.js new file mode 100644 index 0000000..78008a6 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotCurrencyPairs.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotCurrencyPairs(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotFeeRates.js b/examples/apidoc/RestClient/getSpotFeeRates.js new file mode 100644 index 0000000..1285da7 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotFeeRates.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/fee + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1087 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotFeeRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotOpenOrders.js b/examples/apidoc/RestClient/getSpotOpenOrders.js new file mode 100644 index 0000000..d032915 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotOpenOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotOrder.js b/examples/apidoc/RestClient/getSpotOrder.js new file mode 100644 index 0000000..44e14fb --- /dev/null +++ b/examples/apidoc/RestClient/getSpotOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotOrderBook.js b/examples/apidoc/RestClient/getSpotOrderBook.js new file mode 100644 index 0000000..788a7e6 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotOrderBook.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotOrders.js b/examples/apidoc/RestClient/getSpotOrders.js new file mode 100644 index 0000000..e4e59f2 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1195 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotTicker.js b/examples/apidoc/RestClient/getSpotTicker.js new file mode 100644 index 0000000..0a3eb0c --- /dev/null +++ b/examples/apidoc/RestClient/getSpotTicker.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/tickers + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1035 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotTrades.js b/examples/apidoc/RestClient/getSpotTrades.js new file mode 100644 index 0000000..3101172 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotTrades.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/trades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1063 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSpotTradingHistory.js b/examples/apidoc/RestClient/getSpotTradingHistory.js new file mode 100644 index 0000000..524c046 --- /dev/null +++ b/examples/apidoc/RestClient/getSpotTradingHistory.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotTradingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getStpGroupUsers.js b/examples/apidoc/RestClient/getStpGroupUsers.js new file mode 100644 index 0000000..1d1134c --- /dev/null +++ b/examples/apidoc/RestClient/getStpGroupUsers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStpGroupUsers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getStpGroups.js b/examples/apidoc/RestClient/getStpGroups.js new file mode 100644 index 0000000..ff778cb --- /dev/null +++ b/examples/apidoc/RestClient/getStpGroups.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStpGroups(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getStructuredProductOrders.js b/examples/apidoc/RestClient/getStructuredProductOrders.js new file mode 100644 index 0000000..0565219 --- /dev/null +++ b/examples/apidoc/RestClient/getStructuredProductOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStructuredProductOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getStructuredProducts.js b/examples/apidoc/RestClient/getStructuredProducts.js new file mode 100644 index 0000000..ad438b0 --- /dev/null +++ b/examples/apidoc/RestClient/getStructuredProducts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStructuredProducts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubAccount.js b/examples/apidoc/RestClient/getSubAccount.js new file mode 100644 index 0000000..ef6644f --- /dev/null +++ b/examples/apidoc/RestClient/getSubAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubAccountApiKey.js b/examples/apidoc/RestClient/getSubAccountApiKey.js new file mode 100644 index 0000000..c54b8f1 --- /dev/null +++ b/examples/apidoc/RestClient/getSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubAccountApiKeys.js b/examples/apidoc/RestClient/getSubAccountApiKeys.js new file mode 100644 index 0000000..e5ab58a --- /dev/null +++ b/examples/apidoc/RestClient/getSubAccountApiKeys.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountApiKeys(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubAccountMode.js b/examples/apidoc/RestClient/getSubAccountMode.js new file mode 100644 index 0000000..33af54f --- /dev/null +++ b/examples/apidoc/RestClient/getSubAccountMode.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubAccounts.js b/examples/apidoc/RestClient/getSubAccounts.js new file mode 100644 index 0000000..e8d99ba --- /dev/null +++ b/examples/apidoc/RestClient/getSubAccounts.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /sub_accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L676 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubBalance.js b/examples/apidoc/RestClient/getSubBalance.js new file mode 100644 index 0000000..22bc86b --- /dev/null +++ b/examples/apidoc/RestClient/getSubBalance.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubBalance(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubCrossMarginBalances.js b/examples/apidoc/RestClient/getSubCrossMarginBalances.js new file mode 100644 index 0000000..1fbdaa8 --- /dev/null +++ b/examples/apidoc/RestClient/getSubCrossMarginBalances.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubCrossMarginBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubFuturesBalances.js b/examples/apidoc/RestClient/getSubFuturesBalances.js new file mode 100644 index 0000000..37017dc --- /dev/null +++ b/examples/apidoc/RestClient/getSubFuturesBalances.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubFuturesBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSubMarginBalances.js b/examples/apidoc/RestClient/getSubMarginBalances.js new file mode 100644 index 0000000..f1c80cf --- /dev/null +++ b/examples/apidoc/RestClient/getSubMarginBalances.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubMarginBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getSystemMaintenanceStatus.js b/examples/apidoc/RestClient/getSystemMaintenanceStatus.js new file mode 100644 index 0000000..57abd0b --- /dev/null +++ b/examples/apidoc/RestClient/getSystemMaintenanceStatus.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSystemMaintenanceStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getTradingFees.js b/examples/apidoc/RestClient/getTradingFees.js new file mode 100644 index 0000000..5442594 --- /dev/null +++ b/examples/apidoc/RestClient/getTradingFees.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /wallet/fee + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L585 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTradingFees(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedAccountInfo.js b/examples/apidoc/RestClient/getUnifiedAccountInfo.js new file mode 100644 index 0000000..998e33f --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedAccountInfo.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /unified/accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L802 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedAccountInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedAccountMode.js b/examples/apidoc/RestClient/getUnifiedAccountMode.js new file mode 100644 index 0000000..66b2ff1 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedAccountMode.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedAccountMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js b/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js new file mode 100644 index 0000000..fd22ef5 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedCurrencyDiscountTiers.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedCurrencyDiscountTiers(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedEstimateRate.js b/examples/apidoc/RestClient/getUnifiedEstimateRate.js new file mode 100644 index 0000000..48fdd32 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedEstimateRate.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedEstimateRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedInterestRecords.js b/examples/apidoc/RestClient/getUnifiedInterestRecords.js new file mode 100644 index 0000000..5c7871b --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedInterestRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedInterestRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedLoanRecords.js b/examples/apidoc/RestClient/getUnifiedLoanRecords.js new file mode 100644 index 0000000..91d87b8 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedLoanRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedLoanRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedLoans.js b/examples/apidoc/RestClient/getUnifiedLoans.js new file mode 100644 index 0000000..3ee6764 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedLoans.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /unified/loans + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L864 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedLoans(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedMaxBorrow.js b/examples/apidoc/RestClient/getUnifiedMaxBorrow.js new file mode 100644 index 0000000..6f0aa1a --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedMaxBorrow.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /unified/borrowable + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L817 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedMaxBorrow(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedMaxTransferable.js b/examples/apidoc/RestClient/getUnifiedMaxTransferable.js new file mode 100644 index 0000000..a0a37a8 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedMaxTransferable.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /unified/transferable + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L833 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedMaxTransferable(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js b/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js new file mode 100644 index 0000000..8d8c8e7 --- /dev/null +++ b/examples/apidoc/RestClient/getUnifiedRiskUnitDetails.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUnifiedRiskUnitDetails(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getUserRebateInfo.js b/examples/apidoc/RestClient/getUserRebateInfo.js new file mode 100644 index 0000000..e140daa --- /dev/null +++ b/examples/apidoc/RestClient/getUserRebateInfo.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUserRebateInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getWithdrawalRecords.js b/examples/apidoc/RestClient/getWithdrawalRecords.js new file mode 100644 index 0000000..595007c --- /dev/null +++ b/examples/apidoc/RestClient/getWithdrawalRecords.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /wallet/withdrawals + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L423 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWithdrawalRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getWithdrawalStatus.js b/examples/apidoc/RestClient/getWithdrawalStatus.js new file mode 100644 index 0000000..80036b7 --- /dev/null +++ b/examples/apidoc/RestClient/getWithdrawalStatus.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWithdrawalStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/lockSubAccount.js b/examples/apidoc/RestClient/lockSubAccount.js new file mode 100644 index 0000000..6074593 --- /dev/null +++ b/examples/apidoc/RestClient/lockSubAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.lockSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/portfolioMarginCalculate.js b/examples/apidoc/RestClient/portfolioMarginCalculate.js new file mode 100644 index 0000000..b68b6da --- /dev/null +++ b/examples/apidoc/RestClient/portfolioMarginCalculate.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.portfolioMarginCalculate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/repayMultiLoan.js b/examples/apidoc/RestClient/repayMultiLoan.js new file mode 100644 index 0000000..8296077 --- /dev/null +++ b/examples/apidoc/RestClient/repayMultiLoan.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayMultiLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/resetOptionsMMPSettings.js b/examples/apidoc/RestClient/resetOptionsMMPSettings.js new file mode 100644 index 0000000..182c899 --- /dev/null +++ b/examples/apidoc/RestClient/resetOptionsMMPSettings.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.resetOptionsMMPSettings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js b/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js new file mode 100644 index 0000000..1411bbe --- /dev/null +++ b/examples/apidoc/RestClient/setFuturesOrderCancelCountdown.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setFuturesOrderCancelCountdown(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/setGTDeduction.js b/examples/apidoc/RestClient/setGTDeduction.js new file mode 100644 index 0000000..3a23092 --- /dev/null +++ b/examples/apidoc/RestClient/setGTDeduction.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setGTDeduction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/setOptionsMMPSettings.js b/examples/apidoc/RestClient/setOptionsMMPSettings.js new file mode 100644 index 0000000..dbd5e7f --- /dev/null +++ b/examples/apidoc/RestClient/setOptionsMMPSettings.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/mmp + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3289 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setOptionsMMPSettings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/setUnifiedAccountMode.js b/examples/apidoc/RestClient/setUnifiedAccountMode.js new file mode 100644 index 0000000..b060e11 --- /dev/null +++ b/examples/apidoc/RestClient/setUnifiedAccountMode.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setUnifiedAccountMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js b/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js new file mode 100644 index 0000000..d031797 --- /dev/null +++ b/examples/apidoc/RestClient/submitCrossMarginBorrowLoan.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitCrossMarginBorrowLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitCrossMarginRepayment.js b/examples/apidoc/RestClient/submitCrossMarginRepayment.js new file mode 100644 index 0000000..7a42a94 --- /dev/null +++ b/examples/apidoc/RestClient/submitCrossMarginRepayment.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitCrossMarginRepayment(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitDeliveryOrder.js b/examples/apidoc/RestClient/submitDeliveryOrder.js new file mode 100644 index 0000000..15ae924 --- /dev/null +++ b/examples/apidoc/RestClient/submitDeliveryOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitDeliveryOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js b/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js new file mode 100644 index 0000000..bfa4a78 --- /dev/null +++ b/examples/apidoc/RestClient/submitDeliveryTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitDeliveryTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitDualInvestmentOrder.js b/examples/apidoc/RestClient/submitDualInvestmentOrder.js new file mode 100644 index 0000000..e9efe56 --- /dev/null +++ b/examples/apidoc/RestClient/submitDualInvestmentOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitDualInvestmentOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitEth2Swap.js b/examples/apidoc/RestClient/submitEth2Swap.js new file mode 100644 index 0000000..253a321 --- /dev/null +++ b/examples/apidoc/RestClient/submitEth2Swap.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitEth2Swap(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitFlashSwapOrder.js b/examples/apidoc/RestClient/submitFlashSwapOrder.js new file mode 100644 index 0000000..b454f2e --- /dev/null +++ b/examples/apidoc/RestClient/submitFlashSwapOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitFlashSwapOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js b/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js new file mode 100644 index 0000000..b9af360 --- /dev/null +++ b/examples/apidoc/RestClient/submitFlashSwapOrderPreview.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitFlashSwapOrderPreview(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitFuturesBatchOrders.js b/examples/apidoc/RestClient/submitFuturesBatchOrders.js new file mode 100644 index 0000000..8bf95ff --- /dev/null +++ b/examples/apidoc/RestClient/submitFuturesBatchOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitFuturesBatchOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitFuturesOrder.js b/examples/apidoc/RestClient/submitFuturesOrder.js new file mode 100644 index 0000000..c3e88d7 --- /dev/null +++ b/examples/apidoc/RestClient/submitFuturesOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitFuturesOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js b/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js new file mode 100644 index 0000000..d3fbf6b --- /dev/null +++ b/examples/apidoc/RestClient/submitFuturesPriceTriggeredOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitFuturesPriceTriggeredOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitLendOrRedeemOrder.js b/examples/apidoc/RestClient/submitLendOrRedeemOrder.js new file mode 100644 index 0000000..119987d --- /dev/null +++ b/examples/apidoc/RestClient/submitLendOrRedeemOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitLendOrRedeemOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitLoanOrder.js b/examples/apidoc/RestClient/submitLoanOrder.js new file mode 100644 index 0000000..581a82f --- /dev/null +++ b/examples/apidoc/RestClient/submitLoanOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitLoanOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitLoanRepay.js b/examples/apidoc/RestClient/submitLoanRepay.js new file mode 100644 index 0000000..b7b664a --- /dev/null +++ b/examples/apidoc/RestClient/submitLoanRepay.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitLoanRepay(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitMainSubTransfer.js b/examples/apidoc/RestClient/submitMainSubTransfer.js new file mode 100644 index 0000000..fc4fdbb --- /dev/null +++ b/examples/apidoc/RestClient/submitMainSubTransfer.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMainSubTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js b/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js new file mode 100644 index 0000000..dbd285e --- /dev/null +++ b/examples/apidoc/RestClient/submitMarginUNIBorrowOrRepay.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMarginUNIBorrowOrRepay(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitMultiLoanOrder.js b/examples/apidoc/RestClient/submitMultiLoanOrder.js new file mode 100644 index 0000000..5458fb8 --- /dev/null +++ b/examples/apidoc/RestClient/submitMultiLoanOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMultiLoanOrder(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 new file mode 100644 index 0000000..fff1656 --- /dev/null +++ b/examples/apidoc/RestClient/submitOptionsOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /options/orders + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L3215 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitOptionsOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotBatchOrders.js b/examples/apidoc/RestClient/submitSpotBatchOrders.js new file mode 100644 index 0000000..43b1b19 --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotBatchOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotBatchOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js b/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js new file mode 100644 index 0000000..c6a48cf --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotClosePosCrossDisabled.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotClosePosCrossDisabled(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotCountdownOrders.js b/examples/apidoc/RestClient/submitSpotCountdownOrders.js new file mode 100644 index 0000000..0a1f6d6 --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotCountdownOrders.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotCountdownOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js b/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js new file mode 100644 index 0000000..99cb736 --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotMainAccountTransfer.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /withdrawals/push + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L366 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotMainAccountTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotOrder.js b/examples/apidoc/RestClient/submitSpotOrder.js new file mode 100644 index 0000000..934fff9 --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /spot/orders + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L1183 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js b/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js new file mode 100644 index 0000000..eaf7457 --- /dev/null +++ b/examples/apidoc/RestClient/submitSpotPriceTriggerOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotPriceTriggerOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitStructuredProductOrder.js b/examples/apidoc/RestClient/submitStructuredProductOrder.js new file mode 100644 index 0000000..7ed167d --- /dev/null +++ b/examples/apidoc/RestClient/submitStructuredProductOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitStructuredProductOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitSubToSubTransfer.js b/examples/apidoc/RestClient/submitSubToSubTransfer.js new file mode 100644 index 0000000..8580551 --- /dev/null +++ b/examples/apidoc/RestClient/submitSubToSubTransfer.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSubToSubTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitTransfer.js b/examples/apidoc/RestClient/submitTransfer.js new file mode 100644 index 0000000..a1bf999 --- /dev/null +++ b/examples/apidoc/RestClient/submitTransfer.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /wallet/transfers + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L456 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js b/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js new file mode 100644 index 0000000..f940511 --- /dev/null +++ b/examples/apidoc/RestClient/submitUnifiedBorrowOrRepay.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /unified/loans + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L852 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitUnifiedBorrowOrRepay(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/submitWithdrawal.js b/examples/apidoc/RestClient/submitWithdrawal.js new file mode 100644 index 0000000..bac766c --- /dev/null +++ b/examples/apidoc/RestClient/submitWithdrawal.js @@ -0,0 +1,19 @@ +const { RestClient } = require('gateio-api'); + + // ENDPOINT: /withdrawals + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/gateio-api/blob/master/src/RestClient.ts#L352 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitWithdrawal(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/unlockSubAccount.js b/examples/apidoc/RestClient/unlockSubAccount.js new file mode 100644 index 0000000..8d30b1d --- /dev/null +++ b/examples/apidoc/RestClient/unlockSubAccount.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.unlockSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateAutoRepaymentSetting.js b/examples/apidoc/RestClient/updateAutoRepaymentSetting.js new file mode 100644 index 0000000..ba52ee2 --- /dev/null +++ b/examples/apidoc/RestClient/updateAutoRepaymentSetting.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoRepaymentSetting(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDeliveryLeverage.js b/examples/apidoc/RestClient/updateDeliveryLeverage.js new file mode 100644 index 0000000..2fc07fb --- /dev/null +++ b/examples/apidoc/RestClient/updateDeliveryLeverage.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDeliveryLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDeliveryMargin.js b/examples/apidoc/RestClient/updateDeliveryMargin.js new file mode 100644 index 0000000..30c8e59 --- /dev/null +++ b/examples/apidoc/RestClient/updateDeliveryMargin.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDeliveryMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDeliveryRiskLimit.js b/examples/apidoc/RestClient/updateDeliveryRiskLimit.js new file mode 100644 index 0000000..f2bb442 --- /dev/null +++ b/examples/apidoc/RestClient/updateDeliveryRiskLimit.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDeliveryRiskLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDualModePositionLeverage.js b/examples/apidoc/RestClient/updateDualModePositionLeverage.js new file mode 100644 index 0000000..8684b1f --- /dev/null +++ b/examples/apidoc/RestClient/updateDualModePositionLeverage.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDualModePositionLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDualModePositionMargin.js b/examples/apidoc/RestClient/updateDualModePositionMargin.js new file mode 100644 index 0000000..0b245c6 --- /dev/null +++ b/examples/apidoc/RestClient/updateDualModePositionMargin.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDualModePositionMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js b/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js new file mode 100644 index 0000000..cada912 --- /dev/null +++ b/examples/apidoc/RestClient/updateDualModePositionRiskLimit.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateDualModePositionRiskLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateFuturesDualMode.js b/examples/apidoc/RestClient/updateFuturesDualMode.js new file mode 100644 index 0000000..75eded7 --- /dev/null +++ b/examples/apidoc/RestClient/updateFuturesDualMode.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateFuturesDualMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateFuturesLeverage.js b/examples/apidoc/RestClient/updateFuturesLeverage.js new file mode 100644 index 0000000..ddbd98a --- /dev/null +++ b/examples/apidoc/RestClient/updateFuturesLeverage.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateFuturesLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateFuturesMargin.js b/examples/apidoc/RestClient/updateFuturesMargin.js new file mode 100644 index 0000000..24e7677 --- /dev/null +++ b/examples/apidoc/RestClient/updateFuturesMargin.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateFuturesMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateFuturesOrder.js b/examples/apidoc/RestClient/updateFuturesOrder.js new file mode 100644 index 0000000..acea7af --- /dev/null +++ b/examples/apidoc/RestClient/updateFuturesOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateFuturesOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateInterestReinvestment.js b/examples/apidoc/RestClient/updateInterestReinvestment.js new file mode 100644 index 0000000..20e2873 --- /dev/null +++ b/examples/apidoc/RestClient/updateInterestReinvestment.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateInterestReinvestment(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateLendingOrder.js b/examples/apidoc/RestClient/updateLendingOrder.js new file mode 100644 index 0000000..4ca0755 --- /dev/null +++ b/examples/apidoc/RestClient/updateLendingOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateLendingOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateLoanCollateral.js b/examples/apidoc/RestClient/updateLoanCollateral.js new file mode 100644 index 0000000..929239f --- /dev/null +++ b/examples/apidoc/RestClient/updateLoanCollateral.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateLoanCollateral(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateMultiLoan.js b/examples/apidoc/RestClient/updateMultiLoan.js new file mode 100644 index 0000000..c7e374d --- /dev/null +++ b/examples/apidoc/RestClient/updateMultiLoan.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateMultiLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updatePositionRiskLimit.js b/examples/apidoc/RestClient/updatePositionRiskLimit.js new file mode 100644 index 0000000..d4ab731 --- /dev/null +++ b/examples/apidoc/RestClient/updatePositionRiskLimit.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updatePositionRiskLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateSpotOrder.js b/examples/apidoc/RestClient/updateSpotOrder.js new file mode 100644 index 0000000..50e2cbd --- /dev/null +++ b/examples/apidoc/RestClient/updateSpotOrder.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateSpotOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/updateSubAccountApiKey.js b/examples/apidoc/RestClient/updateSubAccountApiKey.js new file mode 100644 index 0000000..cb113ed --- /dev/null +++ b/examples/apidoc/RestClient/updateSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { RestClient } = require('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 + +const client = new RestClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/src/RestClient.ts b/src/RestClient.ts index f615c8b..0333af8 100644 --- a/src/RestClient.ts +++ b/src/RestClient.ts @@ -151,6 +151,7 @@ import { import { SubmitWithdrawalReq } from './types/request/withdrawal.js'; import { AccountDetail, + AccountRateLimit, StpGroup, StpGroupUser, } from './types/response/account.js'; @@ -3795,6 +3796,15 @@ export class RestClient extends BaseRestClient { return this.getPrivate(`/account/detail`); } + /** + * Get user transaction rate limit information + * + * @returns Promise + */ + getAccountRateLimit(): Promise { + return this.getPrivate('/account/rate_limit'); + } + /** * Create STP Group * diff --git a/src/types/response/account.ts b/src/types/response/account.ts index e43925f..496703e 100644 --- a/src/types/response/account.ts +++ b/src/types/response/account.ts @@ -11,6 +11,15 @@ export interface AccountDetail { mode: number; }; tier: number; + copy_trading_role: number; +} + +export interface AccountRateLimit { + type: string; + tier: string; + ratio: string; + main_ratio: string; + updated_at: string; } export interface StpGroup { From 2e194e9a73a375e237cae9c8c9b06ad1dac47033 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:45:09 +0200 Subject: [PATCH 2/2] chore(): version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5fc2682..4e7f1b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gateio-api", - "version": "1.0.18", + "version": "1.0.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gateio-api", - "version": "1.0.18", + "version": "1.0.19", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index 7b767f4..6a0c4d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gateio-api", - "version": "1.0.18", + "version": "1.0.19", "description": "Complete & robust Node.js SDK for Gate.io's REST APIs, WebSockets & WebSocket APIs, with TypeScript declarations.", "scripts": { "clean": "rm -rf dist/*",