diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index f3ff294..fdd85e9 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -50,422 +50,422 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| `testConnectivity()` | | GET | `api/v3/ping` | -| `getExchangeInfo()` | | GET | `api/v3/exchangeInfo` | -| `getOrderBook()` | | GET | `api/v3/depth` | -| `getRecentTrades()` | | GET | `api/v3/trades` | -| `getHistoricalTrades()` | | GET | `api/v3/historicalTrades` | -| `getAggregateTrades()` | | GET | `api/v3/aggTrades` | -| `getKlines()` | | GET | `api/v3/klines` | -| `getUIKlines()` | | GET | `api/v3/uiKlines` | -| `getAvgPrice()` | | GET | `api/v3/avgPrice` | -| `get24hrChangeStatististics()` | | GET | `api/v3/ticker/24hr` | -| `getTradingDayTicker()` | | GET | `api/v3/ticker/tradingDay` | -| `getSymbolPriceTicker()` | | GET | `api/v3/ticker/price` | -| `getSymbolOrderBookTicker()` | | GET | `api/v3/ticker/bookTicker` | -| `getRollingWindowTicker()` | | GET | `api/v3/ticker` | -| `getOrder()` | :closed_lock_with_key: | GET | `api/v3/order` | -| `cancelOrder()` | :closed_lock_with_key: | DELETE | `api/v3/order` | -| `cancelAllSymbolOrders()` | :closed_lock_with_key: | DELETE | `api/v3/openOrders` | -| `getOpenOrders()` | :closed_lock_with_key: | GET | `api/v3/openOrders` | -| `getAllOrders()` | :closed_lock_with_key: | GET | `api/v3/allOrders` | -| `submitNewOCO()` | :closed_lock_with_key: | POST | `api/v3/order/oco` | -| `submitNewOrderListOTO()` | :closed_lock_with_key: | POST | `api/v3/orderList/oto` | -| `submitNewOrderListOTOCO()` | :closed_lock_with_key: | POST | `api/v3/orderList/otoco` | -| `cancelOCO()` | :closed_lock_with_key: | DELETE | `api/v3/orderList` | -| `getOCO()` | :closed_lock_with_key: | GET | `api/v3/orderList` | -| `getAllOCO()` | :closed_lock_with_key: | GET | `api/v3/allOrderList` | -| `getAllOpenOCO()` | :closed_lock_with_key: | GET | `api/v3/openOrderList` | -| `submitNewSOROrder()` | :closed_lock_with_key: | POST | `api/v3/sor/order` | -| `testNewSOROrder()` | :closed_lock_with_key: | POST | `api/v3/sor/order/test` | -| `getAccountInformation()` | :closed_lock_with_key: | GET | `api/v3/account` | -| `getAccountTradeList()` | :closed_lock_with_key: | GET | `api/v3/myTrades` | -| `getOrderRateLimit()` | :closed_lock_with_key: | GET | `api/v3/rateLimit/order` | -| `getPreventedMatches()` | :closed_lock_with_key: | GET | `api/v3/myPreventedMatches` | -| `getAllocations()` | :closed_lock_with_key: | GET | `api/v3/myAllocations` | -| `getCommissionRates()` | :closed_lock_with_key: | GET | `api/v3/account/commission` | -| `getCrossMarginCollateralRatio()` | :closed_lock_with_key: | GET | `sapi/v1/margin/crossMarginCollateralRatio` | -| `getAllCrossMarginPairs()` | | GET | `sapi/v1/margin/allPairs` | -| `getIsolatedMarginAllSymbols()` | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/allPairs` | -| `getAllMarginAssets()` | | GET | `sapi/v1/margin/allAssets` | -| `getMarginDelistSchedule()` | :closed_lock_with_key: | GET | `sapi/v1/margin/delist-schedule` | -| `getIsolatedMarginTierData()` | :closed_lock_with_key: | GET | `sapi/v1/margin/isolatedMarginTier` | -| `queryMarginPriceIndex()` | | GET | `sapi/v1/margin/priceIndex` | -| `getMarginAvailableInventory()` | :closed_lock_with_key: | GET | `sapi/v1/margin/available-inventory` | -| `getLeverageBracket()` | :closed_lock_with_key: | GET | `sapi/v1/margin/leverageBracket` | -| `getNextHourlyInterestRate()` | :closed_lock_with_key: | GET | `sapi/v1/margin/next-hourly-interest-rate` | -| `getMarginInterestHistory()` | :closed_lock_with_key: | GET | `sapi/v1/margin/interestHistory` | -| `submitMarginAccountBorrowRepay()` | :closed_lock_with_key: | POST | `sapi/v1/margin/borrow-repay` | -| `getMarginAccountBorrowRepayRecords()` | :closed_lock_with_key: | GET | `sapi/v1/margin/borrow-repay` | -| `getMarginInterestRateHistory()` | :closed_lock_with_key: | GET | `sapi/v1/margin/interestRateHistory` | -| `queryMaxBorrow()` | :closed_lock_with_key: | GET | `sapi/v1/margin/maxBorrowable` | -| `getMarginForceLiquidationRecord()` | :closed_lock_with_key: | GET | `sapi/v1/margin/forceLiquidationRec` | -| `getSmallLiabilityExchangeCoins()` | :closed_lock_with_key: | GET | `sapi/v1/margin/exchange-small-liability` | -| `getSmallLiabilityExchangeHistory()` | :closed_lock_with_key: | GET | `sapi/v1/margin/exchange-small-liability-history` | -| `marginAccountCancelOpenOrders()` | :closed_lock_with_key: | DELETE | `sapi/v1/margin/openOrders` | -| `marginAccountCancelOCO()` | :closed_lock_with_key: | DELETE | `sapi/v1/margin/orderList` | -| `marginAccountCancelOrder()` | :closed_lock_with_key: | DELETE | `sapi/v1/margin/order` | -| `marginAccountNewOCO()` | :closed_lock_with_key: | POST | `sapi/v1/margin/order/oco` | -| `getMarginOrderCountUsage()` | :closed_lock_with_key: | GET | `sapi/v1/margin/rateLimit/order` | -| `queryMarginAccountAllOCO()` | :closed_lock_with_key: | GET | `sapi/v1/margin/allOrderList` | -| `queryMarginAccountAllOrders()` | :closed_lock_with_key: | GET | `sapi/v1/margin/allOrders` | -| `queryMarginAccountOCO()` | :closed_lock_with_key: | GET | `sapi/v1/margin/orderList` | -| `queryMarginAccountOpenOCO()` | :closed_lock_with_key: | GET | `sapi/v1/margin/openOrderList` | -| `queryMarginAccountOpenOrders()` | :closed_lock_with_key: | GET | `sapi/v1/margin/openOrders` | -| `queryMarginAccountOrder()` | :closed_lock_with_key: | GET | `sapi/v1/margin/order` | -| `queryMarginAccountTradeList()` | :closed_lock_with_key: | GET | `sapi/v1/margin/myTrades` | -| `submitSmallLiabilityExchange()` | :closed_lock_with_key: | POST | `sapi/v1/margin/exchange-small-liability` | -| `submitManualLiquidation()` | :closed_lock_with_key: | POST | `sapi/v1/margin/manual-liquidation` | -| `submitMarginOTOOrder()` | :closed_lock_with_key: | POST | `sapi/v1/margin/order/oto` | -| `submitMarginOTOCOOrder()` | :closed_lock_with_key: | POST | `sapi/v1/margin/order/otoco` | -| `createMarginSpecialLowLatencyKey()` | :closed_lock_with_key: | POST | `sapi/v1/margin/apiKey` | -| `deleteMarginSpecialLowLatencyKey()` | :closed_lock_with_key: | DELETE | `sapi/v1/margin/apiKey` | -| `updateMarginIPForSpecialLowLatencyKey()` | :closed_lock_with_key: | PUT | `sapi/v1/margin/apiKey/ip` | -| `getMarginSpecialLowLatencyKeys()` | :closed_lock_with_key: | GET | `sapi/v1/margin/api-key-list` | -| `getMarginSpecialLowLatencyKey()` | :closed_lock_with_key: | GET | `sapi/v1/margin/apiKey` | -| `getCrossMarginTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/margin/transfer` | -| `queryMaxTransferOutAmount()` | :closed_lock_with_key: | GET | `sapi/v1/margin/maxTransferable` | -| `updateCrossMarginMaxLeverage()` | :closed_lock_with_key: | POST | `sapi/v1/margin/max-leverage` | -| `disableIsolatedMarginAccount()` | :closed_lock_with_key: | DELETE | `sapi/v1/margin/isolated/account` | -| `enableIsolatedMarginAccount()` | :closed_lock_with_key: | POST | `sapi/v1/margin/isolated/account` | -| `getBNBBurn()` | :closed_lock_with_key: | GET | `sapi/v1/bnbBurn` | -| `getMarginSummary()` | :closed_lock_with_key: | GET | `sapi/v1/margin/tradeCoeff` | -| `queryCrossMarginAccountDetails()` | :closed_lock_with_key: | GET | `sapi/v1/margin/account` | -| `getCrossMarginFeeData()` | :closed_lock_with_key: | GET | `sapi/v1/margin/crossMarginData` | -| `getIsolatedMarginAccountLimit()` | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/accountLimit` | -| `getIsolatedMarginAccountInfo()` | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/account` | -| `getIsolatedMarginFeeData()` | :closed_lock_with_key: | GET | `sapi/v1/margin/isolatedMarginData` | -| `toggleBNBBurn()` | :closed_lock_with_key: | POST | `sapi/v1/bnbBurn` | -| `getMarginCapitalFlow()` | :closed_lock_with_key: | GET | `sapi/v1/margin/capital-flow` | -| `queryLoanRecord()` | :closed_lock_with_key: | GET | `sapi/v1/margin/loan` | -| `queryRepayRecord()` | :closed_lock_with_key: | GET | `sapi/v1/margin/repay` | -| `isolatedMarginAccountTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/margin/isolated/transfer` | -| `getBalances()` | :closed_lock_with_key: | GET | `sapi/v1/capital/config/getall` | -| `withdraw()` | :closed_lock_with_key: | POST | `sapi/v1/capital/withdraw/apply` | -| `getWithdrawHistory()` | :closed_lock_with_key: | GET | `sapi/v1/capital/withdraw/history` | -| `getWithdrawAddresses()` | :closed_lock_with_key: | GET | `sapi/v1/capital/withdraw/address/list` | -| `getDepositHistory()` | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/hisrec` | -| `getDepositAddress()` | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/address` | -| `getDepositAddresses()` | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/address/list` | -| `submitDepositCredit()` | :closed_lock_with_key: | POST | `sapi/v1/capital/deposit/credit-apply` | -| `getAutoConvertStablecoins()` | :closed_lock_with_key: | GET | `sapi/v1/capital/contract/convertible-coins` | -| `setConvertibleCoins()` | :closed_lock_with_key: | POST | `sapi/v1/capital/contract/convertible-coins` | -| `getAssetDetail()` | :closed_lock_with_key: | GET | `sapi/v1/asset/assetDetail` | -| `getWalletBalances()` | :closed_lock_with_key: | GET | `sapi/v1/asset/wallet/balance` | -| `getUserAsset()` | :closed_lock_with_key: | POST | `sapi/v3/asset/getUserAsset` | -| `submitUniversalTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/asset/transfer` | -| `getUniversalTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/asset/transfer` | -| `getDust()` | :closed_lock_with_key: | POST | `sapi/v1/asset/dust-btc` | -| `convertDustToBnb()` | :closed_lock_with_key: | POST | `sapi/v1/asset/dust` | -| `getDustLog()` | :closed_lock_with_key: | GET | `sapi/v1/asset/dribblet` | -| `getAssetDividendRecord()` | :closed_lock_with_key: | GET | `sapi/v1/asset/assetDividend` | -| `getTradeFee()` | :closed_lock_with_key: | GET | `sapi/v1/asset/tradeFee` | -| `getFundingAsset()` | :closed_lock_with_key: | POST | `sapi/v1/asset/get-funding-asset` | -| `getCloudMiningHistory()` | :closed_lock_with_key: | GET | `sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage` | -| `getDelegationHistory()` | :closed_lock_with_key: | GET | `sapi/v1/asset/custody/transfer-history` | -| `submitNewFutureAccountTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/futures/transfer` | -| `getFutureAccountTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/transfer` | -| `getCrossCollateralBorrowHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/borrow/history` | -| `getCrossCollateralRepaymentHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/repay/history` | -| `getCrossCollateralWalletV2()` | :closed_lock_with_key: | GET | `sapi/v2/futures/loan/wallet` | -| `getAdjustCrossCollateralLTVHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/adjustCollateral/history` | -| `getCrossCollateralLiquidationHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/liquidationHistory` | -| `getCrossCollateralInterestHistory()` | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/interestHistory` | -| `getAccountInfo()` | :closed_lock_with_key: | GET | `sapi/v1/account/info` | -| `getDailyAccountSnapshot()` | :closed_lock_with_key: | GET | `sapi/v1/accountSnapshot` | -| `disableFastWithdrawSwitch()` | :closed_lock_with_key: | POST | `sapi/v1/account/disableFastWithdrawSwitch` | -| `enableFastWithdrawSwitch()` | :closed_lock_with_key: | POST | `sapi/v1/account/enableFastWithdrawSwitch` | -| `getAccountStatus()` | :closed_lock_with_key: | GET | `sapi/v1/account/status` | -| `getApiTradingStatus()` | :closed_lock_with_key: | GET | `sapi/v1/account/apiTradingStatus` | -| `getApiKeyPermissions()` | :closed_lock_with_key: | GET | `sapi/v1/account/apiRestrictions` | -| `getSystemStatus()` | | GET | `sapi/v1/system/status` | -| `getDelistSchedule()` | :closed_lock_with_key: | GET | `sapi/v1/spot/delist-schedule` | -| `createVirtualSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/virtualSubAccount` | -| `getSubAccountList()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/list` | -| `subAccountEnableFutures()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/enable` | -| `subAccountEnableMargin()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/margin/enable` | -| `enableOptionsForSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/eoptions/enable` | -| `subAccountEnableLeverageToken()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/blvt/enable` | -| `getSubAccountStatusOnMarginOrFutures()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/status` | -| `getSubAccountFuturesPositionRisk()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/positionRisk` | -| `getSubAccountFuturesPositionRiskV2()` | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/positionRisk` | -| `getSubAccountTransactionStatistics()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/transaction-statistics` | -| `getSubAccountIPRestriction()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/subAccountApi/ipRestriction` | -| `subAccountDeleteIPList()` | :closed_lock_with_key: | DELETE | `sapi/v1/sub-account/subAccountApi/ipRestriction/ipList` | -| `subAccountAddIPRestriction()` | :closed_lock_with_key: | POST | `sapi/v2/sub-account/subAccountApi/ipRestriction` | -| `subAccountAddIPList()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/subAccountApi/ipRestriction/ipList` | -| `subAccountEnableOrDisableIPRestriction()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/subAccountApi/ipRestriction` | -| `subAccountFuturesTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/transfer` | -| `getSubAccountFuturesAccountDetail()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/account` | -| `getSubAccountDetailOnFuturesAccountV2()` | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/account` | -| `getSubAccountDetailOnMarginAccount()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/margin/account` | -| `getSubAccountDepositAddress()` | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/subAddress` | -| `getSubAccountDepositHistory()` | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/subHisrec` | -| `getSubAccountFuturesAccountSummary()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/accountSummary` | -| `getSubAccountSummaryOnFuturesAccountV2()` | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/accountSummary` | -| `getSubAccountsSummaryOfMarginAccount()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/margin/accountSummary` | -| `subAccountMarginTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/margin/transfer` | -| `getSubAccountAssets()` | :closed_lock_with_key: | GET | `sapi/v3/sub-account/assets` | -| `getSubAccountAssetsMaster()` | :closed_lock_with_key: | GET | `sapi/v4/sub-account/assets` | -| `getSubAccountFuturesAssetTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/internalTransfer` | -| `getSubAccountSpotAssetTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/sub/transfer/history` | -| `getSubAccountSpotAssetsSummary()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/spotSummary` | -| `getSubAccountUniversalTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/universalTransfer` | -| `subAccountFuturesAssetTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/internalTransfer` | -| `subAccountTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sub-account/transfer/subUserHistory` | -| `subAccountTransferToMaster()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/transfer/subToMaster` | -| `subAccountTransferToSameMaster()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/transfer/subToSub` | -| `subAccountUniversalTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/sub-account/universalTransfer` | -| `depositAssetsIntoManagedSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/managed-subaccount/deposit` | -| `getManagedSubAccountDepositAddress()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/deposit/address` | -| `withdrawAssetsFromManagedSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/managed-subaccount/withdraw` | -| `getManagedSubAccountTransfersParent()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/queryTransLogForTradeParent` | -| `getManagedSubAccountTransferLog()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/query-trans-log` | -| `getManagedSubAccountTransfersInvestor()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/queryTransLogForInvestor` | -| `getManagedSubAccounts()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/info` | -| `getManagedSubAccountSnapshot()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/accountSnapshot` | -| `getManagedSubAccountAssetDetails()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/asset` | -| `getManagedSubAccountMarginAssets()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/marginAsset` | -| `getManagedSubAccountFuturesAssets()` | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/fetch-future-asset` | -| `getAutoInvestAssets()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/all/asset` | -| `getAutoInvestSourceAssets()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/source-asset/list` | -| `getAutoInvestTargetAssets()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/target-asset/list` | -| `getAutoInvestTargetAssetsROI()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/target-asset/roi/list` | -| `getAutoInvestIndex()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/index/info` | -| `getAutoInvestPlans()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/plan/list` | -| `submitAutoInvestOneTimeTransaction()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/one-off` | -| `updateAutoInvestPlanStatus()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit-status` | -| `updateAutoInvestmentPlanOld()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit` | -| `updateAutoInvestmentPlan()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit` | -| `submitAutoInvestRedemption()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/redeem` | -| `getAutoInvestSubscriptionTransactions()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/history/list` | -| `getOneTimeTransactionStatus()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/one-off/status` | -| `submitAutoInvestmentPlanOld()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/add` | -| `submitAutoInvestmentPlan()` | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/add` | -| `getAutoInvestRedemptionHistory()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/redeem/history` | -| `getAutoInvestPlan()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/plan/id` | -| `getAutoInvestUserIndex()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/index/user-summary` | -| `getAutoInvestRebalanceHistory()` | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/rebalance/history` | -| `getConvertPairs()` | :closed_lock_with_key: | GET | `sapi/v1/convert/exchangeInfo` | -| `getConvertAssetInfo()` | :closed_lock_with_key: | GET | `sapi/v1/convert/assetInfo` | -| `convertQuoteRequest()` | :closed_lock_with_key: | POST | `sapi/v1/convert/getQuote` | -| `acceptQuoteRequest()` | :closed_lock_with_key: | POST | `sapi/v1/convert/acceptQuote` | -| `getConvertTradeHistory()` | :closed_lock_with_key: | GET | `sapi/v1/convert/tradeFlow` | -| `getOrderStatus()` | :closed_lock_with_key: | GET | `sapi/v1/convert/orderStatus` | -| `submitConvertLimitOrder()` | :closed_lock_with_key: | POST | `sapi/v1/convert/limit/placeOrder` | -| `cancelConvertLimitOrder()` | :closed_lock_with_key: | POST | `sapi/v1/convert/limit/cancelOrder` | -| `getConvertLimitOpenOrders()` | :closed_lock_with_key: | GET | `sapi/v1/convert/limit/queryOpenOrders` | -| `getEthStakingAccount()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/account` | -| `getEthStakingAccountV2()` | :closed_lock_with_key: | GET | `sapi/v2/eth-staking/account` | -| `getEthStakingQuota()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/quota` | -| `subscribeEthStakingV1()` | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/eth/stake` | -| `subscribeEthStakingV2()` | :closed_lock_with_key: | POST | `sapi/v2/eth-staking/eth/stake` | -| `redeemEth()` | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/eth/redeem` | -| `wrapBeth()` | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/wbeth/wrap` | -| `getEthStakingHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/stakingHistory` | -| `getEthRedemptionHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/redemptionHistory` | -| `getBethRewardsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/rewardsHistory` | -| `getWbethRewardsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/wbethRewardsHistory` | -| `getEthRateHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/rateHistory` | -| `getBethWrapHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/wbeth/history/wrapHistory` | -| `getBethUnwrapHistory()` | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/wbeth/history/unwrapHistory` | -| `getStakingProducts()` | :closed_lock_with_key: | GET | `sapi/v1/staking/productList` | -| `getStakingProductPosition()` | :closed_lock_with_key: | GET | `sapi/v1/staking/position` | -| `getStakingHistory()` | :closed_lock_with_key: | GET | `sapi/v1/staking/stakingRecord` | -| `getPersonalLeftQuotaOfStakingProduct()` | :closed_lock_with_key: | GET | `sapi/v1/staking/personalLeftQuota` | -| `getSolStakingAccount()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/account` | -| `getSolStakingQuota()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/quota` | -| `subscribeSolStaking()` | :closed_lock_with_key: | POST | `sapi/v1/sol-staking/sol/stake` | -| `redeemSol()` | :closed_lock_with_key: | POST | `sapi/v1/sol-staking/sol/redeem` | -| `getSolStakingHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/stakingHistory` | -| `getSolRedemptionHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/redemptionHistory` | -| `getBnsolRewardsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/bnsolRewardsHistory` | -| `getBnsolRateHistory()` | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/rateHistory` | -| `getFuturesLeadTraderStatus()` | :closed_lock_with_key: | GET | `sapi/v1/copyTrading/futures/userStatus` | -| `getFuturesLeadTradingSymbolWhitelist()` | :closed_lock_with_key: | GET | `sapi/v1/copyTrading/futures/leadSymbol` | -| `getMiningAlgos()` | | GET | `sapi/v1/mining/pub/algoList` | -| `getMiningCoins()` | | GET | `sapi/v1/mining/pub/coinList` | -| `getHashrateResales()` | :closed_lock_with_key: | GET | `sapi/v1/mining/hash-transfer/config/details/list` | -| `getMiners()` | :closed_lock_with_key: | GET | `sapi/v1/mining/worker/list` | -| `getMinerDetails()` | :closed_lock_with_key: | GET | `sapi/v1/mining/worker/detail` | -| `getExtraBonuses()` | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/other` | -| `getMiningEarnings()` | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/list` | -| `cancelHashrateResaleConfig()` | :closed_lock_with_key: | POST | `sapi/v1/mining/hash-transfer/config/cancel` | -| `getHashrateResale()` | :closed_lock_with_key: | GET | `sapi/v1/mining/hash-transfer/profit/details` | -| `getMiningAccountEarnings()` | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/uid` | -| `getMiningStatistics()` | :closed_lock_with_key: | GET | `sapi/v1/mining/statistics/user/status` | -| `submitHashrateResale()` | :closed_lock_with_key: | POST | `sapi/v1/mining/hash-transfer/config` | -| `getMiningAccounts()` | :closed_lock_with_key: | GET | `sapi/v1/mining/statistics/user/list` | -| `submitVpNewOrder()` | :closed_lock_with_key: | POST | `sapi/v1/algo/futures/newOrderVp` | -| `submitTwapNewOrder()` | :closed_lock_with_key: | POST | `sapi/v1/algo/futures/newOrderTwap` | -| `cancelAlgoOrder()` | :closed_lock_with_key: | DELETE | `sapi/v1/algo/futures/order` | -| `getAlgoSubOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/subOrders` | -| `getAlgoOpenOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/openOrders` | -| `getAlgoHistoricalOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/historicalOrders` | -| `submitSpotAlgoTwapOrder()` | :closed_lock_with_key: | POST | `sapi/v1/algo/spot/newOrderTwap` | -| `cancelSpotAlgoOrder()` | :closed_lock_with_key: | DELETE | `sapi/v1/algo/spot/order` | -| `getSpotAlgoSubOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/subOrders` | -| `getSpotAlgoOpenOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/openOrders` | -| `getSpotAlgoHistoricalOrders()` | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/historicalOrders` | -| `getCryptoLoanFlexibleCollateralAssets()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/collateral/data` | -| `getCryptoLoanFlexibleAssets()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/loanable/data` | -| `borrowCryptoLoanFlexible()` | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/borrow` | -| `repayCryptoLoanFlexible()` | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/repay` | -| `adjustCryptoLoanFlexibleLTV()` | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/adjust/ltv` | -| `getCryptoLoanFlexibleLTVAdjustmentHistory()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/ltv/adjustment/history` | -| `getLoanFlexibleBorrowHistory()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/borrow/history` | -| `getCryptoLoanFlexibleOngoingOrders()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/ongoing/orders` | -| `getLoanFlexibleRepaymentHistory()` | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/repay/history` | -| `getCryptoLoanLoanableAssets()` | :closed_lock_with_key: | GET | `sapi/v1/loan/loanable/data` | -| `getCryptoLoanCollateralRepayRate()` | :closed_lock_with_key: | GET | `sapi/v1/loan/repay/collateral/rate` | -| `getCryptoLoanCollateralAssetsData()` | :closed_lock_with_key: | GET | `sapi/v1/loan/collateral/data` | -| `getCryptoLoansIncomeHistory()` | :closed_lock_with_key: | GET | `sapi/v1/loan/income` | -| `borrowCryptoLoan()` | :closed_lock_with_key: | POST | `sapi/v1/loan/borrow` | -| `repayCryptoLoan()` | :closed_lock_with_key: | POST | `sapi/v1/loan/repay` | -| `adjustCryptoLoanLTV()` | :closed_lock_with_key: | POST | `sapi/v1/loan/adjust/ltv` | -| `customizeCryptoLoanMarginCall()` | :closed_lock_with_key: | POST | `sapi/v1/loan/customize/margin_call` | -| `getCryptoLoanOngoingOrders()` | :closed_lock_with_key: | GET | `sapi/v1/loan/ongoing/orders` | -| `getCryptoLoanBorrowHistory()` | :closed_lock_with_key: | GET | `sapi/v1/loan/borrow/history` | -| `getCryptoLoanLTVAdjustmentHistory()` | :closed_lock_with_key: | GET | `sapi/v1/loan/ltv/adjustment/history` | -| `getCryptoLoanRepaymentHistory()` | :closed_lock_with_key: | GET | `sapi/v1/loan/repay/history` | -| `getSimpleEarnAccount()` | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/account` | -| `getFlexibleSavingProducts()` | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/flexible/list` | -| `getSimpleEarnLockedProductList()` | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/locked/list` | -| `getFlexibleProductPosition()` | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/flexible/position` | -| `getLockedProductPosition()` | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/locked/position` | -| `getFlexiblePersonalLeftQuota()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/personalLeftQuota` | -| `getLockedPersonalLeftQuota()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/personalLeftQuota` | -| `purchaseFlexibleProduct()` | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/flexible/subscribe` | -| `subscribeSimpleEarnLockedProduct()` | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/locked/subscribe` | -| `redeemFlexibleProduct()` | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/flexible/redeem` | -| `redeemLockedProduct()` | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/locked/redeem` | -| `setFlexibleAutoSubscribe()` | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/flexible/setAutoSubscribe` | -| `setLockedAutoSubscribe()` | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/locked/setAutoSubscribe` | -| `getFlexibleSubscriptionPreview()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/subscriptionPreview` | -| `getLockedSubscriptionPreview()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/subscriptionPreview` | -| `setLockedProductRedeemOption()` | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/locked/setRedeemOption` | -| `getFlexibleSubscriptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/subscriptionRecord` | -| `getLockedSubscriptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/subscriptionRecord` | -| `getFlexibleRedemptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/redemptionRecord` | -| `getLockedRedemptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/redemptionRecord` | -| `getFlexibleRewardsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/rewardsRecord` | -| `getLockedRewardsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/rewardsRecord` | -| `getCollateralRecord()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/collateralRecord` | -| `getRateHistory()` | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/rateHistory` | -| `getVipBorrowInterestRate()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/request/interestRate` | -| `getVipLoanableAssets()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/loanable/data` | -| `getVipCollateralAssets()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/collateral/data` | -| `getVipLoanOpenOrders()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/ongoing/orders` | -| `getVipLoanRepaymentHistory()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/repay/history` | -| `checkVipCollateralAccount()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/collateral/account` | -| `getVipApplicationStatus()` | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/request/data` | -| `renewVipLoan()` | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/renew` | -| `repayVipLoan()` | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/repay` | -| `borrowVipLoan()` | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/borrow` | -| `getDualInvestmentProducts()` | :closed_lock_with_key: | GET | `sapi/v1/dci/product/list` | -| `subscribeDualInvestmentProduct()` | :closed_lock_with_key: | POST | `sapi/v1/dci/product/subscribe` | -| `getDualInvestmentPositions()` | :closed_lock_with_key: | GET | `sapi/v1/dci/product/positions` | -| `getDualInvestmentAccounts()` | :closed_lock_with_key: | GET | `sapi/v1/dci/product/accounts` | -| `updateAutoCompoundStatus()` | :closed_lock_with_key: | POST | `sapi/v1/dci/product/auto_compound/edit-status` | -| `createGiftCard()` | :closed_lock_with_key: | POST | `sapi/v1/giftcard/createCode` | -| `createDualTokenGiftCard()` | :closed_lock_with_key: | POST | `sapi/v1/giftcard/buyCode` | -| `redeemGiftCard()` | :closed_lock_with_key: | POST | `sapi/v1/giftcard/redeemCode` | -| `verifyGiftCard()` | :closed_lock_with_key: | GET | `sapi/v1/giftcard/verify` | -| `getTokenLimit()` | :closed_lock_with_key: | GET | `sapi/v1/giftcard/buyCode/token-limit` | -| `getRsaPublicKey()` | :closed_lock_with_key: | GET | `sapi/v1/giftcard/cryptography/rsa-public-key` | -| `getNftTransactionHistory()` | :closed_lock_with_key: | GET | `sapi/v1/nft/history/transactions` | -| `getNftDepositHistory()` | :closed_lock_with_key: | GET | `sapi/v1/nft/history/deposit` | -| `getNftWithdrawHistory()` | :closed_lock_with_key: | GET | `sapi/v1/nft/history/withdraw` | -| `getNftAsset()` | :closed_lock_with_key: | GET | `sapi/v1/nft/user/getAsset` | -| `getC2CTradeHistory()` | :closed_lock_with_key: | GET | `sapi/v1/c2c/orderMatch/listUserOrderHistory` | -| `getFiatOrderHistory()` | :closed_lock_with_key: | GET | `sapi/v1/fiat/orders` | -| `getFiatPaymentsHistory()` | :closed_lock_with_key: | GET | `sapi/v1/fiat/payments` | -| `getSpotRebateHistoryRecords()` | :closed_lock_with_key: | GET | `sapi/v1/rebate/taxQuery` | -| `getPortfolioMarginIndexPrice()` | | GET | `sapi/v1/portfolio/asset-index-price` | -| `getPortfolioMarginAssetLeverage()` | :closed_lock_with_key: | GET | `sapi/v1/portfolio/margin-asset-leverage` | -| `getPortfolioMarginProCollateralRate()` | | GET | `sapi/v1/portfolio/collateralRate` | -| `getPortfolioMarginProTieredCollateralRate()` | | GET | `sapi/v2/portfolio/collateralRate` | -| `getPortfolioMarginProAccountInfo()` | :closed_lock_with_key: | GET | `sapi/v1/portfolio/account` | -| `bnbTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/bnb-transfer` | -| `submitPortfolioMarginProFullTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/auto-collection` | -| `submitPortfolioMarginProSpecificTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/asset-collection` | -| `repayPortfolioMarginProBankruptcyLoan()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay` | -| `getPortfolioMarginProBankruptcyLoanAmount()` | :closed_lock_with_key: | GET | `sapi/v1/portfolio/pmLoan` | -| `repayFuturesNegativeBalance()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay-futures-negative-balance` | -| `updateAutoRepayFuturesStatus()` | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay-futures-switch` | -| `getAutoRepayFuturesStatus()` | :closed_lock_with_key: | GET | `sapi/v1/portfolio/repay-futures-switch` | -| `getPortfolioMarginProInterestHistory()` | :closed_lock_with_key: | GET | `sapi/v1/portfolio/interest-history` | -| `getFuturesTickLevelOrderbookDataLink()` | :closed_lock_with_key: | GET | `sapi/v1/futures/histDataLink` | -| `getBlvtInfo()` | | GET | `sapi/v1/blvt/tokenInfo` | -| `subscribeBlvt()` | :closed_lock_with_key: | POST | `sapi/v1/blvt/subscribe` | -| `getBlvtSubscriptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/blvt/subscribe/record` | -| `redeemBlvt()` | :closed_lock_with_key: | POST | `sapi/v1/blvt/redeem` | -| `getBlvtRedemptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/blvt/redeem/record` | -| `getBlvtUserLimitInfo()` | :closed_lock_with_key: | GET | `sapi/v1/blvt/userLimit` | -| `getPayTransactions()` | :closed_lock_with_key: | GET | `sapi/v1/pay/transactions` | -| `createBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount` | -| `getBrokerSubAccount()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount` | -| `enableMarginBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/futures` | -| `createApiKeyBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi` | -| `changePermissionApiKeyBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission` | -| `changeComissionBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission` | -| `enableUniversalTransferApiKeyBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission/universalTransfer` | -| `updateIpRestrictionForSubAccountApiKey()` | :closed_lock_with_key: | POST | `sapi/v2/broker/subAccountApi/ipRestriction` | -| `deleteIPRestrictionForSubAccountApiKey()` | :closed_lock_with_key: | DELETE | `sapi/v1/broker/subAccountApi/ipRestriction/ipList` | -| `deleteApiKeyBrokerSubAccount()` | :closed_lock_with_key: | DELETE | `sapi/v1/broker/subAccountApi` | -| `getSubAccountBrokerIpRestriction()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/ipRestriction` | -| `getApiKeyBrokerSubAccount()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi` | -| `getBrokerInfo()` | :closed_lock_with_key: | GET | `sapi/v1/broker/info` | -| `updateSubAccountBNBBurn()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/bnbBurn/spot` | -| `updateSubAccountMarginInterestBNBBurn()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/bnbBurn/marginInterest` | -| `getSubAccountBNBBurnStatus()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/bnbBurn/status` | -| `transferBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/transfer` | -| `getBrokerSubAccountHistory()` | :closed_lock_with_key: | GET | `sapi/v1/broker/transfer` | -| `submitBrokerSubFuturesTransfer()` | :closed_lock_with_key: | POST | `sapi/v1/broker/transfer/futures` | -| `getSubAccountFuturesTransferHistory()` | :closed_lock_with_key: | GET | `sapi/v1/broker/transfer/futures` | -| `getBrokerSubDepositHistory()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/depositHist` | -| `getBrokerSubAccountSpotAssets()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/spotSummary` | -| `getSubAccountMarginAssetInfo()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/marginSummary` | -| `querySubAccountFuturesAssetInfo()` | :closed_lock_with_key: | GET | `sapi/v3/broker/subAccount/futuresSummary` | -| `universalTransferBroker()` | :closed_lock_with_key: | POST | `sapi/v1/broker/universalTransfer` | -| `getUniversalTransferBroker()` | :closed_lock_with_key: | GET | `sapi/v1/broker/universalTransfer` | -| `updateBrokerSubAccountCommission()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission` | -| `updateBrokerSubAccountFuturesCommission()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission/futures` | -| `getBrokerSubAccountFuturesCommission()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/commission/futures` | -| `updateBrokerSubAccountCoinFuturesCommission()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission/coinFutures` | -| `getBrokerSubAccountCoinFuturesCommission()` | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/commission/coinFutures` | -| `getBrokerSpotCommissionRebate()` | :closed_lock_with_key: | GET | `sapi/v1/broker/rebate/recentRecord` | -| `getBrokerFuturesCommissionRebate()` | :closed_lock_with_key: | GET | `sapi/v1/broker/rebate/futures/recentRecord` | -| `getBrokerIfNewSpotUser()` | :closed_lock_with_key: | GET | `sapi/v1/apiReferral/ifNewUser` | -| `getBrokerSubAccountDepositHistory()` | :closed_lock_with_key: | GET | `sapi/v1/bv1/apiReferral/ifNewUser` | -| `enableFuturesBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount` | -| `enableMarginApiKeyBrokerSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/margin` | -| `getSpotUserDataListenKey()` | | POST | `api/v3/userDataStream` | -| `keepAliveSpotUserDataListenKey()` | | PUT | `api/v3/userDataStream?listenKey=${listenKey}` | -| `closeSpotUserDataListenKey()` | | DELETE | `api/v3/userDataStream?listenKey=${listenKey}` | -| `getMarginUserDataListenKey()` | | POST | `sapi/v1/userDataStream` | -| `keepAliveMarginUserDataListenKey()` | | PUT | `sapi/v1/userDataStream?listenKey=${listenKey}` | -| `closeMarginUserDataListenKey()` | | DELETE | `sapi/v1/userDataStream?listenKey=${listenKey}` | -| `getIsolatedMarginUserDataListenKey()` | | POST | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | -| `keepAliveIsolatedMarginUserDataListenKey()` | | PUT | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | -| `closeIsolatedMarginUserDataListenKey()` | | DELETE | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | -| `getBSwapLiquidity()` | :closed_lock_with_key: | GET | `sapi/v1/bswap/liquidity` | -| `addBSwapLiquidity()` | :closed_lock_with_key: | POST | `sapi/v1/bswap/liquidityAdd` | -| `removeBSwapLiquidity()` | :closed_lock_with_key: | POST | `sapi/v1/bswap/liquidityRemove` | -| `getBSwapOperations()` | :closed_lock_with_key: | GET | `sapi/v1/bswap/liquidityOps` | -| `getLeftDailyPurchaseQuotaFlexibleProduct()` | :closed_lock_with_key: | GET | `sapi/v1/lending/daily/userLeftQuota` | -| `getLeftDailyRedemptionQuotaFlexibleProduct()` | :closed_lock_with_key: | GET | `sapi/v1/lending/daily/userRedemptionQuota` | -| `purchaseFixedAndActivityProject()` | :closed_lock_with_key: | POST | `sapi/v1/lending/customizedFixed/purchase` | -| `getFixedAndActivityProjects()` | :closed_lock_with_key: | GET | `sapi/v1/lending/project/list` | -| `getFixedAndActivityProductPosition()` | :closed_lock_with_key: | GET | `sapi/v1/lending/project/position/list` | -| `getLendingAccount()` | :closed_lock_with_key: | GET | `sapi/v1/lending/union/account` | -| `getPurchaseRecord()` | :closed_lock_with_key: | GET | `sapi/v1/lending/union/purchaseRecord` | -| `getRedemptionRecord()` | :closed_lock_with_key: | GET | `sapi/v1/lending/union/redemptionRecord` | -| `getInterestHistory()` | :closed_lock_with_key: | GET | `sapi/v1/lending/union/interestHistory` | -| `changeFixedAndActivityPositionToDailyPosition()` | :closed_lock_with_key: | POST | `sapi/v1/lending/positionChanged` | -| `enableConvertSubAccount()` | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/convert` | -| `convertBUSD()` | :closed_lock_with_key: | POST | `sapi/v1/asset/convert-transfer` | -| `getConvertBUSDHistory()` | :closed_lock_with_key: | GET | `sapi/v1/asset/convert-transfer/queryByPage` | +| [testConnectivity()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L571) | | GET | `api/v3/ping` | +| [getExchangeInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L575) | | GET | `api/v3/exchangeInfo` | +| [getOrderBook()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L595) | | GET | `api/v3/depth` | +| [getRecentTrades()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L599) | | GET | `api/v3/trades` | +| [getHistoricalTrades()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L603) | | GET | `api/v3/historicalTrades` | +| [getAggregateTrades()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L607) | | GET | `api/v3/aggTrades` | +| [getKlines()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L613) | | GET | `api/v3/klines` | +| [getUIKlines()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L617) | | GET | `api/v3/uiKlines` | +| [getAvgPrice()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L621) | | GET | `api/v3/avgPrice` | +| [get24hrChangeStatististics()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L625) | | GET | `api/v3/ticker/24hr` | +| [getTradingDayTicker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L650) | | GET | `api/v3/ticker/tradingDay` | +| [getSymbolPriceTicker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L656) | | GET | `api/v3/ticker/price` | +| [getSymbolOrderBookTicker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L662) | | GET | `api/v3/ticker/bookTicker` | +| [getRollingWindowTicker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L668) | | GET | `api/v3/ticker` | +| [getOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L696) | :closed_lock_with_key: | GET | `api/v3/order` | +| [cancelOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L700) | :closed_lock_with_key: | DELETE | `api/v3/order` | +| [cancelAllSymbolOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L704) | :closed_lock_with_key: | DELETE | `api/v3/openOrders` | +| [getOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L719) | :closed_lock_with_key: | GET | `api/v3/openOrders` | +| [getAllOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L723) | :closed_lock_with_key: | GET | `api/v3/allOrders` | +| [submitNewOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L730) | :closed_lock_with_key: | POST | `api/v3/order/oco` | +| [submitNewOrderListOTO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L747) | :closed_lock_with_key: | POST | `api/v3/orderList/oto` | +| [submitNewOrderListOTOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L757) | :closed_lock_with_key: | POST | `api/v3/orderList/otoco` | +| [cancelOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L767) | :closed_lock_with_key: | DELETE | `api/v3/orderList` | +| [getOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L772) | :closed_lock_with_key: | GET | `api/v3/orderList` | +| [getAllOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L776) | :closed_lock_with_key: | GET | `api/v3/allOrderList` | +| [getAllOpenOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L783) | :closed_lock_with_key: | GET | `api/v3/openOrderList` | +| [submitNewSOROrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L790) | :closed_lock_with_key: | POST | `api/v3/sor/order` | +| [testNewSOROrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L801) | :closed_lock_with_key: | POST | `api/v3/sor/order/test` | +| [getAccountInformation()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L817) | :closed_lock_with_key: | GET | `api/v3/account` | +| [getAccountTradeList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L821) | :closed_lock_with_key: | GET | `api/v3/myTrades` | +| [getOrderRateLimit()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L827) | :closed_lock_with_key: | GET | `api/v3/rateLimit/order` | +| [getPreventedMatches()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L831) | :closed_lock_with_key: | GET | `api/v3/myPreventedMatches` | +| [getAllocations()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L837) | :closed_lock_with_key: | GET | `api/v3/myAllocations` | +| [getCommissionRates()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L841) | :closed_lock_with_key: | GET | `api/v3/account/commission` | +| [getCrossMarginCollateralRatio()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L851) | :closed_lock_with_key: | GET | `sapi/v1/margin/crossMarginCollateralRatio` | +| [getAllCrossMarginPairs()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L860) | | GET | `sapi/v1/margin/allPairs` | +| [getIsolatedMarginAllSymbols()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L864) | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/allPairs` | +| [getAllMarginAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L870) | | GET | `sapi/v1/margin/allAssets` | +| [getMarginDelistSchedule()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L874) | :closed_lock_with_key: | GET | `sapi/v1/margin/delist-schedule` | +| [getIsolatedMarginTierData()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L878) | :closed_lock_with_key: | GET | `sapi/v1/margin/isolatedMarginTier` | +| [queryMarginPriceIndex()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L884) | | GET | `sapi/v1/margin/priceIndex` | +| [getMarginAvailableInventory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L890) | :closed_lock_with_key: | GET | `sapi/v1/margin/available-inventory` | +| [getLeverageBracket()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L896) | :closed_lock_with_key: | GET | `sapi/v1/margin/leverageBracket` | +| [getNextHourlyInterestRate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L906) | :closed_lock_with_key: | GET | `sapi/v1/margin/next-hourly-interest-rate` | +| [getMarginInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L912) | :closed_lock_with_key: | GET | `sapi/v1/margin/interestHistory` | +| [submitMarginAccountBorrowRepay()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L919) | :closed_lock_with_key: | POST | `sapi/v1/margin/borrow-repay` | +| [getMarginAccountBorrowRepayRecords()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L925) | :closed_lock_with_key: | GET | `sapi/v1/margin/borrow-repay` | +| [getMarginInterestRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L931) | :closed_lock_with_key: | GET | `sapi/v1/margin/interestRateHistory` | +| [queryMaxBorrow()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L937) | :closed_lock_with_key: | GET | `sapi/v1/margin/maxBorrowable` | +| [getMarginForceLiquidationRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L949) | :closed_lock_with_key: | GET | `sapi/v1/margin/forceLiquidationRec` | +| [getSmallLiabilityExchangeCoins()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L958) | :closed_lock_with_key: | GET | `sapi/v1/margin/exchange-small-liability` | +| [getSmallLiabilityExchangeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L962) | :closed_lock_with_key: | GET | `sapi/v1/margin/exchange-small-liability-history` | +| [marginAccountCancelOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L974) | :closed_lock_with_key: | DELETE | `sapi/v1/margin/openOrders` | +| [marginAccountCancelOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L980) | :closed_lock_with_key: | DELETE | `sapi/v1/margin/orderList` | +| [marginAccountCancelOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L985) | :closed_lock_with_key: | DELETE | `sapi/v1/margin/order` | +| [marginAccountNewOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L991) | :closed_lock_with_key: | POST | `sapi/v1/margin/order/oco` | +| [getMarginOrderCountUsage()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1006) | :closed_lock_with_key: | GET | `sapi/v1/margin/rateLimit/order` | +| [queryMarginAccountAllOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1012) | :closed_lock_with_key: | GET | `sapi/v1/margin/allOrderList` | +| [queryMarginAccountAllOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1018) | :closed_lock_with_key: | GET | `sapi/v1/margin/allOrders` | +| [queryMarginAccountOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1024) | :closed_lock_with_key: | GET | `sapi/v1/margin/orderList` | +| [queryMarginAccountOpenOCO()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1028) | :closed_lock_with_key: | GET | `sapi/v1/margin/openOrderList` | +| [queryMarginAccountOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1035) | :closed_lock_with_key: | GET | `sapi/v1/margin/openOrders` | +| [queryMarginAccountOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1039) | :closed_lock_with_key: | GET | `sapi/v1/margin/order` | +| [queryMarginAccountTradeList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1043) | :closed_lock_with_key: | GET | `sapi/v1/margin/myTrades` | +| [submitSmallLiabilityExchange()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1049) | :closed_lock_with_key: | POST | `sapi/v1/margin/exchange-small-liability` | +| [submitManualLiquidation()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1056) | :closed_lock_with_key: | POST | `sapi/v1/margin/manual-liquidation` | +| [submitMarginOTOOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1065) | :closed_lock_with_key: | POST | `sapi/v1/margin/order/oto` | +| [submitMarginOTOCOOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1077) | :closed_lock_with_key: | POST | `sapi/v1/margin/order/otoco` | +| [createMarginSpecialLowLatencyKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1090) | :closed_lock_with_key: | POST | `sapi/v1/margin/apiKey` | +| [deleteMarginSpecialLowLatencyKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1096) | :closed_lock_with_key: | DELETE | `sapi/v1/margin/apiKey` | +| [updateMarginIPForSpecialLowLatencyKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1104) | :closed_lock_with_key: | PUT | `sapi/v1/margin/apiKey/ip` | +| [getMarginSpecialLowLatencyKeys()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1115) | :closed_lock_with_key: | GET | `sapi/v1/margin/api-key-list` | +| [getMarginSpecialLowLatencyKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1124) | :closed_lock_with_key: | GET | `sapi/v1/margin/apiKey` | +| [getCrossMarginTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1137) | :closed_lock_with_key: | GET | `sapi/v1/margin/transfer` | +| [queryMaxTransferOutAmount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1143) | :closed_lock_with_key: | GET | `sapi/v1/margin/maxTransferable` | +| [updateCrossMarginMaxLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1155) | :closed_lock_with_key: | POST | `sapi/v1/margin/max-leverage` | +| [disableIsolatedMarginAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1161) | :closed_lock_with_key: | DELETE | `sapi/v1/margin/isolated/account` | +| [enableIsolatedMarginAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1168) | :closed_lock_with_key: | POST | `sapi/v1/margin/isolated/account` | +| [getBNBBurn()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1175) | :closed_lock_with_key: | GET | `sapi/v1/bnbBurn` | +| [getMarginSummary()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1179) | :closed_lock_with_key: | GET | `sapi/v1/margin/tradeCoeff` | +| [queryCrossMarginAccountDetails()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1183) | :closed_lock_with_key: | GET | `sapi/v1/margin/account` | +| [getCrossMarginFeeData()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1187) | :closed_lock_with_key: | GET | `sapi/v1/margin/crossMarginData` | +| [getIsolatedMarginAccountLimit()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1193) | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/accountLimit` | +| [getIsolatedMarginAccountInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1200) | :closed_lock_with_key: | GET | `sapi/v1/margin/isolated/account` | +| [getIsolatedMarginFeeData()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1206) | :closed_lock_with_key: | GET | `sapi/v1/margin/isolatedMarginData` | +| [toggleBNBBurn()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1212) | :closed_lock_with_key: | POST | `sapi/v1/bnbBurn` | +| [getMarginCapitalFlow()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1220) | :closed_lock_with_key: | GET | `sapi/v1/margin/capital-flow` | +| [queryLoanRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1229) | :closed_lock_with_key: | GET | `sapi/v1/margin/loan` | +| [queryRepayRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1238) | :closed_lock_with_key: | GET | `sapi/v1/margin/repay` | +| [isolatedMarginAccountTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1247) | :closed_lock_with_key: | POST | `sapi/v1/margin/isolated/transfer` | +| [getBalances()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1259) | :closed_lock_with_key: | GET | `sapi/v1/capital/config/getall` | +| [withdraw()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1262) | :closed_lock_with_key: | POST | `sapi/v1/capital/withdraw/apply` | +| [getWithdrawHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1266) | :closed_lock_with_key: | GET | `sapi/v1/capital/withdraw/history` | +| [getWithdrawAddresses()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1272) | :closed_lock_with_key: | GET | `sapi/v1/capital/withdraw/address/list` | +| [getDepositHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1276) | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/hisrec` | +| [getDepositAddress()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1280) | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/address` | +| [getDepositAddresses()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1286) | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/address/list` | +| [submitDepositCredit()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1292) | :closed_lock_with_key: | POST | `sapi/v1/capital/deposit/credit-apply` | +| [getAutoConvertStablecoins()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1298) | :closed_lock_with_key: | GET | `sapi/v1/capital/contract/convertible-coins` | +| [setConvertibleCoins()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1302) | :closed_lock_with_key: | POST | `sapi/v1/capital/contract/convertible-coins` | +| [getAssetDetail()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1315) | :closed_lock_with_key: | GET | `sapi/v1/asset/assetDetail` | +| [getWalletBalances()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1321) | :closed_lock_with_key: | GET | `sapi/v1/asset/wallet/balance` | +| [getUserAsset()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1325) | :closed_lock_with_key: | POST | `sapi/v3/asset/getUserAsset` | +| [submitUniversalTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1329) | :closed_lock_with_key: | POST | `sapi/v1/asset/transfer` | +| [getUniversalTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1335) | :closed_lock_with_key: | GET | `sapi/v1/asset/transfer` | +| [getDust()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1341) | :closed_lock_with_key: | POST | `sapi/v1/asset/dust-btc` | +| [convertDustToBnb()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1345) | :closed_lock_with_key: | POST | `sapi/v1/asset/dust` | +| [getDustLog()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1349) | :closed_lock_with_key: | GET | `sapi/v1/asset/dribblet` | +| [getAssetDividendRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1353) | :closed_lock_with_key: | GET | `sapi/v1/asset/assetDividend` | +| [getTradeFee()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1357) | :closed_lock_with_key: | GET | `sapi/v1/asset/tradeFee` | +| [getFundingAsset()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1361) | :closed_lock_with_key: | POST | `sapi/v1/asset/get-funding-asset` | +| [getCloudMiningHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1365) | :closed_lock_with_key: | GET | `sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage` | +| [getDelegationHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1375) | :closed_lock_with_key: | GET | `sapi/v1/asset/custody/transfer-history` | +| [submitNewFutureAccountTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1405) | :closed_lock_with_key: | POST | `sapi/v1/futures/transfer` | +| [getFutureAccountTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1415) | :closed_lock_with_key: | GET | `sapi/v1/futures/transfer` | +| [getCrossCollateralBorrowHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1424) | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/borrow/history` | +| [getCrossCollateralRepaymentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1430) | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/repay/history` | +| [getCrossCollateralWalletV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1436) | :closed_lock_with_key: | GET | `sapi/v2/futures/loan/wallet` | +| [getAdjustCrossCollateralLTVHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1442) | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/adjustCollateral/history` | +| [getCrossCollateralLiquidationHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1453) | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/liquidationHistory` | +| [getCrossCollateralInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1461) | :closed_lock_with_key: | GET | `sapi/v1/futures/loan/interestHistory` | +| [getAccountInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1473) | :closed_lock_with_key: | GET | `sapi/v1/account/info` | +| [getDailyAccountSnapshot()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1477) | :closed_lock_with_key: | GET | `sapi/v1/accountSnapshot` | +| [disableFastWithdrawSwitch()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1483) | :closed_lock_with_key: | POST | `sapi/v1/account/disableFastWithdrawSwitch` | +| [enableFastWithdrawSwitch()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1487) | :closed_lock_with_key: | POST | `sapi/v1/account/enableFastWithdrawSwitch` | +| [getAccountStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1491) | :closed_lock_with_key: | GET | `sapi/v1/account/status` | +| [getApiTradingStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1495) | :closed_lock_with_key: | GET | `sapi/v1/account/apiTradingStatus` | +| [getApiKeyPermissions()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1499) | :closed_lock_with_key: | GET | `sapi/v1/account/apiRestrictions` | +| [getSystemStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1517) | | GET | `sapi/v1/system/status` | +| [getDelistSchedule()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1521) | :closed_lock_with_key: | GET | `sapi/v1/spot/delist-schedule` | +| [createVirtualSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1531) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/virtualSubAccount` | +| [getSubAccountList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1537) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/list` | +| [subAccountEnableFutures()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1543) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/enable` | +| [subAccountEnableMargin()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1547) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/margin/enable` | +| [enableOptionsForSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1551) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/eoptions/enable` | +| [subAccountEnableLeverageToken()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1557) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/blvt/enable` | +| [getSubAccountStatusOnMarginOrFutures()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1563) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/status` | +| [getSubAccountFuturesPositionRisk()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1569) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/positionRisk` | +| [getSubAccountFuturesPositionRiskV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1577) | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/positionRisk` | +| [getSubAccountTransactionStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1583) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/transaction-statistics` | +| [getSubAccountIPRestriction()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1598) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/subAccountApi/ipRestriction` | +| [subAccountDeleteIPList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1607) | :closed_lock_with_key: | DELETE | `sapi/v1/sub-account/subAccountApi/ipRestriction/ipList` | +| [subAccountAddIPRestriction()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1616) | :closed_lock_with_key: | POST | `sapi/v2/sub-account/subAccountApi/ipRestriction` | +| [subAccountAddIPList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1629) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/subAccountApi/ipRestriction/ipList` | +| [subAccountEnableOrDisableIPRestriction()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1642) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/subAccountApi/ipRestriction` | +| [subAccountFuturesTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1657) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/transfer` | +| [getSubAccountFuturesAccountDetail()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1663) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/account` | +| [getSubAccountDetailOnFuturesAccountV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1669) | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/account` | +| [getSubAccountDetailOnMarginAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1675) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/margin/account` | +| [getSubAccountDepositAddress()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1681) | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/subAddress` | +| [getSubAccountDepositHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1687) | :closed_lock_with_key: | GET | `sapi/v1/capital/deposit/subHisrec` | +| [getSubAccountFuturesAccountSummary()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1693) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/accountSummary` | +| [getSubAccountSummaryOnFuturesAccountV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1697) | :closed_lock_with_key: | GET | `sapi/v2/sub-account/futures/accountSummary` | +| [getSubAccountsSummaryOfMarginAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1706) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/margin/accountSummary` | +| [subAccountMarginTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1710) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/margin/transfer` | +| [getSubAccountAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1716) | :closed_lock_with_key: | GET | `sapi/v3/sub-account/assets` | +| [getSubAccountAssetsMaster()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1722) | :closed_lock_with_key: | GET | `sapi/v4/sub-account/assets` | +| [getSubAccountFuturesAssetTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1728) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/futures/internalTransfer` | +| [getSubAccountSpotAssetTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1737) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/sub/transfer/history` | +| [getSubAccountSpotAssetsSummary()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1743) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/spotSummary` | +| [getSubAccountUniversalTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1749) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/universalTransfer` | +| [subAccountFuturesAssetTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1755) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/futures/internalTransfer` | +| [subAccountTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1764) | :closed_lock_with_key: | GET | `sapi/v1/sub-account/transfer/subUserHistory` | +| [subAccountTransferToMaster()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1773) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/transfer/subToMaster` | +| [subAccountTransferToSameMaster()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1779) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/transfer/subToSub` | +| [subAccountUniversalTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1785) | :closed_lock_with_key: | POST | `sapi/v1/sub-account/universalTransfer` | +| [depositAssetsIntoManagedSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1797) | :closed_lock_with_key: | POST | `sapi/v1/managed-subaccount/deposit` | +| [getManagedSubAccountDepositAddress()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1803) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/deposit/address` | +| [withdrawAssetsFromManagedSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1812) | :closed_lock_with_key: | POST | `sapi/v1/managed-subaccount/withdraw` | +| [getManagedSubAccountTransfersParent()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1818) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/queryTransLogForTradeParent` | +| [getManagedSubAccountTransferLog()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1830) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/query-trans-log` | +| [getManagedSubAccountTransfersInvestor()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1842) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/queryTransLogForInvestor` | +| [getManagedSubAccounts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1854) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/info` | +| [getManagedSubAccountSnapshot()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1861) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/accountSnapshot` | +| [getManagedSubAccountAssetDetails()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1870) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/asset` | +| [getManagedSubAccountMarginAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1876) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/marginAsset` | +| [getManagedSubAccountFuturesAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1882) | :closed_lock_with_key: | GET | `sapi/v1/managed-subaccount/fetch-future-asset` | +| [getAutoInvestAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1897) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/all/asset` | +| [getAutoInvestSourceAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1904) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/source-asset/list` | +| [getAutoInvestTargetAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1913) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/target-asset/list` | +| [getAutoInvestTargetAssetsROI()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1922) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/target-asset/roi/list` | +| [getAutoInvestIndex()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1931) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/index/info` | +| [getAutoInvestPlans()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1937) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/plan/list` | +| [submitAutoInvestOneTimeTransaction()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1955) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/one-off` | +| [updateAutoInvestPlanStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1971) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit-status` | +| [updateAutoInvestmentPlanOld()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1985) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit` | +| [updateAutoInvestmentPlan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1991) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/edit` | +| [submitAutoInvestRedemption()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2008) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/redeem` | +| [getAutoInvestSubscriptionTransactions()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2016) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/history/list` | +| [getOneTimeTransactionStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2022) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/one-off/status` | +| [submitAutoInvestmentPlanOld()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2035) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/add` | +| [submitAutoInvestmentPlan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2041) | :closed_lock_with_key: | POST | `sapi/v1/lending/auto-invest/plan/add` | +| [getAutoInvestRedemptionHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2056) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/redeem/history` | +| [getAutoInvestPlan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2065) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/plan/id` | +| [getAutoInvestUserIndex()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2069) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/index/user-summary` | +| [getAutoInvestRebalanceHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2078) | :closed_lock_with_key: | GET | `sapi/v1/lending/auto-invest/rebalance/history` | +| [getConvertPairs()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2093) | :closed_lock_with_key: | GET | `sapi/v1/convert/exchangeInfo` | +| [getConvertAssetInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2097) | :closed_lock_with_key: | GET | `sapi/v1/convert/assetInfo` | +| [convertQuoteRequest()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2107) | :closed_lock_with_key: | POST | `sapi/v1/convert/getQuote` | +| [acceptQuoteRequest()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2111) | :closed_lock_with_key: | POST | `sapi/v1/convert/acceptQuote` | +| [getConvertTradeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2115) | :closed_lock_with_key: | GET | `sapi/v1/convert/tradeFlow` | +| [getOrderStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2119) | :closed_lock_with_key: | GET | `sapi/v1/convert/orderStatus` | +| [submitConvertLimitOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2123) | :closed_lock_with_key: | POST | `sapi/v1/convert/limit/placeOrder` | +| [cancelConvertLimitOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2127) | :closed_lock_with_key: | POST | `sapi/v1/convert/limit/cancelOrder` | +| [getConvertLimitOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2131) | :closed_lock_with_key: | GET | `sapi/v1/convert/limit/queryOpenOrders` | +| [getEthStakingAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2146) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/account` | +| [getEthStakingAccountV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2150) | :closed_lock_with_key: | GET | `sapi/v2/eth-staking/account` | +| [getEthStakingQuota()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2154) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/quota` | +| [subscribeEthStakingV1()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2167) | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/eth/stake` | +| [subscribeEthStakingV2()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2173) | :closed_lock_with_key: | POST | `sapi/v2/eth-staking/eth/stake` | +| [redeemEth()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2179) | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/eth/redeem` | +| [wrapBeth()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2183) | :closed_lock_with_key: | POST | `sapi/v1/eth-staking/wbeth/wrap` | +| [getEthStakingHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2193) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/stakingHistory` | +| [getEthRedemptionHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2203) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/redemptionHistory` | +| [getBethRewardsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2213) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/rewardsHistory` | +| [getWbethRewardsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2223) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/wbethRewardsHistory` | +| [getEthRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2232) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/eth/history/rateHistory` | +| [getBethWrapHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2242) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/wbeth/history/wrapHistory` | +| [getBethUnwrapHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2252) | :closed_lock_with_key: | GET | `sapi/v1/eth-staking/wbeth/history/unwrapHistory` | +| [getStakingProducts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2265) | :closed_lock_with_key: | GET | `sapi/v1/staking/productList` | +| [getStakingProductPosition()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2276) | :closed_lock_with_key: | GET | `sapi/v1/staking/position` | +| [getStakingHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2288) | :closed_lock_with_key: | GET | `sapi/v1/staking/stakingRecord` | +| [getPersonalLeftQuotaOfStakingProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2295) | :closed_lock_with_key: | GET | `sapi/v1/staking/personalLeftQuota` | +| [getSolStakingAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2308) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/account` | +| [getSolStakingQuota()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2312) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/quota` | +| [subscribeSolStaking()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2322) | :closed_lock_with_key: | POST | `sapi/v1/sol-staking/sol/stake` | +| [redeemSol()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2328) | :closed_lock_with_key: | POST | `sapi/v1/sol-staking/sol/redeem` | +| [getSolStakingHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2338) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/stakingHistory` | +| [getSolRedemptionHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2348) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/redemptionHistory` | +| [getBnsolRewardsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2358) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/bnsolRewardsHistory` | +| [getBnsolRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2369) | :closed_lock_with_key: | GET | `sapi/v1/sol-staking/sol/history/rateHistory` | +| [getFuturesLeadTraderStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2385) | :closed_lock_with_key: | GET | `sapi/v1/copyTrading/futures/userStatus` | +| [getFuturesLeadTradingSymbolWhitelist()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2389) | :closed_lock_with_key: | GET | `sapi/v1/copyTrading/futures/leadSymbol` | +| [getMiningAlgos()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2401) | | GET | `sapi/v1/mining/pub/algoList` | +| [getMiningCoins()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2405) | | GET | `sapi/v1/mining/pub/coinList` | +| [getHashrateResales()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2409) | :closed_lock_with_key: | GET | `sapi/v1/mining/hash-transfer/config/details/list` | +| [getMiners()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2418) | :closed_lock_with_key: | GET | `sapi/v1/mining/worker/list` | +| [getMinerDetails()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2422) | :closed_lock_with_key: | GET | `sapi/v1/mining/worker/detail` | +| [getExtraBonuses()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2428) | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/other` | +| [getMiningEarnings()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2434) | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/list` | +| [cancelHashrateResaleConfig()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2440) | :closed_lock_with_key: | POST | `sapi/v1/mining/hash-transfer/config/cancel` | +| [getHashrateResale()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2449) | :closed_lock_with_key: | GET | `sapi/v1/mining/hash-transfer/profit/details` | +| [getMiningAccountEarnings()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2458) | :closed_lock_with_key: | GET | `sapi/v1/mining/payment/uid` | +| [getMiningStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2464) | :closed_lock_with_key: | GET | `sapi/v1/mining/statistics/user/status` | +| [submitHashrateResale()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2470) | :closed_lock_with_key: | POST | `sapi/v1/mining/hash-transfer/config` | +| [getMiningAccounts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2474) | :closed_lock_with_key: | GET | `sapi/v1/mining/statistics/user/list` | +| [submitVpNewOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2486) | :closed_lock_with_key: | POST | `sapi/v1/algo/futures/newOrderVp` | +| [submitTwapNewOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2493) | :closed_lock_with_key: | POST | `sapi/v1/algo/futures/newOrderTwap` | +| [cancelAlgoOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2500) | :closed_lock_with_key: | DELETE | `sapi/v1/algo/futures/order` | +| [getAlgoSubOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2506) | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/subOrders` | +| [getAlgoOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2512) | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/openOrders` | +| [getAlgoHistoricalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2519) | :closed_lock_with_key: | GET | `sapi/v1/algo/futures/historicalOrders` | +| [submitSpotAlgoTwapOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2532) | :closed_lock_with_key: | POST | `sapi/v1/algo/spot/newOrderTwap` | +| [cancelSpotAlgoOrder()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2539) | :closed_lock_with_key: | DELETE | `sapi/v1/algo/spot/order` | +| [getSpotAlgoSubOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2545) | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/subOrders` | +| [getSpotAlgoOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2551) | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/openOrders` | +| [getSpotAlgoHistoricalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2558) | :closed_lock_with_key: | GET | `sapi/v1/algo/spot/historicalOrders` | +| [getCryptoLoanFlexibleCollateralAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2573) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/collateral/data` | +| [getCryptoLoanFlexibleAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2582) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/loanable/data` | +| [borrowCryptoLoanFlexible()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2595) | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/borrow` | +| [repayCryptoLoanFlexible()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2601) | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/repay` | +| [adjustCryptoLoanFlexibleLTV()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2607) | :closed_lock_with_key: | POST | `sapi/v2/loan/flexible/adjust/ltv` | +| [getCryptoLoanFlexibleLTVAdjustmentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2619) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/ltv/adjustment/history` | +| [getLoanFlexibleBorrowHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2631) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/borrow/history` | +| [getCryptoLoanFlexibleOngoingOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2640) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/ongoing/orders` | +| [getLoanFlexibleRepaymentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2649) | :closed_lock_with_key: | GET | `sapi/v2/loan/flexible/repay/history` | +| [getCryptoLoanLoanableAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2664) | :closed_lock_with_key: | GET | `sapi/v1/loan/loanable/data` | +| [getCryptoLoanCollateralRepayRate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2671) | :closed_lock_with_key: | GET | `sapi/v1/loan/repay/collateral/rate` | +| [getCryptoLoanCollateralAssetsData()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2677) | :closed_lock_with_key: | GET | `sapi/v1/loan/collateral/data` | +| [getCryptoLoansIncomeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2686) | :closed_lock_with_key: | GET | `sapi/v1/loan/income` | +| [borrowCryptoLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2698) | :closed_lock_with_key: | POST | `sapi/v1/loan/borrow` | +| [repayCryptoLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2704) | :closed_lock_with_key: | POST | `sapi/v1/loan/repay` | +| [adjustCryptoLoanLTV()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2710) | :closed_lock_with_key: | POST | `sapi/v1/loan/adjust/ltv` | +| [customizeCryptoLoanMarginCall()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2716) | :closed_lock_with_key: | POST | `sapi/v1/loan/customize/margin_call` | +| [getCryptoLoanOngoingOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2729) | :closed_lock_with_key: | GET | `sapi/v1/loan/ongoing/orders` | +| [getCryptoLoanBorrowHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2736) | :closed_lock_with_key: | GET | `sapi/v1/loan/borrow/history` | +| [getCryptoLoanLTVAdjustmentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2743) | :closed_lock_with_key: | GET | `sapi/v1/loan/ltv/adjustment/history` | +| [getCryptoLoanRepaymentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2752) | :closed_lock_with_key: | GET | `sapi/v1/loan/repay/history` | +| [getSimpleEarnAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2764) | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/account` | +| [getFlexibleSavingProducts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2768) | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/flexible/list` | +| [getSimpleEarnLockedProductList()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2775) | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/locked/list` | +| [getFlexibleProductPosition()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2784) | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/flexible/position` | +| [getLockedProductPosition()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2793) | :closed_lock_with_key: | GET | `/sapi/v1/simple-earn/locked/position` | +| [getFlexiblePersonalLeftQuota()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2802) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/personalLeftQuota` | +| [getLockedPersonalLeftQuota()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2811) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/personalLeftQuota` | +| [purchaseFlexibleProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2826) | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/flexible/subscribe` | +| [subscribeSimpleEarnLockedProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2832) | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/locked/subscribe` | +| [redeemFlexibleProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2838) | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/flexible/redeem` | +| [redeemLockedProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2844) | :closed_lock_with_key: | POST | `/sapi/v1/simple-earn/locked/redeem` | +| [setFlexibleAutoSubscribe()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2850) | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/flexible/setAutoSubscribe` | +| [setLockedAutoSubscribe()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2859) | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/locked/setAutoSubscribe` | +| [getFlexibleSubscriptionPreview()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2868) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/subscriptionPreview` | +| [getLockedSubscriptionPreview()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2877) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/subscriptionPreview` | +| [setLockedProductRedeemOption()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2886) | :closed_lock_with_key: | POST | `sapi/v1/simple-earn/locked/setRedeemOption` | +| [getFlexibleSubscriptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2904) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/subscriptionRecord` | +| [getLockedSubscriptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2916) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/subscriptionRecord` | +| [getFlexibleRedemptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2928) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/redemptionRecord` | +| [getLockedRedemptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2940) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/redemptionRecord` | +| [getFlexibleRewardsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2950) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/rewardsRecord` | +| [getLockedRewardsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2960) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/locked/history/rewardsRecord` | +| [getCollateralRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2970) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/collateralRecord` | +| [getRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2980) | :closed_lock_with_key: | GET | `sapi/v1/simple-earn/flexible/history/rateHistory` | +| [getVipBorrowInterestRate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2996) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/request/interestRate` | +| [getVipLoanableAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3002) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/loanable/data` | +| [getVipCollateralAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3009) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/collateral/data` | +| [getVipLoanOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3022) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/ongoing/orders` | +| [getVipLoanRepaymentHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3029) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/repay/history` | +| [checkVipCollateralAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3038) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/collateral/account` | +| [getVipApplicationStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3045) | :closed_lock_with_key: | GET | `sapi/v1/loan/vip/request/data` | +| [renewVipLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3058) | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/renew` | +| [repayVipLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3062) | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/repay` | +| [borrowVipLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3066) | :closed_lock_with_key: | POST | `sapi/v1/loan/vip/borrow` | +| [getDualInvestmentProducts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3076) | :closed_lock_with_key: | GET | `sapi/v1/dci/product/list` | +| [subscribeDualInvestmentProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3091) | :closed_lock_with_key: | POST | `sapi/v1/dci/product/subscribe` | +| [getDualInvestmentPositions()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3097) | :closed_lock_with_key: | GET | `sapi/v1/dci/product/positions` | +| [getDualInvestmentAccounts()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3106) | :closed_lock_with_key: | GET | `sapi/v1/dci/product/accounts` | +| [updateAutoCompoundStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3110) | :closed_lock_with_key: | POST | `sapi/v1/dci/product/auto_compound/edit-status` | +| [createGiftCard()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3125) | :closed_lock_with_key: | POST | `sapi/v1/giftcard/createCode` | +| [createDualTokenGiftCard()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3129) | :closed_lock_with_key: | POST | `sapi/v1/giftcard/buyCode` | +| [redeemGiftCard()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3133) | :closed_lock_with_key: | POST | `sapi/v1/giftcard/redeemCode` | +| [verifyGiftCard()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3137) | :closed_lock_with_key: | GET | `sapi/v1/giftcard/verify` | +| [getTokenLimit()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3141) | :closed_lock_with_key: | GET | `sapi/v1/giftcard/buyCode/token-limit` | +| [getRsaPublicKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3145) | :closed_lock_with_key: | GET | `sapi/v1/giftcard/cryptography/rsa-public-key` | +| [getNftTransactionHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3155) | :closed_lock_with_key: | GET | `sapi/v1/nft/history/transactions` | +| [getNftDepositHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3162) | :closed_lock_with_key: | GET | `sapi/v1/nft/history/deposit` | +| [getNftWithdrawHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3169) | :closed_lock_with_key: | GET | `sapi/v1/nft/history/withdraw` | +| [getNftAsset()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3176) | :closed_lock_with_key: | GET | `sapi/v1/nft/user/getAsset` | +| [getC2CTradeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3189) | :closed_lock_with_key: | GET | `sapi/v1/c2c/orderMatch/listUserOrderHistory` | +| [getFiatOrderHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3204) | :closed_lock_with_key: | GET | `sapi/v1/fiat/orders` | +| [getFiatPaymentsHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3210) | :closed_lock_with_key: | GET | `sapi/v1/fiat/payments` | +| [getSpotRebateHistoryRecords()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3222) | :closed_lock_with_key: | GET | `sapi/v1/rebate/taxQuery` | +| [getPortfolioMarginIndexPrice()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3235) | | GET | `sapi/v1/portfolio/asset-index-price` | +| [getPortfolioMarginAssetLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3241) | :closed_lock_with_key: | GET | `sapi/v1/portfolio/margin-asset-leverage` | +| [getPortfolioMarginProCollateralRate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3247) | | GET | `sapi/v1/portfolio/collateralRate` | +| [getPortfolioMarginProTieredCollateralRate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3253) | | GET | `sapi/v2/portfolio/collateralRate` | +| [getPortfolioMarginProAccountInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3264) | :closed_lock_with_key: | GET | `sapi/v1/portfolio/account` | +| [bnbTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3268) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/bnb-transfer` | +| [submitPortfolioMarginProFullTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3274) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/auto-collection` | +| [submitPortfolioMarginProSpecificTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3280) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/asset-collection` | +| [repayPortfolioMarginProBankruptcyLoan()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3286) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay` | +| [getPortfolioMarginProBankruptcyLoanAmount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3294) | :closed_lock_with_key: | GET | `sapi/v1/portfolio/pmLoan` | +| [repayFuturesNegativeBalance()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3298) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay-futures-negative-balance` | +| [updateAutoRepayFuturesStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3304) | :closed_lock_with_key: | POST | `sapi/v1/portfolio/repay-futures-switch` | +| [getAutoRepayFuturesStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3310) | :closed_lock_with_key: | GET | `sapi/v1/portfolio/repay-futures-switch` | +| [getPortfolioMarginProInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3316) | :closed_lock_with_key: | GET | `sapi/v1/portfolio/interest-history` | +| [getFuturesTickLevelOrderbookDataLink()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3329) | :closed_lock_with_key: | GET | `sapi/v1/futures/histDataLink` | +| [getBlvtInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3343) | | GET | `sapi/v1/blvt/tokenInfo` | +| [subscribeBlvt()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3347) | :closed_lock_with_key: | POST | `sapi/v1/blvt/subscribe` | +| [getBlvtSubscriptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3351) | :closed_lock_with_key: | GET | `sapi/v1/blvt/subscribe/record` | +| [redeemBlvt()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3357) | :closed_lock_with_key: | POST | `sapi/v1/blvt/redeem` | +| [getBlvtRedemptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3361) | :closed_lock_with_key: | GET | `sapi/v1/blvt/redeem/record` | +| [getBlvtUserLimitInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3367) | :closed_lock_with_key: | GET | `sapi/v1/blvt/userLimit` | +| [getPayTransactions()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3378) | :closed_lock_with_key: | GET | `sapi/v1/pay/transactions` | +| [createBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3388) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount` | +| [getBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3394) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount` | +| [enableMarginBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3400) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/futures` | +| [createApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3406) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi` | +| [changePermissionApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3412) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission` | +| [changeComissionBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3418) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission` | +| [enableUniversalTransferApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3424) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/permission/universalTransfer` | +| [updateIpRestrictionForSubAccountApiKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3433) | :closed_lock_with_key: | POST | `sapi/v2/broker/subAccountApi/ipRestriction` | +| [deleteIPRestrictionForSubAccountApiKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3447) | :closed_lock_with_key: | DELETE | `sapi/v1/broker/subAccountApi/ipRestriction/ipList` | +| [deleteApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3463) | :closed_lock_with_key: | DELETE | `sapi/v1/broker/subAccountApi` | +| [getSubAccountBrokerIpRestriction()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3469) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/ipRestriction` | +| [getApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3485) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi` | +| [getBrokerInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3491) | :closed_lock_with_key: | GET | `sapi/v1/broker/info` | +| [updateSubAccountBNBBurn()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3495) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/bnbBurn/spot` | +| [updateSubAccountMarginInterestBNBBurn()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3505) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/bnbBurn/marginInterest` | +| [getSubAccountBNBBurnStatus()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3518) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/bnbBurn/status` | +| [transferBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3532) | :closed_lock_with_key: | POST | `sapi/v1/broker/transfer` | +| [getBrokerSubAccountHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3538) | :closed_lock_with_key: | GET | `sapi/v1/broker/transfer` | +| [submitBrokerSubFuturesTransfer()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3544) | :closed_lock_with_key: | POST | `sapi/v1/broker/transfer/futures` | +| [getSubAccountFuturesTransferHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3559) | :closed_lock_with_key: | GET | `sapi/v1/broker/transfer/futures` | +| [getBrokerSubDepositHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3571) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/depositHist` | +| [getBrokerSubAccountSpotAssets()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3577) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/spotSummary` | +| [getSubAccountMarginAssetInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3586) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccount/marginSummary` | +| [querySubAccountFuturesAssetInfo()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3595) | :closed_lock_with_key: | GET | `sapi/v3/broker/subAccount/futuresSummary` | +| [universalTransferBroker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3604) | :closed_lock_with_key: | POST | `sapi/v1/broker/universalTransfer` | +| [getUniversalTransferBroker()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3611) | :closed_lock_with_key: | GET | `sapi/v1/broker/universalTransfer` | +| [updateBrokerSubAccountCommission()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3623) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission` | +| [updateBrokerSubAccountFuturesCommission()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3629) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission/futures` | +| [getBrokerSubAccountFuturesCommission()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3638) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/commission/futures` | +| [updateBrokerSubAccountCoinFuturesCommission()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3647) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccountApi/commission/coinFutures` | +| [getBrokerSubAccountCoinFuturesCommission()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3656) | :closed_lock_with_key: | GET | `sapi/v1/broker/subAccountApi/commission/coinFutures` | +| [getBrokerSpotCommissionRebate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3665) | :closed_lock_with_key: | GET | `sapi/v1/broker/rebate/recentRecord` | +| [getBrokerFuturesCommissionRebate()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3671) | :closed_lock_with_key: | GET | `sapi/v1/broker/rebate/futures/recentRecord` | +| [getBrokerIfNewSpotUser()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3708) | :closed_lock_with_key: | GET | `sapi/v1/apiReferral/ifNewUser` | +| [getBrokerSubAccountDepositHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3719) | :closed_lock_with_key: | GET | `sapi/v1/bv1/apiReferral/ifNewUser` | +| [enableFuturesBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3738) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount` | +| [enableMarginApiKeyBrokerSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3748) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/margin` | +| [getSpotUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3785) | | POST | `api/v3/userDataStream` | +| [keepAliveSpotUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3789) | | PUT | `api/v3/userDataStream?listenKey=${listenKey}` | +| [closeSpotUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3793) | | DELETE | `api/v3/userDataStream?listenKey=${listenKey}` | +| [getMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3798) | | POST | `sapi/v1/userDataStream` | +| [keepAliveMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3802) | | PUT | `sapi/v1/userDataStream?listenKey=${listenKey}` | +| [closeMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3806) | | DELETE | `sapi/v1/userDataStream?listenKey=${listenKey}` | +| [getIsolatedMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3811) | | POST | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | +| [keepAliveIsolatedMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3819) | | PUT | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | +| [closeIsolatedMarginUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3828) | | DELETE | `sapi/v1/userDataStream/isolated?${serialiseParams(params)}` | +| [getBSwapLiquidity()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3851) | :closed_lock_with_key: | GET | `sapi/v1/bswap/liquidity` | +| [addBSwapLiquidity()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3858) | :closed_lock_with_key: | POST | `sapi/v1/bswap/liquidityAdd` | +| [removeBSwapLiquidity()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3867) | :closed_lock_with_key: | POST | `sapi/v1/bswap/liquidityRemove` | +| [getBSwapOperations()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3876) | :closed_lock_with_key: | GET | `sapi/v1/bswap/liquidityOps` | +| [getLeftDailyPurchaseQuotaFlexibleProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3891) | :closed_lock_with_key: | GET | `sapi/v1/lending/daily/userLeftQuota` | +| [getLeftDailyRedemptionQuotaFlexibleProduct()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3900) | :closed_lock_with_key: | GET | `sapi/v1/lending/daily/userRedemptionQuota` | +| [purchaseFixedAndActivityProject()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3914) | :closed_lock_with_key: | POST | `sapi/v1/lending/customizedFixed/purchase` | +| [getFixedAndActivityProjects()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3924) | :closed_lock_with_key: | GET | `sapi/v1/lending/project/list` | +| [getFixedAndActivityProductPosition()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3933) | :closed_lock_with_key: | GET | `sapi/v1/lending/project/position/list` | +| [getLendingAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3942) | :closed_lock_with_key: | GET | `sapi/v1/lending/union/account` | +| [getPurchaseRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3949) | :closed_lock_with_key: | GET | `sapi/v1/lending/union/purchaseRecord` | +| [getRedemptionRecord()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3956) | :closed_lock_with_key: | GET | `sapi/v1/lending/union/redemptionRecord` | +| [getInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3963) | :closed_lock_with_key: | GET | `sapi/v1/lending/union/interestHistory` | +| [changeFixedAndActivityPositionToDailyPosition()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3970) | :closed_lock_with_key: | POST | `sapi/v1/lending/positionChanged` | +| [enableConvertSubAccount()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3987) | :closed_lock_with_key: | POST | `sapi/v1/broker/subAccount/convert` | +| [convertBUSD()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3993) | :closed_lock_with_key: | POST | `sapi/v1/asset/convert-transfer` | +| [getConvertBUSDHistory()](https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L4000) | :closed_lock_with_key: | GET | `sapi/v1/asset/convert-transfer/queryByPage` | # usdm-client.ts @@ -473,99 +473,99 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| `testConnectivity()` | | GET | `fapi/v1/ping` | -| `getExchangeInfo()` | | GET | `fapi/v1/exchangeInfo` | -| `getOrderBook()` | | GET | `fapi/v1/depth` | -| `getRecentTrades()` | | GET | `fapi/v1/trades` | -| `getHistoricalTrades()` | | GET | `fapi/v1/historicalTrades` | -| `getAggregateTrades()` | | GET | `fapi/v1/aggTrades` | -| `getKlines()` | | GET | `fapi/v1/klines` | -| `getContinuousContractKlines()` | | GET | `fapi/v1/continuousKlines` | -| `getIndexPriceKlines()` | | GET | `fapi/v1/indexPriceKlines` | -| `getMarkPriceKlines()` | | GET | `fapi/v1/markPriceKlines` | -| `getPremiumIndexKlines()` | | GET | `fapi/v1/premiumIndexKlines` | -| `getMarkPrice()` | | GET | `fapi/v1/premiumIndex` | -| `getFundingRateHistory()` | | GET | `fapi/v1/fundingRate` | -| `getFundingRates()` | | GET | `fapi/v1/fundingInfo` | -| `get24hrChangeStatististics()` | | GET | `fapi/v1/ticker/24hr` | -| `get24hrChangeStatistics()` | | GET | `fapi/v1/ticker/24hr` | -| `getSymbolPriceTicker()` | | GET | `fapi/v1/ticker/price` | -| `getSymbolPriceTickerV2()` | | GET | `fapi/v2/ticker/price` | -| `getSymbolOrderBookTicker()` | | GET | `fapi/v1/ticker/bookTicker` | -| `getQuarterlyContractSettlementPrices()` | | GET | `futures/data/delivery-price` | -| `getOpenInterest()` | | GET | `fapi/v1/openInterest` | -| `getOpenInterestStatistics()` | | GET | `futures/data/openInterestHist` | -| `getTopTradersLongShortPositionRatio()` | | GET | `futures/data/topLongShortPositionRatio` | -| `getTopTradersLongShortAccountRatio()` | | GET | `futures/data/topLongShortAccountRatio` | -| `getGlobalLongShortAccountRatio()` | | GET | `futures/data/globalLongShortAccountRatio` | -| `getTakerBuySellVolume()` | | GET | `futures/data/takerlongshortRatio` | -| `getHistoricalBlvtNavKlines()` | | GET | `fapi/v1/lvtKlines` | -| `getCompositeSymbolIndex()` | | GET | `fapi/v1/indexInfo` | -| `getMultiAssetsModeAssetIndex()` | | GET | `fapi/v1/assetIndex` | -| `getBasis()` | | GET | `futures/data/basis` | -| `getIndexPriceConstituents()` | | GET | `fapi/v1/constituents` | -| `submitNewOrder()` | :closed_lock_with_key: | POST | `fapi/v1/order` | -| `submitMultipleOrders()` | :closed_lock_with_key: | POST | `fapi/v1/batchOrders` | -| `modifyOrder()` | :closed_lock_with_key: | PUT | `fapi/v1/order` | -| `modifyMultipleOrders()` | :closed_lock_with_key: | PUT | `fapi/v1/batchOrders` | -| `getOrderModifyHistory()` | :closed_lock_with_key: | GET | `fapi/v1/orderAmendment` | -| `cancelOrder()` | :closed_lock_with_key: | DELETE | `fapi/v1/order` | -| `cancelMultipleOrders()` | :closed_lock_with_key: | DELETE | `fapi/v1/batchOrders` | -| `cancelAllOpenOrders()` | :closed_lock_with_key: | DELETE | `fapi/v1/allOpenOrders` | -| `setCancelOrdersOnTimeout()` | :closed_lock_with_key: | POST | `fapi/v1/countdownCancelAll` | -| `getOrder()` | :closed_lock_with_key: | GET | `fapi/v1/order` | -| `getAllOrders()` | :closed_lock_with_key: | GET | `fapi/v1/allOrders` | -| `getAllOpenOrders()` | :closed_lock_with_key: | GET | `fapi/v1/openOrders` | -| `getCurrentOpenOrder()` | :closed_lock_with_key: | GET | `fapi/v1/openOrder` | -| `getForceOrders()` | :closed_lock_with_key: | GET | `fapi/v1/forceOrders` | -| `getAccountTrades()` | :closed_lock_with_key: | GET | `fapi/v1/userTrades` | -| `setMarginType()` | :closed_lock_with_key: | POST | `fapi/v1/marginType` | -| `setPositionMode()` | :closed_lock_with_key: | POST | `fapi/v1/positionSide/dual` | -| `setLeverage()` | :closed_lock_with_key: | POST | `fapi/v1/leverage` | -| `setMultiAssetsMode()` | :closed_lock_with_key: | POST | `fapi/v1/multiAssetsMargin` | -| `setIsolatedPositionMargin()` | :closed_lock_with_key: | POST | `fapi/v1/positionMargin` | -| `getPositions()` | :closed_lock_with_key: | GET | `fapi/v2/positionRisk` | -| `getPositionsV3()` | :closed_lock_with_key: | GET | `fapi/v3/positionRisk` | -| `getADLQuantileEstimation()` | :closed_lock_with_key: | GET | `fapi/v1/adlQuantile` | -| `getPositionMarginChangeHistory()` | :closed_lock_with_key: | GET | `fapi/v1/positionMargin/history` | -| `getBalanceV3()` | :closed_lock_with_key: | GET | `fapi/v3/balance` | -| `getBalance()` | :closed_lock_with_key: | GET | `fapi/v2/balance` | -| `getAccountInformationV3()` | :closed_lock_with_key: | GET | `fapi/v3/account` | -| `getAccountInformation()` | :closed_lock_with_key: | GET | `fapi/v2/account` | -| `getAccountComissionRate()` | :closed_lock_with_key: | GET | `fapi/v1/commissionRate` | -| `getFuturesAccountConfig()` | :closed_lock_with_key: | GET | `fapi/v1/accountConfig` | -| `getFuturesSymbolConfig()` | :closed_lock_with_key: | GET | `fapi/v1/symbolConfig` | -| `getUserForceOrders()` | :closed_lock_with_key: | GET | `fapi/v1/rateLimit/order` | -| `getNotionalAndLeverageBrackets()` | :closed_lock_with_key: | GET | `fapi/v1/leverageBracket` | -| `getMultiAssetsMode()` | :closed_lock_with_key: | GET | `fapi/v1/multiAssetsMargin` | -| `getCurrentPositionMode()` | :closed_lock_with_key: | GET | `fapi/v1/positionSide/dual` | -| `getIncomeHistory()` | :closed_lock_with_key: | GET | `fapi/v1/income` | -| `getApiQuantitativeRulesIndicators()` | :closed_lock_with_key: | GET | `fapi/v1/apiTradingStatus` | -| `getFuturesTransactionHistoryDownloadId()` | :closed_lock_with_key: | GET | `fapi/v1/income/asyn` | -| `getFuturesTransactionHistoryDownloadLink()` | :closed_lock_with_key: | GET | `fapi/v1/income/asyn/id` | -| `getFuturesOrderHistoryDownloadId()` | :closed_lock_with_key: | GET | `fapi/v1/order/asyn` | -| `getFuturesOrderHistoryDownloadLink()` | :closed_lock_with_key: | GET | `fapi/v1/order/asyn/id` | -| `getFuturesTradeHistoryDownloadId()` | :closed_lock_with_key: | GET | `fapi/v1/trade/asyn` | -| `getFuturesTradeDownloadLink()` | :closed_lock_with_key: | GET | `fapi/v1/trade/asyn/id` | -| `setBNBBurnEnabled()` | :closed_lock_with_key: | POST | `fapi/v1/feeBurn` | -| `getBNBBurnStatus()` | :closed_lock_with_key: | GET | `fapi/v1/feeBurn` | -| `testOrder()` | :closed_lock_with_key: | POST | `fapi/v1/order/test` | -| `getAllConvertPairs()` | | GET | `fapi/v1/convert/exchangeInfo` | -| `submitConvertQuoteRequest()` | :closed_lock_with_key: | POST | `fapi/v1/convert/getQuote` | -| `acceptConvertQuote()` | :closed_lock_with_key: | POST | `fapi/v1/convert/acceptQuote` | -| `getConvertOrderStatus()` | :closed_lock_with_key: | GET | `fapi/v1/convert/orderStatus` | -| `getPortfolioMarginProAccountInfo()` | :closed_lock_with_key: | GET | `fapi/v1/pmAccountInfo` | -| `getBrokerIfNewFuturesUser()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/ifNewUser` | -| `setBrokerCustomIdForClient()` | :closed_lock_with_key: | POST | `fapi/v1/apiReferral/customization` | -| `getBrokerClientCustomIds()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/customization` | -| `getBrokerUserCustomId()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/userCustomization` | -| `getBrokerRebateDataOverview()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/overview` | -| `getBrokerUserTradeVolume()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/tradeVol` | -| `getBrokerRebateVolume()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/rebateVol` | -| `getBrokerTradeDetail()` | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/traderSummary` | -| `getFuturesUserDataListenKey()` | | POST | `fapi/v1/listenKey` | -| `keepAliveFuturesUserDataListenKey()` | | PUT | `fapi/v1/listenKey` | -| `closeFuturesUserDataListenKey()` | | DELETE | `fapi/v1/listenKey` | +| [testConnectivity()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L130) | | GET | `fapi/v1/ping` | +| [getExchangeInfo()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L134) | | GET | `fapi/v1/exchangeInfo` | +| [getOrderBook()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L138) | | GET | `fapi/v1/depth` | +| [getRecentTrades()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L142) | | GET | `fapi/v1/trades` | +| [getHistoricalTrades()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L146) | | GET | `fapi/v1/historicalTrades` | +| [getAggregateTrades()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L152) | | GET | `fapi/v1/aggTrades` | +| [getKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L158) | | GET | `fapi/v1/klines` | +| [getContinuousContractKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L162) | | GET | `fapi/v1/continuousKlines` | +| [getIndexPriceKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L168) | | GET | `fapi/v1/indexPriceKlines` | +| [getMarkPriceKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L172) | | GET | `fapi/v1/markPriceKlines` | +| [getPremiumIndexKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L176) | | GET | `fapi/v1/premiumIndexKlines` | +| [getMarkPrice()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L180) | | GET | `fapi/v1/premiumIndex` | +| [getFundingRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L189) | | GET | `fapi/v1/fundingRate` | +| [getFundingRates()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L195) | | GET | `fapi/v1/fundingInfo` | +| [get24hrChangeStatististics()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L202) | | GET | `fapi/v1/ticker/24hr` | +| [get24hrChangeStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L208) | | GET | `fapi/v1/ticker/24hr` | +| [getSymbolPriceTicker()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L224) | | GET | `fapi/v1/ticker/price` | +| [getSymbolPriceTickerV2()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L230) | | GET | `fapi/v2/ticker/price` | +| [getSymbolOrderBookTicker()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L236) | | GET | `fapi/v1/ticker/bookTicker` | +| [getQuarterlyContractSettlementPrices()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L242) | | GET | `futures/data/delivery-price` | +| [getOpenInterest()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L248) | | GET | `fapi/v1/openInterest` | +| [getOpenInterestStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L252) | | GET | `futures/data/openInterestHist` | +| [getTopTradersLongShortPositionRatio()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L258) | | GET | `futures/data/topLongShortPositionRatio` | +| [getTopTradersLongShortAccountRatio()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L264) | | GET | `futures/data/topLongShortAccountRatio` | +| [getGlobalLongShortAccountRatio()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L270) | | GET | `futures/data/globalLongShortAccountRatio` | +| [getTakerBuySellVolume()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L276) | | GET | `futures/data/takerlongshortRatio` | +| [getHistoricalBlvtNavKlines()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L280) | | GET | `fapi/v1/lvtKlines` | +| [getCompositeSymbolIndex()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L284) | | GET | `fapi/v1/indexInfo` | +| [getMultiAssetsModeAssetIndex()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L288) | | GET | `fapi/v1/assetIndex` | +| [getBasis()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L295) | | GET | `futures/data/basis` | +| [getIndexPriceConstituents()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L302) | | GET | `fapi/v1/constituents` | +| [submitNewOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L314) | :closed_lock_with_key: | POST | `fapi/v1/order` | +| [submitMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L324) | :closed_lock_with_key: | POST | `fapi/v1/batchOrders` | +| [modifyOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L341) | :closed_lock_with_key: | PUT | `fapi/v1/order` | +| [modifyMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L347) | :closed_lock_with_key: | PUT | `fapi/v1/batchOrders` | +| [getOrderModifyHistory()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L355) | :closed_lock_with_key: | GET | `fapi/v1/orderAmendment` | +| [cancelOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L361) | :closed_lock_with_key: | DELETE | `fapi/v1/order` | +| [cancelMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L365) | :closed_lock_with_key: | DELETE | `fapi/v1/batchOrders` | +| [cancelAllOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L385) | :closed_lock_with_key: | DELETE | `fapi/v1/allOpenOrders` | +| [setCancelOrdersOnTimeout()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L392) | :closed_lock_with_key: | POST | `fapi/v1/countdownCancelAll` | +| [getOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L398) | :closed_lock_with_key: | GET | `fapi/v1/order` | +| [getAllOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L402) | :closed_lock_with_key: | GET | `fapi/v1/allOrders` | +| [getAllOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L406) | :closed_lock_with_key: | GET | `fapi/v1/openOrders` | +| [getCurrentOpenOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L410) | :closed_lock_with_key: | GET | `fapi/v1/openOrder` | +| [getForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L414) | :closed_lock_with_key: | GET | `fapi/v1/forceOrders` | +| [getAccountTrades()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L418) | :closed_lock_with_key: | GET | `fapi/v1/userTrades` | +| [setMarginType()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L424) | :closed_lock_with_key: | POST | `fapi/v1/marginType` | +| [setPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L428) | :closed_lock_with_key: | POST | `fapi/v1/positionSide/dual` | +| [setLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L432) | :closed_lock_with_key: | POST | `fapi/v1/leverage` | +| [setMultiAssetsMode()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L436) | :closed_lock_with_key: | POST | `fapi/v1/multiAssetsMargin` | +| [setIsolatedPositionMargin()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L442) | :closed_lock_with_key: | POST | `fapi/v1/positionMargin` | +| [getPositions()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L452) | :closed_lock_with_key: | GET | `fapi/v2/positionRisk` | +| [getPositionsV3()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L456) | :closed_lock_with_key: | GET | `fapi/v3/positionRisk` | +| [getADLQuantileEstimation()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L460) | :closed_lock_with_key: | GET | `fapi/v1/adlQuantile` | +| [getPositionMarginChangeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L464) | :closed_lock_with_key: | GET | `fapi/v1/positionMargin/history` | +| [getBalanceV3()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L476) | :closed_lock_with_key: | GET | `fapi/v3/balance` | +| [getBalance()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L484) | :closed_lock_with_key: | GET | `fapi/v2/balance` | +| [getAccountInformationV3()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L488) | :closed_lock_with_key: | GET | `fapi/v3/account` | +| [getAccountInformation()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L496) | :closed_lock_with_key: | GET | `fapi/v2/account` | +| [getAccountComissionRate()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L500) | :closed_lock_with_key: | GET | `fapi/v1/commissionRate` | +| [getFuturesAccountConfig()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L506) | :closed_lock_with_key: | GET | `fapi/v1/accountConfig` | +| [getFuturesSymbolConfig()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L510) | :closed_lock_with_key: | GET | `fapi/v1/symbolConfig` | +| [getUserForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L514) | :closed_lock_with_key: | GET | `fapi/v1/rateLimit/order` | +| [getNotionalAndLeverageBrackets()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L521) | :closed_lock_with_key: | GET | `fapi/v1/leverageBracket` | +| [getMultiAssetsMode()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L527) | :closed_lock_with_key: | GET | `fapi/v1/multiAssetsMargin` | +| [getCurrentPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L531) | :closed_lock_with_key: | GET | `fapi/v1/positionSide/dual` | +| [getIncomeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L535) | :closed_lock_with_key: | GET | `fapi/v1/income` | +| [getApiQuantitativeRulesIndicators()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L539) | :closed_lock_with_key: | GET | `fapi/v1/apiTradingStatus` | +| [getFuturesTransactionHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L545) | :closed_lock_with_key: | GET | `fapi/v1/income/asyn` | +| [getFuturesTransactionHistoryDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L552) | :closed_lock_with_key: | GET | `fapi/v1/income/asyn/id` | +| [getFuturesOrderHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L558) | :closed_lock_with_key: | GET | `fapi/v1/order/asyn` | +| [getFuturesOrderHistoryDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L565) | :closed_lock_with_key: | GET | `fapi/v1/order/asyn/id` | +| [getFuturesTradeHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L571) | :closed_lock_with_key: | GET | `fapi/v1/trade/asyn` | +| [getFuturesTradeDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L578) | :closed_lock_with_key: | GET | `fapi/v1/trade/asyn/id` | +| [setBNBBurnEnabled()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L584) | :closed_lock_with_key: | POST | `fapi/v1/feeBurn` | +| [getBNBBurnStatus()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L590) | :closed_lock_with_key: | GET | `fapi/v1/feeBurn` | +| [testOrder()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L596) | :closed_lock_with_key: | POST | `fapi/v1/order/test` | +| [getAllConvertPairs()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L607) | | GET | `fapi/v1/convert/exchangeInfo` | +| [submitConvertQuoteRequest()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L614) | :closed_lock_with_key: | POST | `fapi/v1/convert/getQuote` | +| [acceptConvertQuote()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L620) | :closed_lock_with_key: | POST | `fapi/v1/convert/acceptQuote` | +| [getConvertOrderStatus()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L628) | :closed_lock_with_key: | GET | `fapi/v1/convert/orderStatus` | +| [getPortfolioMarginProAccountInfo()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L641) | :closed_lock_with_key: | GET | `fapi/v1/pmAccountInfo` | +| [getBrokerIfNewFuturesUser()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L658) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/ifNewUser` | +| [setBrokerCustomIdForClient()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L670) | :closed_lock_with_key: | POST | `fapi/v1/apiReferral/customization` | +| [getBrokerClientCustomIds()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L682) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/customization` | +| [getBrokerUserCustomId()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L698) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/userCustomization` | +| [getBrokerRebateDataOverview()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L706) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/overview` | +| [getBrokerUserTradeVolume()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L714) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/tradeVol` | +| [getBrokerRebateVolume()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L730) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/rebateVol` | +| [getBrokerTradeDetail()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L746) | :closed_lock_with_key: | GET | `fapi/v1/apiReferral/traderSummary` | +| [getFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L768) | | POST | `fapi/v1/listenKey` | +| [keepAliveFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L772) | | PUT | `fapi/v1/listenKey` | +| [closeFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L776) | | DELETE | `fapi/v1/listenKey` | # coinm-client.ts @@ -573,71 +573,71 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| `testConnectivity()` | | GET | `dapi/v1/ping` | -| `getExchangeInfo()` | | GET | `dapi/v1/exchangeInfo` | -| `getOrderBook()` | | GET | `dapi/v1/depth` | -| `getRecentTrades()` | | GET | `dapi/v1/trades` | -| `getHistoricalTrades()` | | GET | `dapi/v1/historicalTrades` | -| `getAggregateTrades()` | | GET | `dapi/v1/aggTrades` | -| `getMarkPrice()` | | GET | `dapi/v1/premiumIndex` | -| `getFundingRateHistory()` | | GET | `dapi/v1/fundingRate` | -| `getFundingRate()` | | GET | `dapi/v1/fundingInfo` | -| `getKlines()` | | GET | `dapi/v1/klines` | -| `getContinuousContractKlines()` | | GET | `dapi/v1/continuousKlines` | -| `getIndexPriceKlines()` | | GET | `dapi/v1/indexPriceKlines` | -| `getMarkPriceKlines()` | | GET | `dapi/v1/markPriceKlines` | -| `getPremiumIndexKlines()` | | GET | `dapi/v1/premiumIndexKlines` | -| `get24hrChangeStatististics()` | | GET | `dapi/v1/ticker/24hr` | -| `get24hrChangeStatistics()` | | GET | `dapi/v1/ticker/24hr` | -| `getSymbolPriceTicker()` | | GET | `dapi/v1/ticker/price` | -| `getSymbolOrderBookTicker()` | | GET | `dapi/v1/ticker/bookTicker` | -| `getOpenInterest()` | | GET | `dapi/v1/openInterest` | -| `getOpenInterestStatistics()` | | GET | `futures/data/openInterestHist` | -| `getTopTradersLongShortAccountRatio()` | | GET | `futures/data/topLongShortAccountRatio` | -| `getTopTradersLongShortPositionRatio()` | | GET | `futures/data/topLongShortPositionRatio` | -| `getGlobalLongShortAccountRatio()` | | GET | `futures/data/globalLongShortAccountRatio` | -| `getTakerBuySellVolume()` | | GET | `futures/data/takerBuySellVol` | -| `getCompositeSymbolIndex()` | | GET | `futures/data/basis` | -| `getIndexPriceConstituents()` | | GET | `dapi/v1/constituents` | -| `getQuarterlyContractSettlementPrices()` | | GET | `futures/data/delivery-price` | -| `submitNewOrder()` | :closed_lock_with_key: | POST | `dapi/v1/order` | -| `submitMultipleOrders()` | :closed_lock_with_key: | POST | `dapi/v1/batchOrders` | -| `modifyOrder()` | :closed_lock_with_key: | PUT | `dapi/v1/order` | -| `modifyMultipleOrders()` | :closed_lock_with_key: | PUT | `dapi/v1/batchOrders` | -| `getOrderModifyHistory()` | :closed_lock_with_key: | GET | `dapi/v1/orderAmendment` | -| `cancelOrder()` | :closed_lock_with_key: | DELETE | `dapi/v1/order` | -| `cancelMultipleOrders()` | :closed_lock_with_key: | DELETE | `dapi/v1/batchOrders` | -| `cancelAllOpenOrders()` | :closed_lock_with_key: | DELETE | `dapi/v1/allOpenOrders` | -| `setCancelOrdersOnTimeout()` | :closed_lock_with_key: | POST | `dapi/v1/countdownCancelAll` | -| `getOrder()` | :closed_lock_with_key: | GET | `dapi/v1/order` | -| `getAllOrders()` | :closed_lock_with_key: | GET | `dapi/v1/allOrders` | -| `getAllOpenOrders()` | :closed_lock_with_key: | GET | `dapi/v1/openOrders` | -| `getCurrentOpenOrder()` | :closed_lock_with_key: | GET | `dapi/v1/openOrder` | -| `getForceOrders()` | :closed_lock_with_key: | GET | `dapi/v1/forceOrders` | -| `getAccountTrades()` | :closed_lock_with_key: | GET | `dapi/v1/userTrades` | -| `getPositions()` | :closed_lock_with_key: | GET | `dapi/v1/positionRisk` | -| `setPositionMode()` | :closed_lock_with_key: | POST | `dapi/v1/positionSide/dual` | -| `setMarginType()` | :closed_lock_with_key: | POST | `dapi/v1/marginType` | -| `setLeverage()` | :closed_lock_with_key: | POST | `dapi/v1/leverage` | -| `getADLQuantileEstimation()` | :closed_lock_with_key: | GET | `dapi/v1/adlQuantile` | -| `setIsolatedPositionMargin()` | :closed_lock_with_key: | POST | `dapi/v1/positionMargin` | -| `getPositionMarginChangeHistory()` | :closed_lock_with_key: | GET | `dapi/v1/positionMargin/history` | -| `getBalance()` | :closed_lock_with_key: | GET | `dapi/v1/balance` | -| `getAccountComissionRate()` | :closed_lock_with_key: | GET | `dapi/v1/commissionRate` | -| `getAccountInformation()` | :closed_lock_with_key: | GET | `dapi/v1/account` | -| `getNotionalAndLeverageBrackets()` | :closed_lock_with_key: | GET | `dapi/v2/leverageBracket` | -| `getCurrentPositionMode()` | :closed_lock_with_key: | GET | `dapi/v1/positionSide/dual` | -| `getIncomeHistory()` | :closed_lock_with_key: | GET | `dapi/v1/income` | -| `getClassicPortfolioMarginAccount()` | :closed_lock_with_key: | GET | `dapi/v1/pmAccountInfo` | -| `getClassicPortfolioMarginNotionalLimits()` | :closed_lock_with_key: | GET | `dapi/v1/pmExchangeInfo` | -| `getBrokerIfNewFuturesUser()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/ifNewUser` | -| `setBrokerCustomIdForClient()` | :closed_lock_with_key: | POST | `dapi/v1/apiReferral/customization` | -| `getBrokerClientCustomIds()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/customization` | -| `getBrokerUserCustomId()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/userCustomization` | -| `getBrokerRebateDataOverview()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/overview` | -| `getBrokerUserTradeVolume()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/tradeVol` | -| `getBrokerRebateVolume()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/rebateVol` | -| `getBrokerTradeDetail()` | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/traderSummary` | -| `getFuturesUserDataListenKey()` | | POST | `dapi/v1/listenKey` | -| `keepAliveFuturesUserDataListenKey()` | | PUT | `dapi/v1/listenKey` | -| `closeFuturesUserDataListenKey()` | | DELETE | `dapi/v1/listenKey` | \ No newline at end of file +| [testConnectivity()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L125) | | GET | `dapi/v1/ping` | +| [getExchangeInfo()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L129) | | GET | `dapi/v1/exchangeInfo` | +| [getOrderBook()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L133) | | GET | `dapi/v1/depth` | +| [getRecentTrades()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L137) | | GET | `dapi/v1/trades` | +| [getHistoricalTrades()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L141) | | GET | `dapi/v1/historicalTrades` | +| [getAggregateTrades()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L147) | | GET | `dapi/v1/aggTrades` | +| [getMarkPrice()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L156) | | GET | `dapi/v1/premiumIndex` | +| [getFundingRateHistory()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L162) | | GET | `dapi/v1/fundingRate` | +| [getFundingRate()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L168) | | GET | `dapi/v1/fundingInfo` | +| [getKlines()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L172) | | GET | `dapi/v1/klines` | +| [getContinuousContractKlines()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L176) | | GET | `dapi/v1/continuousKlines` | +| [getIndexPriceKlines()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L182) | | GET | `dapi/v1/indexPriceKlines` | +| [getMarkPriceKlines()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L186) | | GET | `dapi/v1/markPriceKlines` | +| [getPremiumIndexKlines()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L190) | | GET | `dapi/v1/premiumIndexKlines` | +| [get24hrChangeStatististics()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L197) | | GET | `dapi/v1/ticker/24hr` | +| [get24hrChangeStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L203) | | GET | `dapi/v1/ticker/24hr` | +| [getSymbolPriceTicker()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L209) | | GET | `dapi/v1/ticker/price` | +| [getSymbolOrderBookTicker()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L215) | | GET | `dapi/v1/ticker/bookTicker` | +| [getOpenInterest()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L223) | | GET | `dapi/v1/openInterest` | +| [getOpenInterestStatistics()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L227) | | GET | `futures/data/openInterestHist` | +| [getTopTradersLongShortAccountRatio()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L231) | | GET | `futures/data/topLongShortAccountRatio` | +| [getTopTradersLongShortPositionRatio()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L237) | | GET | `futures/data/topLongShortPositionRatio` | +| [getGlobalLongShortAccountRatio()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L243) | | GET | `futures/data/globalLongShortAccountRatio` | +| [getTakerBuySellVolume()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L249) | | GET | `futures/data/takerBuySellVol` | +| [getCompositeSymbolIndex()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L255) | | GET | `futures/data/basis` | +| [getIndexPriceConstituents()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L263) | | GET | `dapi/v1/constituents` | +| [getQuarterlyContractSettlementPrices()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L273) | | GET | `futures/data/delivery-price` | +| [submitNewOrder()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L285) | :closed_lock_with_key: | POST | `dapi/v1/order` | +| [submitMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L295) | :closed_lock_with_key: | POST | `dapi/v1/batchOrders` | +| [modifyOrder()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L312) | :closed_lock_with_key: | PUT | `dapi/v1/order` | +| [modifyMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L321) | :closed_lock_with_key: | PUT | `dapi/v1/batchOrders` | +| [getOrderModifyHistory()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L334) | :closed_lock_with_key: | GET | `dapi/v1/orderAmendment` | +| [cancelOrder()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L340) | :closed_lock_with_key: | DELETE | `dapi/v1/order` | +| [cancelMultipleOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L344) | :closed_lock_with_key: | DELETE | `dapi/v1/batchOrders` | +| [cancelAllOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L364) | :closed_lock_with_key: | DELETE | `dapi/v1/allOpenOrders` | +| [setCancelOrdersOnTimeout()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L371) | :closed_lock_with_key: | POST | `dapi/v1/countdownCancelAll` | +| [getOrder()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L377) | :closed_lock_with_key: | GET | `dapi/v1/order` | +| [getAllOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L381) | :closed_lock_with_key: | GET | `dapi/v1/allOrders` | +| [getAllOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L385) | :closed_lock_with_key: | GET | `dapi/v1/openOrders` | +| [getCurrentOpenOrder()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L389) | :closed_lock_with_key: | GET | `dapi/v1/openOrder` | +| [getForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L393) | :closed_lock_with_key: | GET | `dapi/v1/forceOrders` | +| [getAccountTrades()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L397) | :closed_lock_with_key: | GET | `dapi/v1/userTrades` | +| [getPositions()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L403) | :closed_lock_with_key: | GET | `dapi/v1/positionRisk` | +| [setPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L407) | :closed_lock_with_key: | POST | `dapi/v1/positionSide/dual` | +| [setMarginType()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L411) | :closed_lock_with_key: | POST | `dapi/v1/marginType` | +| [setLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L415) | :closed_lock_with_key: | POST | `dapi/v1/leverage` | +| [getADLQuantileEstimation()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L419) | :closed_lock_with_key: | GET | `dapi/v1/adlQuantile` | +| [setIsolatedPositionMargin()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L423) | :closed_lock_with_key: | POST | `dapi/v1/positionMargin` | +| [getPositionMarginChangeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L429) | :closed_lock_with_key: | GET | `dapi/v1/positionMargin/history` | +| [getBalance()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L440) | :closed_lock_with_key: | GET | `dapi/v1/balance` | +| [getAccountComissionRate()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L444) | :closed_lock_with_key: | GET | `dapi/v1/commissionRate` | +| [getAccountInformation()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L450) | :closed_lock_with_key: | GET | `dapi/v1/account` | +| [getNotionalAndLeverageBrackets()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L457) | :closed_lock_with_key: | GET | `dapi/v2/leverageBracket` | +| [getCurrentPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L466) | :closed_lock_with_key: | GET | `dapi/v1/positionSide/dual` | +| [getIncomeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L470) | :closed_lock_with_key: | GET | `dapi/v1/income` | +| [getClassicPortfolioMarginAccount()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L480) | :closed_lock_with_key: | GET | `dapi/v1/pmAccountInfo` | +| [getClassicPortfolioMarginNotionalLimits()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L489) | :closed_lock_with_key: | GET | `dapi/v1/pmExchangeInfo` | +| [getBrokerIfNewFuturesUser()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L508) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/ifNewUser` | +| [setBrokerCustomIdForClient()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L521) | :closed_lock_with_key: | POST | `dapi/v1/apiReferral/customization` | +| [getBrokerClientCustomIds()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L534) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/customization` | +| [getBrokerUserCustomId()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L551) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/userCustomization` | +| [getBrokerRebateDataOverview()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L560) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/overview` | +| [getBrokerUserTradeVolume()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L569) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/tradeVol` | +| [getBrokerRebateVolume()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L586) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/rebateVol` | +| [getBrokerTradeDetail()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L603) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/traderSummary` | +| [getFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L623) | | POST | `dapi/v1/listenKey` | +| [keepAliveFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L627) | | PUT | `dapi/v1/listenKey` | +| [closeFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L631) | | DELETE | `dapi/v1/listenKey` | \ No newline at end of file diff --git a/examples/apidoc/CoinMClient/cancelAllOpenOrders.js b/examples/apidoc/CoinMClient/cancelAllOpenOrders.js new file mode 100644 index 0000000..89f412f --- /dev/null +++ b/examples/apidoc/CoinMClient/cancelAllOpenOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L364 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/cancelMultipleOrders.js b/examples/apidoc/CoinMClient/cancelMultipleOrders.js new file mode 100644 index 0000000..7ac103d --- /dev/null +++ b/examples/apidoc/CoinMClient/cancelMultipleOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/batchOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L344 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/cancelOrder.js b/examples/apidoc/CoinMClient/cancelOrder.js new file mode 100644 index 0000000..08da13c --- /dev/null +++ b/examples/apidoc/CoinMClient/cancelOrder.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L340 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js new file mode 100644 index 0000000..29ae97d --- /dev/null +++ b/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/listenKey + // METHOD: DELETE + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L631 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.closeFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/get24hrChangeStatistics.js b/examples/apidoc/CoinMClient/get24hrChangeStatistics.js new file mode 100644 index 0000000..71290a4 --- /dev/null +++ b/examples/apidoc/CoinMClient/get24hrChangeStatistics.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/ticker/24hr + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L203 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.get24hrChangeStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/get24hrChangeStatististics.js b/examples/apidoc/CoinMClient/get24hrChangeStatististics.js new file mode 100644 index 0000000..68df8a2 --- /dev/null +++ b/examples/apidoc/CoinMClient/get24hrChangeStatististics.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/ticker/24hr + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L197 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.get24hrChangeStatististics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getADLQuantileEstimation.js b/examples/apidoc/CoinMClient/getADLQuantileEstimation.js new file mode 100644 index 0000000..28f5e16 --- /dev/null +++ b/examples/apidoc/CoinMClient/getADLQuantileEstimation.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/adlQuantile + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L419 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getADLQuantileEstimation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAccountComissionRate.js b/examples/apidoc/CoinMClient/getAccountComissionRate.js new file mode 100644 index 0000000..f71a241 --- /dev/null +++ b/examples/apidoc/CoinMClient/getAccountComissionRate.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/commissionRate + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L444 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountComissionRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAccountInformation.js b/examples/apidoc/CoinMClient/getAccountInformation.js new file mode 100644 index 0000000..7581c28 --- /dev/null +++ b/examples/apidoc/CoinMClient/getAccountInformation.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L450 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountInformation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAccountTrades.js b/examples/apidoc/CoinMClient/getAccountTrades.js new file mode 100644 index 0000000..9131c95 --- /dev/null +++ b/examples/apidoc/CoinMClient/getAccountTrades.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/userTrades + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L397 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAggregateTrades.js b/examples/apidoc/CoinMClient/getAggregateTrades.js new file mode 100644 index 0000000..efd26e8 --- /dev/null +++ b/examples/apidoc/CoinMClient/getAggregateTrades.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/aggTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L147 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAggregateTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAllOpenOrders.js b/examples/apidoc/CoinMClient/getAllOpenOrders.js new file mode 100644 index 0000000..0cd95da --- /dev/null +++ b/examples/apidoc/CoinMClient/getAllOpenOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L385 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getAllOrders.js b/examples/apidoc/CoinMClient/getAllOrders.js new file mode 100644 index 0000000..33e7a98 --- /dev/null +++ b/examples/apidoc/CoinMClient/getAllOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/allOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L381 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBalance.js b/examples/apidoc/CoinMClient/getBalance.js new file mode 100644 index 0000000..cc12320 --- /dev/null +++ b/examples/apidoc/CoinMClient/getBalance.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/balance + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L440 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBalance(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js b/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js new file mode 100644 index 0000000..b032ada --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/customization + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L534 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerClientCustomIds(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js b/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js new file mode 100644 index 0000000..3051f6e --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/ifNewUser + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L508 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerIfNewFuturesUser(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js b/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js new file mode 100644 index 0000000..e269538 --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/overview + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L560 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerRebateDataOverview(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerRebateVolume.js b/examples/apidoc/CoinMClient/getBrokerRebateVolume.js new file mode 100644 index 0000000..2b4cab8 --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerRebateVolume.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/rebateVol + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L586 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerRebateVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerTradeDetail.js b/examples/apidoc/CoinMClient/getBrokerTradeDetail.js new file mode 100644 index 0000000..a0d5545 --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerTradeDetail.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/traderSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L603 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerTradeDetail(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerUserCustomId.js b/examples/apidoc/CoinMClient/getBrokerUserCustomId.js new file mode 100644 index 0000000..aa8dd88 --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerUserCustomId.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/userCustomization + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L551 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerUserCustomId(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js b/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js new file mode 100644 index 0000000..6ff0c1a --- /dev/null +++ b/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/tradeVol + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L569 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerUserTradeVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js b/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js new file mode 100644 index 0000000..f9cfe17 --- /dev/null +++ b/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/pmAccountInfo + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L480 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getClassicPortfolioMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js b/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js new file mode 100644 index 0000000..ccdf340 --- /dev/null +++ b/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/pmExchangeInfo + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L489 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getClassicPortfolioMarginNotionalLimits(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js b/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js new file mode 100644 index 0000000..eb3826d --- /dev/null +++ b/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/basis + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L255 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCompositeSymbolIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getContinuousContractKlines.js b/examples/apidoc/CoinMClient/getContinuousContractKlines.js new file mode 100644 index 0000000..94a49b9 --- /dev/null +++ b/examples/apidoc/CoinMClient/getContinuousContractKlines.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/continuousKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L176 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getContinuousContractKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getCurrentOpenOrder.js b/examples/apidoc/CoinMClient/getCurrentOpenOrder.js new file mode 100644 index 0000000..db62b12 --- /dev/null +++ b/examples/apidoc/CoinMClient/getCurrentOpenOrder.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/openOrder + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L389 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCurrentOpenOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getCurrentPositionMode.js b/examples/apidoc/CoinMClient/getCurrentPositionMode.js new file mode 100644 index 0000000..18bbca5 --- /dev/null +++ b/examples/apidoc/CoinMClient/getCurrentPositionMode.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/positionSide/dual + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L466 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCurrentPositionMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getExchangeInfo.js b/examples/apidoc/CoinMClient/getExchangeInfo.js new file mode 100644 index 0000000..cd23846 --- /dev/null +++ b/examples/apidoc/CoinMClient/getExchangeInfo.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/exchangeInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L129 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getExchangeInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getForceOrders.js b/examples/apidoc/CoinMClient/getForceOrders.js new file mode 100644 index 0000000..780a64b --- /dev/null +++ b/examples/apidoc/CoinMClient/getForceOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/forceOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L393 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getForceOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getFundingRate.js b/examples/apidoc/CoinMClient/getFundingRate.js new file mode 100644 index 0000000..65a7926 --- /dev/null +++ b/examples/apidoc/CoinMClient/getFundingRate.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/fundingInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L168 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getFundingRateHistory.js b/examples/apidoc/CoinMClient/getFundingRateHistory.js new file mode 100644 index 0000000..9eefff7 --- /dev/null +++ b/examples/apidoc/CoinMClient/getFundingRateHistory.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/fundingRate + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L162 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js new file mode 100644 index 0000000..0426e1f --- /dev/null +++ b/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/listenKey + // METHOD: POST + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L623 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js b/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js new file mode 100644 index 0000000..a7307ca --- /dev/null +++ b/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/globalLongShortAccountRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L243 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getGlobalLongShortAccountRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getHistoricalTrades.js b/examples/apidoc/CoinMClient/getHistoricalTrades.js new file mode 100644 index 0000000..517048d --- /dev/null +++ b/examples/apidoc/CoinMClient/getHistoricalTrades.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/historicalTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L141 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHistoricalTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getIncomeHistory.js b/examples/apidoc/CoinMClient/getIncomeHistory.js new file mode 100644 index 0000000..a486136 --- /dev/null +++ b/examples/apidoc/CoinMClient/getIncomeHistory.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/income + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L470 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIncomeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getIndexPriceConstituents.js b/examples/apidoc/CoinMClient/getIndexPriceConstituents.js new file mode 100644 index 0000000..fed5497 --- /dev/null +++ b/examples/apidoc/CoinMClient/getIndexPriceConstituents.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/constituents + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L263 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIndexPriceConstituents(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getIndexPriceKlines.js b/examples/apidoc/CoinMClient/getIndexPriceKlines.js new file mode 100644 index 0000000..86012ff --- /dev/null +++ b/examples/apidoc/CoinMClient/getIndexPriceKlines.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/indexPriceKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L182 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIndexPriceKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getKlines.js b/examples/apidoc/CoinMClient/getKlines.js new file mode 100644 index 0000000..bc63b42 --- /dev/null +++ b/examples/apidoc/CoinMClient/getKlines.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/klines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L172 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getMarkPrice.js b/examples/apidoc/CoinMClient/getMarkPrice.js new file mode 100644 index 0000000..403f156 --- /dev/null +++ b/examples/apidoc/CoinMClient/getMarkPrice.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/premiumIndex + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L156 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarkPrice(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getMarkPriceKlines.js b/examples/apidoc/CoinMClient/getMarkPriceKlines.js new file mode 100644 index 0000000..505a274 --- /dev/null +++ b/examples/apidoc/CoinMClient/getMarkPriceKlines.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/markPriceKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L186 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarkPriceKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js b/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js new file mode 100644 index 0000000..cf72cec --- /dev/null +++ b/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v2/leverageBracket + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L457 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNotionalAndLeverageBrackets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getOpenInterest.js b/examples/apidoc/CoinMClient/getOpenInterest.js new file mode 100644 index 0000000..69815e0 --- /dev/null +++ b/examples/apidoc/CoinMClient/getOpenInterest.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/openInterest + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L223 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOpenInterest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getOpenInterestStatistics.js b/examples/apidoc/CoinMClient/getOpenInterestStatistics.js new file mode 100644 index 0000000..3183912 --- /dev/null +++ b/examples/apidoc/CoinMClient/getOpenInterestStatistics.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/openInterestHist + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L227 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOpenInterestStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getOrder.js b/examples/apidoc/CoinMClient/getOrder.js new file mode 100644 index 0000000..fee2a84 --- /dev/null +++ b/examples/apidoc/CoinMClient/getOrder.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L377 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getOrderBook.js b/examples/apidoc/CoinMClient/getOrderBook.js new file mode 100644 index 0000000..46b38b7 --- /dev/null +++ b/examples/apidoc/CoinMClient/getOrderBook.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/depth + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L133 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getOrderModifyHistory.js b/examples/apidoc/CoinMClient/getOrderModifyHistory.js new file mode 100644 index 0000000..9618dd8 --- /dev/null +++ b/examples/apidoc/CoinMClient/getOrderModifyHistory.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/orderAmendment + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L334 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderModifyHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js b/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js new file mode 100644 index 0000000..d63fe93 --- /dev/null +++ b/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/positionMargin/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L429 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPositionMarginChangeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getPositions.js b/examples/apidoc/CoinMClient/getPositions.js new file mode 100644 index 0000000..6592fca --- /dev/null +++ b/examples/apidoc/CoinMClient/getPositions.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/positionRisk + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L403 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getPremiumIndexKlines.js b/examples/apidoc/CoinMClient/getPremiumIndexKlines.js new file mode 100644 index 0000000..a4bb094 --- /dev/null +++ b/examples/apidoc/CoinMClient/getPremiumIndexKlines.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/premiumIndexKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L190 + +const client = new CoinMClient({ + 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/CoinMClient/getQuarterlyContractSettlementPrices.js b/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js new file mode 100644 index 0000000..d83a0c9 --- /dev/null +++ b/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/delivery-price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L273 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getQuarterlyContractSettlementPrices(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getRecentTrades.js b/examples/apidoc/CoinMClient/getRecentTrades.js new file mode 100644 index 0000000..36719f1 --- /dev/null +++ b/examples/apidoc/CoinMClient/getRecentTrades.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/trades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L137 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRecentTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js b/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js new file mode 100644 index 0000000..e885b9e --- /dev/null +++ b/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/ticker/bookTicker + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L215 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolOrderBookTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getSymbolPriceTicker.js b/examples/apidoc/CoinMClient/getSymbolPriceTicker.js new file mode 100644 index 0000000..56d3925 --- /dev/null +++ b/examples/apidoc/CoinMClient/getSymbolPriceTicker.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/ticker/price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L209 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolPriceTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getTakerBuySellVolume.js b/examples/apidoc/CoinMClient/getTakerBuySellVolume.js new file mode 100644 index 0000000..c39de1e --- /dev/null +++ b/examples/apidoc/CoinMClient/getTakerBuySellVolume.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/takerBuySellVol + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L249 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTakerBuySellVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js b/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js new file mode 100644 index 0000000..b6298d8 --- /dev/null +++ b/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/topLongShortAccountRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L231 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTopTradersLongShortAccountRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js b/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js new file mode 100644 index 0000000..e6bfd8a --- /dev/null +++ b/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: futures/data/topLongShortPositionRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L237 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTopTradersLongShortPositionRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js new file mode 100644 index 0000000..4c8d3ec --- /dev/null +++ b/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/listenKey + // METHOD: PUT + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L627 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.keepAliveFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/modifyMultipleOrders.js b/examples/apidoc/CoinMClient/modifyMultipleOrders.js new file mode 100644 index 0000000..fc87d93 --- /dev/null +++ b/examples/apidoc/CoinMClient/modifyMultipleOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/batchOrders + // METHOD: PUT + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L321 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.modifyMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/modifyOrder.js b/examples/apidoc/CoinMClient/modifyOrder.js new file mode 100644 index 0000000..a14483e --- /dev/null +++ b/examples/apidoc/CoinMClient/modifyOrder.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/order + // METHOD: PUT + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L312 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.modifyOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js b/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js new file mode 100644 index 0000000..f0b7342 --- /dev/null +++ b/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/apiReferral/customization + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L521 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setBrokerCustomIdForClient(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js b/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js new file mode 100644 index 0000000..ed2302d --- /dev/null +++ b/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/countdownCancelAll + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L371 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setCancelOrdersOnTimeout(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js b/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js new file mode 100644 index 0000000..2ce8dce --- /dev/null +++ b/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/positionMargin + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L423 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setIsolatedPositionMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setLeverage.js b/examples/apidoc/CoinMClient/setLeverage.js new file mode 100644 index 0000000..0dca600 --- /dev/null +++ b/examples/apidoc/CoinMClient/setLeverage.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/leverage + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L415 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setMarginType.js b/examples/apidoc/CoinMClient/setMarginType.js new file mode 100644 index 0000000..b0cefc2 --- /dev/null +++ b/examples/apidoc/CoinMClient/setMarginType.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/marginType + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L411 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setMarginType(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/setPositionMode.js b/examples/apidoc/CoinMClient/setPositionMode.js new file mode 100644 index 0000000..237bf05 --- /dev/null +++ b/examples/apidoc/CoinMClient/setPositionMode.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/positionSide/dual + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L407 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setPositionMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/submitMultipleOrders.js b/examples/apidoc/CoinMClient/submitMultipleOrders.js new file mode 100644 index 0000000..42c9e15 --- /dev/null +++ b/examples/apidoc/CoinMClient/submitMultipleOrders.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/batchOrders + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L295 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/submitNewOrder.js b/examples/apidoc/CoinMClient/submitNewOrder.js new file mode 100644 index 0000000..ab4351c --- /dev/null +++ b/examples/apidoc/CoinMClient/submitNewOrder.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/order + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L285 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/CoinMClient/testConnectivity.js b/examples/apidoc/CoinMClient/testConnectivity.js new file mode 100644 index 0000000..29d96a0 --- /dev/null +++ b/examples/apidoc/CoinMClient/testConnectivity.js @@ -0,0 +1,19 @@ +const { CoinMClient } = require('binance'); + + // ENDPOINT: dapi/v1/ping + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L125 + +const client = new CoinMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.testConnectivity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/acceptQuoteRequest.js b/examples/apidoc/MainClient/acceptQuoteRequest.js new file mode 100644 index 0000000..1350d1b --- /dev/null +++ b/examples/apidoc/MainClient/acceptQuoteRequest.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/acceptQuote + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2111 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.acceptQuoteRequest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/addBSwapLiquidity.js b/examples/apidoc/MainClient/addBSwapLiquidity.js new file mode 100644 index 0000000..e07f589 --- /dev/null +++ b/examples/apidoc/MainClient/addBSwapLiquidity.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bswap/liquidityAdd + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3858 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.addBSwapLiquidity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js b/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js new file mode 100644 index 0000000..2f759cd --- /dev/null +++ b/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/adjust/ltv + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2607 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.adjustCryptoLoanFlexibleLTV(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/adjustCryptoLoanLTV.js b/examples/apidoc/MainClient/adjustCryptoLoanLTV.js new file mode 100644 index 0000000..6bda733 --- /dev/null +++ b/examples/apidoc/MainClient/adjustCryptoLoanLTV.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/adjust/ltv + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2710 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.adjustCryptoLoanLTV(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/bnbTransfer.js b/examples/apidoc/MainClient/bnbTransfer.js new file mode 100644 index 0000000..448dabe --- /dev/null +++ b/examples/apidoc/MainClient/bnbTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/bnb-transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3268 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.bnbTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/borrowCryptoLoan.js b/examples/apidoc/MainClient/borrowCryptoLoan.js new file mode 100644 index 0000000..174a2d9 --- /dev/null +++ b/examples/apidoc/MainClient/borrowCryptoLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/borrow + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2698 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.borrowCryptoLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js b/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js new file mode 100644 index 0000000..607d80f --- /dev/null +++ b/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/borrow + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2595 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.borrowCryptoLoanFlexible(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/borrowVipLoan.js b/examples/apidoc/MainClient/borrowVipLoan.js new file mode 100644 index 0000000..cbe9187 --- /dev/null +++ b/examples/apidoc/MainClient/borrowVipLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/borrow + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3066 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.borrowVipLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelAlgoOrder.js b/examples/apidoc/MainClient/cancelAlgoOrder.js new file mode 100644 index 0000000..21d4105 --- /dev/null +++ b/examples/apidoc/MainClient/cancelAlgoOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2500 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAlgoOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelAllSymbolOrders.js b/examples/apidoc/MainClient/cancelAllSymbolOrders.js new file mode 100644 index 0000000..870363d --- /dev/null +++ b/examples/apidoc/MainClient/cancelAllSymbolOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/openOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L704 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllSymbolOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelConvertLimitOrder.js b/examples/apidoc/MainClient/cancelConvertLimitOrder.js new file mode 100644 index 0000000..5c8550f --- /dev/null +++ b/examples/apidoc/MainClient/cancelConvertLimitOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/limit/cancelOrder + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2127 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelConvertLimitOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelHashrateResaleConfig.js b/examples/apidoc/MainClient/cancelHashrateResaleConfig.js new file mode 100644 index 0000000..f07f44c --- /dev/null +++ b/examples/apidoc/MainClient/cancelHashrateResaleConfig.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/hash-transfer/config/cancel + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2440 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelHashrateResaleConfig(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelOCO.js b/examples/apidoc/MainClient/cancelOCO.js new file mode 100644 index 0000000..c6d9567 --- /dev/null +++ b/examples/apidoc/MainClient/cancelOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/orderList + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L767 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelOrder.js b/examples/apidoc/MainClient/cancelOrder.js new file mode 100644 index 0000000..7b79e11 --- /dev/null +++ b/examples/apidoc/MainClient/cancelOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L700 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/cancelSpotAlgoOrder.js b/examples/apidoc/MainClient/cancelSpotAlgoOrder.js new file mode 100644 index 0000000..25dd20a --- /dev/null +++ b/examples/apidoc/MainClient/cancelSpotAlgoOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/spot/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2539 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelSpotAlgoOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js b/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js new file mode 100644 index 0000000..acceb0d --- /dev/null +++ b/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/permission + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3418 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.changeComissionBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js b/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js new file mode 100644 index 0000000..a8fda96 --- /dev/null +++ b/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/positionChanged + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3970 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.changeFixedAndActivityPositionToDailyPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..b84adf7 --- /dev/null +++ b/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/permission + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3412 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.changePermissionApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/checkVipCollateralAccount.js b/examples/apidoc/MainClient/checkVipCollateralAccount.js new file mode 100644 index 0000000..55385e5 --- /dev/null +++ b/examples/apidoc/MainClient/checkVipCollateralAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/collateral/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3038 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.checkVipCollateralAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js new file mode 100644 index 0000000..3a1beda --- /dev/null +++ b/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream/isolated?${serialiseParams(params)} + // METHOD: DELETE + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3828 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.closeIsolatedMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/closeMarginUserDataListenKey.js b/examples/apidoc/MainClient/closeMarginUserDataListenKey.js new file mode 100644 index 0000000..842c0bd --- /dev/null +++ b/examples/apidoc/MainClient/closeMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream?listenKey=${listenKey} + // METHOD: DELETE + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3806 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.closeMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/closeSpotUserDataListenKey.js b/examples/apidoc/MainClient/closeSpotUserDataListenKey.js new file mode 100644 index 0000000..7950262 --- /dev/null +++ b/examples/apidoc/MainClient/closeSpotUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/userDataStream?listenKey=${listenKey} + // METHOD: DELETE + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3793 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.closeSpotUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/convertBUSD.js b/examples/apidoc/MainClient/convertBUSD.js new file mode 100644 index 0000000..a7a0049 --- /dev/null +++ b/examples/apidoc/MainClient/convertBUSD.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/convert-transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3993 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.convertBUSD(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/convertDustToBnb.js b/examples/apidoc/MainClient/convertDustToBnb.js new file mode 100644 index 0000000..89197b5 --- /dev/null +++ b/examples/apidoc/MainClient/convertDustToBnb.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/dust + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1345 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.convertDustToBnb(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/convertQuoteRequest.js b/examples/apidoc/MainClient/convertQuoteRequest.js new file mode 100644 index 0000000..2211122 --- /dev/null +++ b/examples/apidoc/MainClient/convertQuoteRequest.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/getQuote + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2107 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.convertQuoteRequest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..06e5236 --- /dev/null +++ b/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3406 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createBrokerSubAccount.js b/examples/apidoc/MainClient/createBrokerSubAccount.js new file mode 100644 index 0000000..3bed95b --- /dev/null +++ b/examples/apidoc/MainClient/createBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3388 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createDualTokenGiftCard.js b/examples/apidoc/MainClient/createDualTokenGiftCard.js new file mode 100644 index 0000000..cb929d3 --- /dev/null +++ b/examples/apidoc/MainClient/createDualTokenGiftCard.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/buyCode + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3129 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createDualTokenGiftCard(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createGiftCard.js b/examples/apidoc/MainClient/createGiftCard.js new file mode 100644 index 0000000..c99b653 --- /dev/null +++ b/examples/apidoc/MainClient/createGiftCard.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/createCode + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3125 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createGiftCard(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js new file mode 100644 index 0000000..7691c3e --- /dev/null +++ b/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/apiKey + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1090 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createMarginSpecialLowLatencyKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/createVirtualSubAccount.js b/examples/apidoc/MainClient/createVirtualSubAccount.js new file mode 100644 index 0000000..b0fae1d --- /dev/null +++ b/examples/apidoc/MainClient/createVirtualSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/virtualSubAccount + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1531 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.createVirtualSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js b/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js new file mode 100644 index 0000000..4babc41 --- /dev/null +++ b/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/customize/margin_call + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2716 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.customizeCryptoLoanMarginCall(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..a947066 --- /dev/null +++ b/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3463 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.deleteApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js b/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js new file mode 100644 index 0000000..552606e --- /dev/null +++ b/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/ipRestriction/ipList + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3447 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.deleteIPRestrictionForSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js new file mode 100644 index 0000000..cc20977 --- /dev/null +++ b/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/apiKey + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1096 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.deleteMarginSpecialLowLatencyKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js b/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js new file mode 100644 index 0000000..8584bce --- /dev/null +++ b/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/deposit + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1797 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.depositAssetsIntoManagedSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/disableFastWithdrawSwitch.js b/examples/apidoc/MainClient/disableFastWithdrawSwitch.js new file mode 100644 index 0000000..41a3fe0 --- /dev/null +++ b/examples/apidoc/MainClient/disableFastWithdrawSwitch.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/disableFastWithdrawSwitch + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1483 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.disableFastWithdrawSwitch(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/disableIsolatedMarginAccount.js b/examples/apidoc/MainClient/disableIsolatedMarginAccount.js new file mode 100644 index 0000000..b0f0efd --- /dev/null +++ b/examples/apidoc/MainClient/disableIsolatedMarginAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/account + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1161 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.disableIsolatedMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableConvertSubAccount.js b/examples/apidoc/MainClient/enableConvertSubAccount.js new file mode 100644 index 0000000..ad785f1 --- /dev/null +++ b/examples/apidoc/MainClient/enableConvertSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/convert + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3987 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableConvertSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableFastWithdrawSwitch.js b/examples/apidoc/MainClient/enableFastWithdrawSwitch.js new file mode 100644 index 0000000..600ea8d --- /dev/null +++ b/examples/apidoc/MainClient/enableFastWithdrawSwitch.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/enableFastWithdrawSwitch + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1487 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableFastWithdrawSwitch(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js b/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js new file mode 100644 index 0000000..f068cb2 --- /dev/null +++ b/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3738 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableFuturesBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableIsolatedMarginAccount.js b/examples/apidoc/MainClient/enableIsolatedMarginAccount.js new file mode 100644 index 0000000..c79006c --- /dev/null +++ b/examples/apidoc/MainClient/enableIsolatedMarginAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/account + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1168 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableIsolatedMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..67fd2c5 --- /dev/null +++ b/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/margin + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3748 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableMarginApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js b/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js new file mode 100644 index 0000000..daa82a6 --- /dev/null +++ b/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/futures + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3400 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableMarginBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableOptionsForSubAccount.js b/examples/apidoc/MainClient/enableOptionsForSubAccount.js new file mode 100644 index 0000000..10323f8 --- /dev/null +++ b/examples/apidoc/MainClient/enableOptionsForSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/eoptions/enable + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1551 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableOptionsForSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..56854cc --- /dev/null +++ b/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/permission/universalTransfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3424 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.enableUniversalTransferApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/get24hrChangeStatististics.js b/examples/apidoc/MainClient/get24hrChangeStatististics.js new file mode 100644 index 0000000..f0c583a --- /dev/null +++ b/examples/apidoc/MainClient/get24hrChangeStatististics.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ticker/24hr + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L633 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.get24hrChangeStatististics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAccountInfo.js b/examples/apidoc/MainClient/getAccountInfo.js new file mode 100644 index 0000000..504561b --- /dev/null +++ b/examples/apidoc/MainClient/getAccountInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/info + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1473 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAccountInformation.js b/examples/apidoc/MainClient/getAccountInformation.js new file mode 100644 index 0000000..ba0a0c1 --- /dev/null +++ b/examples/apidoc/MainClient/getAccountInformation.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L817 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountInformation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAccountStatus.js b/examples/apidoc/MainClient/getAccountStatus.js new file mode 100644 index 0000000..973f7a0 --- /dev/null +++ b/examples/apidoc/MainClient/getAccountStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/status + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1491 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAccountTradeList.js b/examples/apidoc/MainClient/getAccountTradeList.js new file mode 100644 index 0000000..ec1bda8 --- /dev/null +++ b/examples/apidoc/MainClient/getAccountTradeList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/myTrades + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L821 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountTradeList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js b/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js new file mode 100644 index 0000000..f803fd1 --- /dev/null +++ b/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/loan/adjustCollateral/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1442 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAdjustCrossCollateralLTVHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAggregateTrades.js b/examples/apidoc/MainClient/getAggregateTrades.js new file mode 100644 index 0000000..7eb18fa --- /dev/null +++ b/examples/apidoc/MainClient/getAggregateTrades.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/aggTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L607 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAggregateTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAlgoHistoricalOrders.js b/examples/apidoc/MainClient/getAlgoHistoricalOrders.js new file mode 100644 index 0000000..e60d766 --- /dev/null +++ b/examples/apidoc/MainClient/getAlgoHistoricalOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/historicalOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2519 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAlgoHistoricalOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAlgoOpenOrders.js b/examples/apidoc/MainClient/getAlgoOpenOrders.js new file mode 100644 index 0000000..92701e8 --- /dev/null +++ b/examples/apidoc/MainClient/getAlgoOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2512 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAlgoOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAlgoSubOrders.js b/examples/apidoc/MainClient/getAlgoSubOrders.js new file mode 100644 index 0000000..d407dfa --- /dev/null +++ b/examples/apidoc/MainClient/getAlgoSubOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/subOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2506 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAlgoSubOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllCrossMarginPairs.js b/examples/apidoc/MainClient/getAllCrossMarginPairs.js new file mode 100644 index 0000000..822be3d --- /dev/null +++ b/examples/apidoc/MainClient/getAllCrossMarginPairs.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/allPairs + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L860 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllCrossMarginPairs(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllMarginAssets.js b/examples/apidoc/MainClient/getAllMarginAssets.js new file mode 100644 index 0000000..b0e0cc8 --- /dev/null +++ b/examples/apidoc/MainClient/getAllMarginAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/allAssets + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L870 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllMarginAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllOCO.js b/examples/apidoc/MainClient/getAllOCO.js new file mode 100644 index 0000000..866fef8 --- /dev/null +++ b/examples/apidoc/MainClient/getAllOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/allOrderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L776 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllOpenOCO.js b/examples/apidoc/MainClient/getAllOpenOCO.js new file mode 100644 index 0000000..c80ae5f --- /dev/null +++ b/examples/apidoc/MainClient/getAllOpenOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/openOrderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L783 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOpenOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllOrders.js b/examples/apidoc/MainClient/getAllOrders.js new file mode 100644 index 0000000..37753c3 --- /dev/null +++ b/examples/apidoc/MainClient/getAllOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/allOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L723 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAllocations.js b/examples/apidoc/MainClient/getAllocations.js new file mode 100644 index 0000000..5ab7a75 --- /dev/null +++ b/examples/apidoc/MainClient/getAllocations.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/myAllocations + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L837 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllocations(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js new file mode 100644 index 0000000..de21edb --- /dev/null +++ b/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3485 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getApiKeyBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getApiKeyPermissions.js b/examples/apidoc/MainClient/getApiKeyPermissions.js new file mode 100644 index 0000000..713b548 --- /dev/null +++ b/examples/apidoc/MainClient/getApiKeyPermissions.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/apiRestrictions + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1499 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getApiKeyPermissions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getApiTradingStatus.js b/examples/apidoc/MainClient/getApiTradingStatus.js new file mode 100644 index 0000000..d688591 --- /dev/null +++ b/examples/apidoc/MainClient/getApiTradingStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/account/apiTradingStatus + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1495 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getApiTradingStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAssetDetail.js b/examples/apidoc/MainClient/getAssetDetail.js new file mode 100644 index 0000000..a27870f --- /dev/null +++ b/examples/apidoc/MainClient/getAssetDetail.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/assetDetail + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1315 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAssetDetail(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAssetDividendRecord.js b/examples/apidoc/MainClient/getAssetDividendRecord.js new file mode 100644 index 0000000..3559345 --- /dev/null +++ b/examples/apidoc/MainClient/getAssetDividendRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/assetDividend + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1353 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAssetDividendRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoConvertStablecoins.js b/examples/apidoc/MainClient/getAutoConvertStablecoins.js new file mode 100644 index 0000000..009bb4b --- /dev/null +++ b/examples/apidoc/MainClient/getAutoConvertStablecoins.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/contract/convertible-coins + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1298 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoConvertStablecoins(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestAssets.js b/examples/apidoc/MainClient/getAutoInvestAssets.js new file mode 100644 index 0000000..fb8deeb --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/all/asset + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1897 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestIndex.js b/examples/apidoc/MainClient/getAutoInvestIndex.js new file mode 100644 index 0000000..20d5a60 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestIndex.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/index/info + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1931 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestPlan.js b/examples/apidoc/MainClient/getAutoInvestPlan.js new file mode 100644 index 0000000..2e9e1a0 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestPlan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/id + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2065 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestPlan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestPlans.js b/examples/apidoc/MainClient/getAutoInvestPlans.js new file mode 100644 index 0000000..fe2e375 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestPlans.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1937 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestPlans(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js b/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js new file mode 100644 index 0000000..954067d --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/rebalance/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2078 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestRebalanceHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js b/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js new file mode 100644 index 0000000..9084212 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/redeem/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2056 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestRedemptionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestSourceAssets.js b/examples/apidoc/MainClient/getAutoInvestSourceAssets.js new file mode 100644 index 0000000..5d3ed0e --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestSourceAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/source-asset/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1904 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestSourceAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js b/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js new file mode 100644 index 0000000..28eba90 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/history/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2016 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestSubscriptionTransactions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestTargetAssets.js b/examples/apidoc/MainClient/getAutoInvestTargetAssets.js new file mode 100644 index 0000000..7d4da7c --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestTargetAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/target-asset/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1913 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestTargetAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js b/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js new file mode 100644 index 0000000..d25464b --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/target-asset/roi/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1922 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestTargetAssetsROI(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoInvestUserIndex.js b/examples/apidoc/MainClient/getAutoInvestUserIndex.js new file mode 100644 index 0000000..0ac19d8 --- /dev/null +++ b/examples/apidoc/MainClient/getAutoInvestUserIndex.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/index/user-summary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2069 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoInvestUserIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js b/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js new file mode 100644 index 0000000..5d479bc --- /dev/null +++ b/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/repay-futures-switch + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3310 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAutoRepayFuturesStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getAvgPrice.js b/examples/apidoc/MainClient/getAvgPrice.js new file mode 100644 index 0000000..4549dec --- /dev/null +++ b/examples/apidoc/MainClient/getAvgPrice.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/avgPrice + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L621 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAvgPrice(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBNBBurn.js b/examples/apidoc/MainClient/getBNBBurn.js new file mode 100644 index 0000000..331f45d --- /dev/null +++ b/examples/apidoc/MainClient/getBNBBurn.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bnbBurn + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1175 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBNBBurn(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBSwapLiquidity.js b/examples/apidoc/MainClient/getBSwapLiquidity.js new file mode 100644 index 0000000..d266436 --- /dev/null +++ b/examples/apidoc/MainClient/getBSwapLiquidity.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bswap/liquidity + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3851 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBSwapLiquidity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBSwapOperations.js b/examples/apidoc/MainClient/getBSwapOperations.js new file mode 100644 index 0000000..349cca9 --- /dev/null +++ b/examples/apidoc/MainClient/getBSwapOperations.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bswap/liquidityOps + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3876 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBSwapOperations(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBalances.js b/examples/apidoc/MainClient/getBalances.js new file mode 100644 index 0000000..5cbe213 --- /dev/null +++ b/examples/apidoc/MainClient/getBalances.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/config/getall + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1259 + +const client = new MainClient({ + 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/MainClient/getBethRewardsHistory.js b/examples/apidoc/MainClient/getBethRewardsHistory.js new file mode 100644 index 0000000..c40d733 --- /dev/null +++ b/examples/apidoc/MainClient/getBethRewardsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/history/rewardsHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2213 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBethRewardsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBethUnwrapHistory.js b/examples/apidoc/MainClient/getBethUnwrapHistory.js new file mode 100644 index 0000000..beb812b --- /dev/null +++ b/examples/apidoc/MainClient/getBethUnwrapHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/wbeth/history/unwrapHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2252 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBethUnwrapHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBethWrapHistory.js b/examples/apidoc/MainClient/getBethWrapHistory.js new file mode 100644 index 0000000..7b44115 --- /dev/null +++ b/examples/apidoc/MainClient/getBethWrapHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/wbeth/history/wrapHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2242 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBethWrapHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBlvtInfo.js b/examples/apidoc/MainClient/getBlvtInfo.js new file mode 100644 index 0000000..a091067 --- /dev/null +++ b/examples/apidoc/MainClient/getBlvtInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/tokenInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3343 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBlvtInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBlvtRedemptionRecord.js b/examples/apidoc/MainClient/getBlvtRedemptionRecord.js new file mode 100644 index 0000000..9dc8379 --- /dev/null +++ b/examples/apidoc/MainClient/getBlvtRedemptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/redeem/record + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3361 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBlvtRedemptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js b/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js new file mode 100644 index 0000000..66241ee --- /dev/null +++ b/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/subscribe/record + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3351 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBlvtSubscriptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBlvtUserLimitInfo.js b/examples/apidoc/MainClient/getBlvtUserLimitInfo.js new file mode 100644 index 0000000..1fd8c55 --- /dev/null +++ b/examples/apidoc/MainClient/getBlvtUserLimitInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/userLimit + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3367 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBlvtUserLimitInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBnsolRateHistory.js b/examples/apidoc/MainClient/getBnsolRateHistory.js new file mode 100644 index 0000000..3846f9a --- /dev/null +++ b/examples/apidoc/MainClient/getBnsolRateHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/history/rateHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2369 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBnsolRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBnsolRewardsHistory.js b/examples/apidoc/MainClient/getBnsolRewardsHistory.js new file mode 100644 index 0000000..1033ecf --- /dev/null +++ b/examples/apidoc/MainClient/getBnsolRewardsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/history/bnsolRewardsHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2358 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBnsolRewardsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js b/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js new file mode 100644 index 0000000..ec84a60 --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/rebate/futures/recentRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3671 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerFuturesCommissionRebate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js b/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js new file mode 100644 index 0000000..b90b3e0 --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/apiReferral/ifNewUser + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3708 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerIfNewSpotUser(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerInfo.js b/examples/apidoc/MainClient/getBrokerInfo.js new file mode 100644 index 0000000..59c34ea --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/info + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3491 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js b/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js new file mode 100644 index 0000000..4c26f98 --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/rebate/recentRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3665 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSpotCommissionRebate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccount.js b/examples/apidoc/MainClient/getBrokerSubAccount.js new file mode 100644 index 0000000..4e92b7b --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3394 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js b/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js new file mode 100644 index 0000000..3914c58 --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/commission/coinFutures + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3656 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccountCoinFuturesCommission(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js b/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js new file mode 100644 index 0000000..ef2375d --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bv1/apiReferral/ifNewUser + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3719 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccountDepositHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js b/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js new file mode 100644 index 0000000..32fa68a --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/commission/futures + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3638 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccountFuturesCommission(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccountHistory.js b/examples/apidoc/MainClient/getBrokerSubAccountHistory.js new file mode 100644 index 0000000..85d764a --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccountHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/transfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3538 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccountHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js b/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js new file mode 100644 index 0000000..ffab797 --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/spotSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3577 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubAccountSpotAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getBrokerSubDepositHistory.js b/examples/apidoc/MainClient/getBrokerSubDepositHistory.js new file mode 100644 index 0000000..8b41efe --- /dev/null +++ b/examples/apidoc/MainClient/getBrokerSubDepositHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/depositHist + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3571 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerSubDepositHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getC2CTradeHistory.js b/examples/apidoc/MainClient/getC2CTradeHistory.js new file mode 100644 index 0000000..4d5f067 --- /dev/null +++ b/examples/apidoc/MainClient/getC2CTradeHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/c2c/orderMatch/listUserOrderHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3189 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getC2CTradeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCloudMiningHistory.js b/examples/apidoc/MainClient/getCloudMiningHistory.js new file mode 100644 index 0000000..e6b6818 --- /dev/null +++ b/examples/apidoc/MainClient/getCloudMiningHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1365 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCloudMiningHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCollateralRecord.js b/examples/apidoc/MainClient/getCollateralRecord.js new file mode 100644 index 0000000..e7860b4 --- /dev/null +++ b/examples/apidoc/MainClient/getCollateralRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/history/collateralRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2970 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCollateralRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCommissionRates.js b/examples/apidoc/MainClient/getCommissionRates.js new file mode 100644 index 0000000..0b5a67f --- /dev/null +++ b/examples/apidoc/MainClient/getCommissionRates.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/account/commission + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L841 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCommissionRates(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getConvertAssetInfo.js b/examples/apidoc/MainClient/getConvertAssetInfo.js new file mode 100644 index 0000000..21fde9c --- /dev/null +++ b/examples/apidoc/MainClient/getConvertAssetInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/assetInfo + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2097 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertAssetInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getConvertBUSDHistory.js b/examples/apidoc/MainClient/getConvertBUSDHistory.js new file mode 100644 index 0000000..ef21a7a --- /dev/null +++ b/examples/apidoc/MainClient/getConvertBUSDHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/convert-transfer/queryByPage + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L4000 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertBUSDHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getConvertLimitOpenOrders.js b/examples/apidoc/MainClient/getConvertLimitOpenOrders.js new file mode 100644 index 0000000..6577c1d --- /dev/null +++ b/examples/apidoc/MainClient/getConvertLimitOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/limit/queryOpenOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2131 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertLimitOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getConvertPairs.js b/examples/apidoc/MainClient/getConvertPairs.js new file mode 100644 index 0000000..ac7b934 --- /dev/null +++ b/examples/apidoc/MainClient/getConvertPairs.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/exchangeInfo + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2093 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertPairs(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getConvertTradeHistory.js b/examples/apidoc/MainClient/getConvertTradeHistory.js new file mode 100644 index 0000000..96ad9b1 --- /dev/null +++ b/examples/apidoc/MainClient/getConvertTradeHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/tradeFlow + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2115 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertTradeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js b/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js new file mode 100644 index 0000000..ab63d0c --- /dev/null +++ b/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/loan/borrow/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1424 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossCollateralBorrowHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js b/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js new file mode 100644 index 0000000..bd2d1e0 --- /dev/null +++ b/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/loan/interestHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1461 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossCollateralInterestHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js b/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js new file mode 100644 index 0000000..63256d4 --- /dev/null +++ b/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/loan/liquidationHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1453 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossCollateralLiquidationHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js b/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js new file mode 100644 index 0000000..f08cca6 --- /dev/null +++ b/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/loan/repay/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1430 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossCollateralRepaymentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossCollateralWalletV2.js b/examples/apidoc/MainClient/getCrossCollateralWalletV2.js new file mode 100644 index 0000000..63f7164 --- /dev/null +++ b/examples/apidoc/MainClient/getCrossCollateralWalletV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/futures/loan/wallet + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1436 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossCollateralWalletV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js b/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js new file mode 100644 index 0000000..f08a01e --- /dev/null +++ b/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/crossMarginCollateralRatio + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L851 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginCollateralRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossMarginFeeData.js b/examples/apidoc/MainClient/getCrossMarginFeeData.js new file mode 100644 index 0000000..fdbd6a9 --- /dev/null +++ b/examples/apidoc/MainClient/getCrossMarginFeeData.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/crossMarginData + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1187 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginFeeData(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCrossMarginTransferHistory.js b/examples/apidoc/MainClient/getCrossMarginTransferHistory.js new file mode 100644 index 0000000..34d2eee --- /dev/null +++ b/examples/apidoc/MainClient/getCrossMarginTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/transfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1137 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCrossMarginTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js b/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js new file mode 100644 index 0000000..b150cbc --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/borrow/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2736 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanBorrowHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js b/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js new file mode 100644 index 0000000..6b96cd0 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/collateral/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2677 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanCollateralAssetsData(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js b/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js new file mode 100644 index 0000000..b87f249 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/repay/collateral/rate + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2671 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanCollateralRepayRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js new file mode 100644 index 0000000..db07194 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/loanable/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2582 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanFlexibleAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js new file mode 100644 index 0000000..b180983 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/collateral/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2573 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanFlexibleCollateralAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js new file mode 100644 index 0000000..977d8e5 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/ltv/adjustment/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2619 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanFlexibleLTVAdjustmentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js new file mode 100644 index 0000000..f859646 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/ongoing/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2640 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanFlexibleOngoingOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js b/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js new file mode 100644 index 0000000..91ec8b8 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/ltv/adjustment/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2743 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanLTVAdjustmentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js b/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js new file mode 100644 index 0000000..fda59d7 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/loanable/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2664 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanLoanableAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js b/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js new file mode 100644 index 0000000..7f9ac93 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/ongoing/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2729 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanOngoingOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js b/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js new file mode 100644 index 0000000..ea8d32f --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/repay/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2752 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoanRepaymentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js b/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js new file mode 100644 index 0000000..0435ca9 --- /dev/null +++ b/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/income + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2686 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCryptoLoansIncomeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDailyAccountSnapshot.js b/examples/apidoc/MainClient/getDailyAccountSnapshot.js new file mode 100644 index 0000000..5032995 --- /dev/null +++ b/examples/apidoc/MainClient/getDailyAccountSnapshot.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/accountSnapshot + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1477 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDailyAccountSnapshot(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDelegationHistory.js b/examples/apidoc/MainClient/getDelegationHistory.js new file mode 100644 index 0000000..e2dac23 --- /dev/null +++ b/examples/apidoc/MainClient/getDelegationHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/custody/transfer-history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1375 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDelegationHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDelistSchedule.js b/examples/apidoc/MainClient/getDelistSchedule.js new file mode 100644 index 0000000..fc1750a --- /dev/null +++ b/examples/apidoc/MainClient/getDelistSchedule.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/spot/delist-schedule + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1521 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDelistSchedule(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDepositAddress.js b/examples/apidoc/MainClient/getDepositAddress.js new file mode 100644 index 0000000..8eb40fb --- /dev/null +++ b/examples/apidoc/MainClient/getDepositAddress.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/address + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1280 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDepositAddress(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDepositAddresses.js b/examples/apidoc/MainClient/getDepositAddresses.js new file mode 100644 index 0000000..92193d8 --- /dev/null +++ b/examples/apidoc/MainClient/getDepositAddresses.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/address/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1286 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDepositAddresses(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDepositHistory.js b/examples/apidoc/MainClient/getDepositHistory.js new file mode 100644 index 0000000..561b38c --- /dev/null +++ b/examples/apidoc/MainClient/getDepositHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/hisrec + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1276 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDepositHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDualInvestmentAccounts.js b/examples/apidoc/MainClient/getDualInvestmentAccounts.js new file mode 100644 index 0000000..ede1261 --- /dev/null +++ b/examples/apidoc/MainClient/getDualInvestmentAccounts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/dci/product/accounts + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3106 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDualInvestmentAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDualInvestmentPositions.js b/examples/apidoc/MainClient/getDualInvestmentPositions.js new file mode 100644 index 0000000..8101976 --- /dev/null +++ b/examples/apidoc/MainClient/getDualInvestmentPositions.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/dci/product/positions + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3097 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDualInvestmentPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDualInvestmentProducts.js b/examples/apidoc/MainClient/getDualInvestmentProducts.js new file mode 100644 index 0000000..67ed259 --- /dev/null +++ b/examples/apidoc/MainClient/getDualInvestmentProducts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/dci/product/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3076 + +const client = new MainClient({ + 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/MainClient/getDust.js b/examples/apidoc/MainClient/getDust.js new file mode 100644 index 0000000..2f361c7 --- /dev/null +++ b/examples/apidoc/MainClient/getDust.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/dust-btc + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1341 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDust(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getDustLog.js b/examples/apidoc/MainClient/getDustLog.js new file mode 100644 index 0000000..dc2be13 --- /dev/null +++ b/examples/apidoc/MainClient/getDustLog.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/dribblet + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1349 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getDustLog(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthRateHistory.js b/examples/apidoc/MainClient/getEthRateHistory.js new file mode 100644 index 0000000..0a65878 --- /dev/null +++ b/examples/apidoc/MainClient/getEthRateHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/history/rateHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2232 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthRedemptionHistory.js b/examples/apidoc/MainClient/getEthRedemptionHistory.js new file mode 100644 index 0000000..54207cf --- /dev/null +++ b/examples/apidoc/MainClient/getEthRedemptionHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/history/redemptionHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2203 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthRedemptionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthStakingAccount.js b/examples/apidoc/MainClient/getEthStakingAccount.js new file mode 100644 index 0000000..472b7ee --- /dev/null +++ b/examples/apidoc/MainClient/getEthStakingAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2146 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthStakingAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthStakingAccountV2.js b/examples/apidoc/MainClient/getEthStakingAccountV2.js new file mode 100644 index 0000000..f54a0c0 --- /dev/null +++ b/examples/apidoc/MainClient/getEthStakingAccountV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/eth-staking/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2150 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthStakingAccountV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthStakingHistory.js b/examples/apidoc/MainClient/getEthStakingHistory.js new file mode 100644 index 0000000..bb98152 --- /dev/null +++ b/examples/apidoc/MainClient/getEthStakingHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/history/stakingHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2193 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthStakingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getEthStakingQuota.js b/examples/apidoc/MainClient/getEthStakingQuota.js new file mode 100644 index 0000000..fc66b2e --- /dev/null +++ b/examples/apidoc/MainClient/getEthStakingQuota.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/quota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2154 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getEthStakingQuota(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getExchangeInfo.js b/examples/apidoc/MainClient/getExchangeInfo.js new file mode 100644 index 0000000..00930fa --- /dev/null +++ b/examples/apidoc/MainClient/getExchangeInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/exchangeInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L575 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getExchangeInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getExtraBonuses.js b/examples/apidoc/MainClient/getExtraBonuses.js new file mode 100644 index 0000000..36b4815 --- /dev/null +++ b/examples/apidoc/MainClient/getExtraBonuses.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/payment/other + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2428 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getExtraBonuses(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFiatOrderHistory.js b/examples/apidoc/MainClient/getFiatOrderHistory.js new file mode 100644 index 0000000..d154910 --- /dev/null +++ b/examples/apidoc/MainClient/getFiatOrderHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/fiat/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3204 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFiatOrderHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFiatPaymentsHistory.js b/examples/apidoc/MainClient/getFiatPaymentsHistory.js new file mode 100644 index 0000000..abed624 --- /dev/null +++ b/examples/apidoc/MainClient/getFiatPaymentsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/fiat/payments + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3210 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFiatPaymentsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js b/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js new file mode 100644 index 0000000..f272489 --- /dev/null +++ b/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/project/position/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3933 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFixedAndActivityProductPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFixedAndActivityProjects.js b/examples/apidoc/MainClient/getFixedAndActivityProjects.js new file mode 100644 index 0000000..34d62d6 --- /dev/null +++ b/examples/apidoc/MainClient/getFixedAndActivityProjects.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/project/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3924 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFixedAndActivityProjects(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js b/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js new file mode 100644 index 0000000..d199fce --- /dev/null +++ b/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/personalLeftQuota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2802 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexiblePersonalLeftQuota(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleProductPosition.js b/examples/apidoc/MainClient/getFlexibleProductPosition.js new file mode 100644 index 0000000..bff2654 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleProductPosition.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/flexible/position + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2784 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleProductPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js b/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js new file mode 100644 index 0000000..109f791 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/history/redemptionRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2928 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleRedemptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleRewardsHistory.js b/examples/apidoc/MainClient/getFlexibleRewardsHistory.js new file mode 100644 index 0000000..18a57c2 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleRewardsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/history/rewardsRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2950 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleRewardsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleSavingProducts.js b/examples/apidoc/MainClient/getFlexibleSavingProducts.js new file mode 100644 index 0000000..f19c713 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleSavingProducts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/flexible/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2768 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleSavingProducts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js b/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js new file mode 100644 index 0000000..2b9a638 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/subscriptionPreview + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2868 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleSubscriptionPreview(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js b/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js new file mode 100644 index 0000000..24f79f7 --- /dev/null +++ b/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/history/subscriptionRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2904 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFlexibleSubscriptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFundingAsset.js b/examples/apidoc/MainClient/getFundingAsset.js new file mode 100644 index 0000000..a305075 --- /dev/null +++ b/examples/apidoc/MainClient/getFundingAsset.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/get-funding-asset + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1361 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingAsset(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFutureAccountTransferHistory.js b/examples/apidoc/MainClient/getFutureAccountTransferHistory.js new file mode 100644 index 0000000..536d580 --- /dev/null +++ b/examples/apidoc/MainClient/getFutureAccountTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/transfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1415 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFutureAccountTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js b/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js new file mode 100644 index 0000000..f90679b --- /dev/null +++ b/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/copyTrading/futures/userStatus + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2385 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesLeadTraderStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js b/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js new file mode 100644 index 0000000..0e162d2 --- /dev/null +++ b/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/copyTrading/futures/leadSymbol + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2389 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesLeadTradingSymbolWhitelist(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js b/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js new file mode 100644 index 0000000..af29513 --- /dev/null +++ b/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/histDataLink + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3329 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTickLevelOrderbookDataLink(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getHashrateResale.js b/examples/apidoc/MainClient/getHashrateResale.js new file mode 100644 index 0000000..6170519 --- /dev/null +++ b/examples/apidoc/MainClient/getHashrateResale.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/hash-transfer/profit/details + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2449 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHashrateResale(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getHashrateResales.js b/examples/apidoc/MainClient/getHashrateResales.js new file mode 100644 index 0000000..574d837 --- /dev/null +++ b/examples/apidoc/MainClient/getHashrateResales.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/hash-transfer/config/details/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2409 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHashrateResales(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getHistoricalTrades.js b/examples/apidoc/MainClient/getHistoricalTrades.js new file mode 100644 index 0000000..b782415 --- /dev/null +++ b/examples/apidoc/MainClient/getHistoricalTrades.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/historicalTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L603 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHistoricalTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getInterestHistory.js b/examples/apidoc/MainClient/getInterestHistory.js new file mode 100644 index 0000000..1492993 --- /dev/null +++ b/examples/apidoc/MainClient/getInterestHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/union/interestHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3963 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getInterestHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js b/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js new file mode 100644 index 0000000..4ee67b2 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1200 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginAccountInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js b/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js new file mode 100644 index 0000000..0afebd3 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/accountLimit + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1193 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginAccountLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js b/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js new file mode 100644 index 0000000..1594771 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/allPairs + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L864 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginAllSymbols(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginFeeData.js b/examples/apidoc/MainClient/getIsolatedMarginFeeData.js new file mode 100644 index 0000000..1fbfa13 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginFeeData.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolatedMarginData + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1206 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginFeeData(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginTierData.js b/examples/apidoc/MainClient/getIsolatedMarginTierData.js new file mode 100644 index 0000000..01ec695 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginTierData.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolatedMarginTier + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L878 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginTierData(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js new file mode 100644 index 0000000..b3363d6 --- /dev/null +++ b/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream/isolated?${serialiseParams(params)} + // METHOD: POST + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3811 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIsolatedMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getKlines.js b/examples/apidoc/MainClient/getKlines.js new file mode 100644 index 0000000..ed9db2d --- /dev/null +++ b/examples/apidoc/MainClient/getKlines.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/klines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L613 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js b/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js new file mode 100644 index 0000000..32ec068 --- /dev/null +++ b/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/daily/userLeftQuota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3891 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLeftDailyPurchaseQuotaFlexibleProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js b/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js new file mode 100644 index 0000000..2c42610 --- /dev/null +++ b/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/daily/userRedemptionQuota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3900 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLeftDailyRedemptionQuotaFlexibleProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLendingAccount.js b/examples/apidoc/MainClient/getLendingAccount.js new file mode 100644 index 0000000..52203ef --- /dev/null +++ b/examples/apidoc/MainClient/getLendingAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/union/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3942 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLendingAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLeverageBracket.js b/examples/apidoc/MainClient/getLeverageBracket.js new file mode 100644 index 0000000..efbfe47 --- /dev/null +++ b/examples/apidoc/MainClient/getLeverageBracket.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/leverageBracket + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L896 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLeverageBracket(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js b/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js new file mode 100644 index 0000000..92b3717 --- /dev/null +++ b/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/borrow/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2631 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanFlexibleBorrowHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js b/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js new file mode 100644 index 0000000..22a518f --- /dev/null +++ b/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/repay/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2649 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLoanFlexibleRepaymentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js b/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js new file mode 100644 index 0000000..4cf3a5e --- /dev/null +++ b/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/personalLeftQuota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2811 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedPersonalLeftQuota(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedProductPosition.js b/examples/apidoc/MainClient/getLockedProductPosition.js new file mode 100644 index 0000000..5f55d94 --- /dev/null +++ b/examples/apidoc/MainClient/getLockedProductPosition.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/locked/position + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2793 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedProductPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedRedemptionRecord.js b/examples/apidoc/MainClient/getLockedRedemptionRecord.js new file mode 100644 index 0000000..5bbacc8 --- /dev/null +++ b/examples/apidoc/MainClient/getLockedRedemptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/history/redemptionRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2940 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedRedemptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedRewardsHistory.js b/examples/apidoc/MainClient/getLockedRewardsHistory.js new file mode 100644 index 0000000..b690734 --- /dev/null +++ b/examples/apidoc/MainClient/getLockedRewardsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/history/rewardsRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2960 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedRewardsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedSubscriptionPreview.js b/examples/apidoc/MainClient/getLockedSubscriptionPreview.js new file mode 100644 index 0000000..e46e64d --- /dev/null +++ b/examples/apidoc/MainClient/getLockedSubscriptionPreview.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/subscriptionPreview + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2877 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedSubscriptionPreview(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getLockedSubscriptionRecord.js b/examples/apidoc/MainClient/getLockedSubscriptionRecord.js new file mode 100644 index 0000000..2995aba --- /dev/null +++ b/examples/apidoc/MainClient/getLockedSubscriptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/history/subscriptionRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2916 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getLockedSubscriptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js b/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js new file mode 100644 index 0000000..9c6897e --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/asset + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1870 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountAssetDetails(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js b/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js new file mode 100644 index 0000000..9107776 --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/deposit/address + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1803 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountDepositAddress(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js b/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js new file mode 100644 index 0000000..68d2ad4 --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/fetch-future-asset + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1882 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountFuturesAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js b/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js new file mode 100644 index 0000000..c9ef142 --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/marginAsset + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1876 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountMarginAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js b/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js new file mode 100644 index 0000000..a865b54 --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/accountSnapshot + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1861 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountSnapshot(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js b/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js new file mode 100644 index 0000000..f6b436c --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/query-trans-log + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1830 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountTransferLog(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js b/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js new file mode 100644 index 0000000..f9fd391 --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/queryTransLogForInvestor + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1842 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountTransfersInvestor(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js b/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js new file mode 100644 index 0000000..0bc931b --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/queryTransLogForTradeParent + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1818 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccountTransfersParent(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getManagedSubAccounts.js b/examples/apidoc/MainClient/getManagedSubAccounts.js new file mode 100644 index 0000000..387853f --- /dev/null +++ b/examples/apidoc/MainClient/getManagedSubAccounts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/info + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1854 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getManagedSubAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js b/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js new file mode 100644 index 0000000..87c85f8 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/borrow-repay + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L925 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginAccountBorrowRepayRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginAvailableInventory.js b/examples/apidoc/MainClient/getMarginAvailableInventory.js new file mode 100644 index 0000000..336a009 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginAvailableInventory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/available-inventory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L890 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginAvailableInventory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginCapitalFlow.js b/examples/apidoc/MainClient/getMarginCapitalFlow.js new file mode 100644 index 0000000..f77760a --- /dev/null +++ b/examples/apidoc/MainClient/getMarginCapitalFlow.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/capital-flow + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1220 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginCapitalFlow(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginDelistSchedule.js b/examples/apidoc/MainClient/getMarginDelistSchedule.js new file mode 100644 index 0000000..ae934d1 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginDelistSchedule.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/delist-schedule + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L874 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginDelistSchedule(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js b/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js new file mode 100644 index 0000000..e7a7a5f --- /dev/null +++ b/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/forceLiquidationRec + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L949 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginForceLiquidationRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginInterestHistory.js b/examples/apidoc/MainClient/getMarginInterestHistory.js new file mode 100644 index 0000000..95611cc --- /dev/null +++ b/examples/apidoc/MainClient/getMarginInterestHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/interestHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L912 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginInterestHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginInterestRateHistory.js b/examples/apidoc/MainClient/getMarginInterestRateHistory.js new file mode 100644 index 0000000..3d4ca5e --- /dev/null +++ b/examples/apidoc/MainClient/getMarginInterestRateHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/interestRateHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L931 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginInterestRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginOrderCountUsage.js b/examples/apidoc/MainClient/getMarginOrderCountUsage.js new file mode 100644 index 0000000..43c90de --- /dev/null +++ b/examples/apidoc/MainClient/getMarginOrderCountUsage.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/rateLimit/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1006 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginOrderCountUsage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js new file mode 100644 index 0000000..210c22b --- /dev/null +++ b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/apiKey + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1124 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginSpecialLowLatencyKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js new file mode 100644 index 0000000..6cc1e06 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/api-key-list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1115 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginSpecialLowLatencyKeys(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginSummary.js b/examples/apidoc/MainClient/getMarginSummary.js new file mode 100644 index 0000000..71b00e9 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginSummary.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/tradeCoeff + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1179 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginSummary(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMarginUserDataListenKey.js b/examples/apidoc/MainClient/getMarginUserDataListenKey.js new file mode 100644 index 0000000..9b39857 --- /dev/null +++ b/examples/apidoc/MainClient/getMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream + // METHOD: POST + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3798 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMinerDetails.js b/examples/apidoc/MainClient/getMinerDetails.js new file mode 100644 index 0000000..cbe34a0 --- /dev/null +++ b/examples/apidoc/MainClient/getMinerDetails.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/worker/detail + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2422 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMinerDetails(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiners.js b/examples/apidoc/MainClient/getMiners.js new file mode 100644 index 0000000..aa885a4 --- /dev/null +++ b/examples/apidoc/MainClient/getMiners.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/worker/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2418 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiners(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningAccountEarnings.js b/examples/apidoc/MainClient/getMiningAccountEarnings.js new file mode 100644 index 0000000..47e56d6 --- /dev/null +++ b/examples/apidoc/MainClient/getMiningAccountEarnings.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/payment/uid + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2458 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningAccountEarnings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningAccounts.js b/examples/apidoc/MainClient/getMiningAccounts.js new file mode 100644 index 0000000..870ef55 --- /dev/null +++ b/examples/apidoc/MainClient/getMiningAccounts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/statistics/user/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2474 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningAccounts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningAlgos.js b/examples/apidoc/MainClient/getMiningAlgos.js new file mode 100644 index 0000000..19ea0f7 --- /dev/null +++ b/examples/apidoc/MainClient/getMiningAlgos.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/pub/algoList + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2401 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningAlgos(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningCoins.js b/examples/apidoc/MainClient/getMiningCoins.js new file mode 100644 index 0000000..e966c05 --- /dev/null +++ b/examples/apidoc/MainClient/getMiningCoins.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/pub/coinList + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2405 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningCoins(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningEarnings.js b/examples/apidoc/MainClient/getMiningEarnings.js new file mode 100644 index 0000000..e78706e --- /dev/null +++ b/examples/apidoc/MainClient/getMiningEarnings.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/payment/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2434 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningEarnings(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getMiningStatistics.js b/examples/apidoc/MainClient/getMiningStatistics.js new file mode 100644 index 0000000..b473611 --- /dev/null +++ b/examples/apidoc/MainClient/getMiningStatistics.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/statistics/user/status + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2464 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMiningStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getNextHourlyInterestRate.js b/examples/apidoc/MainClient/getNextHourlyInterestRate.js new file mode 100644 index 0000000..c2eccd5 --- /dev/null +++ b/examples/apidoc/MainClient/getNextHourlyInterestRate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/next-hourly-interest-rate + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L906 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNextHourlyInterestRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getNftAsset.js b/examples/apidoc/MainClient/getNftAsset.js new file mode 100644 index 0000000..e442b74 --- /dev/null +++ b/examples/apidoc/MainClient/getNftAsset.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/nft/user/getAsset + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3176 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNftAsset(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getNftDepositHistory.js b/examples/apidoc/MainClient/getNftDepositHistory.js new file mode 100644 index 0000000..98fb7e4 --- /dev/null +++ b/examples/apidoc/MainClient/getNftDepositHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/nft/history/deposit + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3162 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNftDepositHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getNftTransactionHistory.js b/examples/apidoc/MainClient/getNftTransactionHistory.js new file mode 100644 index 0000000..a662714 --- /dev/null +++ b/examples/apidoc/MainClient/getNftTransactionHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/nft/history/transactions + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3155 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNftTransactionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getNftWithdrawHistory.js b/examples/apidoc/MainClient/getNftWithdrawHistory.js new file mode 100644 index 0000000..3f14092 --- /dev/null +++ b/examples/apidoc/MainClient/getNftWithdrawHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/nft/history/withdraw + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3169 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNftWithdrawHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOCO.js b/examples/apidoc/MainClient/getOCO.js new file mode 100644 index 0000000..87905d0 --- /dev/null +++ b/examples/apidoc/MainClient/getOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/orderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L772 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOneTimeTransactionStatus.js b/examples/apidoc/MainClient/getOneTimeTransactionStatus.js new file mode 100644 index 0000000..d128c13 --- /dev/null +++ b/examples/apidoc/MainClient/getOneTimeTransactionStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/one-off/status + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2022 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOneTimeTransactionStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOpenOrders.js b/examples/apidoc/MainClient/getOpenOrders.js new file mode 100644 index 0000000..41b1df5 --- /dev/null +++ b/examples/apidoc/MainClient/getOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L719 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOrder.js b/examples/apidoc/MainClient/getOrder.js new file mode 100644 index 0000000..91e402a --- /dev/null +++ b/examples/apidoc/MainClient/getOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L696 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOrderBook.js b/examples/apidoc/MainClient/getOrderBook.js new file mode 100644 index 0000000..586a6d7 --- /dev/null +++ b/examples/apidoc/MainClient/getOrderBook.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/depth + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L595 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOrderRateLimit.js b/examples/apidoc/MainClient/getOrderRateLimit.js new file mode 100644 index 0000000..47565d8 --- /dev/null +++ b/examples/apidoc/MainClient/getOrderRateLimit.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/rateLimit/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L827 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderRateLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getOrderStatus.js b/examples/apidoc/MainClient/getOrderStatus.js new file mode 100644 index 0000000..411231e --- /dev/null +++ b/examples/apidoc/MainClient/getOrderStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/orderStatus + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2119 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPayTransactions.js b/examples/apidoc/MainClient/getPayTransactions.js new file mode 100644 index 0000000..4c3f575 --- /dev/null +++ b/examples/apidoc/MainClient/getPayTransactions.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/pay/transactions + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3378 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPayTransactions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js b/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js new file mode 100644 index 0000000..3f53355 --- /dev/null +++ b/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/staking/personalLeftQuota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2295 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPersonalLeftQuotaOfStakingProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js b/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js new file mode 100644 index 0000000..a7619d5 --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/margin-asset-leverage + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3241 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginAssetLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js b/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js new file mode 100644 index 0000000..fe0d9df --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/asset-index-price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3235 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginIndexPrice(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js b/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js new file mode 100644 index 0000000..5aa684e --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3264 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProAccountInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js b/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js new file mode 100644 index 0000000..7e4d231 --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/pmLoan + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3294 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProBankruptcyLoanAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js b/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js new file mode 100644 index 0000000..2c7e86a --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/collateralRate + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3247 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProCollateralRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js b/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js new file mode 100644 index 0000000..258e703 --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/interest-history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3316 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProInterestHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js b/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js new file mode 100644 index 0000000..95018ac --- /dev/null +++ b/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/portfolio/collateralRate + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3253 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProTieredCollateralRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPreventedMatches.js b/examples/apidoc/MainClient/getPreventedMatches.js new file mode 100644 index 0000000..f237f5d --- /dev/null +++ b/examples/apidoc/MainClient/getPreventedMatches.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/myPreventedMatches + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L831 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPreventedMatches(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getPurchaseRecord.js b/examples/apidoc/MainClient/getPurchaseRecord.js new file mode 100644 index 0000000..93c9883 --- /dev/null +++ b/examples/apidoc/MainClient/getPurchaseRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/union/purchaseRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3949 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPurchaseRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getRateHistory.js b/examples/apidoc/MainClient/getRateHistory.js new file mode 100644 index 0000000..5a02b66 --- /dev/null +++ b/examples/apidoc/MainClient/getRateHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/history/rateHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2980 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getRecentTrades.js b/examples/apidoc/MainClient/getRecentTrades.js new file mode 100644 index 0000000..fa224a1 --- /dev/null +++ b/examples/apidoc/MainClient/getRecentTrades.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/trades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L599 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRecentTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getRedemptionRecord.js b/examples/apidoc/MainClient/getRedemptionRecord.js new file mode 100644 index 0000000..8dd6771 --- /dev/null +++ b/examples/apidoc/MainClient/getRedemptionRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/union/redemptionRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3956 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRedemptionRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getRollingWindowTicker.js b/examples/apidoc/MainClient/getRollingWindowTicker.js new file mode 100644 index 0000000..058ba2b --- /dev/null +++ b/examples/apidoc/MainClient/getRollingWindowTicker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ticker + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L668 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRollingWindowTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getRsaPublicKey.js b/examples/apidoc/MainClient/getRsaPublicKey.js new file mode 100644 index 0000000..588ab07 --- /dev/null +++ b/examples/apidoc/MainClient/getRsaPublicKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/cryptography/rsa-public-key + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3145 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRsaPublicKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSimpleEarnAccount.js b/examples/apidoc/MainClient/getSimpleEarnAccount.js new file mode 100644 index 0000000..f213a9b --- /dev/null +++ b/examples/apidoc/MainClient/getSimpleEarnAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2764 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSimpleEarnAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js b/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js new file mode 100644 index 0000000..a66845d --- /dev/null +++ b/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/locked/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2775 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSimpleEarnLockedProductList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js b/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js new file mode 100644 index 0000000..2e0fc4f --- /dev/null +++ b/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/exchange-small-liability + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L958 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSmallLiabilityExchangeCoins(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js b/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js new file mode 100644 index 0000000..b0e4052 --- /dev/null +++ b/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/exchange-small-liability-history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L962 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSmallLiabilityExchangeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSolRedemptionHistory.js b/examples/apidoc/MainClient/getSolRedemptionHistory.js new file mode 100644 index 0000000..e15405b --- /dev/null +++ b/examples/apidoc/MainClient/getSolRedemptionHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/history/redemptionHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2348 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSolRedemptionHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSolStakingAccount.js b/examples/apidoc/MainClient/getSolStakingAccount.js new file mode 100644 index 0000000..116599b --- /dev/null +++ b/examples/apidoc/MainClient/getSolStakingAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2308 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSolStakingAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSolStakingHistory.js b/examples/apidoc/MainClient/getSolStakingHistory.js new file mode 100644 index 0000000..a6a430e --- /dev/null +++ b/examples/apidoc/MainClient/getSolStakingHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/history/stakingHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2338 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSolStakingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSolStakingQuota.js b/examples/apidoc/MainClient/getSolStakingQuota.js new file mode 100644 index 0000000..847db4b --- /dev/null +++ b/examples/apidoc/MainClient/getSolStakingQuota.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/quota + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2312 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSolStakingQuota(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js b/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js new file mode 100644 index 0000000..03999e9 --- /dev/null +++ b/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/spot/historicalOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2558 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAlgoHistoricalOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js b/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js new file mode 100644 index 0000000..535d3cb --- /dev/null +++ b/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/spot/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2551 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAlgoOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSpotAlgoSubOrders.js b/examples/apidoc/MainClient/getSpotAlgoSubOrders.js new file mode 100644 index 0000000..a1f3ebf --- /dev/null +++ b/examples/apidoc/MainClient/getSpotAlgoSubOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/spot/subOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2545 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotAlgoSubOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js b/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js new file mode 100644 index 0000000..7ed6e2d --- /dev/null +++ b/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/rebate/taxQuery + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3222 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotRebateHistoryRecords(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSpotUserDataListenKey.js b/examples/apidoc/MainClient/getSpotUserDataListenKey.js new file mode 100644 index 0000000..ecd1ee1 --- /dev/null +++ b/examples/apidoc/MainClient/getSpotUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/userDataStream + // METHOD: POST + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3785 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSpotUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getStakingHistory.js b/examples/apidoc/MainClient/getStakingHistory.js new file mode 100644 index 0000000..c7f0e65 --- /dev/null +++ b/examples/apidoc/MainClient/getStakingHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/staking/stakingRecord + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2288 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStakingHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getStakingProductPosition.js b/examples/apidoc/MainClient/getStakingProductPosition.js new file mode 100644 index 0000000..ae867fc --- /dev/null +++ b/examples/apidoc/MainClient/getStakingProductPosition.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/staking/position + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2276 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStakingProductPosition(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getStakingProducts.js b/examples/apidoc/MainClient/getStakingProducts.js new file mode 100644 index 0000000..73aa0ae --- /dev/null +++ b/examples/apidoc/MainClient/getStakingProducts.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/staking/productList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2265 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getStakingProducts(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountAssets.js b/examples/apidoc/MainClient/getSubAccountAssets.js new file mode 100644 index 0000000..460645b --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v3/sub-account/assets + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1716 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountAssetsMaster.js b/examples/apidoc/MainClient/getSubAccountAssetsMaster.js new file mode 100644 index 0000000..c4f26c3 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountAssetsMaster.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v4/sub-account/assets + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1722 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountAssetsMaster(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js b/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js new file mode 100644 index 0000000..699e102 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/bnbBurn/status + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3518 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountBNBBurnStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js b/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js new file mode 100644 index 0000000..29f799a --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/ipRestriction + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3469 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountBrokerIpRestriction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountDepositAddress.js b/examples/apidoc/MainClient/getSubAccountDepositAddress.js new file mode 100644 index 0000000..dc51dce --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountDepositAddress.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/subAddress + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1681 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountDepositAddress(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountDepositHistory.js b/examples/apidoc/MainClient/getSubAccountDepositHistory.js new file mode 100644 index 0000000..614aa4c --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountDepositHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/subHisrec + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1687 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountDepositHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js b/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js new file mode 100644 index 0000000..673ae04 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/sub-account/futures/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1669 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountDetailOnFuturesAccountV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js b/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js new file mode 100644 index 0000000..0593036 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/margin/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1675 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountDetailOnMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js b/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js new file mode 100644 index 0000000..c38dffa --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1663 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesAccountDetail(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js b/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js new file mode 100644 index 0000000..758ff41 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/accountSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1693 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesAccountSummary(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js b/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js new file mode 100644 index 0000000..7721606 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/internalTransfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1728 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesAssetTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js b/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js new file mode 100644 index 0000000..33fa2d2 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/positionRisk + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1569 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesPositionRisk(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js b/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js new file mode 100644 index 0000000..348ec46 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/sub-account/futures/positionRisk + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1577 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesPositionRiskV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js b/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js new file mode 100644 index 0000000..f9b959f --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/transfer/futures + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3559 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountFuturesTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountIPRestriction.js b/examples/apidoc/MainClient/getSubAccountIPRestriction.js new file mode 100644 index 0000000..44451d8 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountIPRestriction.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/subAccountApi/ipRestriction + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1598 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountIPRestriction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountList.js b/examples/apidoc/MainClient/getSubAccountList.js new file mode 100644 index 0000000..3bb751a --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1537 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js b/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js new file mode 100644 index 0000000..c9b864c --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/marginSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3586 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountMarginAssetInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js b/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js new file mode 100644 index 0000000..7e43a5f --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/sub/transfer/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1737 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountSpotAssetTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js b/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js new file mode 100644 index 0000000..51f10c2 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/spotSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1743 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountSpotAssetsSummary(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js b/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js new file mode 100644 index 0000000..b2dcc4f --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/status + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1563 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountStatusOnMarginOrFutures(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js b/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js new file mode 100644 index 0000000..3b7588f --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/sub-account/futures/accountSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1697 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountSummaryOnFuturesAccountV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js b/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js new file mode 100644 index 0000000..d1b4450 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/transaction-statistics + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1583 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountTransactionStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js b/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js new file mode 100644 index 0000000..3e7d2b9 --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/universalTransfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1749 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountUniversalTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js b/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js new file mode 100644 index 0000000..96124bc --- /dev/null +++ b/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/margin/accountSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1706 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSubAccountsSummaryOfMarginAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSymbolOrderBookTicker.js b/examples/apidoc/MainClient/getSymbolOrderBookTicker.js new file mode 100644 index 0000000..ca34331 --- /dev/null +++ b/examples/apidoc/MainClient/getSymbolOrderBookTicker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ticker/bookTicker + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L662 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolOrderBookTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSymbolPriceTicker.js b/examples/apidoc/MainClient/getSymbolPriceTicker.js new file mode 100644 index 0000000..0e15467 --- /dev/null +++ b/examples/apidoc/MainClient/getSymbolPriceTicker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ticker/price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L656 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolPriceTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getSystemStatus.js b/examples/apidoc/MainClient/getSystemStatus.js new file mode 100644 index 0000000..ce246bc --- /dev/null +++ b/examples/apidoc/MainClient/getSystemStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/system/status + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1517 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSystemStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getTokenLimit.js b/examples/apidoc/MainClient/getTokenLimit.js new file mode 100644 index 0000000..c922564 --- /dev/null +++ b/examples/apidoc/MainClient/getTokenLimit.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/buyCode/token-limit + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3141 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTokenLimit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getTradeFee.js b/examples/apidoc/MainClient/getTradeFee.js new file mode 100644 index 0000000..7d2e568 --- /dev/null +++ b/examples/apidoc/MainClient/getTradeFee.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/tradeFee + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1357 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTradeFee(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getTradingDayTicker.js b/examples/apidoc/MainClient/getTradingDayTicker.js new file mode 100644 index 0000000..83edbd1 --- /dev/null +++ b/examples/apidoc/MainClient/getTradingDayTicker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ticker/tradingDay + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L650 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTradingDayTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getUIKlines.js b/examples/apidoc/MainClient/getUIKlines.js new file mode 100644 index 0000000..3a0c681 --- /dev/null +++ b/examples/apidoc/MainClient/getUIKlines.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/uiKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L617 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUIKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getUniversalTransferBroker.js b/examples/apidoc/MainClient/getUniversalTransferBroker.js new file mode 100644 index 0000000..1e17991 --- /dev/null +++ b/examples/apidoc/MainClient/getUniversalTransferBroker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/universalTransfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3611 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUniversalTransferBroker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getUniversalTransferHistory.js b/examples/apidoc/MainClient/getUniversalTransferHistory.js new file mode 100644 index 0000000..cba186c --- /dev/null +++ b/examples/apidoc/MainClient/getUniversalTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/transfer + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1335 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUniversalTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getUserAsset.js b/examples/apidoc/MainClient/getUserAsset.js new file mode 100644 index 0000000..b5337c4 --- /dev/null +++ b/examples/apidoc/MainClient/getUserAsset.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v3/asset/getUserAsset + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1325 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUserAsset(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipApplicationStatus.js b/examples/apidoc/MainClient/getVipApplicationStatus.js new file mode 100644 index 0000000..50788bc --- /dev/null +++ b/examples/apidoc/MainClient/getVipApplicationStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/request/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3045 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipApplicationStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipBorrowInterestRate.js b/examples/apidoc/MainClient/getVipBorrowInterestRate.js new file mode 100644 index 0000000..c2e3044 --- /dev/null +++ b/examples/apidoc/MainClient/getVipBorrowInterestRate.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/request/interestRate + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2996 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipBorrowInterestRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipCollateralAssets.js b/examples/apidoc/MainClient/getVipCollateralAssets.js new file mode 100644 index 0000000..3d507ff --- /dev/null +++ b/examples/apidoc/MainClient/getVipCollateralAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/collateral/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3009 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipCollateralAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipLoanOpenOrders.js b/examples/apidoc/MainClient/getVipLoanOpenOrders.js new file mode 100644 index 0000000..6dd0d04 --- /dev/null +++ b/examples/apidoc/MainClient/getVipLoanOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/ongoing/orders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3022 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipLoanOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js b/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js new file mode 100644 index 0000000..16da890 --- /dev/null +++ b/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/repay/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3029 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipLoanRepaymentHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getVipLoanableAssets.js b/examples/apidoc/MainClient/getVipLoanableAssets.js new file mode 100644 index 0000000..94bb14b --- /dev/null +++ b/examples/apidoc/MainClient/getVipLoanableAssets.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/loanable/data + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3002 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getVipLoanableAssets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getWalletBalances.js b/examples/apidoc/MainClient/getWalletBalances.js new file mode 100644 index 0000000..d8279a9 --- /dev/null +++ b/examples/apidoc/MainClient/getWalletBalances.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/wallet/balance + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1321 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWalletBalances(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getWbethRewardsHistory.js b/examples/apidoc/MainClient/getWbethRewardsHistory.js new file mode 100644 index 0000000..9f6447b --- /dev/null +++ b/examples/apidoc/MainClient/getWbethRewardsHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/history/wbethRewardsHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2223 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWbethRewardsHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getWithdrawAddresses.js b/examples/apidoc/MainClient/getWithdrawAddresses.js new file mode 100644 index 0000000..deba9b3 --- /dev/null +++ b/examples/apidoc/MainClient/getWithdrawAddresses.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/withdraw/address/list + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1272 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWithdrawAddresses(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/getWithdrawHistory.js b/examples/apidoc/MainClient/getWithdrawHistory.js new file mode 100644 index 0000000..cd80bd8 --- /dev/null +++ b/examples/apidoc/MainClient/getWithdrawHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/withdraw/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1266 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getWithdrawHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js b/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js new file mode 100644 index 0000000..524f4d3 --- /dev/null +++ b/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/isolated/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1247 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.isolatedMarginAccountTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js new file mode 100644 index 0000000..0f83f6d --- /dev/null +++ b/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream/isolated?${serialiseParams(params)} + // METHOD: PUT + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3819 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.keepAliveIsolatedMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js new file mode 100644 index 0000000..fd95e3c --- /dev/null +++ b/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/userDataStream?listenKey=${listenKey} + // METHOD: PUT + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3802 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.keepAliveMarginUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js new file mode 100644 index 0000000..9168205 --- /dev/null +++ b/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/userDataStream?listenKey=${listenKey} + // METHOD: PUT + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3789 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.keepAliveSpotUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/marginAccountCancelOCO.js b/examples/apidoc/MainClient/marginAccountCancelOCO.js new file mode 100644 index 0000000..7d652b5 --- /dev/null +++ b/examples/apidoc/MainClient/marginAccountCancelOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/orderList + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L980 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.marginAccountCancelOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js b/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js new file mode 100644 index 0000000..fd09443 --- /dev/null +++ b/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/openOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L974 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.marginAccountCancelOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/marginAccountCancelOrder.js b/examples/apidoc/MainClient/marginAccountCancelOrder.js new file mode 100644 index 0000000..2cb43bf --- /dev/null +++ b/examples/apidoc/MainClient/marginAccountCancelOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L985 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.marginAccountCancelOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/marginAccountNewOCO.js b/examples/apidoc/MainClient/marginAccountNewOCO.js new file mode 100644 index 0000000..a973b29 --- /dev/null +++ b/examples/apidoc/MainClient/marginAccountNewOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/order/oco + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L991 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.marginAccountNewOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js b/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js new file mode 100644 index 0000000..5fc1e35 --- /dev/null +++ b/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/customizedFixed/purchase + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3914 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.purchaseFixedAndActivityProject(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/purchaseFlexibleProduct.js b/examples/apidoc/MainClient/purchaseFlexibleProduct.js new file mode 100644 index 0000000..ca99a02 --- /dev/null +++ b/examples/apidoc/MainClient/purchaseFlexibleProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/flexible/subscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2826 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.purchaseFlexibleProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js b/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js new file mode 100644 index 0000000..64b13fc --- /dev/null +++ b/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1183 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryCrossMarginAccountDetails(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryLoanRecord.js b/examples/apidoc/MainClient/queryLoanRecord.js new file mode 100644 index 0000000..ed59d25 --- /dev/null +++ b/examples/apidoc/MainClient/queryLoanRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/loan + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1229 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryLoanRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountAllOCO.js b/examples/apidoc/MainClient/queryMarginAccountAllOCO.js new file mode 100644 index 0000000..44dc8e0 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountAllOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/allOrderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1012 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountAllOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountAllOrders.js b/examples/apidoc/MainClient/queryMarginAccountAllOrders.js new file mode 100644 index 0000000..7f12f25 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountAllOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/allOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1018 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountAllOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountOCO.js b/examples/apidoc/MainClient/queryMarginAccountOCO.js new file mode 100644 index 0000000..a252984 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/orderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1024 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js b/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js new file mode 100644 index 0000000..76fabac --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/openOrderList + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1028 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountOpenOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js b/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js new file mode 100644 index 0000000..f9ba038 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1035 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountOrder.js b/examples/apidoc/MainClient/queryMarginAccountOrder.js new file mode 100644 index 0000000..b7cbc1d --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1039 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginAccountTradeList.js b/examples/apidoc/MainClient/queryMarginAccountTradeList.js new file mode 100644 index 0000000..d44af82 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginAccountTradeList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/myTrades + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1043 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginAccountTradeList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMarginPriceIndex.js b/examples/apidoc/MainClient/queryMarginPriceIndex.js new file mode 100644 index 0000000..7bc2ea8 --- /dev/null +++ b/examples/apidoc/MainClient/queryMarginPriceIndex.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/priceIndex + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L884 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMarginPriceIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMaxBorrow.js b/examples/apidoc/MainClient/queryMaxBorrow.js new file mode 100644 index 0000000..ec9c5b1 --- /dev/null +++ b/examples/apidoc/MainClient/queryMaxBorrow.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/maxBorrowable + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L937 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMaxBorrow(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryMaxTransferOutAmount.js b/examples/apidoc/MainClient/queryMaxTransferOutAmount.js new file mode 100644 index 0000000..3d57061 --- /dev/null +++ b/examples/apidoc/MainClient/queryMaxTransferOutAmount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/maxTransferable + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1143 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryMaxTransferOutAmount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/queryRepayRecord.js b/examples/apidoc/MainClient/queryRepayRecord.js new file mode 100644 index 0000000..4ea0396 --- /dev/null +++ b/examples/apidoc/MainClient/queryRepayRecord.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/repay + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1238 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.queryRepayRecord(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js b/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js new file mode 100644 index 0000000..e0a16c6 --- /dev/null +++ b/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v3/broker/subAccount/futuresSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3595 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.querySubAccountFuturesAssetInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemBlvt.js b/examples/apidoc/MainClient/redeemBlvt.js new file mode 100644 index 0000000..dbbbeac --- /dev/null +++ b/examples/apidoc/MainClient/redeemBlvt.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3357 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemBlvt(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemEth.js b/examples/apidoc/MainClient/redeemEth.js new file mode 100644 index 0000000..cabd12a --- /dev/null +++ b/examples/apidoc/MainClient/redeemEth.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2179 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemEth(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemFlexibleProduct.js b/examples/apidoc/MainClient/redeemFlexibleProduct.js new file mode 100644 index 0000000..424fb37 --- /dev/null +++ b/examples/apidoc/MainClient/redeemFlexibleProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/flexible/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2838 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemFlexibleProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemGiftCard.js b/examples/apidoc/MainClient/redeemGiftCard.js new file mode 100644 index 0000000..c62b45f --- /dev/null +++ b/examples/apidoc/MainClient/redeemGiftCard.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/redeemCode + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3133 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemGiftCard(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemLockedProduct.js b/examples/apidoc/MainClient/redeemLockedProduct.js new file mode 100644 index 0000000..c46665b --- /dev/null +++ b/examples/apidoc/MainClient/redeemLockedProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/locked/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2844 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemLockedProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/redeemSol.js b/examples/apidoc/MainClient/redeemSol.js new file mode 100644 index 0000000..f3c725d --- /dev/null +++ b/examples/apidoc/MainClient/redeemSol.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2328 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.redeemSol(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/removeBSwapLiquidity.js b/examples/apidoc/MainClient/removeBSwapLiquidity.js new file mode 100644 index 0000000..522f7a8 --- /dev/null +++ b/examples/apidoc/MainClient/removeBSwapLiquidity.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bswap/liquidityRemove + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3867 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.removeBSwapLiquidity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/renewVipLoan.js b/examples/apidoc/MainClient/renewVipLoan.js new file mode 100644 index 0000000..24de2c4 --- /dev/null +++ b/examples/apidoc/MainClient/renewVipLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/renew + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3058 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.renewVipLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/repayCryptoLoan.js b/examples/apidoc/MainClient/repayCryptoLoan.js new file mode 100644 index 0000000..130c05a --- /dev/null +++ b/examples/apidoc/MainClient/repayCryptoLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/repay + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2704 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayCryptoLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/repayCryptoLoanFlexible.js b/examples/apidoc/MainClient/repayCryptoLoanFlexible.js new file mode 100644 index 0000000..c97bf74 --- /dev/null +++ b/examples/apidoc/MainClient/repayCryptoLoanFlexible.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/loan/flexible/repay + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2601 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayCryptoLoanFlexible(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/repayFuturesNegativeBalance.js b/examples/apidoc/MainClient/repayFuturesNegativeBalance.js new file mode 100644 index 0000000..4f15c7d --- /dev/null +++ b/examples/apidoc/MainClient/repayFuturesNegativeBalance.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/repay-futures-negative-balance + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3298 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayFuturesNegativeBalance(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js b/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js new file mode 100644 index 0000000..60d6c70 --- /dev/null +++ b/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/repay + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3286 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayPortfolioMarginProBankruptcyLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/repayVipLoan.js b/examples/apidoc/MainClient/repayVipLoan.js new file mode 100644 index 0000000..65314ed --- /dev/null +++ b/examples/apidoc/MainClient/repayVipLoan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/loan/vip/repay + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3062 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.repayVipLoan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/setConvertibleCoins.js b/examples/apidoc/MainClient/setConvertibleCoins.js new file mode 100644 index 0000000..8a22b9d --- /dev/null +++ b/examples/apidoc/MainClient/setConvertibleCoins.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/contract/convertible-coins + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1302 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setConvertibleCoins(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js b/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js new file mode 100644 index 0000000..152ff58 --- /dev/null +++ b/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/flexible/setAutoSubscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2850 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setFlexibleAutoSubscribe(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/setLockedAutoSubscribe.js b/examples/apidoc/MainClient/setLockedAutoSubscribe.js new file mode 100644 index 0000000..4898df7 --- /dev/null +++ b/examples/apidoc/MainClient/setLockedAutoSubscribe.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/setAutoSubscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2859 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setLockedAutoSubscribe(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/setLockedProductRedeemOption.js b/examples/apidoc/MainClient/setLockedProductRedeemOption.js new file mode 100644 index 0000000..88686cc --- /dev/null +++ b/examples/apidoc/MainClient/setLockedProductRedeemOption.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/simple-earn/locked/setRedeemOption + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2886 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setLockedProductRedeemOption(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountAddIPList.js b/examples/apidoc/MainClient/subAccountAddIPList.js new file mode 100644 index 0000000..44d8fec --- /dev/null +++ b/examples/apidoc/MainClient/subAccountAddIPList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/subAccountApi/ipRestriction/ipList + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1629 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountAddIPList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountAddIPRestriction.js b/examples/apidoc/MainClient/subAccountAddIPRestriction.js new file mode 100644 index 0000000..bdea2a7 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountAddIPRestriction.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/sub-account/subAccountApi/ipRestriction + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1616 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountAddIPRestriction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountDeleteIPList.js b/examples/apidoc/MainClient/subAccountDeleteIPList.js new file mode 100644 index 0000000..d35f5f5 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountDeleteIPList.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/subAccountApi/ipRestriction/ipList + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1607 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountDeleteIPList(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountEnableFutures.js b/examples/apidoc/MainClient/subAccountEnableFutures.js new file mode 100644 index 0000000..074eeaa --- /dev/null +++ b/examples/apidoc/MainClient/subAccountEnableFutures.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/enable + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1543 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountEnableFutures(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountEnableLeverageToken.js b/examples/apidoc/MainClient/subAccountEnableLeverageToken.js new file mode 100644 index 0000000..def4e49 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountEnableLeverageToken.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/blvt/enable + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1557 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountEnableLeverageToken(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountEnableMargin.js b/examples/apidoc/MainClient/subAccountEnableMargin.js new file mode 100644 index 0000000..ce27649 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountEnableMargin.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/margin/enable + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1547 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountEnableMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js b/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js new file mode 100644 index 0000000..edd2151 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/subAccountApi/ipRestriction + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1642 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountEnableOrDisableIPRestriction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js b/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js new file mode 100644 index 0000000..19a188e --- /dev/null +++ b/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/internalTransfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1755 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountFuturesAssetTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountFuturesTransfer.js b/examples/apidoc/MainClient/subAccountFuturesTransfer.js new file mode 100644 index 0000000..6bfc885 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountFuturesTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/futures/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1657 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountFuturesTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountMarginTransfer.js b/examples/apidoc/MainClient/subAccountMarginTransfer.js new file mode 100644 index 0000000..7ec413b --- /dev/null +++ b/examples/apidoc/MainClient/subAccountMarginTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/margin/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1710 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountMarginTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountTransferHistory.js b/examples/apidoc/MainClient/subAccountTransferHistory.js new file mode 100644 index 0000000..5076ca1 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountTransferHistory.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/transfer/subUserHistory + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1764 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountTransferHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountTransferToMaster.js b/examples/apidoc/MainClient/subAccountTransferToMaster.js new file mode 100644 index 0000000..661bc11 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountTransferToMaster.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/transfer/subToMaster + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1773 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountTransferToMaster(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountTransferToSameMaster.js b/examples/apidoc/MainClient/subAccountTransferToSameMaster.js new file mode 100644 index 0000000..0da7fb5 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountTransferToSameMaster.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/transfer/subToSub + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1779 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountTransferToSameMaster(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subAccountUniversalTransfer.js b/examples/apidoc/MainClient/subAccountUniversalTransfer.js new file mode 100644 index 0000000..a6adc23 --- /dev/null +++ b/examples/apidoc/MainClient/subAccountUniversalTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sub-account/universalTransfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1785 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subAccountUniversalTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js b/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js new file mode 100644 index 0000000..9eac353 --- /dev/null +++ b/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/one-off + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1955 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitAutoInvestOneTimeTransaction(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitAutoInvestRedemption.js b/examples/apidoc/MainClient/submitAutoInvestRedemption.js new file mode 100644 index 0000000..43b1bae --- /dev/null +++ b/examples/apidoc/MainClient/submitAutoInvestRedemption.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/redeem + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2008 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitAutoInvestRedemption(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitAutoInvestmentPlan.js b/examples/apidoc/MainClient/submitAutoInvestmentPlan.js new file mode 100644 index 0000000..7db2b9e --- /dev/null +++ b/examples/apidoc/MainClient/submitAutoInvestmentPlan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/add + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2041 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitAutoInvestmentPlan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js b/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js new file mode 100644 index 0000000..f9ff68a --- /dev/null +++ b/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/add + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2035 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitAutoInvestmentPlanOld(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js b/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js new file mode 100644 index 0000000..afdd812 --- /dev/null +++ b/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/transfer/futures + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3544 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitBrokerSubFuturesTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitConvertLimitOrder.js b/examples/apidoc/MainClient/submitConvertLimitOrder.js new file mode 100644 index 0000000..09e7945 --- /dev/null +++ b/examples/apidoc/MainClient/submitConvertLimitOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/convert/limit/placeOrder + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2123 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitConvertLimitOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitDepositCredit.js b/examples/apidoc/MainClient/submitDepositCredit.js new file mode 100644 index 0000000..31e3629 --- /dev/null +++ b/examples/apidoc/MainClient/submitDepositCredit.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/deposit/credit-apply + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1292 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitDepositCredit(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitHashrateResale.js b/examples/apidoc/MainClient/submitHashrateResale.js new file mode 100644 index 0000000..8713842 --- /dev/null +++ b/examples/apidoc/MainClient/submitHashrateResale.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/mining/hash-transfer/config + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2470 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitHashrateResale(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitManualLiquidation.js b/examples/apidoc/MainClient/submitManualLiquidation.js new file mode 100644 index 0000000..5a9fb16 --- /dev/null +++ b/examples/apidoc/MainClient/submitManualLiquidation.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/manual-liquidation + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1056 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitManualLiquidation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js b/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js new file mode 100644 index 0000000..9ef0517 --- /dev/null +++ b/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/borrow-repay + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L919 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMarginAccountBorrowRepay(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitMarginOTOCOOrder.js b/examples/apidoc/MainClient/submitMarginOTOCOOrder.js new file mode 100644 index 0000000..29ce1fc --- /dev/null +++ b/examples/apidoc/MainClient/submitMarginOTOCOOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/order/otoco + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1077 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMarginOTOCOOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitMarginOTOOrder.js b/examples/apidoc/MainClient/submitMarginOTOOrder.js new file mode 100644 index 0000000..24cc94b --- /dev/null +++ b/examples/apidoc/MainClient/submitMarginOTOOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/order/oto + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1065 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMarginOTOOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js b/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js new file mode 100644 index 0000000..db27d4e --- /dev/null +++ b/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/futures/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1405 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewFutureAccountTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitNewOCO.js b/examples/apidoc/MainClient/submitNewOCO.js new file mode 100644 index 0000000..32475a0 --- /dev/null +++ b/examples/apidoc/MainClient/submitNewOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/order/oco + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L730 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitNewOrderListOTO.js b/examples/apidoc/MainClient/submitNewOrderListOTO.js new file mode 100644 index 0000000..ebb2169 --- /dev/null +++ b/examples/apidoc/MainClient/submitNewOrderListOTO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/orderList/oto + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L747 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewOrderListOTO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitNewOrderListOTOCO.js b/examples/apidoc/MainClient/submitNewOrderListOTOCO.js new file mode 100644 index 0000000..6ad4b4a --- /dev/null +++ b/examples/apidoc/MainClient/submitNewOrderListOTOCO.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/orderList/otoco + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L757 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewOrderListOTOCO(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitNewSOROrder.js b/examples/apidoc/MainClient/submitNewSOROrder.js new file mode 100644 index 0000000..e5fcff1 --- /dev/null +++ b/examples/apidoc/MainClient/submitNewSOROrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/sor/order + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L790 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewSOROrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js b/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js new file mode 100644 index 0000000..bfc1506 --- /dev/null +++ b/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/auto-collection + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3274 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitPortfolioMarginProFullTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js b/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js new file mode 100644 index 0000000..3c68dda --- /dev/null +++ b/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/asset-collection + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3280 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitPortfolioMarginProSpecificTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitSmallLiabilityExchange.js b/examples/apidoc/MainClient/submitSmallLiabilityExchange.js new file mode 100644 index 0000000..137f2cf --- /dev/null +++ b/examples/apidoc/MainClient/submitSmallLiabilityExchange.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/exchange-small-liability + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1049 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSmallLiabilityExchange(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js b/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js new file mode 100644 index 0000000..54312b3 --- /dev/null +++ b/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/spot/newOrderTwap + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2532 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitSpotAlgoTwapOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitTwapNewOrder.js b/examples/apidoc/MainClient/submitTwapNewOrder.js new file mode 100644 index 0000000..5a3fb9e --- /dev/null +++ b/examples/apidoc/MainClient/submitTwapNewOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/newOrderTwap + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2493 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitTwapNewOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitUniversalTransfer.js b/examples/apidoc/MainClient/submitUniversalTransfer.js new file mode 100644 index 0000000..7e64207 --- /dev/null +++ b/examples/apidoc/MainClient/submitUniversalTransfer.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/asset/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1329 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitUniversalTransfer(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/submitVpNewOrder.js b/examples/apidoc/MainClient/submitVpNewOrder.js new file mode 100644 index 0000000..2103761 --- /dev/null +++ b/examples/apidoc/MainClient/submitVpNewOrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/algo/futures/newOrderVp + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2486 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitVpNewOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeBlvt.js b/examples/apidoc/MainClient/subscribeBlvt.js new file mode 100644 index 0000000..ffd9a15 --- /dev/null +++ b/examples/apidoc/MainClient/subscribeBlvt.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/blvt/subscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3347 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeBlvt(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js b/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js new file mode 100644 index 0000000..315ead6 --- /dev/null +++ b/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/dci/product/subscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3091 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeDualInvestmentProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeEthStakingV1.js b/examples/apidoc/MainClient/subscribeEthStakingV1.js new file mode 100644 index 0000000..ba7271e --- /dev/null +++ b/examples/apidoc/MainClient/subscribeEthStakingV1.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/eth/stake + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2167 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeEthStakingV1(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeEthStakingV2.js b/examples/apidoc/MainClient/subscribeEthStakingV2.js new file mode 100644 index 0000000..15df79b --- /dev/null +++ b/examples/apidoc/MainClient/subscribeEthStakingV2.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/eth-staking/eth/stake + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2173 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeEthStakingV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js b/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js new file mode 100644 index 0000000..9cf04de --- /dev/null +++ b/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: /sapi/v1/simple-earn/locked/subscribe + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2832 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeSimpleEarnLockedProduct(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/subscribeSolStaking.js b/examples/apidoc/MainClient/subscribeSolStaking.js new file mode 100644 index 0000000..0cd09d0 --- /dev/null +++ b/examples/apidoc/MainClient/subscribeSolStaking.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/sol-staking/sol/stake + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2322 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.subscribeSolStaking(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/testConnectivity.js b/examples/apidoc/MainClient/testConnectivity.js new file mode 100644 index 0000000..2050bf3 --- /dev/null +++ b/examples/apidoc/MainClient/testConnectivity.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/ping + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L571 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.testConnectivity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/testNewSOROrder.js b/examples/apidoc/MainClient/testNewSOROrder.js new file mode 100644 index 0000000..da2e416 --- /dev/null +++ b/examples/apidoc/MainClient/testNewSOROrder.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: api/v3/sor/order/test + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L801 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.testNewSOROrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/toggleBNBBurn.js b/examples/apidoc/MainClient/toggleBNBBurn.js new file mode 100644 index 0000000..c5b7b23 --- /dev/null +++ b/examples/apidoc/MainClient/toggleBNBBurn.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/bnbBurn + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1212 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.toggleBNBBurn(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/transferBrokerSubAccount.js b/examples/apidoc/MainClient/transferBrokerSubAccount.js new file mode 100644 index 0000000..a8517d6 --- /dev/null +++ b/examples/apidoc/MainClient/transferBrokerSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/transfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3532 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.transferBrokerSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/universalTransferBroker.js b/examples/apidoc/MainClient/universalTransferBroker.js new file mode 100644 index 0000000..2411149 --- /dev/null +++ b/examples/apidoc/MainClient/universalTransferBroker.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/universalTransfer + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3604 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.universalTransferBroker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateAutoCompoundStatus.js b/examples/apidoc/MainClient/updateAutoCompoundStatus.js new file mode 100644 index 0000000..85809fb --- /dev/null +++ b/examples/apidoc/MainClient/updateAutoCompoundStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/dci/product/auto_compound/edit-status + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3110 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoCompoundStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js b/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js new file mode 100644 index 0000000..8b22c3d --- /dev/null +++ b/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/edit-status + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1971 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoInvestPlanStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateAutoInvestmentPlan.js b/examples/apidoc/MainClient/updateAutoInvestmentPlan.js new file mode 100644 index 0000000..9a13c21 --- /dev/null +++ b/examples/apidoc/MainClient/updateAutoInvestmentPlan.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/edit + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1991 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoInvestmentPlan(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js b/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js new file mode 100644 index 0000000..bb8df31 --- /dev/null +++ b/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/lending/auto-invest/plan/edit + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1985 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoInvestmentPlanOld(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js b/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js new file mode 100644 index 0000000..a392a5a --- /dev/null +++ b/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/portfolio/repay-futures-switch + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3304 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateAutoRepayFuturesStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js new file mode 100644 index 0000000..83e4cfe --- /dev/null +++ b/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/commission/coinFutures + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3647 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateBrokerSubAccountCoinFuturesCommission(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js new file mode 100644 index 0000000..578aa52 --- /dev/null +++ b/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/commission + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3623 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateBrokerSubAccountCommission(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js new file mode 100644 index 0000000..035bbcf --- /dev/null +++ b/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccountApi/commission/futures + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3629 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateBrokerSubAccountFuturesCommission(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js b/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js new file mode 100644 index 0000000..bc614fe --- /dev/null +++ b/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/max-leverage + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1155 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateCrossMarginMaxLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js b/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js new file mode 100644 index 0000000..d817a8e --- /dev/null +++ b/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v2/broker/subAccountApi/ipRestriction + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3433 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateIpRestrictionForSubAccountApiKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js b/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js new file mode 100644 index 0000000..116d3ef --- /dev/null +++ b/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/margin/apiKey/ip + // METHOD: PUT + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1104 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateMarginIPForSpecialLowLatencyKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateSubAccountBNBBurn.js b/examples/apidoc/MainClient/updateSubAccountBNBBurn.js new file mode 100644 index 0000000..213ab4a --- /dev/null +++ b/examples/apidoc/MainClient/updateSubAccountBNBBurn.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/bnbBurn/spot + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3495 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateSubAccountBNBBurn(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js b/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js new file mode 100644 index 0000000..40a5a89 --- /dev/null +++ b/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/broker/subAccount/bnbBurn/marginInterest + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3505 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.updateSubAccountMarginInterestBNBBurn(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/verifyGiftCard.js b/examples/apidoc/MainClient/verifyGiftCard.js new file mode 100644 index 0000000..28e3235 --- /dev/null +++ b/examples/apidoc/MainClient/verifyGiftCard.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/giftcard/verify + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L3137 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.verifyGiftCard(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/withdraw.js b/examples/apidoc/MainClient/withdraw.js new file mode 100644 index 0000000..e29878f --- /dev/null +++ b/examples/apidoc/MainClient/withdraw.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/capital/withdraw/apply + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1262 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.withdraw(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js b/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js new file mode 100644 index 0000000..86db458 --- /dev/null +++ b/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/managed-subaccount/withdraw + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L1812 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.withdrawAssetsFromManagedSubAccount(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/MainClient/wrapBeth.js b/examples/apidoc/MainClient/wrapBeth.js new file mode 100644 index 0000000..feb00d2 --- /dev/null +++ b/examples/apidoc/MainClient/wrapBeth.js @@ -0,0 +1,19 @@ +const { MainClient } = require('binance'); + + // ENDPOINT: sapi/v1/eth-staking/wbeth/wrap + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/main-client.ts#L2183 + +const client = new MainClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.wrapBeth(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/acceptConvertQuote.js b/examples/apidoc/USDMClient/acceptConvertQuote.js new file mode 100644 index 0000000..f0f5fec --- /dev/null +++ b/examples/apidoc/USDMClient/acceptConvertQuote.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/convert/acceptQuote + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L620 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.acceptConvertQuote(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/cancelAllOpenOrders.js b/examples/apidoc/USDMClient/cancelAllOpenOrders.js new file mode 100644 index 0000000..29d5241 --- /dev/null +++ b/examples/apidoc/USDMClient/cancelAllOpenOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L385 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelAllOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/cancelMultipleOrders.js b/examples/apidoc/USDMClient/cancelMultipleOrders.js new file mode 100644 index 0000000..c38f91b --- /dev/null +++ b/examples/apidoc/USDMClient/cancelMultipleOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/batchOrders + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L365 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/cancelOrder.js b/examples/apidoc/USDMClient/cancelOrder.js new file mode 100644 index 0000000..41fa005 --- /dev/null +++ b/examples/apidoc/USDMClient/cancelOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order + // METHOD: DELETE + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L361 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.cancelOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js new file mode 100644 index 0000000..f280ffa --- /dev/null +++ b/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/listenKey + // METHOD: DELETE + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L776 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.closeFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/get24hrChangeStatistics.js b/examples/apidoc/USDMClient/get24hrChangeStatistics.js new file mode 100644 index 0000000..6897362 --- /dev/null +++ b/examples/apidoc/USDMClient/get24hrChangeStatistics.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/ticker/24hr + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L218 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.get24hrChangeStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/get24hrChangeStatististics.js b/examples/apidoc/USDMClient/get24hrChangeStatististics.js new file mode 100644 index 0000000..7114c99 --- /dev/null +++ b/examples/apidoc/USDMClient/get24hrChangeStatististics.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/ticker/24hr + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L202 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.get24hrChangeStatististics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getADLQuantileEstimation.js b/examples/apidoc/USDMClient/getADLQuantileEstimation.js new file mode 100644 index 0000000..5e75823 --- /dev/null +++ b/examples/apidoc/USDMClient/getADLQuantileEstimation.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/adlQuantile + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L460 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getADLQuantileEstimation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAccountComissionRate.js b/examples/apidoc/USDMClient/getAccountComissionRate.js new file mode 100644 index 0000000..398ddda --- /dev/null +++ b/examples/apidoc/USDMClient/getAccountComissionRate.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/commissionRate + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L500 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountComissionRate(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAccountInformation.js b/examples/apidoc/USDMClient/getAccountInformation.js new file mode 100644 index 0000000..169c9d9 --- /dev/null +++ b/examples/apidoc/USDMClient/getAccountInformation.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v2/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L496 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountInformation(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAccountInformationV3.js b/examples/apidoc/USDMClient/getAccountInformationV3.js new file mode 100644 index 0000000..feffc35 --- /dev/null +++ b/examples/apidoc/USDMClient/getAccountInformationV3.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v3/account + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L488 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountInformationV3(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAccountTrades.js b/examples/apidoc/USDMClient/getAccountTrades.js new file mode 100644 index 0000000..f3403c3 --- /dev/null +++ b/examples/apidoc/USDMClient/getAccountTrades.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/userTrades + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L418 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAccountTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAggregateTrades.js b/examples/apidoc/USDMClient/getAggregateTrades.js new file mode 100644 index 0000000..9c7bd06 --- /dev/null +++ b/examples/apidoc/USDMClient/getAggregateTrades.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/aggTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L152 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAggregateTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAllConvertPairs.js b/examples/apidoc/USDMClient/getAllConvertPairs.js new file mode 100644 index 0000000..05cd7f6 --- /dev/null +++ b/examples/apidoc/USDMClient/getAllConvertPairs.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/convert/exchangeInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L607 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllConvertPairs(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAllOpenOrders.js b/examples/apidoc/USDMClient/getAllOpenOrders.js new file mode 100644 index 0000000..63269ad --- /dev/null +++ b/examples/apidoc/USDMClient/getAllOpenOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/openOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L406 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOpenOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getAllOrders.js b/examples/apidoc/USDMClient/getAllOrders.js new file mode 100644 index 0000000..7a28b2a --- /dev/null +++ b/examples/apidoc/USDMClient/getAllOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/allOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L402 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getAllOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js b/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js new file mode 100644 index 0000000..dea5bd2 --- /dev/null +++ b/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiTradingStatus + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L539 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getApiQuantitativeRulesIndicators(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBNBBurnStatus.js b/examples/apidoc/USDMClient/getBNBBurnStatus.js new file mode 100644 index 0000000..6764634 --- /dev/null +++ b/examples/apidoc/USDMClient/getBNBBurnStatus.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/feeBurn + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L590 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBNBBurnStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBalance.js b/examples/apidoc/USDMClient/getBalance.js new file mode 100644 index 0000000..4e97e64 --- /dev/null +++ b/examples/apidoc/USDMClient/getBalance.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v2/balance + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L484 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBalance(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBalanceV3.js b/examples/apidoc/USDMClient/getBalanceV3.js new file mode 100644 index 0000000..8ab0db0 --- /dev/null +++ b/examples/apidoc/USDMClient/getBalanceV3.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v3/balance + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L476 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBalanceV3(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBasis.js b/examples/apidoc/USDMClient/getBasis.js new file mode 100644 index 0000000..18dc716 --- /dev/null +++ b/examples/apidoc/USDMClient/getBasis.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/basis + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L295 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBasis(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerClientCustomIds.js b/examples/apidoc/USDMClient/getBrokerClientCustomIds.js new file mode 100644 index 0000000..1b37dbc --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerClientCustomIds.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/customization + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L682 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerClientCustomIds(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js b/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js new file mode 100644 index 0000000..4c7a2cf --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/ifNewUser + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L658 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerIfNewFuturesUser(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js b/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js new file mode 100644 index 0000000..7dc7c7a --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/overview + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L706 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerRebateDataOverview(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerRebateVolume.js b/examples/apidoc/USDMClient/getBrokerRebateVolume.js new file mode 100644 index 0000000..86eafb9 --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerRebateVolume.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/rebateVol + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L730 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerRebateVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerTradeDetail.js b/examples/apidoc/USDMClient/getBrokerTradeDetail.js new file mode 100644 index 0000000..43907c3 --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerTradeDetail.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/traderSummary + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L746 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerTradeDetail(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerUserCustomId.js b/examples/apidoc/USDMClient/getBrokerUserCustomId.js new file mode 100644 index 0000000..f5a797f --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerUserCustomId.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/userCustomization + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L698 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerUserCustomId(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js b/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js new file mode 100644 index 0000000..075173b --- /dev/null +++ b/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/tradeVol + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L714 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getBrokerUserTradeVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getCompositeSymbolIndex.js b/examples/apidoc/USDMClient/getCompositeSymbolIndex.js new file mode 100644 index 0000000..16bd7fc --- /dev/null +++ b/examples/apidoc/USDMClient/getCompositeSymbolIndex.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/indexInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L284 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCompositeSymbolIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getContinuousContractKlines.js b/examples/apidoc/USDMClient/getContinuousContractKlines.js new file mode 100644 index 0000000..0c36e3b --- /dev/null +++ b/examples/apidoc/USDMClient/getContinuousContractKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/continuousKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L162 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getContinuousContractKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getConvertOrderStatus.js b/examples/apidoc/USDMClient/getConvertOrderStatus.js new file mode 100644 index 0000000..1c45ff7 --- /dev/null +++ b/examples/apidoc/USDMClient/getConvertOrderStatus.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/convert/orderStatus + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L628 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getConvertOrderStatus(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getCurrentOpenOrder.js b/examples/apidoc/USDMClient/getCurrentOpenOrder.js new file mode 100644 index 0000000..c6c88f2 --- /dev/null +++ b/examples/apidoc/USDMClient/getCurrentOpenOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/openOrder + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L410 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCurrentOpenOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getCurrentPositionMode.js b/examples/apidoc/USDMClient/getCurrentPositionMode.js new file mode 100644 index 0000000..efe1f56 --- /dev/null +++ b/examples/apidoc/USDMClient/getCurrentPositionMode.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/positionSide/dual + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L531 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getCurrentPositionMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getExchangeInfo.js b/examples/apidoc/USDMClient/getExchangeInfo.js new file mode 100644 index 0000000..1c78929 --- /dev/null +++ b/examples/apidoc/USDMClient/getExchangeInfo.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/exchangeInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L134 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getExchangeInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getForceOrders.js b/examples/apidoc/USDMClient/getForceOrders.js new file mode 100644 index 0000000..e96adbd --- /dev/null +++ b/examples/apidoc/USDMClient/getForceOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/forceOrders + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L414 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getForceOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFundingRateHistory.js b/examples/apidoc/USDMClient/getFundingRateHistory.js new file mode 100644 index 0000000..941be5f --- /dev/null +++ b/examples/apidoc/USDMClient/getFundingRateHistory.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/fundingRate + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L189 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFundingRateHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFundingRates.js b/examples/apidoc/USDMClient/getFundingRates.js new file mode 100644 index 0000000..4ceb2f2 --- /dev/null +++ b/examples/apidoc/USDMClient/getFundingRates.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/fundingInfo + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L195 + +const client = new USDMClient({ + 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/USDMClient/getFuturesAccountConfig.js b/examples/apidoc/USDMClient/getFuturesAccountConfig.js new file mode 100644 index 0000000..31f8cdc --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesAccountConfig.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/accountConfig + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L506 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesAccountConfig(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js new file mode 100644 index 0000000..4690ef8 --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order/asyn + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L558 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrderHistoryDownloadId(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js new file mode 100644 index 0000000..f46add4 --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order/asyn/id + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L565 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesOrderHistoryDownloadLink(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesSymbolConfig.js b/examples/apidoc/USDMClient/getFuturesSymbolConfig.js new file mode 100644 index 0000000..a27969c --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesSymbolConfig.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/symbolConfig + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L510 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesSymbolConfig(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js b/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js new file mode 100644 index 0000000..b6c4d9a --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/trade/asyn/id + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L578 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTradeDownloadLink(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js new file mode 100644 index 0000000..2dee23f --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/trade/asyn + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L571 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTradeHistoryDownloadId(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js new file mode 100644 index 0000000..8462f62 --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/income/asyn + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L545 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTransactionHistoryDownloadId(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js new file mode 100644 index 0000000..948880b --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/income/asyn/id + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L552 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesTransactionHistoryDownloadLink(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js new file mode 100644 index 0000000..6c30ba2 --- /dev/null +++ b/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/listenKey + // METHOD: POST + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L768 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js b/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js new file mode 100644 index 0000000..ed88801 --- /dev/null +++ b/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/globalLongShortAccountRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L270 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getGlobalLongShortAccountRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js b/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js new file mode 100644 index 0000000..13fa8f1 --- /dev/null +++ b/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/lvtKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L280 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHistoricalBlvtNavKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getHistoricalTrades.js b/examples/apidoc/USDMClient/getHistoricalTrades.js new file mode 100644 index 0000000..92b537e --- /dev/null +++ b/examples/apidoc/USDMClient/getHistoricalTrades.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/historicalTrades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L146 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getHistoricalTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getIncomeHistory.js b/examples/apidoc/USDMClient/getIncomeHistory.js new file mode 100644 index 0000000..573ad70 --- /dev/null +++ b/examples/apidoc/USDMClient/getIncomeHistory.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/income + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L535 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIncomeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getIndexPriceConstituents.js b/examples/apidoc/USDMClient/getIndexPriceConstituents.js new file mode 100644 index 0000000..f5a4982 --- /dev/null +++ b/examples/apidoc/USDMClient/getIndexPriceConstituents.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/constituents + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L302 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIndexPriceConstituents(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getIndexPriceKlines.js b/examples/apidoc/USDMClient/getIndexPriceKlines.js new file mode 100644 index 0000000..810b385 --- /dev/null +++ b/examples/apidoc/USDMClient/getIndexPriceKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/indexPriceKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L168 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getIndexPriceKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getKlines.js b/examples/apidoc/USDMClient/getKlines.js new file mode 100644 index 0000000..537355a --- /dev/null +++ b/examples/apidoc/USDMClient/getKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/klines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L158 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getMarkPrice.js b/examples/apidoc/USDMClient/getMarkPrice.js new file mode 100644 index 0000000..654e51e --- /dev/null +++ b/examples/apidoc/USDMClient/getMarkPrice.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/premiumIndex + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L183 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarkPrice(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getMarkPriceKlines.js b/examples/apidoc/USDMClient/getMarkPriceKlines.js new file mode 100644 index 0000000..c935707 --- /dev/null +++ b/examples/apidoc/USDMClient/getMarkPriceKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/markPriceKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L172 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMarkPriceKlines(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getMultiAssetsMode.js b/examples/apidoc/USDMClient/getMultiAssetsMode.js new file mode 100644 index 0000000..330ed58 --- /dev/null +++ b/examples/apidoc/USDMClient/getMultiAssetsMode.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/multiAssetsMargin + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L527 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiAssetsMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js b/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js new file mode 100644 index 0000000..5887d44 --- /dev/null +++ b/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/assetIndex + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L288 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getMultiAssetsModeAssetIndex(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js b/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js new file mode 100644 index 0000000..1a0c65a --- /dev/null +++ b/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/leverageBracket + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L521 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getNotionalAndLeverageBrackets(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getOpenInterest.js b/examples/apidoc/USDMClient/getOpenInterest.js new file mode 100644 index 0000000..5f0fee9 --- /dev/null +++ b/examples/apidoc/USDMClient/getOpenInterest.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/openInterest + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L248 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOpenInterest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getOpenInterestStatistics.js b/examples/apidoc/USDMClient/getOpenInterestStatistics.js new file mode 100644 index 0000000..1cfd88c --- /dev/null +++ b/examples/apidoc/USDMClient/getOpenInterestStatistics.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/openInterestHist + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L252 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOpenInterestStatistics(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getOrder.js b/examples/apidoc/USDMClient/getOrder.js new file mode 100644 index 0000000..d016d12 --- /dev/null +++ b/examples/apidoc/USDMClient/getOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L398 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getOrderBook.js b/examples/apidoc/USDMClient/getOrderBook.js new file mode 100644 index 0000000..548497a --- /dev/null +++ b/examples/apidoc/USDMClient/getOrderBook.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/depth + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L138 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderBook(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getOrderModifyHistory.js b/examples/apidoc/USDMClient/getOrderModifyHistory.js new file mode 100644 index 0000000..be21b25 --- /dev/null +++ b/examples/apidoc/USDMClient/getOrderModifyHistory.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/orderAmendment + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L355 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getOrderModifyHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js b/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js new file mode 100644 index 0000000..0e79469 --- /dev/null +++ b/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/pmAccountInfo + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L641 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPortfolioMarginProAccountInfo(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js b/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js new file mode 100644 index 0000000..16f62b9 --- /dev/null +++ b/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/positionMargin/history + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L464 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPositionMarginChangeHistory(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getPositions.js b/examples/apidoc/USDMClient/getPositions.js new file mode 100644 index 0000000..fc8e1ae --- /dev/null +++ b/examples/apidoc/USDMClient/getPositions.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v2/positionRisk + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L452 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPositions(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getPositionsV3.js b/examples/apidoc/USDMClient/getPositionsV3.js new file mode 100644 index 0000000..c5f241c --- /dev/null +++ b/examples/apidoc/USDMClient/getPositionsV3.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v3/positionRisk + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L456 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getPositionsV3(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getPremiumIndexKlines.js b/examples/apidoc/USDMClient/getPremiumIndexKlines.js new file mode 100644 index 0000000..9bfaf75 --- /dev/null +++ b/examples/apidoc/USDMClient/getPremiumIndexKlines.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/premiumIndexKlines + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L176 + +const client = new USDMClient({ + 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/USDMClient/getQuarterlyContractSettlementPrices.js b/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js new file mode 100644 index 0000000..e89b89f --- /dev/null +++ b/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/delivery-price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L242 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getQuarterlyContractSettlementPrices(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getRecentTrades.js b/examples/apidoc/USDMClient/getRecentTrades.js new file mode 100644 index 0000000..bc43479 --- /dev/null +++ b/examples/apidoc/USDMClient/getRecentTrades.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/trades + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L142 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getRecentTrades(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js b/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js new file mode 100644 index 0000000..7c20b86 --- /dev/null +++ b/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/ticker/bookTicker + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L236 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolOrderBookTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getSymbolPriceTicker.js b/examples/apidoc/USDMClient/getSymbolPriceTicker.js new file mode 100644 index 0000000..e945577 --- /dev/null +++ b/examples/apidoc/USDMClient/getSymbolPriceTicker.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/ticker/price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L224 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolPriceTicker(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js b/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js new file mode 100644 index 0000000..7d0f5af --- /dev/null +++ b/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v2/ticker/price + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L230 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getSymbolPriceTickerV2(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getTakerBuySellVolume.js b/examples/apidoc/USDMClient/getTakerBuySellVolume.js new file mode 100644 index 0000000..028c32d --- /dev/null +++ b/examples/apidoc/USDMClient/getTakerBuySellVolume.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/takerlongshortRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L276 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTakerBuySellVolume(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js b/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js new file mode 100644 index 0000000..20a3b6d --- /dev/null +++ b/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/topLongShortAccountRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L264 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTopTradersLongShortAccountRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js b/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js new file mode 100644 index 0000000..da8f232 --- /dev/null +++ b/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: futures/data/topLongShortPositionRatio + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L258 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getTopTradersLongShortPositionRatio(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/getUserForceOrders.js b/examples/apidoc/USDMClient/getUserForceOrders.js new file mode 100644 index 0000000..6135c15 --- /dev/null +++ b/examples/apidoc/USDMClient/getUserForceOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/rateLimit/order + // METHOD: GET + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L514 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.getUserForceOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js new file mode 100644 index 0000000..f40f29a --- /dev/null +++ b/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/listenKey + // METHOD: PUT + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L772 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.keepAliveFuturesUserDataListenKey(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/modifyMultipleOrders.js b/examples/apidoc/USDMClient/modifyMultipleOrders.js new file mode 100644 index 0000000..bcca59b --- /dev/null +++ b/examples/apidoc/USDMClient/modifyMultipleOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/batchOrders + // METHOD: PUT + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L347 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.modifyMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/modifyOrder.js b/examples/apidoc/USDMClient/modifyOrder.js new file mode 100644 index 0000000..ed4743f --- /dev/null +++ b/examples/apidoc/USDMClient/modifyOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order + // METHOD: PUT + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L341 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.modifyOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setBNBBurnEnabled.js b/examples/apidoc/USDMClient/setBNBBurnEnabled.js new file mode 100644 index 0000000..e511b37 --- /dev/null +++ b/examples/apidoc/USDMClient/setBNBBurnEnabled.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/feeBurn + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L584 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setBNBBurnEnabled(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js b/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js new file mode 100644 index 0000000..664ce16 --- /dev/null +++ b/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/apiReferral/customization + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L670 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setBrokerCustomIdForClient(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js b/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js new file mode 100644 index 0000000..99c8e67 --- /dev/null +++ b/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/countdownCancelAll + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L392 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setCancelOrdersOnTimeout(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setIsolatedPositionMargin.js b/examples/apidoc/USDMClient/setIsolatedPositionMargin.js new file mode 100644 index 0000000..a78551c --- /dev/null +++ b/examples/apidoc/USDMClient/setIsolatedPositionMargin.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/positionMargin + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L442 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setIsolatedPositionMargin(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setLeverage.js b/examples/apidoc/USDMClient/setLeverage.js new file mode 100644 index 0000000..7906188 --- /dev/null +++ b/examples/apidoc/USDMClient/setLeverage.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/leverage + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L432 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setLeverage(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setMarginType.js b/examples/apidoc/USDMClient/setMarginType.js new file mode 100644 index 0000000..d5c1f8b --- /dev/null +++ b/examples/apidoc/USDMClient/setMarginType.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/marginType + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L424 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setMarginType(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setMultiAssetsMode.js b/examples/apidoc/USDMClient/setMultiAssetsMode.js new file mode 100644 index 0000000..38e3e43 --- /dev/null +++ b/examples/apidoc/USDMClient/setMultiAssetsMode.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/multiAssetsMargin + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L436 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setMultiAssetsMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/setPositionMode.js b/examples/apidoc/USDMClient/setPositionMode.js new file mode 100644 index 0000000..367103d --- /dev/null +++ b/examples/apidoc/USDMClient/setPositionMode.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/positionSide/dual + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L428 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.setPositionMode(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/submitConvertQuoteRequest.js b/examples/apidoc/USDMClient/submitConvertQuoteRequest.js new file mode 100644 index 0000000..3366589 --- /dev/null +++ b/examples/apidoc/USDMClient/submitConvertQuoteRequest.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/convert/getQuote + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L614 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitConvertQuoteRequest(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/submitMultipleOrders.js b/examples/apidoc/USDMClient/submitMultipleOrders.js new file mode 100644 index 0000000..ce7f640 --- /dev/null +++ b/examples/apidoc/USDMClient/submitMultipleOrders.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/batchOrders + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L324 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitMultipleOrders(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/submitNewOrder.js b/examples/apidoc/USDMClient/submitNewOrder.js new file mode 100644 index 0000000..7b1dc5a --- /dev/null +++ b/examples/apidoc/USDMClient/submitNewOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L314 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.submitNewOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/testConnectivity.js b/examples/apidoc/USDMClient/testConnectivity.js new file mode 100644 index 0000000..bcf0119 --- /dev/null +++ b/examples/apidoc/USDMClient/testConnectivity.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/ping + // METHOD: GET + // PUBLIC: YES + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L130 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.testConnectivity(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/examples/apidoc/USDMClient/testOrder.js b/examples/apidoc/USDMClient/testOrder.js new file mode 100644 index 0000000..53cc5bc --- /dev/null +++ b/examples/apidoc/USDMClient/testOrder.js @@ -0,0 +1,19 @@ +const { USDMClient } = require('binance'); + + // ENDPOINT: fapi/v1/order/test + // METHOD: POST + // PUBLIC: NO + // Link to function: https://github.com/tiagosiebler/binance/blob/master/src/usdm-client.ts#L596 + +const client = new USDMClient({ + apiKey: 'insert_api_key_here', + apiSecret: 'insert_api_secret_here', +}); + +client.testOrder(params) + .then(response => { + console.log(response); + }) + .catch(error => { + console.error(error); + }); diff --git a/package-lock.json b/package-lock.json index 2f55492..a1c7ba3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "binance", - "version": "2.13.7", + "version": "2.13.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "binance", - "version": "2.13.7", + "version": "2.13.8", "license": "MIT", "dependencies": { "axios": "^1.6.2", diff --git a/package.json b/package.json index 651eab8..1e496ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binance", - "version": "2.13.7", + "version": "2.13.8", "description": "Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -48,8 +48,8 @@ }, "optionalDependencies": { "https-proxy-agent": "^6.1.0", - "ts-loader": "^8.0.11", "source-map-loader": "^2.0.0", + "ts-loader": "^8.0.11", "webpack": "^5.4.0" }, "keywords": [