diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index e0375617..13f3ce5c 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -22,6 +22,7 @@ List of clients: - [main-client](#main-clientts) - [usdm-client](#usdm-clientts) - [coinm-client](#coinm-clientts) +- [portfolio-client](#portfolio-clientts) If anything is missing or wrong, please open an issue or let us know in our [Node.js Traders](https://t.me/nodetraders) telegram group! @@ -650,4 +651,111 @@ This table includes all endpoints from the official Exchange API docs and corres | [getBrokerTradeDetail()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L661) | :closed_lock_with_key: | GET | `dapi/v1/apiReferral/traderSummary` | | [getFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L681) | | POST | `dapi/v1/listenKey` | | [keepAliveFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L685) | | PUT | `dapi/v1/listenKey` | -| [closeFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L689) | | DELETE | `dapi/v1/listenKey` | \ No newline at end of file +| [closeFuturesUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L689) | | DELETE | `dapi/v1/listenKey` | + +# portfolio-client.ts + +This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [portfolio-client.ts](/src/portfolio-client.ts). + +| Function | AUTH | HTTP Method | Endpoint | +| -------- | :------: | :------: | -------- | +| [testConnectivity()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L161) | | GET | `papi/v1/ping` | +| [submitNewUMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L171) | :closed_lock_with_key: | POST | `papi/v1/um/order` | +| [submitNewUMConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L178) | :closed_lock_with_key: | POST | `papi/v1/um/conditional/order` | +| [submitNewCMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L185) | :closed_lock_with_key: | POST | `papi/v1/cm/order` | +| [submitNewCMConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L192) | :closed_lock_with_key: | POST | `papi/v1/cm/conditional/order` | +| [submitNewMarginOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L199) | :closed_lock_with_key: | POST | `papi/v1/margin/order` | +| [submitMarginLoan()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L206) | :closed_lock_with_key: | POST | `papi/v1/marginLoan` | +| [submitMarginRepay()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L212) | :closed_lock_with_key: | POST | `papi/v1/repayLoan` | +| [submitNewMarginOCO()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L218) | :closed_lock_with_key: | POST | `papi/v1/margin/order/oco` | +| [cancelUMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L227) | :closed_lock_with_key: | DELETE | `papi/v1/um/order` | +| [cancelAllUMOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L233) | :closed_lock_with_key: | DELETE | `papi/v1/um/allOpenOrders` | +| [cancelUMConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L240) | :closed_lock_with_key: | DELETE | `papi/v1/um/conditional/order` | +| [cancelAllUMConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L246) | :closed_lock_with_key: | DELETE | `papi/v1/um/conditional/allOpenOrders` | +| [cancelCMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L253) | :closed_lock_with_key: | DELETE | `papi/v1/cm/order` | +| [cancelAllCMOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L259) | :closed_lock_with_key: | DELETE | `papi/v1/cm/allOpenOrders` | +| [cancelCMConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L266) | :closed_lock_with_key: | DELETE | `papi/v1/cm/conditional/order` | +| [cancelAllCMConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L272) | :closed_lock_with_key: | DELETE | `papi/v1/cm/conditional/allOpenOrders` | +| [cancelMarginOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L279) | :closed_lock_with_key: | DELETE | `papi/v1/margin/order` | +| [cancelMarginOCO()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L285) | :closed_lock_with_key: | DELETE | `papi/v1/margin/orderList` | +| [cancelAllMarginOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L291) | :closed_lock_with_key: | DELETE | `papi/v1/margin/allOpenOrders` | +| [modifyUMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L297) | :closed_lock_with_key: | PUT | `papi/v1/um/order` | +| [modifyCMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L303) | :closed_lock_with_key: | PUT | `papi/v1/cm/order` | +| [getUMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L309) | :closed_lock_with_key: | GET | `papi/v1/um/order` | +| [getAllUMOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L313) | :closed_lock_with_key: | GET | `papi/v1/um/allOrders` | +| [getUMOpenOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L319) | :closed_lock_with_key: | GET | `papi/v1/um/openOrder` | +| [getAllUMOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L325) | :closed_lock_with_key: | GET | `papi/v1/um/openOrders` | +| [getAllUMConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L329) | :closed_lock_with_key: | GET | `papi/v1/um/conditional/allOrders` | +| [getUMOpenConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L335) | :closed_lock_with_key: | GET | `papi/v1/um/conditional/openOrders` | +| [getUMOpenConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L341) | :closed_lock_with_key: | GET | `papi/v1/um/conditional/openOrder` | +| [getUMConditionalOrderHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L347) | :closed_lock_with_key: | GET | `papi/v1/um/conditional/orderHistory` | +| [getCMOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L353) | :closed_lock_with_key: | GET | `papi/v1/cm/order` | +| [getAllCMOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L357) | :closed_lock_with_key: | GET | `papi/v1/cm/allOrders` | +| [getCMOpenOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L363) | :closed_lock_with_key: | GET | `papi/v1/cm/openOrder` | +| [getAllCMOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L369) | :closed_lock_with_key: | GET | `papi/v1/cm/openOrders` | +| [getCMOpenConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L376) | :closed_lock_with_key: | GET | `papi/v1/cm/conditional/openOrders` | +| [getCMOpenConditionalOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L382) | :closed_lock_with_key: | GET | `papi/v1/cm/conditional/openOrder` | +| [getAllCMConditionalOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L390) | :closed_lock_with_key: | GET | `papi/v1/cm/conditional/allOrders` | +| [getCMConditionalOrderHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L396) | :closed_lock_with_key: | GET | `papi/v1/cm/conditional/orderHistory` | +| [getUMForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L402) | :closed_lock_with_key: | GET | `papi/v1/um/forceOrders` | +| [getCMForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L408) | :closed_lock_with_key: | GET | `papi/v1/cm/forceOrders` | +| [getUMOrderModificationHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L414) | :closed_lock_with_key: | GET | `papi/v1/um/orderAmendment` | +| [getCMOrderModificationHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L420) | :closed_lock_with_key: | GET | `papi/v1/cm/orderAmendment` | +| [getMarginForceOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L426) | :closed_lock_with_key: | GET | `papi/v1/margin/forceOrders` | +| [getUMTrades()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L433) | :closed_lock_with_key: | GET | `papi/v1/um/userTrades` | +| [getCMTrades()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L437) | :closed_lock_with_key: | GET | `papi/v1/cm/userTrades` | +| [getUMADLQuantile()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L441) | :closed_lock_with_key: | GET | `papi/v1/um/adlQuantile` | +| [getCMADLQuantile()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L450) | :closed_lock_with_key: | GET | `papi/v1/cm/adlQuantile` | +| [toggleUMFeeBurn()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L459) | :closed_lock_with_key: | POST | `papi/v1/um/feeBurn` | +| [getUMFeeBurnStatus()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L465) | :closed_lock_with_key: | GET | `papi/v1/um/feeBurn` | +| [getMarginOrder()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L469) | :closed_lock_with_key: | GET | `papi/v1/margin/order` | +| [getMarginOpenOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L475) | :closed_lock_with_key: | GET | `papi/v1/margin/openOrders` | +| [getAllMarginOrders()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L481) | :closed_lock_with_key: | GET | `papi/v1/margin/allOrders` | +| [getMarginOCO()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L487) | :closed_lock_with_key: | GET | `papi/v1/margin/orderList` | +| [getAllMarginOCO()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L493) | :closed_lock_with_key: | GET | `papi/v1/margin/allOrderList` | +| [getMarginOpenOCO()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L499) | :closed_lock_with_key: | GET | `papi/v1/margin/openOrderList` | +| [getMarginTrades()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L503) | :closed_lock_with_key: | GET | `papi/v1/margin/myTrades` | +| [repayMarginDebt()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L509) | :closed_lock_with_key: | POST | `papi/v1/margin/repay-debt` | +| [getBalance()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L521) | :closed_lock_with_key: | GET | `papi/v1/balance` | +| [getAccountInfo()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L525) | :closed_lock_with_key: | GET | `papi/v1/account` | +| [getMarginMaxBorrow()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L529) | :closed_lock_with_key: | GET | `papi/v1/margin/maxBorrowable` | +| [getMarginMaxWithdraw()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L536) | :closed_lock_with_key: | GET | `papi/v1/margin/maxWithdraw` | +| [getUMPosition()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L542) | :closed_lock_with_key: | GET | `papi/v1/um/positionRisk` | +| [getCMPosition()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L546) | :closed_lock_with_key: | GET | `papi/v1/cm/positionRisk` | +| [updateUMLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L553) | :closed_lock_with_key: | POST | `papi/v1/um/leverage` | +| [updateCMLeverage()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L561) | :closed_lock_with_key: | POST | `papi/v1/cm/leverage` | +| [updateUMPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L569) | :closed_lock_with_key: | POST | `papi/v1/um/positionSide/dual` | +| [updateCMPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L578) | :closed_lock_with_key: | POST | `papi/v1/cm/positionSide/dual` | +| [getUMPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L587) | :closed_lock_with_key: | GET | `papi/v1/um/positionSide/dual` | +| [getCMPositionMode()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L593) | :closed_lock_with_key: | GET | `papi/v1/cm/positionSide/dual` | +| [getUMLeverageBrackets()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L599) | :closed_lock_with_key: | GET | `papi/v1/um/leverageBracket` | +| [getCMLeverageBrackets()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L609) | :closed_lock_with_key: | GET | `papi/v1/cm/leverageBracket` | +| [getUMTradingStatus()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L618) | :closed_lock_with_key: | GET | `papi/v1/um/apiTradingStatus` | +| [getUMCommissionRate()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L624) | :closed_lock_with_key: | GET | `papi/v1/um/commissionRate` | +| [getCMCommissionRate()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L632) | :closed_lock_with_key: | GET | `papi/v1/cm/commissionRate` | +| [getMarginLoanRecords()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L640) | :closed_lock_with_key: | GET | `papi/v1/margin/marginLoan` | +| [getMarginRepayRecords()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L647) | :closed_lock_with_key: | GET | `papi/v1/margin/repayLoan` | +| [getAutoRepayFuturesStatus()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L654) | :closed_lock_with_key: | GET | `papi/v1/repay-futures-switch` | +| [updateAutoRepayFuturesStatus()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L660) | :closed_lock_with_key: | POST | `papi/v1/repay-futures-switch` | +| [getMarginInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L668) | :closed_lock_with_key: | GET | `papi/v1/margin/marginInterestHistory` | +| [repayFuturesNegativeBalance()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L675) | :closed_lock_with_key: | POST | `papi/v1/repay-futures-negative-balance` | +| [getPortfolioNegativeBalanceInterestHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L681) | :closed_lock_with_key: | GET | `papi/v1/portfolio/interest-history` | +| [autoCollectFunds()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L687) | :closed_lock_with_key: | POST | `papi/v1/auto-collection` | +| [transferAssetFuturesMargin()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L693) | :closed_lock_with_key: | POST | `papi/v1/asset-collection` | +| [transferBNB()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L699) | :closed_lock_with_key: | POST | `papi/v1/bnb-transfer` | +| [getUMIncomeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L708) | :closed_lock_with_key: | GET | `papi/v1/um/income` | +| [getCMIncomeHistory()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L714) | :closed_lock_with_key: | GET | `papi/v1/cm/income` | +| [getUMAccount()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L720) | :closed_lock_with_key: | GET | `papi/v1/um/account` | +| [getCMAccount()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L727) | :closed_lock_with_key: | GET | `papi/v1/cm/account` | +| [getUMAccountConfig()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L734) | :closed_lock_with_key: | GET | `papi/v1/um/accountConfig` | +| [getUMSymbolConfig()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L737) | :closed_lock_with_key: | GET | `papi/v1/um/symbolConfig` | +| [getUMAccountV2()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L743) | :closed_lock_with_key: | GET | `papi/v2/um/account` | +| [getUMTradeHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L750) | :closed_lock_with_key: | GET | `papi/v1/um/trade/asyn` | +| [getUMTradeDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L760) | :closed_lock_with_key: | GET | `papi/v1/um/trade/asyn/id` | +| [getUMOrderHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L766) | :closed_lock_with_key: | GET | `papi/v1/um/order/asyn` | +| [getUMOrderDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L776) | :closed_lock_with_key: | GET | `papi/v1/um/order/asyn/id` | +| [getUMTransactionHistoryDownloadId()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L782) | :closed_lock_with_key: | GET | `papi/v1/um/income/asyn` | +| [getUMTransactionDownloadLink()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L792) | :closed_lock_with_key: | GET | `papi/v1/um/income/asyn/id` | +| [getPMUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L827) | | POST | `papi/v1/listenKey` | +| [keepAlivePMUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L831) | | PUT | `papi/v1/listenKey` | +| [closePMUserDataListenKey()](https://github.com/tiagosiebler/binance/blob/master/src/portfolio-client.ts#L835) | | DELETE | `papi/v1/listenKey` | \ No newline at end of file diff --git a/examples/apidoc/CoinMClient/cancelAllOpenOrders.js b/examples/apidoc/CoinMClient/cancelAllOpenOrders.js index f88cba33..c7d5bd9d 100644 --- a/examples/apidoc/CoinMClient/cancelAllOpenOrders.js +++ b/examples/apidoc/CoinMClient/cancelAllOpenOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelAllOpenOrders(params) diff --git a/examples/apidoc/CoinMClient/cancelMultipleOrders.js b/examples/apidoc/CoinMClient/cancelMultipleOrders.js index 5fc6c1f0..afe3eb4f 100644 --- a/examples/apidoc/CoinMClient/cancelMultipleOrders.js +++ b/examples/apidoc/CoinMClient/cancelMultipleOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelMultipleOrders(params) diff --git a/examples/apidoc/CoinMClient/cancelOrder.js b/examples/apidoc/CoinMClient/cancelOrder.js index cdea83b4..eccd7705 100644 --- a/examples/apidoc/CoinMClient/cancelOrder.js +++ b/examples/apidoc/CoinMClient/cancelOrder.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelOrder(params) diff --git a/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js index c718fbc9..e4c0f87e 100644 --- a/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js +++ b/examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.closeFuturesUserDataListenKey(params) diff --git a/examples/apidoc/CoinMClient/get24hrChangeStatistics.js b/examples/apidoc/CoinMClient/get24hrChangeStatistics.js index c53ea013..ed322637 100644 --- a/examples/apidoc/CoinMClient/get24hrChangeStatistics.js +++ b/examples/apidoc/CoinMClient/get24hrChangeStatistics.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.get24hrChangeStatistics(params) diff --git a/examples/apidoc/CoinMClient/get24hrChangeStatististics.js b/examples/apidoc/CoinMClient/get24hrChangeStatististics.js index 86435205..f0fdc1a8 100644 --- a/examples/apidoc/CoinMClient/get24hrChangeStatististics.js +++ b/examples/apidoc/CoinMClient/get24hrChangeStatististics.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.get24hrChangeStatististics(params) diff --git a/examples/apidoc/CoinMClient/getADLQuantileEstimation.js b/examples/apidoc/CoinMClient/getADLQuantileEstimation.js index 46b27234..3dd7a3bf 100644 --- a/examples/apidoc/CoinMClient/getADLQuantileEstimation.js +++ b/examples/apidoc/CoinMClient/getADLQuantileEstimation.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getADLQuantileEstimation(params) diff --git a/examples/apidoc/CoinMClient/getAccountComissionRate.js b/examples/apidoc/CoinMClient/getAccountComissionRate.js index 965fc8fe..c5d31772 100644 --- a/examples/apidoc/CoinMClient/getAccountComissionRate.js +++ b/examples/apidoc/CoinMClient/getAccountComissionRate.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountComissionRate(params) diff --git a/examples/apidoc/CoinMClient/getAccountCommissionRate.js b/examples/apidoc/CoinMClient/getAccountCommissionRate.js index dcbc5544..08eb7d54 100644 --- a/examples/apidoc/CoinMClient/getAccountCommissionRate.js +++ b/examples/apidoc/CoinMClient/getAccountCommissionRate.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountCommissionRate(params) diff --git a/examples/apidoc/CoinMClient/getAccountInformation.js b/examples/apidoc/CoinMClient/getAccountInformation.js index 98576ac6..d324542d 100644 --- a/examples/apidoc/CoinMClient/getAccountInformation.js +++ b/examples/apidoc/CoinMClient/getAccountInformation.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountInformation(params) diff --git a/examples/apidoc/CoinMClient/getAccountTrades.js b/examples/apidoc/CoinMClient/getAccountTrades.js index abb888db..2144be3e 100644 --- a/examples/apidoc/CoinMClient/getAccountTrades.js +++ b/examples/apidoc/CoinMClient/getAccountTrades.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountTrades(params) diff --git a/examples/apidoc/CoinMClient/getAggregateTrades.js b/examples/apidoc/CoinMClient/getAggregateTrades.js index 37952aff..ecc1f5c9 100644 --- a/examples/apidoc/CoinMClient/getAggregateTrades.js +++ b/examples/apidoc/CoinMClient/getAggregateTrades.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAggregateTrades(params) diff --git a/examples/apidoc/CoinMClient/getAllOpenOrders.js b/examples/apidoc/CoinMClient/getAllOpenOrders.js index a4195b96..33c7de50 100644 --- a/examples/apidoc/CoinMClient/getAllOpenOrders.js +++ b/examples/apidoc/CoinMClient/getAllOpenOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOpenOrders(params) diff --git a/examples/apidoc/CoinMClient/getAllOrders.js b/examples/apidoc/CoinMClient/getAllOrders.js index c0fda0b5..808cc68c 100644 --- a/examples/apidoc/CoinMClient/getAllOrders.js +++ b/examples/apidoc/CoinMClient/getAllOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOrders(params) diff --git a/examples/apidoc/CoinMClient/getBalance.js b/examples/apidoc/CoinMClient/getBalance.js index cc61d4d8..bb27d92e 100644 --- a/examples/apidoc/CoinMClient/getBalance.js +++ b/examples/apidoc/CoinMClient/getBalance.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBalance(params) diff --git a/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js b/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js index ad033b82..0931ff77 100644 --- a/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js +++ b/examples/apidoc/CoinMClient/getBrokerClientCustomIds.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerClientCustomIds(params) diff --git a/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js b/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js index 155a1336..d1a1c072 100644 --- a/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js +++ b/examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerIfNewFuturesUser(params) diff --git a/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js b/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js index bb59b065..f9d4d284 100644 --- a/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js +++ b/examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerRebateDataOverview(params) diff --git a/examples/apidoc/CoinMClient/getBrokerRebateVolume.js b/examples/apidoc/CoinMClient/getBrokerRebateVolume.js index 8f1482e7..202b09f5 100644 --- a/examples/apidoc/CoinMClient/getBrokerRebateVolume.js +++ b/examples/apidoc/CoinMClient/getBrokerRebateVolume.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerRebateVolume(params) diff --git a/examples/apidoc/CoinMClient/getBrokerTradeDetail.js b/examples/apidoc/CoinMClient/getBrokerTradeDetail.js index 6a381b2a..63c890d5 100644 --- a/examples/apidoc/CoinMClient/getBrokerTradeDetail.js +++ b/examples/apidoc/CoinMClient/getBrokerTradeDetail.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerTradeDetail(params) diff --git a/examples/apidoc/CoinMClient/getBrokerUserCustomId.js b/examples/apidoc/CoinMClient/getBrokerUserCustomId.js index 531f3f8e..249687ab 100644 --- a/examples/apidoc/CoinMClient/getBrokerUserCustomId.js +++ b/examples/apidoc/CoinMClient/getBrokerUserCustomId.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerUserCustomId(params) diff --git a/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js b/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js index a6fe6c58..afb69eb0 100644 --- a/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js +++ b/examples/apidoc/CoinMClient/getBrokerUserTradeVolume.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerUserTradeVolume(params) diff --git a/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js b/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js index eb1ced85..4403f29c 100644 --- a/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js +++ b/examples/apidoc/CoinMClient/getClassicPortfolioMarginAccount.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getClassicPortfolioMarginAccount(params) diff --git a/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js b/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js index 970cf355..7aa77cc2 100644 --- a/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js +++ b/examples/apidoc/CoinMClient/getClassicPortfolioMarginNotionalLimits.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getClassicPortfolioMarginNotionalLimits(params) diff --git a/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js b/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js index 7bf72ae5..62df5265 100644 --- a/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js +++ b/examples/apidoc/CoinMClient/getCompositeSymbolIndex.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCompositeSymbolIndex(params) diff --git a/examples/apidoc/CoinMClient/getContinuousContractKlines.js b/examples/apidoc/CoinMClient/getContinuousContractKlines.js index 76ea56fe..3c74136d 100644 --- a/examples/apidoc/CoinMClient/getContinuousContractKlines.js +++ b/examples/apidoc/CoinMClient/getContinuousContractKlines.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getContinuousContractKlines(params) diff --git a/examples/apidoc/CoinMClient/getCurrentOpenOrder.js b/examples/apidoc/CoinMClient/getCurrentOpenOrder.js index e9cbdc2a..45577c80 100644 --- a/examples/apidoc/CoinMClient/getCurrentOpenOrder.js +++ b/examples/apidoc/CoinMClient/getCurrentOpenOrder.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCurrentOpenOrder(params) diff --git a/examples/apidoc/CoinMClient/getCurrentPositionMode.js b/examples/apidoc/CoinMClient/getCurrentPositionMode.js index fddce113..bb115b97 100644 --- a/examples/apidoc/CoinMClient/getCurrentPositionMode.js +++ b/examples/apidoc/CoinMClient/getCurrentPositionMode.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCurrentPositionMode(params) diff --git a/examples/apidoc/CoinMClient/getDownloadIdForFuturesOrderHistory.js b/examples/apidoc/CoinMClient/getDownloadIdForFuturesOrderHistory.js index b768607f..7329223f 100644 --- a/examples/apidoc/CoinMClient/getDownloadIdForFuturesOrderHistory.js +++ b/examples/apidoc/CoinMClient/getDownloadIdForFuturesOrderHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDownloadIdForFuturesOrderHistory(params) diff --git a/examples/apidoc/CoinMClient/getDownloadIdForFuturesTradeHistory.js b/examples/apidoc/CoinMClient/getDownloadIdForFuturesTradeHistory.js index 5bdb6541..d531342d 100644 --- a/examples/apidoc/CoinMClient/getDownloadIdForFuturesTradeHistory.js +++ b/examples/apidoc/CoinMClient/getDownloadIdForFuturesTradeHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDownloadIdForFuturesTradeHistory(params) diff --git a/examples/apidoc/CoinMClient/getDownloadIdForFuturesTransactionHistory.js b/examples/apidoc/CoinMClient/getDownloadIdForFuturesTransactionHistory.js index 5c39bfb1..92061603 100644 --- a/examples/apidoc/CoinMClient/getDownloadIdForFuturesTransactionHistory.js +++ b/examples/apidoc/CoinMClient/getDownloadIdForFuturesTransactionHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDownloadIdForFuturesTransactionHistory(params) diff --git a/examples/apidoc/CoinMClient/getExchangeInfo.js b/examples/apidoc/CoinMClient/getExchangeInfo.js index 84f10f84..99e116c0 100644 --- a/examples/apidoc/CoinMClient/getExchangeInfo.js +++ b/examples/apidoc/CoinMClient/getExchangeInfo.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getExchangeInfo(params) diff --git a/examples/apidoc/CoinMClient/getForceOrders.js b/examples/apidoc/CoinMClient/getForceOrders.js index b5ba542a..c7e858b4 100644 --- a/examples/apidoc/CoinMClient/getForceOrders.js +++ b/examples/apidoc/CoinMClient/getForceOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getForceOrders(params) diff --git a/examples/apidoc/CoinMClient/getFundingRate.js b/examples/apidoc/CoinMClient/getFundingRate.js index defa62d7..e6735130 100644 --- a/examples/apidoc/CoinMClient/getFundingRate.js +++ b/examples/apidoc/CoinMClient/getFundingRate.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFundingRate(params) diff --git a/examples/apidoc/CoinMClient/getFundingRateHistory.js b/examples/apidoc/CoinMClient/getFundingRateHistory.js index 00a746c6..001d260c 100644 --- a/examples/apidoc/CoinMClient/getFundingRateHistory.js +++ b/examples/apidoc/CoinMClient/getFundingRateHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFundingRateHistory(params) diff --git a/examples/apidoc/CoinMClient/getFuturesOrderHistoryDownloadLink.js b/examples/apidoc/CoinMClient/getFuturesOrderHistoryDownloadLink.js index 8b105997..cf963899 100644 --- a/examples/apidoc/CoinMClient/getFuturesOrderHistoryDownloadLink.js +++ b/examples/apidoc/CoinMClient/getFuturesOrderHistoryDownloadLink.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesOrderHistoryDownloadLink(params) diff --git a/examples/apidoc/CoinMClient/getFuturesTradeHistoryDownloadLink.js b/examples/apidoc/CoinMClient/getFuturesTradeHistoryDownloadLink.js index 24b02ca3..9d4e33bb 100644 --- a/examples/apidoc/CoinMClient/getFuturesTradeHistoryDownloadLink.js +++ b/examples/apidoc/CoinMClient/getFuturesTradeHistoryDownloadLink.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTradeHistoryDownloadLink(params) diff --git a/examples/apidoc/CoinMClient/getFuturesTransactionHistoryDownloadLink.js b/examples/apidoc/CoinMClient/getFuturesTransactionHistoryDownloadLink.js index 31a95530..6198cdf4 100644 --- a/examples/apidoc/CoinMClient/getFuturesTransactionHistoryDownloadLink.js +++ b/examples/apidoc/CoinMClient/getFuturesTransactionHistoryDownloadLink.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTransactionHistoryDownloadLink(params) diff --git a/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js index bb197a15..4b29eeb7 100644 --- a/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js +++ b/examples/apidoc/CoinMClient/getFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesUserDataListenKey(params) diff --git a/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js b/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js index d15522ac..e007d6a5 100644 --- a/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js +++ b/examples/apidoc/CoinMClient/getGlobalLongShortAccountRatio.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getGlobalLongShortAccountRatio(params) diff --git a/examples/apidoc/CoinMClient/getHistoricalTrades.js b/examples/apidoc/CoinMClient/getHistoricalTrades.js index 29b2a353..3252ed2a 100644 --- a/examples/apidoc/CoinMClient/getHistoricalTrades.js +++ b/examples/apidoc/CoinMClient/getHistoricalTrades.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHistoricalTrades(params) diff --git a/examples/apidoc/CoinMClient/getIncomeHistory.js b/examples/apidoc/CoinMClient/getIncomeHistory.js index 75507536..a4ebd186 100644 --- a/examples/apidoc/CoinMClient/getIncomeHistory.js +++ b/examples/apidoc/CoinMClient/getIncomeHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIncomeHistory(params) diff --git a/examples/apidoc/CoinMClient/getIndexPriceConstituents.js b/examples/apidoc/CoinMClient/getIndexPriceConstituents.js index e73eae97..ba1cdb77 100644 --- a/examples/apidoc/CoinMClient/getIndexPriceConstituents.js +++ b/examples/apidoc/CoinMClient/getIndexPriceConstituents.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIndexPriceConstituents(params) diff --git a/examples/apidoc/CoinMClient/getIndexPriceKlines.js b/examples/apidoc/CoinMClient/getIndexPriceKlines.js index c907a8f7..a8ebe574 100644 --- a/examples/apidoc/CoinMClient/getIndexPriceKlines.js +++ b/examples/apidoc/CoinMClient/getIndexPriceKlines.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIndexPriceKlines(params) diff --git a/examples/apidoc/CoinMClient/getKlines.js b/examples/apidoc/CoinMClient/getKlines.js index 586ed8ed..b624a9a8 100644 --- a/examples/apidoc/CoinMClient/getKlines.js +++ b/examples/apidoc/CoinMClient/getKlines.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getKlines(params) diff --git a/examples/apidoc/CoinMClient/getMarkPrice.js b/examples/apidoc/CoinMClient/getMarkPrice.js index e8bc7266..51dd6f20 100644 --- a/examples/apidoc/CoinMClient/getMarkPrice.js +++ b/examples/apidoc/CoinMClient/getMarkPrice.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarkPrice(params) diff --git a/examples/apidoc/CoinMClient/getMarkPriceKlines.js b/examples/apidoc/CoinMClient/getMarkPriceKlines.js index cfedc343..9f0a39da 100644 --- a/examples/apidoc/CoinMClient/getMarkPriceKlines.js +++ b/examples/apidoc/CoinMClient/getMarkPriceKlines.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarkPriceKlines(params) diff --git a/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js b/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js index af040230..bad99f83 100644 --- a/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js +++ b/examples/apidoc/CoinMClient/getNotionalAndLeverageBrackets.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNotionalAndLeverageBrackets(params) diff --git a/examples/apidoc/CoinMClient/getOpenInterest.js b/examples/apidoc/CoinMClient/getOpenInterest.js index 7f0863ca..65109ecc 100644 --- a/examples/apidoc/CoinMClient/getOpenInterest.js +++ b/examples/apidoc/CoinMClient/getOpenInterest.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOpenInterest(params) diff --git a/examples/apidoc/CoinMClient/getOpenInterestStatistics.js b/examples/apidoc/CoinMClient/getOpenInterestStatistics.js index 22579990..a99ac66e 100644 --- a/examples/apidoc/CoinMClient/getOpenInterestStatistics.js +++ b/examples/apidoc/CoinMClient/getOpenInterestStatistics.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOpenInterestStatistics(params) diff --git a/examples/apidoc/CoinMClient/getOrder.js b/examples/apidoc/CoinMClient/getOrder.js index 45bf03b6..c4b7bdbc 100644 --- a/examples/apidoc/CoinMClient/getOrder.js +++ b/examples/apidoc/CoinMClient/getOrder.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrder(params) diff --git a/examples/apidoc/CoinMClient/getOrderBook.js b/examples/apidoc/CoinMClient/getOrderBook.js index 4651d01b..1ed8ad2d 100644 --- a/examples/apidoc/CoinMClient/getOrderBook.js +++ b/examples/apidoc/CoinMClient/getOrderBook.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderBook(params) diff --git a/examples/apidoc/CoinMClient/getOrderModifyHistory.js b/examples/apidoc/CoinMClient/getOrderModifyHistory.js index 713751b9..5a4d7bcd 100644 --- a/examples/apidoc/CoinMClient/getOrderModifyHistory.js +++ b/examples/apidoc/CoinMClient/getOrderModifyHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderModifyHistory(params) diff --git a/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js b/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js index 6b278841..5bf5cf2f 100644 --- a/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js +++ b/examples/apidoc/CoinMClient/getPositionMarginChangeHistory.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPositionMarginChangeHistory(params) diff --git a/examples/apidoc/CoinMClient/getPositions.js b/examples/apidoc/CoinMClient/getPositions.js index f5b322b5..6e9ffa18 100644 --- a/examples/apidoc/CoinMClient/getPositions.js +++ b/examples/apidoc/CoinMClient/getPositions.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPositions(params) diff --git a/examples/apidoc/CoinMClient/getPremiumIndexKlines.js b/examples/apidoc/CoinMClient/getPremiumIndexKlines.js index 849a6336..9f0cdbdc 100644 --- a/examples/apidoc/CoinMClient/getPremiumIndexKlines.js +++ b/examples/apidoc/CoinMClient/getPremiumIndexKlines.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPremiumIndexKlines(params) diff --git a/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js b/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js index 41d944ed..303499fc 100644 --- a/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js +++ b/examples/apidoc/CoinMClient/getQuarterlyContractSettlementPrices.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getQuarterlyContractSettlementPrices(params) diff --git a/examples/apidoc/CoinMClient/getRecentTrades.js b/examples/apidoc/CoinMClient/getRecentTrades.js index 4bbf50d3..fcaf4e7e 100644 --- a/examples/apidoc/CoinMClient/getRecentTrades.js +++ b/examples/apidoc/CoinMClient/getRecentTrades.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRecentTrades(params) diff --git a/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js b/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js index 401ac90e..22dcee8e 100644 --- a/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js +++ b/examples/apidoc/CoinMClient/getSymbolOrderBookTicker.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolOrderBookTicker(params) diff --git a/examples/apidoc/CoinMClient/getSymbolPriceTicker.js b/examples/apidoc/CoinMClient/getSymbolPriceTicker.js index 959440f2..7bc1747d 100644 --- a/examples/apidoc/CoinMClient/getSymbolPriceTicker.js +++ b/examples/apidoc/CoinMClient/getSymbolPriceTicker.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolPriceTicker(params) diff --git a/examples/apidoc/CoinMClient/getTakerBuySellVolume.js b/examples/apidoc/CoinMClient/getTakerBuySellVolume.js index 899d41e7..8bc4978f 100644 --- a/examples/apidoc/CoinMClient/getTakerBuySellVolume.js +++ b/examples/apidoc/CoinMClient/getTakerBuySellVolume.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTakerBuySellVolume(params) diff --git a/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js b/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js index c5b443e4..9cb9fa2c 100644 --- a/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js +++ b/examples/apidoc/CoinMClient/getTopTradersLongShortAccountRatio.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTopTradersLongShortAccountRatio(params) diff --git a/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js b/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js index 28ce8aab..cae276c4 100644 --- a/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js +++ b/examples/apidoc/CoinMClient/getTopTradersLongShortPositionRatio.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTopTradersLongShortPositionRatio(params) diff --git a/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js b/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js index b9b14b65..b058bd16 100644 --- a/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js +++ b/examples/apidoc/CoinMClient/keepAliveFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.keepAliveFuturesUserDataListenKey(params) diff --git a/examples/apidoc/CoinMClient/modifyMultipleOrders.js b/examples/apidoc/CoinMClient/modifyMultipleOrders.js index 90873abd..362e6511 100644 --- a/examples/apidoc/CoinMClient/modifyMultipleOrders.js +++ b/examples/apidoc/CoinMClient/modifyMultipleOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.modifyMultipleOrders(params) diff --git a/examples/apidoc/CoinMClient/modifyOrder.js b/examples/apidoc/CoinMClient/modifyOrder.js index e554d5da..f9dcc8c9 100644 --- a/examples/apidoc/CoinMClient/modifyOrder.js +++ b/examples/apidoc/CoinMClient/modifyOrder.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.modifyOrder(params) diff --git a/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js b/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js index 63aa0b28..a7841909 100644 --- a/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js +++ b/examples/apidoc/CoinMClient/setBrokerCustomIdForClient.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setBrokerCustomIdForClient(params) diff --git a/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js b/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js index 961085ed..800ccd99 100644 --- a/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js +++ b/examples/apidoc/CoinMClient/setCancelOrdersOnTimeout.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setCancelOrdersOnTimeout(params) diff --git a/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js b/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js index 502589ab..a014f852 100644 --- a/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js +++ b/examples/apidoc/CoinMClient/setIsolatedPositionMargin.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setIsolatedPositionMargin(params) diff --git a/examples/apidoc/CoinMClient/setLeverage.js b/examples/apidoc/CoinMClient/setLeverage.js index 35342310..704acae4 100644 --- a/examples/apidoc/CoinMClient/setLeverage.js +++ b/examples/apidoc/CoinMClient/setLeverage.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setLeverage(params) diff --git a/examples/apidoc/CoinMClient/setMarginType.js b/examples/apidoc/CoinMClient/setMarginType.js index b78cacc5..070272c5 100644 --- a/examples/apidoc/CoinMClient/setMarginType.js +++ b/examples/apidoc/CoinMClient/setMarginType.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setMarginType(params) diff --git a/examples/apidoc/CoinMClient/setPositionMode.js b/examples/apidoc/CoinMClient/setPositionMode.js index 2d5dca29..0c2ac82d 100644 --- a/examples/apidoc/CoinMClient/setPositionMode.js +++ b/examples/apidoc/CoinMClient/setPositionMode.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setPositionMode(params) diff --git a/examples/apidoc/CoinMClient/submitMultipleOrders.js b/examples/apidoc/CoinMClient/submitMultipleOrders.js index cb8e8804..4add8ff7 100644 --- a/examples/apidoc/CoinMClient/submitMultipleOrders.js +++ b/examples/apidoc/CoinMClient/submitMultipleOrders.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitMultipleOrders(params) diff --git a/examples/apidoc/CoinMClient/submitNewOrder.js b/examples/apidoc/CoinMClient/submitNewOrder.js index 64a72b80..971c61d9 100644 --- a/examples/apidoc/CoinMClient/submitNewOrder.js +++ b/examples/apidoc/CoinMClient/submitNewOrder.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: NO const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewOrder(params) diff --git a/examples/apidoc/CoinMClient/testConnectivity.js b/examples/apidoc/CoinMClient/testConnectivity.js index 663d6d9e..927a0cef 100644 --- a/examples/apidoc/CoinMClient/testConnectivity.js +++ b/examples/apidoc/CoinMClient/testConnectivity.js @@ -7,8 +7,8 @@ const { CoinMClient } = require('binance'); // PUBLIC: YES const client = new CoinMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.testConnectivity(params) diff --git a/examples/apidoc/MainClient/acceptQuoteRequest.js b/examples/apidoc/MainClient/acceptQuoteRequest.js index 5e767874..0cc7f3e9 100644 --- a/examples/apidoc/MainClient/acceptQuoteRequest.js +++ b/examples/apidoc/MainClient/acceptQuoteRequest.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.acceptQuoteRequest(params) diff --git a/examples/apidoc/MainClient/addBSwapLiquidity.js b/examples/apidoc/MainClient/addBSwapLiquidity.js index b56324b3..c0e4c361 100644 --- a/examples/apidoc/MainClient/addBSwapLiquidity.js +++ b/examples/apidoc/MainClient/addBSwapLiquidity.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.addBSwapLiquidity(params) diff --git a/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js b/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js index eb0193e2..04cf3622 100644 --- a/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js +++ b/examples/apidoc/MainClient/adjustCryptoLoanFlexibleLTV.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.adjustCryptoLoanFlexibleLTV(params) diff --git a/examples/apidoc/MainClient/adjustCryptoLoanLTV.js b/examples/apidoc/MainClient/adjustCryptoLoanLTV.js index 697a8294..d056ceaa 100644 --- a/examples/apidoc/MainClient/adjustCryptoLoanLTV.js +++ b/examples/apidoc/MainClient/adjustCryptoLoanLTV.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.adjustCryptoLoanLTV(params) diff --git a/examples/apidoc/MainClient/bnbTransfer.js b/examples/apidoc/MainClient/bnbTransfer.js index bc2d8c0b..815c57b4 100644 --- a/examples/apidoc/MainClient/bnbTransfer.js +++ b/examples/apidoc/MainClient/bnbTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.bnbTransfer(params) diff --git a/examples/apidoc/MainClient/borrowCryptoLoan.js b/examples/apidoc/MainClient/borrowCryptoLoan.js index f9c3a395..594c8e3e 100644 --- a/examples/apidoc/MainClient/borrowCryptoLoan.js +++ b/examples/apidoc/MainClient/borrowCryptoLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.borrowCryptoLoan(params) diff --git a/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js b/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js index ecfa33d3..9e8e155d 100644 --- a/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js +++ b/examples/apidoc/MainClient/borrowCryptoLoanFlexible.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.borrowCryptoLoanFlexible(params) diff --git a/examples/apidoc/MainClient/borrowVipLoan.js b/examples/apidoc/MainClient/borrowVipLoan.js index 176a63bd..439afc6d 100644 --- a/examples/apidoc/MainClient/borrowVipLoan.js +++ b/examples/apidoc/MainClient/borrowVipLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.borrowVipLoan(params) diff --git a/examples/apidoc/MainClient/cancelAlgoOrder.js b/examples/apidoc/MainClient/cancelAlgoOrder.js index 56f791be..2f486a04 100644 --- a/examples/apidoc/MainClient/cancelAlgoOrder.js +++ b/examples/apidoc/MainClient/cancelAlgoOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelAlgoOrder(params) diff --git a/examples/apidoc/MainClient/cancelAllSymbolOrders.js b/examples/apidoc/MainClient/cancelAllSymbolOrders.js index 243a7dbb..5d2685ca 100644 --- a/examples/apidoc/MainClient/cancelAllSymbolOrders.js +++ b/examples/apidoc/MainClient/cancelAllSymbolOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelAllSymbolOrders(params) diff --git a/examples/apidoc/MainClient/cancelConvertLimitOrder.js b/examples/apidoc/MainClient/cancelConvertLimitOrder.js index 80c4db60..34cc567f 100644 --- a/examples/apidoc/MainClient/cancelConvertLimitOrder.js +++ b/examples/apidoc/MainClient/cancelConvertLimitOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelConvertLimitOrder(params) diff --git a/examples/apidoc/MainClient/cancelHashrateResaleConfig.js b/examples/apidoc/MainClient/cancelHashrateResaleConfig.js index c7b2361d..96c65b1b 100644 --- a/examples/apidoc/MainClient/cancelHashrateResaleConfig.js +++ b/examples/apidoc/MainClient/cancelHashrateResaleConfig.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelHashrateResaleConfig(params) diff --git a/examples/apidoc/MainClient/cancelOCO.js b/examples/apidoc/MainClient/cancelOCO.js index b14f70dc..251af5ba 100644 --- a/examples/apidoc/MainClient/cancelOCO.js +++ b/examples/apidoc/MainClient/cancelOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelOCO(params) diff --git a/examples/apidoc/MainClient/cancelOrder.js b/examples/apidoc/MainClient/cancelOrder.js index db12a06b..a60c44b9 100644 --- a/examples/apidoc/MainClient/cancelOrder.js +++ b/examples/apidoc/MainClient/cancelOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelOrder(params) diff --git a/examples/apidoc/MainClient/cancelSpotAlgoOrder.js b/examples/apidoc/MainClient/cancelSpotAlgoOrder.js index d9a0bd3f..a74968ec 100644 --- a/examples/apidoc/MainClient/cancelSpotAlgoOrder.js +++ b/examples/apidoc/MainClient/cancelSpotAlgoOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelSpotAlgoOrder(params) diff --git a/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js b/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js index 633fc0ab..a5b71264 100644 --- a/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js +++ b/examples/apidoc/MainClient/changeComissionBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.changeComissionBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js b/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js index 6a6f4c82..d242a3c5 100644 --- a/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js +++ b/examples/apidoc/MainClient/changeFixedAndActivityPositionToDailyPosition.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.changeFixedAndActivityPositionToDailyPosition(params) diff --git a/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js index 6ef1dcdf..fc096fde 100644 --- a/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/changePermissionApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.changePermissionApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/checkVipCollateralAccount.js b/examples/apidoc/MainClient/checkVipCollateralAccount.js index 08498250..0e6850d1 100644 --- a/examples/apidoc/MainClient/checkVipCollateralAccount.js +++ b/examples/apidoc/MainClient/checkVipCollateralAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.checkVipCollateralAccount(params) diff --git a/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js index 7372380a..9cb61ccd 100644 --- a/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/closeIsolatedMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.closeIsolatedMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/closeMarginUserDataListenKey.js b/examples/apidoc/MainClient/closeMarginUserDataListenKey.js index 70ce9c10..3b8d3885 100644 --- a/examples/apidoc/MainClient/closeMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/closeMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.closeMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/closeSpotUserDataListenKey.js b/examples/apidoc/MainClient/closeSpotUserDataListenKey.js index 1e0fa30e..d646bec0 100644 --- a/examples/apidoc/MainClient/closeSpotUserDataListenKey.js +++ b/examples/apidoc/MainClient/closeSpotUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.closeSpotUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/convertBUSD.js b/examples/apidoc/MainClient/convertBUSD.js index f849ec4b..08cbc486 100644 --- a/examples/apidoc/MainClient/convertBUSD.js +++ b/examples/apidoc/MainClient/convertBUSD.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.convertBUSD(params) diff --git a/examples/apidoc/MainClient/convertDustToBnb.js b/examples/apidoc/MainClient/convertDustToBnb.js index 6d23ea86..272f61ed 100644 --- a/examples/apidoc/MainClient/convertDustToBnb.js +++ b/examples/apidoc/MainClient/convertDustToBnb.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.convertDustToBnb(params) diff --git a/examples/apidoc/MainClient/convertQuoteRequest.js b/examples/apidoc/MainClient/convertQuoteRequest.js index c47703d1..c9fbf4de 100644 --- a/examples/apidoc/MainClient/convertQuoteRequest.js +++ b/examples/apidoc/MainClient/convertQuoteRequest.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.convertQuoteRequest(params) diff --git a/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js index 30d76a9e..5b3ac9ec 100644 --- a/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/createApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/createBrokerSubAccount.js b/examples/apidoc/MainClient/createBrokerSubAccount.js index 34af62cb..68f1a6d9 100644 --- a/examples/apidoc/MainClient/createBrokerSubAccount.js +++ b/examples/apidoc/MainClient/createBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/createDualTokenGiftCard.js b/examples/apidoc/MainClient/createDualTokenGiftCard.js index 61cb5097..272a2e3e 100644 --- a/examples/apidoc/MainClient/createDualTokenGiftCard.js +++ b/examples/apidoc/MainClient/createDualTokenGiftCard.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createDualTokenGiftCard(params) diff --git a/examples/apidoc/MainClient/createGiftCard.js b/examples/apidoc/MainClient/createGiftCard.js index 6d9d05a9..7f0dcd9f 100644 --- a/examples/apidoc/MainClient/createGiftCard.js +++ b/examples/apidoc/MainClient/createGiftCard.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createGiftCard(params) diff --git a/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js index d35b0e37..eeb2953b 100644 --- a/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js +++ b/examples/apidoc/MainClient/createMarginSpecialLowLatencyKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createMarginSpecialLowLatencyKey(params) diff --git a/examples/apidoc/MainClient/createVirtualSubAccount.js b/examples/apidoc/MainClient/createVirtualSubAccount.js index 6834c897..f7f480db 100644 --- a/examples/apidoc/MainClient/createVirtualSubAccount.js +++ b/examples/apidoc/MainClient/createVirtualSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.createVirtualSubAccount(params) diff --git a/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js b/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js index 8e602485..a6596d8d 100644 --- a/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js +++ b/examples/apidoc/MainClient/customizeCryptoLoanMarginCall.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.customizeCryptoLoanMarginCall(params) diff --git a/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js index 5e427e35..f7081b5e 100644 --- a/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/deleteApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.deleteApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js b/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js index 1d7b3b37..ef464642 100644 --- a/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js +++ b/examples/apidoc/MainClient/deleteIPRestrictionForSubAccountApiKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.deleteIPRestrictionForSubAccountApiKey(params) diff --git a/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js index c140d08e..2939db55 100644 --- a/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js +++ b/examples/apidoc/MainClient/deleteMarginSpecialLowLatencyKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.deleteMarginSpecialLowLatencyKey(params) diff --git a/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js b/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js index f0f98889..f877b59b 100644 --- a/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js +++ b/examples/apidoc/MainClient/depositAssetsIntoManagedSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.depositAssetsIntoManagedSubAccount(params) diff --git a/examples/apidoc/MainClient/disableFastWithdrawSwitch.js b/examples/apidoc/MainClient/disableFastWithdrawSwitch.js index bebda680..aac2b285 100644 --- a/examples/apidoc/MainClient/disableFastWithdrawSwitch.js +++ b/examples/apidoc/MainClient/disableFastWithdrawSwitch.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.disableFastWithdrawSwitch(params) diff --git a/examples/apidoc/MainClient/disableIsolatedMarginAccount.js b/examples/apidoc/MainClient/disableIsolatedMarginAccount.js index e7e65c0c..824a9d63 100644 --- a/examples/apidoc/MainClient/disableIsolatedMarginAccount.js +++ b/examples/apidoc/MainClient/disableIsolatedMarginAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.disableIsolatedMarginAccount(params) diff --git a/examples/apidoc/MainClient/enableConvertSubAccount.js b/examples/apidoc/MainClient/enableConvertSubAccount.js index da312308..97a96fca 100644 --- a/examples/apidoc/MainClient/enableConvertSubAccount.js +++ b/examples/apidoc/MainClient/enableConvertSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableConvertSubAccount(params) diff --git a/examples/apidoc/MainClient/enableFastWithdrawSwitch.js b/examples/apidoc/MainClient/enableFastWithdrawSwitch.js index fd91bf98..49627d63 100644 --- a/examples/apidoc/MainClient/enableFastWithdrawSwitch.js +++ b/examples/apidoc/MainClient/enableFastWithdrawSwitch.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableFastWithdrawSwitch(params) diff --git a/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js b/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js index 8680ef23..6a07b1ec 100644 --- a/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js +++ b/examples/apidoc/MainClient/enableFuturesBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableFuturesBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/enableIsolatedMarginAccount.js b/examples/apidoc/MainClient/enableIsolatedMarginAccount.js index 141543a8..2025a99c 100644 --- a/examples/apidoc/MainClient/enableIsolatedMarginAccount.js +++ b/examples/apidoc/MainClient/enableIsolatedMarginAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableIsolatedMarginAccount(params) diff --git a/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js index f5cb6025..c0f2b2c4 100644 --- a/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/enableMarginApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableMarginApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js b/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js index df0af6e0..e290313c 100644 --- a/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js +++ b/examples/apidoc/MainClient/enableMarginBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableMarginBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/enableOptionsForSubAccount.js b/examples/apidoc/MainClient/enableOptionsForSubAccount.js index 99e749e2..3c255b91 100644 --- a/examples/apidoc/MainClient/enableOptionsForSubAccount.js +++ b/examples/apidoc/MainClient/enableOptionsForSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableOptionsForSubAccount(params) diff --git a/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js index d0a46ece..0733923e 100644 --- a/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/enableUniversalTransferApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.enableUniversalTransferApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/get24hrChangeStatististics.js b/examples/apidoc/MainClient/get24hrChangeStatististics.js index af1ccc97..f87ee8a7 100644 --- a/examples/apidoc/MainClient/get24hrChangeStatististics.js +++ b/examples/apidoc/MainClient/get24hrChangeStatististics.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.get24hrChangeStatististics(params) diff --git a/examples/apidoc/MainClient/getAccountInfo.js b/examples/apidoc/MainClient/getAccountInfo.js index 5ee1c45c..501732d2 100644 --- a/examples/apidoc/MainClient/getAccountInfo.js +++ b/examples/apidoc/MainClient/getAccountInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountInfo(params) diff --git a/examples/apidoc/MainClient/getAccountInformation.js b/examples/apidoc/MainClient/getAccountInformation.js index 807af512..46dc6e4e 100644 --- a/examples/apidoc/MainClient/getAccountInformation.js +++ b/examples/apidoc/MainClient/getAccountInformation.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountInformation(params) diff --git a/examples/apidoc/MainClient/getAccountStatus.js b/examples/apidoc/MainClient/getAccountStatus.js index 1e436aaa..ecbbe5ff 100644 --- a/examples/apidoc/MainClient/getAccountStatus.js +++ b/examples/apidoc/MainClient/getAccountStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountStatus(params) diff --git a/examples/apidoc/MainClient/getAccountTradeList.js b/examples/apidoc/MainClient/getAccountTradeList.js index d707f5da..12c3eb5d 100644 --- a/examples/apidoc/MainClient/getAccountTradeList.js +++ b/examples/apidoc/MainClient/getAccountTradeList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountTradeList(params) diff --git a/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js b/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js index 96470cb2..21861226 100644 --- a/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js +++ b/examples/apidoc/MainClient/getAdjustCrossCollateralLTVHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAdjustCrossCollateralLTVHistory(params) diff --git a/examples/apidoc/MainClient/getAggregateTrades.js b/examples/apidoc/MainClient/getAggregateTrades.js index e21df8f3..2d7bddbd 100644 --- a/examples/apidoc/MainClient/getAggregateTrades.js +++ b/examples/apidoc/MainClient/getAggregateTrades.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAggregateTrades(params) diff --git a/examples/apidoc/MainClient/getAlgoHistoricalOrders.js b/examples/apidoc/MainClient/getAlgoHistoricalOrders.js index 42f2c316..e9e0a063 100644 --- a/examples/apidoc/MainClient/getAlgoHistoricalOrders.js +++ b/examples/apidoc/MainClient/getAlgoHistoricalOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAlgoHistoricalOrders(params) diff --git a/examples/apidoc/MainClient/getAlgoOpenOrders.js b/examples/apidoc/MainClient/getAlgoOpenOrders.js index 881f6c05..bd51e073 100644 --- a/examples/apidoc/MainClient/getAlgoOpenOrders.js +++ b/examples/apidoc/MainClient/getAlgoOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAlgoOpenOrders(params) diff --git a/examples/apidoc/MainClient/getAlgoSubOrders.js b/examples/apidoc/MainClient/getAlgoSubOrders.js index 427f0c85..9858839d 100644 --- a/examples/apidoc/MainClient/getAlgoSubOrders.js +++ b/examples/apidoc/MainClient/getAlgoSubOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAlgoSubOrders(params) diff --git a/examples/apidoc/MainClient/getAllCrossMarginPairs.js b/examples/apidoc/MainClient/getAllCrossMarginPairs.js index 09be8367..964d478e 100644 --- a/examples/apidoc/MainClient/getAllCrossMarginPairs.js +++ b/examples/apidoc/MainClient/getAllCrossMarginPairs.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllCrossMarginPairs(params) diff --git a/examples/apidoc/MainClient/getAllMarginAssets.js b/examples/apidoc/MainClient/getAllMarginAssets.js index a8d81520..e49e926f 100644 --- a/examples/apidoc/MainClient/getAllMarginAssets.js +++ b/examples/apidoc/MainClient/getAllMarginAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllMarginAssets(params) diff --git a/examples/apidoc/MainClient/getAllOCO.js b/examples/apidoc/MainClient/getAllOCO.js index f10b93d4..c7ef9d14 100644 --- a/examples/apidoc/MainClient/getAllOCO.js +++ b/examples/apidoc/MainClient/getAllOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOCO(params) diff --git a/examples/apidoc/MainClient/getAllOpenOCO.js b/examples/apidoc/MainClient/getAllOpenOCO.js index e51b7acb..553f2331 100644 --- a/examples/apidoc/MainClient/getAllOpenOCO.js +++ b/examples/apidoc/MainClient/getAllOpenOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOpenOCO(params) diff --git a/examples/apidoc/MainClient/getAllOrders.js b/examples/apidoc/MainClient/getAllOrders.js index 0781f52f..2e6278dd 100644 --- a/examples/apidoc/MainClient/getAllOrders.js +++ b/examples/apidoc/MainClient/getAllOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOrders(params) diff --git a/examples/apidoc/MainClient/getAllocations.js b/examples/apidoc/MainClient/getAllocations.js index 96b786d8..7f2012f6 100644 --- a/examples/apidoc/MainClient/getAllocations.js +++ b/examples/apidoc/MainClient/getAllocations.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllocations(params) diff --git a/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js b/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js index 516caecb..00d88d7a 100644 --- a/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js +++ b/examples/apidoc/MainClient/getApiKeyBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getApiKeyBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/getApiKeyPermissions.js b/examples/apidoc/MainClient/getApiKeyPermissions.js index 711fd236..563401a0 100644 --- a/examples/apidoc/MainClient/getApiKeyPermissions.js +++ b/examples/apidoc/MainClient/getApiKeyPermissions.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getApiKeyPermissions(params) diff --git a/examples/apidoc/MainClient/getApiTradingStatus.js b/examples/apidoc/MainClient/getApiTradingStatus.js index 0a3331a0..92e422a6 100644 --- a/examples/apidoc/MainClient/getApiTradingStatus.js +++ b/examples/apidoc/MainClient/getApiTradingStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getApiTradingStatus(params) diff --git a/examples/apidoc/MainClient/getAssetDetail.js b/examples/apidoc/MainClient/getAssetDetail.js index 866d9ab0..4b5b7ee3 100644 --- a/examples/apidoc/MainClient/getAssetDetail.js +++ b/examples/apidoc/MainClient/getAssetDetail.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAssetDetail(params) diff --git a/examples/apidoc/MainClient/getAssetDividendRecord.js b/examples/apidoc/MainClient/getAssetDividendRecord.js index d34488f7..67b7d644 100644 --- a/examples/apidoc/MainClient/getAssetDividendRecord.js +++ b/examples/apidoc/MainClient/getAssetDividendRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAssetDividendRecord(params) diff --git a/examples/apidoc/MainClient/getAutoConvertStablecoins.js b/examples/apidoc/MainClient/getAutoConvertStablecoins.js index 2439a529..3ba50ec6 100644 --- a/examples/apidoc/MainClient/getAutoConvertStablecoins.js +++ b/examples/apidoc/MainClient/getAutoConvertStablecoins.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoConvertStablecoins(params) diff --git a/examples/apidoc/MainClient/getAutoInvestAssets.js b/examples/apidoc/MainClient/getAutoInvestAssets.js index 6d59cec7..fde33e22 100644 --- a/examples/apidoc/MainClient/getAutoInvestAssets.js +++ b/examples/apidoc/MainClient/getAutoInvestAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestAssets(params) diff --git a/examples/apidoc/MainClient/getAutoInvestIndex.js b/examples/apidoc/MainClient/getAutoInvestIndex.js index 6aa19700..72b84840 100644 --- a/examples/apidoc/MainClient/getAutoInvestIndex.js +++ b/examples/apidoc/MainClient/getAutoInvestIndex.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestIndex(params) diff --git a/examples/apidoc/MainClient/getAutoInvestPlan.js b/examples/apidoc/MainClient/getAutoInvestPlan.js index 55b1c0e7..f234f643 100644 --- a/examples/apidoc/MainClient/getAutoInvestPlan.js +++ b/examples/apidoc/MainClient/getAutoInvestPlan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestPlan(params) diff --git a/examples/apidoc/MainClient/getAutoInvestPlans.js b/examples/apidoc/MainClient/getAutoInvestPlans.js index eb2f05e5..ed53bb8a 100644 --- a/examples/apidoc/MainClient/getAutoInvestPlans.js +++ b/examples/apidoc/MainClient/getAutoInvestPlans.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestPlans(params) diff --git a/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js b/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js index 07ad0d63..cb5d1789 100644 --- a/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js +++ b/examples/apidoc/MainClient/getAutoInvestRebalanceHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestRebalanceHistory(params) diff --git a/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js b/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js index 58076bdb..952c4cce 100644 --- a/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js +++ b/examples/apidoc/MainClient/getAutoInvestRedemptionHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestRedemptionHistory(params) diff --git a/examples/apidoc/MainClient/getAutoInvestSourceAssets.js b/examples/apidoc/MainClient/getAutoInvestSourceAssets.js index 458a4084..a590f962 100644 --- a/examples/apidoc/MainClient/getAutoInvestSourceAssets.js +++ b/examples/apidoc/MainClient/getAutoInvestSourceAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestSourceAssets(params) diff --git a/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js b/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js index bd02295b..b0ee8def 100644 --- a/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js +++ b/examples/apidoc/MainClient/getAutoInvestSubscriptionTransactions.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestSubscriptionTransactions(params) diff --git a/examples/apidoc/MainClient/getAutoInvestTargetAssets.js b/examples/apidoc/MainClient/getAutoInvestTargetAssets.js index 5b530ec9..6f17c728 100644 --- a/examples/apidoc/MainClient/getAutoInvestTargetAssets.js +++ b/examples/apidoc/MainClient/getAutoInvestTargetAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestTargetAssets(params) diff --git a/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js b/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js index 93127f5e..55825b16 100644 --- a/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js +++ b/examples/apidoc/MainClient/getAutoInvestTargetAssetsROI.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestTargetAssetsROI(params) diff --git a/examples/apidoc/MainClient/getAutoInvestUserIndex.js b/examples/apidoc/MainClient/getAutoInvestUserIndex.js index e8bf1e36..83ea94c9 100644 --- a/examples/apidoc/MainClient/getAutoInvestUserIndex.js +++ b/examples/apidoc/MainClient/getAutoInvestUserIndex.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoInvestUserIndex(params) diff --git a/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js b/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js index 3613acbd..afe4baaa 100644 --- a/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js +++ b/examples/apidoc/MainClient/getAutoRepayFuturesStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAutoRepayFuturesStatus(params) diff --git a/examples/apidoc/MainClient/getAvgPrice.js b/examples/apidoc/MainClient/getAvgPrice.js index 8954a2ad..06d13cf8 100644 --- a/examples/apidoc/MainClient/getAvgPrice.js +++ b/examples/apidoc/MainClient/getAvgPrice.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAvgPrice(params) diff --git a/examples/apidoc/MainClient/getBNBBurn.js b/examples/apidoc/MainClient/getBNBBurn.js index 7450748b..2ea24f19 100644 --- a/examples/apidoc/MainClient/getBNBBurn.js +++ b/examples/apidoc/MainClient/getBNBBurn.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBNBBurn(params) diff --git a/examples/apidoc/MainClient/getBSwapLiquidity.js b/examples/apidoc/MainClient/getBSwapLiquidity.js index f06c9a23..1c985a9c 100644 --- a/examples/apidoc/MainClient/getBSwapLiquidity.js +++ b/examples/apidoc/MainClient/getBSwapLiquidity.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBSwapLiquidity(params) diff --git a/examples/apidoc/MainClient/getBSwapOperations.js b/examples/apidoc/MainClient/getBSwapOperations.js index 1ecebf95..ccf2e592 100644 --- a/examples/apidoc/MainClient/getBSwapOperations.js +++ b/examples/apidoc/MainClient/getBSwapOperations.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBSwapOperations(params) diff --git a/examples/apidoc/MainClient/getBalances.js b/examples/apidoc/MainClient/getBalances.js index 2546b381..ba3fc78e 100644 --- a/examples/apidoc/MainClient/getBalances.js +++ b/examples/apidoc/MainClient/getBalances.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBalances(params) diff --git a/examples/apidoc/MainClient/getBethRewardsHistory.js b/examples/apidoc/MainClient/getBethRewardsHistory.js index 0dd3e6a5..a22e23e1 100644 --- a/examples/apidoc/MainClient/getBethRewardsHistory.js +++ b/examples/apidoc/MainClient/getBethRewardsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBethRewardsHistory(params) diff --git a/examples/apidoc/MainClient/getBethUnwrapHistory.js b/examples/apidoc/MainClient/getBethUnwrapHistory.js index 759dc9a5..273b0141 100644 --- a/examples/apidoc/MainClient/getBethUnwrapHistory.js +++ b/examples/apidoc/MainClient/getBethUnwrapHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBethUnwrapHistory(params) diff --git a/examples/apidoc/MainClient/getBethWrapHistory.js b/examples/apidoc/MainClient/getBethWrapHistory.js index cf21b66d..4b53b6db 100644 --- a/examples/apidoc/MainClient/getBethWrapHistory.js +++ b/examples/apidoc/MainClient/getBethWrapHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBethWrapHistory(params) diff --git a/examples/apidoc/MainClient/getBlvtInfo.js b/examples/apidoc/MainClient/getBlvtInfo.js index 35f54769..16bacda2 100644 --- a/examples/apidoc/MainClient/getBlvtInfo.js +++ b/examples/apidoc/MainClient/getBlvtInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBlvtInfo(params) diff --git a/examples/apidoc/MainClient/getBlvtRedemptionRecord.js b/examples/apidoc/MainClient/getBlvtRedemptionRecord.js index 29806fdb..be4f6637 100644 --- a/examples/apidoc/MainClient/getBlvtRedemptionRecord.js +++ b/examples/apidoc/MainClient/getBlvtRedemptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBlvtRedemptionRecord(params) diff --git a/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js b/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js index a54137d7..12f927ba 100644 --- a/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js +++ b/examples/apidoc/MainClient/getBlvtSubscriptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBlvtSubscriptionRecord(params) diff --git a/examples/apidoc/MainClient/getBlvtUserLimitInfo.js b/examples/apidoc/MainClient/getBlvtUserLimitInfo.js index 6e9a75b8..e82b2982 100644 --- a/examples/apidoc/MainClient/getBlvtUserLimitInfo.js +++ b/examples/apidoc/MainClient/getBlvtUserLimitInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBlvtUserLimitInfo(params) diff --git a/examples/apidoc/MainClient/getBnsolRateHistory.js b/examples/apidoc/MainClient/getBnsolRateHistory.js index fc318f1f..14a8780b 100644 --- a/examples/apidoc/MainClient/getBnsolRateHistory.js +++ b/examples/apidoc/MainClient/getBnsolRateHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBnsolRateHistory(params) diff --git a/examples/apidoc/MainClient/getBnsolRewardsHistory.js b/examples/apidoc/MainClient/getBnsolRewardsHistory.js index d9af19bb..b2297ea4 100644 --- a/examples/apidoc/MainClient/getBnsolRewardsHistory.js +++ b/examples/apidoc/MainClient/getBnsolRewardsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBnsolRewardsHistory(params) diff --git a/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js b/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js index c2962b9c..cc616955 100644 --- a/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js +++ b/examples/apidoc/MainClient/getBrokerFuturesCommissionRebate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerFuturesCommissionRebate(params) diff --git a/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js b/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js index 1d1ba458..74491e5e 100644 --- a/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js +++ b/examples/apidoc/MainClient/getBrokerIfNewSpotUser.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerIfNewSpotUser(params) diff --git a/examples/apidoc/MainClient/getBrokerInfo.js b/examples/apidoc/MainClient/getBrokerInfo.js index 49c11415..e793f38c 100644 --- a/examples/apidoc/MainClient/getBrokerInfo.js +++ b/examples/apidoc/MainClient/getBrokerInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerInfo(params) diff --git a/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js b/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js index 636b4187..4f430d46 100644 --- a/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js +++ b/examples/apidoc/MainClient/getBrokerSpotCommissionRebate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSpotCommissionRebate(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccount.js b/examples/apidoc/MainClient/getBrokerSubAccount.js index 7bc27731..e303c443 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccount.js +++ b/examples/apidoc/MainClient/getBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js b/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js index 7437a3a2..48f6df15 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js +++ b/examples/apidoc/MainClient/getBrokerSubAccountCoinFuturesCommission.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccountCoinFuturesCommission(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js b/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js index a48574c8..b975004b 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js +++ b/examples/apidoc/MainClient/getBrokerSubAccountDepositHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccountDepositHistory(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js b/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js index 2f624a74..29e9841d 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js +++ b/examples/apidoc/MainClient/getBrokerSubAccountFuturesCommission.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccountFuturesCommission(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccountHistory.js b/examples/apidoc/MainClient/getBrokerSubAccountHistory.js index ed53d37d..c813d09f 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccountHistory.js +++ b/examples/apidoc/MainClient/getBrokerSubAccountHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccountHistory(params) diff --git a/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js b/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js index b60e0b46..42d0eb0d 100644 --- a/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js +++ b/examples/apidoc/MainClient/getBrokerSubAccountSpotAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubAccountSpotAssets(params) diff --git a/examples/apidoc/MainClient/getBrokerSubDepositHistory.js b/examples/apidoc/MainClient/getBrokerSubDepositHistory.js index e4213458..71d8e10d 100644 --- a/examples/apidoc/MainClient/getBrokerSubDepositHistory.js +++ b/examples/apidoc/MainClient/getBrokerSubDepositHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerSubDepositHistory(params) diff --git a/examples/apidoc/MainClient/getC2CTradeHistory.js b/examples/apidoc/MainClient/getC2CTradeHistory.js index 7cbfebf6..a85d7b52 100644 --- a/examples/apidoc/MainClient/getC2CTradeHistory.js +++ b/examples/apidoc/MainClient/getC2CTradeHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getC2CTradeHistory(params) diff --git a/examples/apidoc/MainClient/getCloudMiningHistory.js b/examples/apidoc/MainClient/getCloudMiningHistory.js index d011efba..107435a2 100644 --- a/examples/apidoc/MainClient/getCloudMiningHistory.js +++ b/examples/apidoc/MainClient/getCloudMiningHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCloudMiningHistory(params) diff --git a/examples/apidoc/MainClient/getCollateralRecord.js b/examples/apidoc/MainClient/getCollateralRecord.js index df8c2cab..5ae302eb 100644 --- a/examples/apidoc/MainClient/getCollateralRecord.js +++ b/examples/apidoc/MainClient/getCollateralRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCollateralRecord(params) diff --git a/examples/apidoc/MainClient/getCommissionRates.js b/examples/apidoc/MainClient/getCommissionRates.js index 0dc86fc2..e325e2bc 100644 --- a/examples/apidoc/MainClient/getCommissionRates.js +++ b/examples/apidoc/MainClient/getCommissionRates.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCommissionRates(params) diff --git a/examples/apidoc/MainClient/getConvertAssetInfo.js b/examples/apidoc/MainClient/getConvertAssetInfo.js index 29d80a31..b874bac4 100644 --- a/examples/apidoc/MainClient/getConvertAssetInfo.js +++ b/examples/apidoc/MainClient/getConvertAssetInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertAssetInfo(params) diff --git a/examples/apidoc/MainClient/getConvertBUSDHistory.js b/examples/apidoc/MainClient/getConvertBUSDHistory.js index e8c54d5a..7df32e4f 100644 --- a/examples/apidoc/MainClient/getConvertBUSDHistory.js +++ b/examples/apidoc/MainClient/getConvertBUSDHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertBUSDHistory(params) diff --git a/examples/apidoc/MainClient/getConvertLimitOpenOrders.js b/examples/apidoc/MainClient/getConvertLimitOpenOrders.js index 8bb876d3..a1c40071 100644 --- a/examples/apidoc/MainClient/getConvertLimitOpenOrders.js +++ b/examples/apidoc/MainClient/getConvertLimitOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertLimitOpenOrders(params) diff --git a/examples/apidoc/MainClient/getConvertPairs.js b/examples/apidoc/MainClient/getConvertPairs.js index e4a224e8..462b7fd2 100644 --- a/examples/apidoc/MainClient/getConvertPairs.js +++ b/examples/apidoc/MainClient/getConvertPairs.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertPairs(params) diff --git a/examples/apidoc/MainClient/getConvertTradeHistory.js b/examples/apidoc/MainClient/getConvertTradeHistory.js index 7de92c3f..0f4f011e 100644 --- a/examples/apidoc/MainClient/getConvertTradeHistory.js +++ b/examples/apidoc/MainClient/getConvertTradeHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertTradeHistory(params) diff --git a/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js b/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js index 73160bdf..c0911b9e 100644 --- a/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js +++ b/examples/apidoc/MainClient/getCrossCollateralBorrowHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossCollateralBorrowHistory(params) diff --git a/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js b/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js index e5797e03..8aceeed5 100644 --- a/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js +++ b/examples/apidoc/MainClient/getCrossCollateralInterestHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossCollateralInterestHistory(params) diff --git a/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js b/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js index 51a1d0e4..0961509f 100644 --- a/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js +++ b/examples/apidoc/MainClient/getCrossCollateralLiquidationHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossCollateralLiquidationHistory(params) diff --git a/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js b/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js index e52e4b32..cf7c47fa 100644 --- a/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js +++ b/examples/apidoc/MainClient/getCrossCollateralRepaymentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossCollateralRepaymentHistory(params) diff --git a/examples/apidoc/MainClient/getCrossCollateralWalletV2.js b/examples/apidoc/MainClient/getCrossCollateralWalletV2.js index 1cfd35bc..e5c50ace 100644 --- a/examples/apidoc/MainClient/getCrossCollateralWalletV2.js +++ b/examples/apidoc/MainClient/getCrossCollateralWalletV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossCollateralWalletV2(params) diff --git a/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js b/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js index a6cd490d..f53fdfa2 100644 --- a/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js +++ b/examples/apidoc/MainClient/getCrossMarginCollateralRatio.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossMarginCollateralRatio(params) diff --git a/examples/apidoc/MainClient/getCrossMarginFeeData.js b/examples/apidoc/MainClient/getCrossMarginFeeData.js index dceefd82..f251a8e4 100644 --- a/examples/apidoc/MainClient/getCrossMarginFeeData.js +++ b/examples/apidoc/MainClient/getCrossMarginFeeData.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossMarginFeeData(params) diff --git a/examples/apidoc/MainClient/getCrossMarginTransferHistory.js b/examples/apidoc/MainClient/getCrossMarginTransferHistory.js index 40712706..3df8e516 100644 --- a/examples/apidoc/MainClient/getCrossMarginTransferHistory.js +++ b/examples/apidoc/MainClient/getCrossMarginTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCrossMarginTransferHistory(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js b/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js index 310e9db8..182d7a25 100644 --- a/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js +++ b/examples/apidoc/MainClient/getCryptoLoanBorrowHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanBorrowHistory(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js b/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js index 814181f1..bb577b47 100644 --- a/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js +++ b/examples/apidoc/MainClient/getCryptoLoanCollateralAssetsData.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanCollateralAssetsData(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js b/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js index 0af43b7e..afe4a52d 100644 --- a/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js +++ b/examples/apidoc/MainClient/getCryptoLoanCollateralRepayRate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanCollateralRepayRate(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js index 02a47817..0b2bc8f9 100644 --- a/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanFlexibleAssets(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js index fea6e545..121375ee 100644 --- a/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleCollateralAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanFlexibleCollateralAssets(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js index d3203847..ea375578 100644 --- a/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleLTVAdjustmentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanFlexibleLTVAdjustmentHistory(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js b/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js index 406826fe..481af1b7 100644 --- a/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js +++ b/examples/apidoc/MainClient/getCryptoLoanFlexibleOngoingOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanFlexibleOngoingOrders(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js b/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js index 07eafd14..b89ebba9 100644 --- a/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js +++ b/examples/apidoc/MainClient/getCryptoLoanLTVAdjustmentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanLTVAdjustmentHistory(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js b/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js index cfd4d07c..c7a0d89e 100644 --- a/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js +++ b/examples/apidoc/MainClient/getCryptoLoanLoanableAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanLoanableAssets(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js b/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js index 627bc807..1ed9284a 100644 --- a/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js +++ b/examples/apidoc/MainClient/getCryptoLoanOngoingOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanOngoingOrders(params) diff --git a/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js b/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js index ac308dce..dc698ced 100644 --- a/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js +++ b/examples/apidoc/MainClient/getCryptoLoanRepaymentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoanRepaymentHistory(params) diff --git a/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js b/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js index 86565ee1..050c2628 100644 --- a/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js +++ b/examples/apidoc/MainClient/getCryptoLoansIncomeHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCryptoLoansIncomeHistory(params) diff --git a/examples/apidoc/MainClient/getDailyAccountSnapshot.js b/examples/apidoc/MainClient/getDailyAccountSnapshot.js index 341f2bc6..9d557e03 100644 --- a/examples/apidoc/MainClient/getDailyAccountSnapshot.js +++ b/examples/apidoc/MainClient/getDailyAccountSnapshot.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDailyAccountSnapshot(params) diff --git a/examples/apidoc/MainClient/getDelegationHistory.js b/examples/apidoc/MainClient/getDelegationHistory.js index 54898e9a..d12730ac 100644 --- a/examples/apidoc/MainClient/getDelegationHistory.js +++ b/examples/apidoc/MainClient/getDelegationHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDelegationHistory(params) diff --git a/examples/apidoc/MainClient/getDelistSchedule.js b/examples/apidoc/MainClient/getDelistSchedule.js index 166fc636..b5652fe3 100644 --- a/examples/apidoc/MainClient/getDelistSchedule.js +++ b/examples/apidoc/MainClient/getDelistSchedule.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDelistSchedule(params) diff --git a/examples/apidoc/MainClient/getDepositAddress.js b/examples/apidoc/MainClient/getDepositAddress.js index f4821a3b..90cbefcc 100644 --- a/examples/apidoc/MainClient/getDepositAddress.js +++ b/examples/apidoc/MainClient/getDepositAddress.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDepositAddress(params) diff --git a/examples/apidoc/MainClient/getDepositAddresses.js b/examples/apidoc/MainClient/getDepositAddresses.js index 6d06b80f..ab664844 100644 --- a/examples/apidoc/MainClient/getDepositAddresses.js +++ b/examples/apidoc/MainClient/getDepositAddresses.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDepositAddresses(params) diff --git a/examples/apidoc/MainClient/getDepositHistory.js b/examples/apidoc/MainClient/getDepositHistory.js index cab8e6d1..aaf449cc 100644 --- a/examples/apidoc/MainClient/getDepositHistory.js +++ b/examples/apidoc/MainClient/getDepositHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDepositHistory(params) diff --git a/examples/apidoc/MainClient/getDualInvestmentAccounts.js b/examples/apidoc/MainClient/getDualInvestmentAccounts.js index 934d5f1f..5e9f7796 100644 --- a/examples/apidoc/MainClient/getDualInvestmentAccounts.js +++ b/examples/apidoc/MainClient/getDualInvestmentAccounts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDualInvestmentAccounts(params) diff --git a/examples/apidoc/MainClient/getDualInvestmentPositions.js b/examples/apidoc/MainClient/getDualInvestmentPositions.js index e8d9f35e..e037b94d 100644 --- a/examples/apidoc/MainClient/getDualInvestmentPositions.js +++ b/examples/apidoc/MainClient/getDualInvestmentPositions.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDualInvestmentPositions(params) diff --git a/examples/apidoc/MainClient/getDualInvestmentProducts.js b/examples/apidoc/MainClient/getDualInvestmentProducts.js index b7a9e368..e383d397 100644 --- a/examples/apidoc/MainClient/getDualInvestmentProducts.js +++ b/examples/apidoc/MainClient/getDualInvestmentProducts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDualInvestmentProducts(params) diff --git a/examples/apidoc/MainClient/getDust.js b/examples/apidoc/MainClient/getDust.js index af4088e1..336c3072 100644 --- a/examples/apidoc/MainClient/getDust.js +++ b/examples/apidoc/MainClient/getDust.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDust(params) diff --git a/examples/apidoc/MainClient/getDustLog.js b/examples/apidoc/MainClient/getDustLog.js index 07b685ea..5f819a62 100644 --- a/examples/apidoc/MainClient/getDustLog.js +++ b/examples/apidoc/MainClient/getDustLog.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getDustLog(params) diff --git a/examples/apidoc/MainClient/getEthRateHistory.js b/examples/apidoc/MainClient/getEthRateHistory.js index 56bc9010..fb92605f 100644 --- a/examples/apidoc/MainClient/getEthRateHistory.js +++ b/examples/apidoc/MainClient/getEthRateHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthRateHistory(params) diff --git a/examples/apidoc/MainClient/getEthRedemptionHistory.js b/examples/apidoc/MainClient/getEthRedemptionHistory.js index 0badc44b..00f5d28b 100644 --- a/examples/apidoc/MainClient/getEthRedemptionHistory.js +++ b/examples/apidoc/MainClient/getEthRedemptionHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthRedemptionHistory(params) diff --git a/examples/apidoc/MainClient/getEthStakingAccount.js b/examples/apidoc/MainClient/getEthStakingAccount.js index 7feb46b0..32a15ce9 100644 --- a/examples/apidoc/MainClient/getEthStakingAccount.js +++ b/examples/apidoc/MainClient/getEthStakingAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthStakingAccount(params) diff --git a/examples/apidoc/MainClient/getEthStakingAccountV2.js b/examples/apidoc/MainClient/getEthStakingAccountV2.js index 7cba0175..5a03bdf5 100644 --- a/examples/apidoc/MainClient/getEthStakingAccountV2.js +++ b/examples/apidoc/MainClient/getEthStakingAccountV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthStakingAccountV2(params) diff --git a/examples/apidoc/MainClient/getEthStakingHistory.js b/examples/apidoc/MainClient/getEthStakingHistory.js index 62ad8ae9..8e3e34d7 100644 --- a/examples/apidoc/MainClient/getEthStakingHistory.js +++ b/examples/apidoc/MainClient/getEthStakingHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthStakingHistory(params) diff --git a/examples/apidoc/MainClient/getEthStakingQuota.js b/examples/apidoc/MainClient/getEthStakingQuota.js index 6bb9ac6c..2bb25ab1 100644 --- a/examples/apidoc/MainClient/getEthStakingQuota.js +++ b/examples/apidoc/MainClient/getEthStakingQuota.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getEthStakingQuota(params) diff --git a/examples/apidoc/MainClient/getExchangeInfo.js b/examples/apidoc/MainClient/getExchangeInfo.js index 58ff5132..67459e24 100644 --- a/examples/apidoc/MainClient/getExchangeInfo.js +++ b/examples/apidoc/MainClient/getExchangeInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getExchangeInfo(params) diff --git a/examples/apidoc/MainClient/getExtraBonuses.js b/examples/apidoc/MainClient/getExtraBonuses.js index 50cf2ddc..c61f6487 100644 --- a/examples/apidoc/MainClient/getExtraBonuses.js +++ b/examples/apidoc/MainClient/getExtraBonuses.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getExtraBonuses(params) diff --git a/examples/apidoc/MainClient/getFiatOrderHistory.js b/examples/apidoc/MainClient/getFiatOrderHistory.js index 837365d5..c08215cc 100644 --- a/examples/apidoc/MainClient/getFiatOrderHistory.js +++ b/examples/apidoc/MainClient/getFiatOrderHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFiatOrderHistory(params) diff --git a/examples/apidoc/MainClient/getFiatPaymentsHistory.js b/examples/apidoc/MainClient/getFiatPaymentsHistory.js index 09f41ddb..3402a209 100644 --- a/examples/apidoc/MainClient/getFiatPaymentsHistory.js +++ b/examples/apidoc/MainClient/getFiatPaymentsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFiatPaymentsHistory(params) diff --git a/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js b/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js index 50320c09..a96ebd6d 100644 --- a/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js +++ b/examples/apidoc/MainClient/getFixedAndActivityProductPosition.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFixedAndActivityProductPosition(params) diff --git a/examples/apidoc/MainClient/getFixedAndActivityProjects.js b/examples/apidoc/MainClient/getFixedAndActivityProjects.js index 0d61d16a..a029129e 100644 --- a/examples/apidoc/MainClient/getFixedAndActivityProjects.js +++ b/examples/apidoc/MainClient/getFixedAndActivityProjects.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFixedAndActivityProjects(params) diff --git a/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js b/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js index c42a1195..a34f2dc9 100644 --- a/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js +++ b/examples/apidoc/MainClient/getFlexiblePersonalLeftQuota.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexiblePersonalLeftQuota(params) diff --git a/examples/apidoc/MainClient/getFlexibleProductPosition.js b/examples/apidoc/MainClient/getFlexibleProductPosition.js index 9e65fa19..c2ad2361 100644 --- a/examples/apidoc/MainClient/getFlexibleProductPosition.js +++ b/examples/apidoc/MainClient/getFlexibleProductPosition.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleProductPosition(params) diff --git a/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js b/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js index 4e28f3af..e91748fb 100644 --- a/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js +++ b/examples/apidoc/MainClient/getFlexibleRedemptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleRedemptionRecord(params) diff --git a/examples/apidoc/MainClient/getFlexibleRewardsHistory.js b/examples/apidoc/MainClient/getFlexibleRewardsHistory.js index 042c7794..febda2b0 100644 --- a/examples/apidoc/MainClient/getFlexibleRewardsHistory.js +++ b/examples/apidoc/MainClient/getFlexibleRewardsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleRewardsHistory(params) diff --git a/examples/apidoc/MainClient/getFlexibleSavingProducts.js b/examples/apidoc/MainClient/getFlexibleSavingProducts.js index 4a59a5f0..78c30678 100644 --- a/examples/apidoc/MainClient/getFlexibleSavingProducts.js +++ b/examples/apidoc/MainClient/getFlexibleSavingProducts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleSavingProducts(params) diff --git a/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js b/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js index 5c0cb937..fdd9f40f 100644 --- a/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js +++ b/examples/apidoc/MainClient/getFlexibleSubscriptionPreview.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleSubscriptionPreview(params) diff --git a/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js b/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js index b1d8a4cb..92d9c7c9 100644 --- a/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js +++ b/examples/apidoc/MainClient/getFlexibleSubscriptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFlexibleSubscriptionRecord(params) diff --git a/examples/apidoc/MainClient/getFundingAsset.js b/examples/apidoc/MainClient/getFundingAsset.js index 44ac1ee6..ea64ced6 100644 --- a/examples/apidoc/MainClient/getFundingAsset.js +++ b/examples/apidoc/MainClient/getFundingAsset.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFundingAsset(params) diff --git a/examples/apidoc/MainClient/getFutureAccountTransferHistory.js b/examples/apidoc/MainClient/getFutureAccountTransferHistory.js index 0b9449da..7110c5b3 100644 --- a/examples/apidoc/MainClient/getFutureAccountTransferHistory.js +++ b/examples/apidoc/MainClient/getFutureAccountTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFutureAccountTransferHistory(params) diff --git a/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js b/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js index 3420900c..5905fa97 100644 --- a/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js +++ b/examples/apidoc/MainClient/getFuturesLeadTraderStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesLeadTraderStatus(params) diff --git a/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js b/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js index 6513f53c..79fc1241 100644 --- a/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js +++ b/examples/apidoc/MainClient/getFuturesLeadTradingSymbolWhitelist.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesLeadTradingSymbolWhitelist(params) diff --git a/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js b/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js index acee712b..11c602d4 100644 --- a/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js +++ b/examples/apidoc/MainClient/getFuturesTickLevelOrderbookDataLink.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTickLevelOrderbookDataLink(params) diff --git a/examples/apidoc/MainClient/getHashrateResale.js b/examples/apidoc/MainClient/getHashrateResale.js index 7ef6bed0..afe4b296 100644 --- a/examples/apidoc/MainClient/getHashrateResale.js +++ b/examples/apidoc/MainClient/getHashrateResale.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHashrateResale(params) diff --git a/examples/apidoc/MainClient/getHashrateResales.js b/examples/apidoc/MainClient/getHashrateResales.js index 90cf8a08..f18089fa 100644 --- a/examples/apidoc/MainClient/getHashrateResales.js +++ b/examples/apidoc/MainClient/getHashrateResales.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHashrateResales(params) diff --git a/examples/apidoc/MainClient/getHistoricalTrades.js b/examples/apidoc/MainClient/getHistoricalTrades.js index d82bee1f..82e1c0eb 100644 --- a/examples/apidoc/MainClient/getHistoricalTrades.js +++ b/examples/apidoc/MainClient/getHistoricalTrades.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHistoricalTrades(params) diff --git a/examples/apidoc/MainClient/getInterestHistory.js b/examples/apidoc/MainClient/getInterestHistory.js index 56c57296..73b18b92 100644 --- a/examples/apidoc/MainClient/getInterestHistory.js +++ b/examples/apidoc/MainClient/getInterestHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getInterestHistory(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js b/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js index e5abe1d2..9053aae3 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js +++ b/examples/apidoc/MainClient/getIsolatedMarginAccountInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginAccountInfo(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js b/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js index 3623c5b2..fc76797c 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js +++ b/examples/apidoc/MainClient/getIsolatedMarginAccountLimit.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginAccountLimit(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js b/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js index 70c7f3bf..46905059 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js +++ b/examples/apidoc/MainClient/getIsolatedMarginAllSymbols.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginAllSymbols(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginFeeData.js b/examples/apidoc/MainClient/getIsolatedMarginFeeData.js index 690e0114..92fd8855 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginFeeData.js +++ b/examples/apidoc/MainClient/getIsolatedMarginFeeData.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginFeeData(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginTierData.js b/examples/apidoc/MainClient/getIsolatedMarginTierData.js index ab37d9a1..7b2c9197 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginTierData.js +++ b/examples/apidoc/MainClient/getIsolatedMarginTierData.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginTierData(params) diff --git a/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js index 1ee73d53..bb9c9f13 100644 --- a/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/getIsolatedMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIsolatedMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/getKlines.js b/examples/apidoc/MainClient/getKlines.js index d1ce1ece..e901204c 100644 --- a/examples/apidoc/MainClient/getKlines.js +++ b/examples/apidoc/MainClient/getKlines.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getKlines(params) diff --git a/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js b/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js index 14f004dc..063483a6 100644 --- a/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js +++ b/examples/apidoc/MainClient/getLeftDailyPurchaseQuotaFlexibleProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLeftDailyPurchaseQuotaFlexibleProduct(params) diff --git a/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js b/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js index bdb8fb81..fb410476 100644 --- a/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js +++ b/examples/apidoc/MainClient/getLeftDailyRedemptionQuotaFlexibleProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLeftDailyRedemptionQuotaFlexibleProduct(params) diff --git a/examples/apidoc/MainClient/getLendingAccount.js b/examples/apidoc/MainClient/getLendingAccount.js index 18dfb67e..87e45a9b 100644 --- a/examples/apidoc/MainClient/getLendingAccount.js +++ b/examples/apidoc/MainClient/getLendingAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLendingAccount(params) diff --git a/examples/apidoc/MainClient/getLeverageBracket.js b/examples/apidoc/MainClient/getLeverageBracket.js index a8df3680..742ff6ad 100644 --- a/examples/apidoc/MainClient/getLeverageBracket.js +++ b/examples/apidoc/MainClient/getLeverageBracket.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLeverageBracket(params) diff --git a/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js b/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js index a944437a..650ad220 100644 --- a/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js +++ b/examples/apidoc/MainClient/getLoanFlexibleBorrowHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLoanFlexibleBorrowHistory(params) diff --git a/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js b/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js index 5c77d59c..f1c5663b 100644 --- a/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js +++ b/examples/apidoc/MainClient/getLoanFlexibleRepaymentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLoanFlexibleRepaymentHistory(params) diff --git a/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js b/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js index 0eccf6cc..8db968b4 100644 --- a/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js +++ b/examples/apidoc/MainClient/getLockedPersonalLeftQuota.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedPersonalLeftQuota(params) diff --git a/examples/apidoc/MainClient/getLockedProductPosition.js b/examples/apidoc/MainClient/getLockedProductPosition.js index 1baedae1..1d75e2c4 100644 --- a/examples/apidoc/MainClient/getLockedProductPosition.js +++ b/examples/apidoc/MainClient/getLockedProductPosition.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedProductPosition(params) diff --git a/examples/apidoc/MainClient/getLockedRedemptionRecord.js b/examples/apidoc/MainClient/getLockedRedemptionRecord.js index 5eb80495..43769bd6 100644 --- a/examples/apidoc/MainClient/getLockedRedemptionRecord.js +++ b/examples/apidoc/MainClient/getLockedRedemptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedRedemptionRecord(params) diff --git a/examples/apidoc/MainClient/getLockedRewardsHistory.js b/examples/apidoc/MainClient/getLockedRewardsHistory.js index f0685fd8..6e7f1d67 100644 --- a/examples/apidoc/MainClient/getLockedRewardsHistory.js +++ b/examples/apidoc/MainClient/getLockedRewardsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedRewardsHistory(params) diff --git a/examples/apidoc/MainClient/getLockedSubscriptionPreview.js b/examples/apidoc/MainClient/getLockedSubscriptionPreview.js index 75e1a282..bd432245 100644 --- a/examples/apidoc/MainClient/getLockedSubscriptionPreview.js +++ b/examples/apidoc/MainClient/getLockedSubscriptionPreview.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedSubscriptionPreview(params) diff --git a/examples/apidoc/MainClient/getLockedSubscriptionRecord.js b/examples/apidoc/MainClient/getLockedSubscriptionRecord.js index 533bb694..88021501 100644 --- a/examples/apidoc/MainClient/getLockedSubscriptionRecord.js +++ b/examples/apidoc/MainClient/getLockedSubscriptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getLockedSubscriptionRecord(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js b/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js index e52f6d1a..e5d30a96 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js +++ b/examples/apidoc/MainClient/getManagedSubAccountAssetDetails.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountAssetDetails(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js b/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js index adce5ff3..853d963f 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js +++ b/examples/apidoc/MainClient/getManagedSubAccountDepositAddress.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountDepositAddress(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js b/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js index aabdc021..93bf25c2 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js +++ b/examples/apidoc/MainClient/getManagedSubAccountFuturesAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountFuturesAssets(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js b/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js index eb70814b..3a6ee077 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js +++ b/examples/apidoc/MainClient/getManagedSubAccountMarginAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountMarginAssets(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js b/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js index a33efd4f..3d8ea735 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js +++ b/examples/apidoc/MainClient/getManagedSubAccountSnapshot.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountSnapshot(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js b/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js index 07857780..122af576 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js +++ b/examples/apidoc/MainClient/getManagedSubAccountTransferLog.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountTransferLog(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js b/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js index a359af18..f0412d12 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js +++ b/examples/apidoc/MainClient/getManagedSubAccountTransfersInvestor.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountTransfersInvestor(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js b/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js index b2d5073c..2f0bdbf6 100644 --- a/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js +++ b/examples/apidoc/MainClient/getManagedSubAccountTransfersParent.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccountTransfersParent(params) diff --git a/examples/apidoc/MainClient/getManagedSubAccounts.js b/examples/apidoc/MainClient/getManagedSubAccounts.js index b7d0c0c6..bd1dbe2c 100644 --- a/examples/apidoc/MainClient/getManagedSubAccounts.js +++ b/examples/apidoc/MainClient/getManagedSubAccounts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getManagedSubAccounts(params) diff --git a/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js b/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js index 2d76a4df..62b42d3b 100644 --- a/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js +++ b/examples/apidoc/MainClient/getMarginAccountBorrowRepayRecords.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginAccountBorrowRepayRecords(params) diff --git a/examples/apidoc/MainClient/getMarginAvailableInventory.js b/examples/apidoc/MainClient/getMarginAvailableInventory.js index 79232a01..67cd9620 100644 --- a/examples/apidoc/MainClient/getMarginAvailableInventory.js +++ b/examples/apidoc/MainClient/getMarginAvailableInventory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginAvailableInventory(params) diff --git a/examples/apidoc/MainClient/getMarginCapitalFlow.js b/examples/apidoc/MainClient/getMarginCapitalFlow.js index bba1cc9e..259e045d 100644 --- a/examples/apidoc/MainClient/getMarginCapitalFlow.js +++ b/examples/apidoc/MainClient/getMarginCapitalFlow.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginCapitalFlow(params) diff --git a/examples/apidoc/MainClient/getMarginDelistSchedule.js b/examples/apidoc/MainClient/getMarginDelistSchedule.js index f466d13a..18a860a5 100644 --- a/examples/apidoc/MainClient/getMarginDelistSchedule.js +++ b/examples/apidoc/MainClient/getMarginDelistSchedule.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginDelistSchedule(params) diff --git a/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js b/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js index 9ee2ca20..ce9e0c6d 100644 --- a/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js +++ b/examples/apidoc/MainClient/getMarginForceLiquidationRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginForceLiquidationRecord(params) diff --git a/examples/apidoc/MainClient/getMarginInterestHistory.js b/examples/apidoc/MainClient/getMarginInterestHistory.js index 0cc831b9..9988e671 100644 --- a/examples/apidoc/MainClient/getMarginInterestHistory.js +++ b/examples/apidoc/MainClient/getMarginInterestHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginInterestHistory(params) diff --git a/examples/apidoc/MainClient/getMarginInterestRateHistory.js b/examples/apidoc/MainClient/getMarginInterestRateHistory.js index 870a6c0f..c0a664ff 100644 --- a/examples/apidoc/MainClient/getMarginInterestRateHistory.js +++ b/examples/apidoc/MainClient/getMarginInterestRateHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginInterestRateHistory(params) diff --git a/examples/apidoc/MainClient/getMarginOrderCountUsage.js b/examples/apidoc/MainClient/getMarginOrderCountUsage.js index 7b11837e..564acbca 100644 --- a/examples/apidoc/MainClient/getMarginOrderCountUsage.js +++ b/examples/apidoc/MainClient/getMarginOrderCountUsage.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginOrderCountUsage(params) diff --git a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js index 32322a36..70eb4854 100644 --- a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js +++ b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginSpecialLowLatencyKey(params) diff --git a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js index 11d6cd82..84d947d2 100644 --- a/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js +++ b/examples/apidoc/MainClient/getMarginSpecialLowLatencyKeys.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginSpecialLowLatencyKeys(params) diff --git a/examples/apidoc/MainClient/getMarginSummary.js b/examples/apidoc/MainClient/getMarginSummary.js index 402c2f0c..3d7f35e3 100644 --- a/examples/apidoc/MainClient/getMarginSummary.js +++ b/examples/apidoc/MainClient/getMarginSummary.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginSummary(params) diff --git a/examples/apidoc/MainClient/getMarginUserDataListenKey.js b/examples/apidoc/MainClient/getMarginUserDataListenKey.js index f807fd95..7bdf05e5 100644 --- a/examples/apidoc/MainClient/getMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/getMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/getMinerDetails.js b/examples/apidoc/MainClient/getMinerDetails.js index 4dc5ba9d..77f5f975 100644 --- a/examples/apidoc/MainClient/getMinerDetails.js +++ b/examples/apidoc/MainClient/getMinerDetails.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMinerDetails(params) diff --git a/examples/apidoc/MainClient/getMiners.js b/examples/apidoc/MainClient/getMiners.js index 8e744298..aadc28d8 100644 --- a/examples/apidoc/MainClient/getMiners.js +++ b/examples/apidoc/MainClient/getMiners.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiners(params) diff --git a/examples/apidoc/MainClient/getMiningAccountEarnings.js b/examples/apidoc/MainClient/getMiningAccountEarnings.js index 5ea0682e..338043ae 100644 --- a/examples/apidoc/MainClient/getMiningAccountEarnings.js +++ b/examples/apidoc/MainClient/getMiningAccountEarnings.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningAccountEarnings(params) diff --git a/examples/apidoc/MainClient/getMiningAccounts.js b/examples/apidoc/MainClient/getMiningAccounts.js index 25615c13..6c98b076 100644 --- a/examples/apidoc/MainClient/getMiningAccounts.js +++ b/examples/apidoc/MainClient/getMiningAccounts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningAccounts(params) diff --git a/examples/apidoc/MainClient/getMiningAlgos.js b/examples/apidoc/MainClient/getMiningAlgos.js index 19826774..340c56c2 100644 --- a/examples/apidoc/MainClient/getMiningAlgos.js +++ b/examples/apidoc/MainClient/getMiningAlgos.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningAlgos(params) diff --git a/examples/apidoc/MainClient/getMiningCoins.js b/examples/apidoc/MainClient/getMiningCoins.js index 72678889..622610c4 100644 --- a/examples/apidoc/MainClient/getMiningCoins.js +++ b/examples/apidoc/MainClient/getMiningCoins.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningCoins(params) diff --git a/examples/apidoc/MainClient/getMiningEarnings.js b/examples/apidoc/MainClient/getMiningEarnings.js index 8fcb22bc..515a68c4 100644 --- a/examples/apidoc/MainClient/getMiningEarnings.js +++ b/examples/apidoc/MainClient/getMiningEarnings.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningEarnings(params) diff --git a/examples/apidoc/MainClient/getMiningStatistics.js b/examples/apidoc/MainClient/getMiningStatistics.js index 860696c9..4ec12021 100644 --- a/examples/apidoc/MainClient/getMiningStatistics.js +++ b/examples/apidoc/MainClient/getMiningStatistics.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMiningStatistics(params) diff --git a/examples/apidoc/MainClient/getNextHourlyInterestRate.js b/examples/apidoc/MainClient/getNextHourlyInterestRate.js index bf41968e..772fe710 100644 --- a/examples/apidoc/MainClient/getNextHourlyInterestRate.js +++ b/examples/apidoc/MainClient/getNextHourlyInterestRate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNextHourlyInterestRate(params) diff --git a/examples/apidoc/MainClient/getNftAsset.js b/examples/apidoc/MainClient/getNftAsset.js index f327e9a0..64c7fc70 100644 --- a/examples/apidoc/MainClient/getNftAsset.js +++ b/examples/apidoc/MainClient/getNftAsset.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNftAsset(params) diff --git a/examples/apidoc/MainClient/getNftDepositHistory.js b/examples/apidoc/MainClient/getNftDepositHistory.js index bd980efd..ccdac19e 100644 --- a/examples/apidoc/MainClient/getNftDepositHistory.js +++ b/examples/apidoc/MainClient/getNftDepositHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNftDepositHistory(params) diff --git a/examples/apidoc/MainClient/getNftTransactionHistory.js b/examples/apidoc/MainClient/getNftTransactionHistory.js index 8c5746bd..173c6d83 100644 --- a/examples/apidoc/MainClient/getNftTransactionHistory.js +++ b/examples/apidoc/MainClient/getNftTransactionHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNftTransactionHistory(params) diff --git a/examples/apidoc/MainClient/getNftWithdrawHistory.js b/examples/apidoc/MainClient/getNftWithdrawHistory.js index 414ebc05..4d512f4a 100644 --- a/examples/apidoc/MainClient/getNftWithdrawHistory.js +++ b/examples/apidoc/MainClient/getNftWithdrawHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNftWithdrawHistory(params) diff --git a/examples/apidoc/MainClient/getOCO.js b/examples/apidoc/MainClient/getOCO.js index 79be4a19..9d45c65c 100644 --- a/examples/apidoc/MainClient/getOCO.js +++ b/examples/apidoc/MainClient/getOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOCO(params) diff --git a/examples/apidoc/MainClient/getOneTimeTransactionStatus.js b/examples/apidoc/MainClient/getOneTimeTransactionStatus.js index 7b3acd78..b98898de 100644 --- a/examples/apidoc/MainClient/getOneTimeTransactionStatus.js +++ b/examples/apidoc/MainClient/getOneTimeTransactionStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOneTimeTransactionStatus(params) diff --git a/examples/apidoc/MainClient/getOpenOrders.js b/examples/apidoc/MainClient/getOpenOrders.js index e92ffa65..56de332d 100644 --- a/examples/apidoc/MainClient/getOpenOrders.js +++ b/examples/apidoc/MainClient/getOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOpenOrders(params) diff --git a/examples/apidoc/MainClient/getOrder.js b/examples/apidoc/MainClient/getOrder.js index 4913e723..db4e85e2 100644 --- a/examples/apidoc/MainClient/getOrder.js +++ b/examples/apidoc/MainClient/getOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrder(params) diff --git a/examples/apidoc/MainClient/getOrderBook.js b/examples/apidoc/MainClient/getOrderBook.js index c56e303f..34299ab5 100644 --- a/examples/apidoc/MainClient/getOrderBook.js +++ b/examples/apidoc/MainClient/getOrderBook.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderBook(params) diff --git a/examples/apidoc/MainClient/getOrderRateLimit.js b/examples/apidoc/MainClient/getOrderRateLimit.js index 1047f43f..621ad7ee 100644 --- a/examples/apidoc/MainClient/getOrderRateLimit.js +++ b/examples/apidoc/MainClient/getOrderRateLimit.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderRateLimit(params) diff --git a/examples/apidoc/MainClient/getOrderStatus.js b/examples/apidoc/MainClient/getOrderStatus.js index 46b94407..6a6968d9 100644 --- a/examples/apidoc/MainClient/getOrderStatus.js +++ b/examples/apidoc/MainClient/getOrderStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderStatus(params) diff --git a/examples/apidoc/MainClient/getPayTransactions.js b/examples/apidoc/MainClient/getPayTransactions.js index d27e4ca5..b8f21429 100644 --- a/examples/apidoc/MainClient/getPayTransactions.js +++ b/examples/apidoc/MainClient/getPayTransactions.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPayTransactions(params) diff --git a/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js b/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js index bf9844b6..8a1c4f17 100644 --- a/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js +++ b/examples/apidoc/MainClient/getPersonalLeftQuotaOfStakingProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPersonalLeftQuotaOfStakingProduct(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js b/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js index fa891f63..e62a3352 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js +++ b/examples/apidoc/MainClient/getPortfolioMarginAssetLeverage.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginAssetLeverage(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js b/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js index 850ee392..3c9e2b2e 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js +++ b/examples/apidoc/MainClient/getPortfolioMarginIndexPrice.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginIndexPrice(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProAccountBalance.js b/examples/apidoc/MainClient/getPortfolioMarginProAccountBalance.js index 1a978dfc..76f25727 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProAccountBalance.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProAccountBalance.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProAccountBalance(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js b/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js index 52d4d647..5f1d062c 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProAccountInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProAccountInfo(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js b/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js index 299d2d25..670c6575 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProBankruptcyLoanAmount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProBankruptcyLoanAmount(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js b/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js index 30f5c933..6e6fc638 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProCollateralRate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProCollateralRate(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js b/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js index be280094..e496d02e 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProInterestHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProInterestHistory(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProSpanAccountInfo.js b/examples/apidoc/MainClient/getPortfolioMarginProSpanAccountInfo.js index 702a0def..846912dd 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProSpanAccountInfo.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProSpanAccountInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProSpanAccountInfo(params) diff --git a/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js b/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js index 421ce3fd..a3966216 100644 --- a/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js +++ b/examples/apidoc/MainClient/getPortfolioMarginProTieredCollateralRate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProTieredCollateralRate(params) diff --git a/examples/apidoc/MainClient/getPreventedMatches.js b/examples/apidoc/MainClient/getPreventedMatches.js index 84785d62..c721d8c2 100644 --- a/examples/apidoc/MainClient/getPreventedMatches.js +++ b/examples/apidoc/MainClient/getPreventedMatches.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPreventedMatches(params) diff --git a/examples/apidoc/MainClient/getPurchaseRecord.js b/examples/apidoc/MainClient/getPurchaseRecord.js index b30e0ec8..7be44873 100644 --- a/examples/apidoc/MainClient/getPurchaseRecord.js +++ b/examples/apidoc/MainClient/getPurchaseRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPurchaseRecord(params) diff --git a/examples/apidoc/MainClient/getRateHistory.js b/examples/apidoc/MainClient/getRateHistory.js index 578871ee..30893cba 100644 --- a/examples/apidoc/MainClient/getRateHistory.js +++ b/examples/apidoc/MainClient/getRateHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRateHistory(params) diff --git a/examples/apidoc/MainClient/getRecentTrades.js b/examples/apidoc/MainClient/getRecentTrades.js index 7943d467..0c7eb127 100644 --- a/examples/apidoc/MainClient/getRecentTrades.js +++ b/examples/apidoc/MainClient/getRecentTrades.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRecentTrades(params) diff --git a/examples/apidoc/MainClient/getRedemptionRecord.js b/examples/apidoc/MainClient/getRedemptionRecord.js index 019f1c80..55993f4e 100644 --- a/examples/apidoc/MainClient/getRedemptionRecord.js +++ b/examples/apidoc/MainClient/getRedemptionRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRedemptionRecord(params) diff --git a/examples/apidoc/MainClient/getRollingWindowTicker.js b/examples/apidoc/MainClient/getRollingWindowTicker.js index 1775df26..3a8e0b4b 100644 --- a/examples/apidoc/MainClient/getRollingWindowTicker.js +++ b/examples/apidoc/MainClient/getRollingWindowTicker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRollingWindowTicker(params) diff --git a/examples/apidoc/MainClient/getRsaPublicKey.js b/examples/apidoc/MainClient/getRsaPublicKey.js index 92a92738..62ad541e 100644 --- a/examples/apidoc/MainClient/getRsaPublicKey.js +++ b/examples/apidoc/MainClient/getRsaPublicKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRsaPublicKey(params) diff --git a/examples/apidoc/MainClient/getSimpleEarnAccount.js b/examples/apidoc/MainClient/getSimpleEarnAccount.js index 8440f45b..eb4f237a 100644 --- a/examples/apidoc/MainClient/getSimpleEarnAccount.js +++ b/examples/apidoc/MainClient/getSimpleEarnAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSimpleEarnAccount(params) diff --git a/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js b/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js index 922a6d79..1522978e 100644 --- a/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js +++ b/examples/apidoc/MainClient/getSimpleEarnLockedProductList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSimpleEarnLockedProductList(params) diff --git a/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js b/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js index 801e973c..a0ccb862 100644 --- a/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js +++ b/examples/apidoc/MainClient/getSmallLiabilityExchangeCoins.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSmallLiabilityExchangeCoins(params) diff --git a/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js b/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js index 6b91c815..962b94c5 100644 --- a/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js +++ b/examples/apidoc/MainClient/getSmallLiabilityExchangeHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSmallLiabilityExchangeHistory(params) diff --git a/examples/apidoc/MainClient/getSolRedemptionHistory.js b/examples/apidoc/MainClient/getSolRedemptionHistory.js index 53b63da1..2bfce576 100644 --- a/examples/apidoc/MainClient/getSolRedemptionHistory.js +++ b/examples/apidoc/MainClient/getSolRedemptionHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSolRedemptionHistory(params) diff --git a/examples/apidoc/MainClient/getSolStakingAccount.js b/examples/apidoc/MainClient/getSolStakingAccount.js index b81f6ff4..eef4d19a 100644 --- a/examples/apidoc/MainClient/getSolStakingAccount.js +++ b/examples/apidoc/MainClient/getSolStakingAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSolStakingAccount(params) diff --git a/examples/apidoc/MainClient/getSolStakingHistory.js b/examples/apidoc/MainClient/getSolStakingHistory.js index a0170155..b2c2e905 100644 --- a/examples/apidoc/MainClient/getSolStakingHistory.js +++ b/examples/apidoc/MainClient/getSolStakingHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSolStakingHistory(params) diff --git a/examples/apidoc/MainClient/getSolStakingQuota.js b/examples/apidoc/MainClient/getSolStakingQuota.js index da18327f..4294944b 100644 --- a/examples/apidoc/MainClient/getSolStakingQuota.js +++ b/examples/apidoc/MainClient/getSolStakingQuota.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSolStakingQuota(params) diff --git a/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js b/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js index 747f22c3..fbd21282 100644 --- a/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js +++ b/examples/apidoc/MainClient/getSpotAlgoHistoricalOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSpotAlgoHistoricalOrders(params) diff --git a/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js b/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js index e91b0905..b64a7f84 100644 --- a/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js +++ b/examples/apidoc/MainClient/getSpotAlgoOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSpotAlgoOpenOrders(params) diff --git a/examples/apidoc/MainClient/getSpotAlgoSubOrders.js b/examples/apidoc/MainClient/getSpotAlgoSubOrders.js index 7fe1639a..90c854cc 100644 --- a/examples/apidoc/MainClient/getSpotAlgoSubOrders.js +++ b/examples/apidoc/MainClient/getSpotAlgoSubOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSpotAlgoSubOrders(params) diff --git a/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js b/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js index 6d193aaf..07f0b341 100644 --- a/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js +++ b/examples/apidoc/MainClient/getSpotRebateHistoryRecords.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSpotRebateHistoryRecords(params) diff --git a/examples/apidoc/MainClient/getSpotUserDataListenKey.js b/examples/apidoc/MainClient/getSpotUserDataListenKey.js index e8829392..231a3042 100644 --- a/examples/apidoc/MainClient/getSpotUserDataListenKey.js +++ b/examples/apidoc/MainClient/getSpotUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSpotUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/getStakingHistory.js b/examples/apidoc/MainClient/getStakingHistory.js index 36b4118a..a1efab7e 100644 --- a/examples/apidoc/MainClient/getStakingHistory.js +++ b/examples/apidoc/MainClient/getStakingHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getStakingHistory(params) diff --git a/examples/apidoc/MainClient/getStakingProductPosition.js b/examples/apidoc/MainClient/getStakingProductPosition.js index b9f32aee..93e59d82 100644 --- a/examples/apidoc/MainClient/getStakingProductPosition.js +++ b/examples/apidoc/MainClient/getStakingProductPosition.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getStakingProductPosition(params) diff --git a/examples/apidoc/MainClient/getStakingProducts.js b/examples/apidoc/MainClient/getStakingProducts.js index 0b1af82e..738273a0 100644 --- a/examples/apidoc/MainClient/getStakingProducts.js +++ b/examples/apidoc/MainClient/getStakingProducts.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getStakingProducts(params) diff --git a/examples/apidoc/MainClient/getSubAccountAssets.js b/examples/apidoc/MainClient/getSubAccountAssets.js index 40b2ddc8..90b1c637 100644 --- a/examples/apidoc/MainClient/getSubAccountAssets.js +++ b/examples/apidoc/MainClient/getSubAccountAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountAssets(params) diff --git a/examples/apidoc/MainClient/getSubAccountAssetsMaster.js b/examples/apidoc/MainClient/getSubAccountAssetsMaster.js index 9a2c7be0..911cf335 100644 --- a/examples/apidoc/MainClient/getSubAccountAssetsMaster.js +++ b/examples/apidoc/MainClient/getSubAccountAssetsMaster.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountAssetsMaster(params) diff --git a/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js b/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js index 360b1150..e7dbcb9d 100644 --- a/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js +++ b/examples/apidoc/MainClient/getSubAccountBNBBurnStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountBNBBurnStatus(params) diff --git a/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js b/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js index fa53c506..3f49a77e 100644 --- a/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js +++ b/examples/apidoc/MainClient/getSubAccountBrokerIpRestriction.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountBrokerIpRestriction(params) diff --git a/examples/apidoc/MainClient/getSubAccountDepositAddress.js b/examples/apidoc/MainClient/getSubAccountDepositAddress.js index 58bc8ae9..0e1f7eb1 100644 --- a/examples/apidoc/MainClient/getSubAccountDepositAddress.js +++ b/examples/apidoc/MainClient/getSubAccountDepositAddress.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountDepositAddress(params) diff --git a/examples/apidoc/MainClient/getSubAccountDepositHistory.js b/examples/apidoc/MainClient/getSubAccountDepositHistory.js index 51dc8a9b..dab0c06f 100644 --- a/examples/apidoc/MainClient/getSubAccountDepositHistory.js +++ b/examples/apidoc/MainClient/getSubAccountDepositHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountDepositHistory(params) diff --git a/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js b/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js index f4f0c605..6a56767f 100644 --- a/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js +++ b/examples/apidoc/MainClient/getSubAccountDetailOnFuturesAccountV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountDetailOnFuturesAccountV2(params) diff --git a/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js b/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js index 056d2336..4bc4dabb 100644 --- a/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js +++ b/examples/apidoc/MainClient/getSubAccountDetailOnMarginAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountDetailOnMarginAccount(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js b/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js index 4bb60ec1..76b2a8c1 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesAccountDetail.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesAccountDetail(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js b/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js index 59057dfb..93b571f0 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesAccountSummary.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesAccountSummary(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js b/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js index 755dc122..85a45970 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesAssetTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesAssetTransferHistory(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js b/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js index 0430aa73..0a1e2398 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesPositionRisk.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesPositionRisk(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js b/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js index dc942cf9..540e20ca 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesPositionRiskV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesPositionRiskV2(params) diff --git a/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js b/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js index c6e3b401..5c6e806d 100644 --- a/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js +++ b/examples/apidoc/MainClient/getSubAccountFuturesTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountFuturesTransferHistory(params) diff --git a/examples/apidoc/MainClient/getSubAccountIPRestriction.js b/examples/apidoc/MainClient/getSubAccountIPRestriction.js index f85258de..83fee4ee 100644 --- a/examples/apidoc/MainClient/getSubAccountIPRestriction.js +++ b/examples/apidoc/MainClient/getSubAccountIPRestriction.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountIPRestriction(params) diff --git a/examples/apidoc/MainClient/getSubAccountList.js b/examples/apidoc/MainClient/getSubAccountList.js index 159f0305..12d44b26 100644 --- a/examples/apidoc/MainClient/getSubAccountList.js +++ b/examples/apidoc/MainClient/getSubAccountList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountList(params) diff --git a/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js b/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js index 4dfaecba..dd87845f 100644 --- a/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js +++ b/examples/apidoc/MainClient/getSubAccountMarginAssetInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountMarginAssetInfo(params) diff --git a/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js b/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js index 96086529..5f4296c5 100644 --- a/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js +++ b/examples/apidoc/MainClient/getSubAccountSpotAssetTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountSpotAssetTransferHistory(params) diff --git a/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js b/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js index 94a870d1..52ac413e 100644 --- a/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js +++ b/examples/apidoc/MainClient/getSubAccountSpotAssetsSummary.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountSpotAssetsSummary(params) diff --git a/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js b/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js index 7c28c047..d0b270a0 100644 --- a/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js +++ b/examples/apidoc/MainClient/getSubAccountStatusOnMarginOrFutures.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountStatusOnMarginOrFutures(params) diff --git a/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js b/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js index 2a5a72db..6aeeb29f 100644 --- a/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js +++ b/examples/apidoc/MainClient/getSubAccountSummaryOnFuturesAccountV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountSummaryOnFuturesAccountV2(params) diff --git a/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js b/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js index 8ae8d2bd..c7a2a134 100644 --- a/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js +++ b/examples/apidoc/MainClient/getSubAccountTransactionStatistics.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountTransactionStatistics(params) diff --git a/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js b/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js index 06d87416..78db5cda 100644 --- a/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js +++ b/examples/apidoc/MainClient/getSubAccountUniversalTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountUniversalTransferHistory(params) diff --git a/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js b/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js index 0003ff28..17fc2718 100644 --- a/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js +++ b/examples/apidoc/MainClient/getSubAccountsSummaryOfMarginAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSubAccountsSummaryOfMarginAccount(params) diff --git a/examples/apidoc/MainClient/getSymbolOrderBookTicker.js b/examples/apidoc/MainClient/getSymbolOrderBookTicker.js index 8dbba1c7..89c11ccf 100644 --- a/examples/apidoc/MainClient/getSymbolOrderBookTicker.js +++ b/examples/apidoc/MainClient/getSymbolOrderBookTicker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolOrderBookTicker(params) diff --git a/examples/apidoc/MainClient/getSymbolPriceTicker.js b/examples/apidoc/MainClient/getSymbolPriceTicker.js index 25a781e9..bdfb7ccc 100644 --- a/examples/apidoc/MainClient/getSymbolPriceTicker.js +++ b/examples/apidoc/MainClient/getSymbolPriceTicker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolPriceTicker(params) diff --git a/examples/apidoc/MainClient/getSystemStatus.js b/examples/apidoc/MainClient/getSystemStatus.js index 8d3f4cba..e231217d 100644 --- a/examples/apidoc/MainClient/getSystemStatus.js +++ b/examples/apidoc/MainClient/getSystemStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSystemStatus(params) diff --git a/examples/apidoc/MainClient/getTokenLimit.js b/examples/apidoc/MainClient/getTokenLimit.js index 9598c7d0..8a106d82 100644 --- a/examples/apidoc/MainClient/getTokenLimit.js +++ b/examples/apidoc/MainClient/getTokenLimit.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTokenLimit(params) diff --git a/examples/apidoc/MainClient/getTradeFee.js b/examples/apidoc/MainClient/getTradeFee.js index 037a3c05..02d3d392 100644 --- a/examples/apidoc/MainClient/getTradeFee.js +++ b/examples/apidoc/MainClient/getTradeFee.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTradeFee(params) diff --git a/examples/apidoc/MainClient/getTradingDayTicker.js b/examples/apidoc/MainClient/getTradingDayTicker.js index 0f0d8898..9f4f9264 100644 --- a/examples/apidoc/MainClient/getTradingDayTicker.js +++ b/examples/apidoc/MainClient/getTradingDayTicker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTradingDayTicker(params) diff --git a/examples/apidoc/MainClient/getUIKlines.js b/examples/apidoc/MainClient/getUIKlines.js index cc8b3ee9..85e1adad 100644 --- a/examples/apidoc/MainClient/getUIKlines.js +++ b/examples/apidoc/MainClient/getUIKlines.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getUIKlines(params) diff --git a/examples/apidoc/MainClient/getUniversalTransferBroker.js b/examples/apidoc/MainClient/getUniversalTransferBroker.js index bec3687d..2e03d612 100644 --- a/examples/apidoc/MainClient/getUniversalTransferBroker.js +++ b/examples/apidoc/MainClient/getUniversalTransferBroker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getUniversalTransferBroker(params) diff --git a/examples/apidoc/MainClient/getUniversalTransferHistory.js b/examples/apidoc/MainClient/getUniversalTransferHistory.js index e89ebd61..ad74ea08 100644 --- a/examples/apidoc/MainClient/getUniversalTransferHistory.js +++ b/examples/apidoc/MainClient/getUniversalTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getUniversalTransferHistory(params) diff --git a/examples/apidoc/MainClient/getUserAsset.js b/examples/apidoc/MainClient/getUserAsset.js index fdd3a7e9..d244d147 100644 --- a/examples/apidoc/MainClient/getUserAsset.js +++ b/examples/apidoc/MainClient/getUserAsset.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getUserAsset(params) diff --git a/examples/apidoc/MainClient/getVipApplicationStatus.js b/examples/apidoc/MainClient/getVipApplicationStatus.js index ad94268b..0e0bca96 100644 --- a/examples/apidoc/MainClient/getVipApplicationStatus.js +++ b/examples/apidoc/MainClient/getVipApplicationStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipApplicationStatus(params) diff --git a/examples/apidoc/MainClient/getVipBorrowInterestRate.js b/examples/apidoc/MainClient/getVipBorrowInterestRate.js index a73eb814..84376eee 100644 --- a/examples/apidoc/MainClient/getVipBorrowInterestRate.js +++ b/examples/apidoc/MainClient/getVipBorrowInterestRate.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipBorrowInterestRate(params) diff --git a/examples/apidoc/MainClient/getVipCollateralAssets.js b/examples/apidoc/MainClient/getVipCollateralAssets.js index 92595e53..fedeec49 100644 --- a/examples/apidoc/MainClient/getVipCollateralAssets.js +++ b/examples/apidoc/MainClient/getVipCollateralAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipCollateralAssets(params) diff --git a/examples/apidoc/MainClient/getVipLoanOpenOrders.js b/examples/apidoc/MainClient/getVipLoanOpenOrders.js index 488efb83..f4d584d0 100644 --- a/examples/apidoc/MainClient/getVipLoanOpenOrders.js +++ b/examples/apidoc/MainClient/getVipLoanOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipLoanOpenOrders(params) diff --git a/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js b/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js index 792e07ef..7366c2a0 100644 --- a/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js +++ b/examples/apidoc/MainClient/getVipLoanRepaymentHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipLoanRepaymentHistory(params) diff --git a/examples/apidoc/MainClient/getVipLoanableAssets.js b/examples/apidoc/MainClient/getVipLoanableAssets.js index df4e2f63..51dab050 100644 --- a/examples/apidoc/MainClient/getVipLoanableAssets.js +++ b/examples/apidoc/MainClient/getVipLoanableAssets.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getVipLoanableAssets(params) diff --git a/examples/apidoc/MainClient/getWalletBalances.js b/examples/apidoc/MainClient/getWalletBalances.js index cb53ffd2..648659d5 100644 --- a/examples/apidoc/MainClient/getWalletBalances.js +++ b/examples/apidoc/MainClient/getWalletBalances.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getWalletBalances(params) diff --git a/examples/apidoc/MainClient/getWbethRewardsHistory.js b/examples/apidoc/MainClient/getWbethRewardsHistory.js index 9b5abff4..ff0f0f01 100644 --- a/examples/apidoc/MainClient/getWbethRewardsHistory.js +++ b/examples/apidoc/MainClient/getWbethRewardsHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getWbethRewardsHistory(params) diff --git a/examples/apidoc/MainClient/getWithdrawAddresses.js b/examples/apidoc/MainClient/getWithdrawAddresses.js index 2504b9b1..ed562f83 100644 --- a/examples/apidoc/MainClient/getWithdrawAddresses.js +++ b/examples/apidoc/MainClient/getWithdrawAddresses.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getWithdrawAddresses(params) diff --git a/examples/apidoc/MainClient/getWithdrawHistory.js b/examples/apidoc/MainClient/getWithdrawHistory.js index 00707160..19a5b88e 100644 --- a/examples/apidoc/MainClient/getWithdrawHistory.js +++ b/examples/apidoc/MainClient/getWithdrawHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getWithdrawHistory(params) diff --git a/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js b/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js index 83d7b801..17b40bae 100644 --- a/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js +++ b/examples/apidoc/MainClient/isolatedMarginAccountTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.isolatedMarginAccountTransfer(params) diff --git a/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js index 540bd038..49c079d5 100644 --- a/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/keepAliveIsolatedMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.keepAliveIsolatedMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js index 4caaf4f8..3af3adfb 100644 --- a/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js +++ b/examples/apidoc/MainClient/keepAliveMarginUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.keepAliveMarginUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js b/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js index 8b600cb8..4150b77e 100644 --- a/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js +++ b/examples/apidoc/MainClient/keepAliveSpotUserDataListenKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.keepAliveSpotUserDataListenKey(params) diff --git a/examples/apidoc/MainClient/marginAccountCancelOCO.js b/examples/apidoc/MainClient/marginAccountCancelOCO.js index 0d2ffafe..633e9cff 100644 --- a/examples/apidoc/MainClient/marginAccountCancelOCO.js +++ b/examples/apidoc/MainClient/marginAccountCancelOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.marginAccountCancelOCO(params) diff --git a/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js b/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js index bc86509c..71ab7395 100644 --- a/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js +++ b/examples/apidoc/MainClient/marginAccountCancelOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.marginAccountCancelOpenOrders(params) diff --git a/examples/apidoc/MainClient/marginAccountCancelOrder.js b/examples/apidoc/MainClient/marginAccountCancelOrder.js index b04f668f..d1e6a687 100644 --- a/examples/apidoc/MainClient/marginAccountCancelOrder.js +++ b/examples/apidoc/MainClient/marginAccountCancelOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.marginAccountCancelOrder(params) diff --git a/examples/apidoc/MainClient/marginAccountNewOCO.js b/examples/apidoc/MainClient/marginAccountNewOCO.js index a07a5d7c..f0dc3fd9 100644 --- a/examples/apidoc/MainClient/marginAccountNewOCO.js +++ b/examples/apidoc/MainClient/marginAccountNewOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.marginAccountNewOCO(params) diff --git a/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js b/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js index 061ba978..85c2c28b 100644 --- a/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js +++ b/examples/apidoc/MainClient/purchaseFixedAndActivityProject.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.purchaseFixedAndActivityProject(params) diff --git a/examples/apidoc/MainClient/purchaseFlexibleProduct.js b/examples/apidoc/MainClient/purchaseFlexibleProduct.js index e612eeac..db770336 100644 --- a/examples/apidoc/MainClient/purchaseFlexibleProduct.js +++ b/examples/apidoc/MainClient/purchaseFlexibleProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.purchaseFlexibleProduct(params) diff --git a/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js b/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js index 0f9085fe..046584ea 100644 --- a/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js +++ b/examples/apidoc/MainClient/queryCrossMarginAccountDetails.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryCrossMarginAccountDetails(params) diff --git a/examples/apidoc/MainClient/queryLoanRecord.js b/examples/apidoc/MainClient/queryLoanRecord.js index 06ed79af..4bc384f0 100644 --- a/examples/apidoc/MainClient/queryLoanRecord.js +++ b/examples/apidoc/MainClient/queryLoanRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryLoanRecord(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountAllOCO.js b/examples/apidoc/MainClient/queryMarginAccountAllOCO.js index 91d3ee19..2f3e2469 100644 --- a/examples/apidoc/MainClient/queryMarginAccountAllOCO.js +++ b/examples/apidoc/MainClient/queryMarginAccountAllOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountAllOCO(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountAllOrders.js b/examples/apidoc/MainClient/queryMarginAccountAllOrders.js index 1a97867e..a40b852c 100644 --- a/examples/apidoc/MainClient/queryMarginAccountAllOrders.js +++ b/examples/apidoc/MainClient/queryMarginAccountAllOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountAllOrders(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountOCO.js b/examples/apidoc/MainClient/queryMarginAccountOCO.js index 9edc0f3f..50032ab5 100644 --- a/examples/apidoc/MainClient/queryMarginAccountOCO.js +++ b/examples/apidoc/MainClient/queryMarginAccountOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountOCO(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js b/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js index 4e88abcb..1a8d1f50 100644 --- a/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js +++ b/examples/apidoc/MainClient/queryMarginAccountOpenOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountOpenOCO(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js b/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js index 7fb836d0..a040f280 100644 --- a/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js +++ b/examples/apidoc/MainClient/queryMarginAccountOpenOrders.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountOpenOrders(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountOrder.js b/examples/apidoc/MainClient/queryMarginAccountOrder.js index e6e97d69..6dc47c86 100644 --- a/examples/apidoc/MainClient/queryMarginAccountOrder.js +++ b/examples/apidoc/MainClient/queryMarginAccountOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountOrder(params) diff --git a/examples/apidoc/MainClient/queryMarginAccountTradeList.js b/examples/apidoc/MainClient/queryMarginAccountTradeList.js index 363d5faa..63b53130 100644 --- a/examples/apidoc/MainClient/queryMarginAccountTradeList.js +++ b/examples/apidoc/MainClient/queryMarginAccountTradeList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginAccountTradeList(params) diff --git a/examples/apidoc/MainClient/queryMarginPriceIndex.js b/examples/apidoc/MainClient/queryMarginPriceIndex.js index e6153a30..fdf35d2a 100644 --- a/examples/apidoc/MainClient/queryMarginPriceIndex.js +++ b/examples/apidoc/MainClient/queryMarginPriceIndex.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMarginPriceIndex(params) diff --git a/examples/apidoc/MainClient/queryMaxBorrow.js b/examples/apidoc/MainClient/queryMaxBorrow.js index abdf249f..2d674919 100644 --- a/examples/apidoc/MainClient/queryMaxBorrow.js +++ b/examples/apidoc/MainClient/queryMaxBorrow.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMaxBorrow(params) diff --git a/examples/apidoc/MainClient/queryMaxTransferOutAmount.js b/examples/apidoc/MainClient/queryMaxTransferOutAmount.js index 4804de97..3394dde7 100644 --- a/examples/apidoc/MainClient/queryMaxTransferOutAmount.js +++ b/examples/apidoc/MainClient/queryMaxTransferOutAmount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryMaxTransferOutAmount(params) diff --git a/examples/apidoc/MainClient/queryRepayRecord.js b/examples/apidoc/MainClient/queryRepayRecord.js index ac7c5f99..df2bbfd4 100644 --- a/examples/apidoc/MainClient/queryRepayRecord.js +++ b/examples/apidoc/MainClient/queryRepayRecord.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.queryRepayRecord(params) diff --git a/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js b/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js index e7d26a74..3b9680bf 100644 --- a/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js +++ b/examples/apidoc/MainClient/querySubAccountFuturesAssetInfo.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.querySubAccountFuturesAssetInfo(params) diff --git a/examples/apidoc/MainClient/redeemBlvt.js b/examples/apidoc/MainClient/redeemBlvt.js index d36d3fca..bb2c4c90 100644 --- a/examples/apidoc/MainClient/redeemBlvt.js +++ b/examples/apidoc/MainClient/redeemBlvt.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemBlvt(params) diff --git a/examples/apidoc/MainClient/redeemEth.js b/examples/apidoc/MainClient/redeemEth.js index 8704076c..ae0ab4b0 100644 --- a/examples/apidoc/MainClient/redeemEth.js +++ b/examples/apidoc/MainClient/redeemEth.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemEth(params) diff --git a/examples/apidoc/MainClient/redeemFlexibleProduct.js b/examples/apidoc/MainClient/redeemFlexibleProduct.js index 8f741af0..7d04ce77 100644 --- a/examples/apidoc/MainClient/redeemFlexibleProduct.js +++ b/examples/apidoc/MainClient/redeemFlexibleProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemFlexibleProduct(params) diff --git a/examples/apidoc/MainClient/redeemGiftCard.js b/examples/apidoc/MainClient/redeemGiftCard.js index acc8cc26..1f22fe55 100644 --- a/examples/apidoc/MainClient/redeemGiftCard.js +++ b/examples/apidoc/MainClient/redeemGiftCard.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemGiftCard(params) diff --git a/examples/apidoc/MainClient/redeemLockedProduct.js b/examples/apidoc/MainClient/redeemLockedProduct.js index 0a7c633a..62f8ebce 100644 --- a/examples/apidoc/MainClient/redeemLockedProduct.js +++ b/examples/apidoc/MainClient/redeemLockedProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemLockedProduct(params) diff --git a/examples/apidoc/MainClient/redeemSol.js b/examples/apidoc/MainClient/redeemSol.js index bb555379..d73d5d8b 100644 --- a/examples/apidoc/MainClient/redeemSol.js +++ b/examples/apidoc/MainClient/redeemSol.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.redeemSol(params) diff --git a/examples/apidoc/MainClient/removeBSwapLiquidity.js b/examples/apidoc/MainClient/removeBSwapLiquidity.js index d50ccc32..561860d3 100644 --- a/examples/apidoc/MainClient/removeBSwapLiquidity.js +++ b/examples/apidoc/MainClient/removeBSwapLiquidity.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.removeBSwapLiquidity(params) diff --git a/examples/apidoc/MainClient/renewVipLoan.js b/examples/apidoc/MainClient/renewVipLoan.js index 3b115876..f46edeba 100644 --- a/examples/apidoc/MainClient/renewVipLoan.js +++ b/examples/apidoc/MainClient/renewVipLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.renewVipLoan(params) diff --git a/examples/apidoc/MainClient/repayCryptoLoan.js b/examples/apidoc/MainClient/repayCryptoLoan.js index 4c677f7a..a16cc4bd 100644 --- a/examples/apidoc/MainClient/repayCryptoLoan.js +++ b/examples/apidoc/MainClient/repayCryptoLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.repayCryptoLoan(params) diff --git a/examples/apidoc/MainClient/repayCryptoLoanFlexible.js b/examples/apidoc/MainClient/repayCryptoLoanFlexible.js index d68241fe..51f0b5fd 100644 --- a/examples/apidoc/MainClient/repayCryptoLoanFlexible.js +++ b/examples/apidoc/MainClient/repayCryptoLoanFlexible.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.repayCryptoLoanFlexible(params) diff --git a/examples/apidoc/MainClient/repayFuturesNegativeBalance.js b/examples/apidoc/MainClient/repayFuturesNegativeBalance.js index 5655def9..713be142 100644 --- a/examples/apidoc/MainClient/repayFuturesNegativeBalance.js +++ b/examples/apidoc/MainClient/repayFuturesNegativeBalance.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.repayFuturesNegativeBalance(params) diff --git a/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js b/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js index 74dec7e2..7bea4743 100644 --- a/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js +++ b/examples/apidoc/MainClient/repayPortfolioMarginProBankruptcyLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.repayPortfolioMarginProBankruptcyLoan(params) diff --git a/examples/apidoc/MainClient/repayVipLoan.js b/examples/apidoc/MainClient/repayVipLoan.js index cb6ded6d..04644a1f 100644 --- a/examples/apidoc/MainClient/repayVipLoan.js +++ b/examples/apidoc/MainClient/repayVipLoan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.repayVipLoan(params) diff --git a/examples/apidoc/MainClient/setConvertibleCoins.js b/examples/apidoc/MainClient/setConvertibleCoins.js index 0de5f5e3..27674ec9 100644 --- a/examples/apidoc/MainClient/setConvertibleCoins.js +++ b/examples/apidoc/MainClient/setConvertibleCoins.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setConvertibleCoins(params) diff --git a/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js b/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js index 08cb98b5..380752e3 100644 --- a/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js +++ b/examples/apidoc/MainClient/setFlexibleAutoSubscribe.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setFlexibleAutoSubscribe(params) diff --git a/examples/apidoc/MainClient/setLockedAutoSubscribe.js b/examples/apidoc/MainClient/setLockedAutoSubscribe.js index 4829d71e..b1b5b719 100644 --- a/examples/apidoc/MainClient/setLockedAutoSubscribe.js +++ b/examples/apidoc/MainClient/setLockedAutoSubscribe.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setLockedAutoSubscribe(params) diff --git a/examples/apidoc/MainClient/setLockedProductRedeemOption.js b/examples/apidoc/MainClient/setLockedProductRedeemOption.js index 73f40d69..a0da86c8 100644 --- a/examples/apidoc/MainClient/setLockedProductRedeemOption.js +++ b/examples/apidoc/MainClient/setLockedProductRedeemOption.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setLockedProductRedeemOption(params) diff --git a/examples/apidoc/MainClient/subAccountAddIPList.js b/examples/apidoc/MainClient/subAccountAddIPList.js index 3a84440f..451739c1 100644 --- a/examples/apidoc/MainClient/subAccountAddIPList.js +++ b/examples/apidoc/MainClient/subAccountAddIPList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountAddIPList(params) diff --git a/examples/apidoc/MainClient/subAccountAddIPRestriction.js b/examples/apidoc/MainClient/subAccountAddIPRestriction.js index 6f655564..90bf2f2e 100644 --- a/examples/apidoc/MainClient/subAccountAddIPRestriction.js +++ b/examples/apidoc/MainClient/subAccountAddIPRestriction.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountAddIPRestriction(params) diff --git a/examples/apidoc/MainClient/subAccountDeleteIPList.js b/examples/apidoc/MainClient/subAccountDeleteIPList.js index dc5e66e9..c9cb2465 100644 --- a/examples/apidoc/MainClient/subAccountDeleteIPList.js +++ b/examples/apidoc/MainClient/subAccountDeleteIPList.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountDeleteIPList(params) diff --git a/examples/apidoc/MainClient/subAccountEnableFutures.js b/examples/apidoc/MainClient/subAccountEnableFutures.js index 0ccb5dd8..546124cd 100644 --- a/examples/apidoc/MainClient/subAccountEnableFutures.js +++ b/examples/apidoc/MainClient/subAccountEnableFutures.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountEnableFutures(params) diff --git a/examples/apidoc/MainClient/subAccountEnableLeverageToken.js b/examples/apidoc/MainClient/subAccountEnableLeverageToken.js index cea50778..4e705bae 100644 --- a/examples/apidoc/MainClient/subAccountEnableLeverageToken.js +++ b/examples/apidoc/MainClient/subAccountEnableLeverageToken.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountEnableLeverageToken(params) diff --git a/examples/apidoc/MainClient/subAccountEnableMargin.js b/examples/apidoc/MainClient/subAccountEnableMargin.js index af18bc21..68c69339 100644 --- a/examples/apidoc/MainClient/subAccountEnableMargin.js +++ b/examples/apidoc/MainClient/subAccountEnableMargin.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountEnableMargin(params) diff --git a/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js b/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js index ba003f24..0a74b81c 100644 --- a/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js +++ b/examples/apidoc/MainClient/subAccountEnableOrDisableIPRestriction.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountEnableOrDisableIPRestriction(params) diff --git a/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js b/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js index a13a9f52..aa53795a 100644 --- a/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js +++ b/examples/apidoc/MainClient/subAccountFuturesAssetTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountFuturesAssetTransfer(params) diff --git a/examples/apidoc/MainClient/subAccountFuturesTransfer.js b/examples/apidoc/MainClient/subAccountFuturesTransfer.js index b89306c9..642c769a 100644 --- a/examples/apidoc/MainClient/subAccountFuturesTransfer.js +++ b/examples/apidoc/MainClient/subAccountFuturesTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountFuturesTransfer(params) diff --git a/examples/apidoc/MainClient/subAccountMarginTransfer.js b/examples/apidoc/MainClient/subAccountMarginTransfer.js index 01aabb36..e58a37c7 100644 --- a/examples/apidoc/MainClient/subAccountMarginTransfer.js +++ b/examples/apidoc/MainClient/subAccountMarginTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountMarginTransfer(params) diff --git a/examples/apidoc/MainClient/subAccountTransferHistory.js b/examples/apidoc/MainClient/subAccountTransferHistory.js index e1f70c95..602050d7 100644 --- a/examples/apidoc/MainClient/subAccountTransferHistory.js +++ b/examples/apidoc/MainClient/subAccountTransferHistory.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountTransferHistory(params) diff --git a/examples/apidoc/MainClient/subAccountTransferToMaster.js b/examples/apidoc/MainClient/subAccountTransferToMaster.js index 629e63a1..7dfd27c1 100644 --- a/examples/apidoc/MainClient/subAccountTransferToMaster.js +++ b/examples/apidoc/MainClient/subAccountTransferToMaster.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountTransferToMaster(params) diff --git a/examples/apidoc/MainClient/subAccountTransferToSameMaster.js b/examples/apidoc/MainClient/subAccountTransferToSameMaster.js index 7137b998..779fe029 100644 --- a/examples/apidoc/MainClient/subAccountTransferToSameMaster.js +++ b/examples/apidoc/MainClient/subAccountTransferToSameMaster.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountTransferToSameMaster(params) diff --git a/examples/apidoc/MainClient/subAccountUniversalTransfer.js b/examples/apidoc/MainClient/subAccountUniversalTransfer.js index 33ce1e74..3ca60d4d 100644 --- a/examples/apidoc/MainClient/subAccountUniversalTransfer.js +++ b/examples/apidoc/MainClient/subAccountUniversalTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subAccountUniversalTransfer(params) diff --git a/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js b/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js index 11674d4d..1630bf8c 100644 --- a/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js +++ b/examples/apidoc/MainClient/submitAutoInvestOneTimeTransaction.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitAutoInvestOneTimeTransaction(params) diff --git a/examples/apidoc/MainClient/submitAutoInvestRedemption.js b/examples/apidoc/MainClient/submitAutoInvestRedemption.js index 291ef899..e7ee447f 100644 --- a/examples/apidoc/MainClient/submitAutoInvestRedemption.js +++ b/examples/apidoc/MainClient/submitAutoInvestRedemption.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitAutoInvestRedemption(params) diff --git a/examples/apidoc/MainClient/submitAutoInvestmentPlan.js b/examples/apidoc/MainClient/submitAutoInvestmentPlan.js index 7e006264..975093a0 100644 --- a/examples/apidoc/MainClient/submitAutoInvestmentPlan.js +++ b/examples/apidoc/MainClient/submitAutoInvestmentPlan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitAutoInvestmentPlan(params) diff --git a/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js b/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js index 507dfa07..b9b80f66 100644 --- a/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js +++ b/examples/apidoc/MainClient/submitAutoInvestmentPlanOld.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitAutoInvestmentPlanOld(params) diff --git a/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js b/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js index c5cef9f3..de16ec00 100644 --- a/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js +++ b/examples/apidoc/MainClient/submitBrokerSubFuturesTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitBrokerSubFuturesTransfer(params) diff --git a/examples/apidoc/MainClient/submitConvertLimitOrder.js b/examples/apidoc/MainClient/submitConvertLimitOrder.js index 92c6140b..a880c76d 100644 --- a/examples/apidoc/MainClient/submitConvertLimitOrder.js +++ b/examples/apidoc/MainClient/submitConvertLimitOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitConvertLimitOrder(params) diff --git a/examples/apidoc/MainClient/submitDepositCredit.js b/examples/apidoc/MainClient/submitDepositCredit.js index 61df171c..725ea5f6 100644 --- a/examples/apidoc/MainClient/submitDepositCredit.js +++ b/examples/apidoc/MainClient/submitDepositCredit.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitDepositCredit(params) diff --git a/examples/apidoc/MainClient/submitHashrateResale.js b/examples/apidoc/MainClient/submitHashrateResale.js index b4519960..ceaa145f 100644 --- a/examples/apidoc/MainClient/submitHashrateResale.js +++ b/examples/apidoc/MainClient/submitHashrateResale.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitHashrateResale(params) diff --git a/examples/apidoc/MainClient/submitManualLiquidation.js b/examples/apidoc/MainClient/submitManualLiquidation.js index a0753eb1..1bf010a2 100644 --- a/examples/apidoc/MainClient/submitManualLiquidation.js +++ b/examples/apidoc/MainClient/submitManualLiquidation.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitManualLiquidation(params) diff --git a/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js b/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js index 5c3f7a67..3ed891f7 100644 --- a/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js +++ b/examples/apidoc/MainClient/submitMarginAccountBorrowRepay.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitMarginAccountBorrowRepay(params) diff --git a/examples/apidoc/MainClient/submitMarginOTOCOOrder.js b/examples/apidoc/MainClient/submitMarginOTOCOOrder.js index c89c6d14..04311bcc 100644 --- a/examples/apidoc/MainClient/submitMarginOTOCOOrder.js +++ b/examples/apidoc/MainClient/submitMarginOTOCOOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitMarginOTOCOOrder(params) diff --git a/examples/apidoc/MainClient/submitMarginOTOOrder.js b/examples/apidoc/MainClient/submitMarginOTOOrder.js index 854a15da..f4aab9ec 100644 --- a/examples/apidoc/MainClient/submitMarginOTOOrder.js +++ b/examples/apidoc/MainClient/submitMarginOTOOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitMarginOTOOrder(params) diff --git a/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js b/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js index e25d9699..0f5388a3 100644 --- a/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js +++ b/examples/apidoc/MainClient/submitNewFutureAccountTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewFutureAccountTransfer(params) diff --git a/examples/apidoc/MainClient/submitNewOCO.js b/examples/apidoc/MainClient/submitNewOCO.js index 80d714cd..1c704faa 100644 --- a/examples/apidoc/MainClient/submitNewOCO.js +++ b/examples/apidoc/MainClient/submitNewOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewOCO(params) diff --git a/examples/apidoc/MainClient/submitNewOrderListOTO.js b/examples/apidoc/MainClient/submitNewOrderListOTO.js index ce6c476b..c11600a1 100644 --- a/examples/apidoc/MainClient/submitNewOrderListOTO.js +++ b/examples/apidoc/MainClient/submitNewOrderListOTO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewOrderListOTO(params) diff --git a/examples/apidoc/MainClient/submitNewOrderListOTOCO.js b/examples/apidoc/MainClient/submitNewOrderListOTOCO.js index a2ac1113..582a9830 100644 --- a/examples/apidoc/MainClient/submitNewOrderListOTOCO.js +++ b/examples/apidoc/MainClient/submitNewOrderListOTOCO.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewOrderListOTOCO(params) diff --git a/examples/apidoc/MainClient/submitNewSOROrder.js b/examples/apidoc/MainClient/submitNewSOROrder.js index 8d383e5f..ae59b18b 100644 --- a/examples/apidoc/MainClient/submitNewSOROrder.js +++ b/examples/apidoc/MainClient/submitNewSOROrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewSOROrder(params) diff --git a/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js b/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js index c39dfc70..dc05bf74 100644 --- a/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js +++ b/examples/apidoc/MainClient/submitPortfolioMarginProFullTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitPortfolioMarginProFullTransfer(params) diff --git a/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js b/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js index 6560b73a..7632d6be 100644 --- a/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js +++ b/examples/apidoc/MainClient/submitPortfolioMarginProSpecificTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitPortfolioMarginProSpecificTransfer(params) diff --git a/examples/apidoc/MainClient/submitSmallLiabilityExchange.js b/examples/apidoc/MainClient/submitSmallLiabilityExchange.js index 7f93db86..e840de96 100644 --- a/examples/apidoc/MainClient/submitSmallLiabilityExchange.js +++ b/examples/apidoc/MainClient/submitSmallLiabilityExchange.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitSmallLiabilityExchange(params) diff --git a/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js b/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js index 2cb20c14..3cb26122 100644 --- a/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js +++ b/examples/apidoc/MainClient/submitSpotAlgoTwapOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitSpotAlgoTwapOrder(params) diff --git a/examples/apidoc/MainClient/submitTwapNewOrder.js b/examples/apidoc/MainClient/submitTwapNewOrder.js index 34b1a73e..e1d55670 100644 --- a/examples/apidoc/MainClient/submitTwapNewOrder.js +++ b/examples/apidoc/MainClient/submitTwapNewOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitTwapNewOrder(params) diff --git a/examples/apidoc/MainClient/submitUniversalTransfer.js b/examples/apidoc/MainClient/submitUniversalTransfer.js index 565b71b7..384d8f9d 100644 --- a/examples/apidoc/MainClient/submitUniversalTransfer.js +++ b/examples/apidoc/MainClient/submitUniversalTransfer.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitUniversalTransfer(params) diff --git a/examples/apidoc/MainClient/submitVpNewOrder.js b/examples/apidoc/MainClient/submitVpNewOrder.js index dd00bced..ea4d8ff8 100644 --- a/examples/apidoc/MainClient/submitVpNewOrder.js +++ b/examples/apidoc/MainClient/submitVpNewOrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitVpNewOrder(params) diff --git a/examples/apidoc/MainClient/subscribeBlvt.js b/examples/apidoc/MainClient/subscribeBlvt.js index f15b59be..cd627fc1 100644 --- a/examples/apidoc/MainClient/subscribeBlvt.js +++ b/examples/apidoc/MainClient/subscribeBlvt.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeBlvt(params) diff --git a/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js b/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js index 05cd2796..02e59ebb 100644 --- a/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js +++ b/examples/apidoc/MainClient/subscribeDualInvestmentProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeDualInvestmentProduct(params) diff --git a/examples/apidoc/MainClient/subscribeEthStakingV1.js b/examples/apidoc/MainClient/subscribeEthStakingV1.js index 79188ede..c3b11a4f 100644 --- a/examples/apidoc/MainClient/subscribeEthStakingV1.js +++ b/examples/apidoc/MainClient/subscribeEthStakingV1.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeEthStakingV1(params) diff --git a/examples/apidoc/MainClient/subscribeEthStakingV2.js b/examples/apidoc/MainClient/subscribeEthStakingV2.js index 8b325e6d..a0849f6f 100644 --- a/examples/apidoc/MainClient/subscribeEthStakingV2.js +++ b/examples/apidoc/MainClient/subscribeEthStakingV2.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeEthStakingV2(params) diff --git a/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js b/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js index 87cf277f..a3ddba69 100644 --- a/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js +++ b/examples/apidoc/MainClient/subscribeSimpleEarnLockedProduct.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeSimpleEarnLockedProduct(params) diff --git a/examples/apidoc/MainClient/subscribeSolStaking.js b/examples/apidoc/MainClient/subscribeSolStaking.js index 21b1d9d0..68f3b137 100644 --- a/examples/apidoc/MainClient/subscribeSolStaking.js +++ b/examples/apidoc/MainClient/subscribeSolStaking.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.subscribeSolStaking(params) diff --git a/examples/apidoc/MainClient/testConnectivity.js b/examples/apidoc/MainClient/testConnectivity.js index da36495e..f6d4bcf9 100644 --- a/examples/apidoc/MainClient/testConnectivity.js +++ b/examples/apidoc/MainClient/testConnectivity.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: YES const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.testConnectivity(params) diff --git a/examples/apidoc/MainClient/testNewSOROrder.js b/examples/apidoc/MainClient/testNewSOROrder.js index 9584865e..f2ee5292 100644 --- a/examples/apidoc/MainClient/testNewSOROrder.js +++ b/examples/apidoc/MainClient/testNewSOROrder.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.testNewSOROrder(params) diff --git a/examples/apidoc/MainClient/toggleBNBBurn.js b/examples/apidoc/MainClient/toggleBNBBurn.js index 748da90f..1cb26e94 100644 --- a/examples/apidoc/MainClient/toggleBNBBurn.js +++ b/examples/apidoc/MainClient/toggleBNBBurn.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.toggleBNBBurn(params) diff --git a/examples/apidoc/MainClient/transferBrokerSubAccount.js b/examples/apidoc/MainClient/transferBrokerSubAccount.js index adc7530b..f66f0d3d 100644 --- a/examples/apidoc/MainClient/transferBrokerSubAccount.js +++ b/examples/apidoc/MainClient/transferBrokerSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.transferBrokerSubAccount(params) diff --git a/examples/apidoc/MainClient/universalTransferBroker.js b/examples/apidoc/MainClient/universalTransferBroker.js index cac2226e..e36f875a 100644 --- a/examples/apidoc/MainClient/universalTransferBroker.js +++ b/examples/apidoc/MainClient/universalTransferBroker.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.universalTransferBroker(params) diff --git a/examples/apidoc/MainClient/updateAutoCompoundStatus.js b/examples/apidoc/MainClient/updateAutoCompoundStatus.js index f4838b4b..c9065945 100644 --- a/examples/apidoc/MainClient/updateAutoCompoundStatus.js +++ b/examples/apidoc/MainClient/updateAutoCompoundStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateAutoCompoundStatus(params) diff --git a/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js b/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js index b9b67dc4..70d9110e 100644 --- a/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js +++ b/examples/apidoc/MainClient/updateAutoInvestPlanStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateAutoInvestPlanStatus(params) diff --git a/examples/apidoc/MainClient/updateAutoInvestmentPlan.js b/examples/apidoc/MainClient/updateAutoInvestmentPlan.js index f10fd0b0..c884687e 100644 --- a/examples/apidoc/MainClient/updateAutoInvestmentPlan.js +++ b/examples/apidoc/MainClient/updateAutoInvestmentPlan.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateAutoInvestmentPlan(params) diff --git a/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js b/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js index 355830a0..29d3061d 100644 --- a/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js +++ b/examples/apidoc/MainClient/updateAutoInvestmentPlanOld.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateAutoInvestmentPlanOld(params) diff --git a/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js b/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js index 934dd05a..98eafd65 100644 --- a/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js +++ b/examples/apidoc/MainClient/updateAutoRepayFuturesStatus.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateAutoRepayFuturesStatus(params) diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js index bf72a7be..73de5ab1 100644 --- a/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js +++ b/examples/apidoc/MainClient/updateBrokerSubAccountCoinFuturesCommission.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateBrokerSubAccountCoinFuturesCommission(params) diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js index c4fd0dfc..686d503b 100644 --- a/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js +++ b/examples/apidoc/MainClient/updateBrokerSubAccountCommission.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateBrokerSubAccountCommission(params) diff --git a/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js b/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js index 8ec3790f..09221771 100644 --- a/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js +++ b/examples/apidoc/MainClient/updateBrokerSubAccountFuturesCommission.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateBrokerSubAccountFuturesCommission(params) diff --git a/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js b/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js index 7da2565f..ffeb155a 100644 --- a/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js +++ b/examples/apidoc/MainClient/updateCrossMarginMaxLeverage.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateCrossMarginMaxLeverage(params) diff --git a/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js b/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js index bd40d553..fdcf1e40 100644 --- a/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js +++ b/examples/apidoc/MainClient/updateIpRestrictionForSubAccountApiKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateIpRestrictionForSubAccountApiKey(params) diff --git a/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js b/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js index 4f9b5b23..aab632fd 100644 --- a/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js +++ b/examples/apidoc/MainClient/updateMarginIPForSpecialLowLatencyKey.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateMarginIPForSpecialLowLatencyKey(params) diff --git a/examples/apidoc/MainClient/updateSubAccountBNBBurn.js b/examples/apidoc/MainClient/updateSubAccountBNBBurn.js index 72566dca..35777006 100644 --- a/examples/apidoc/MainClient/updateSubAccountBNBBurn.js +++ b/examples/apidoc/MainClient/updateSubAccountBNBBurn.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateSubAccountBNBBurn(params) diff --git a/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js b/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js index fb9a551e..05ea85b2 100644 --- a/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js +++ b/examples/apidoc/MainClient/updateSubAccountMarginInterestBNBBurn.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.updateSubAccountMarginInterestBNBBurn(params) diff --git a/examples/apidoc/MainClient/verifyGiftCard.js b/examples/apidoc/MainClient/verifyGiftCard.js index ad7c9a9c..afb85eb5 100644 --- a/examples/apidoc/MainClient/verifyGiftCard.js +++ b/examples/apidoc/MainClient/verifyGiftCard.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.verifyGiftCard(params) diff --git a/examples/apidoc/MainClient/withdraw.js b/examples/apidoc/MainClient/withdraw.js index 33703efb..17648f90 100644 --- a/examples/apidoc/MainClient/withdraw.js +++ b/examples/apidoc/MainClient/withdraw.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.withdraw(params) diff --git a/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js b/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js index aacecab2..a1ad10b4 100644 --- a/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js +++ b/examples/apidoc/MainClient/withdrawAssetsFromManagedSubAccount.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.withdrawAssetsFromManagedSubAccount(params) diff --git a/examples/apidoc/MainClient/wrapBeth.js b/examples/apidoc/MainClient/wrapBeth.js index 14191231..dd31ee2f 100644 --- a/examples/apidoc/MainClient/wrapBeth.js +++ b/examples/apidoc/MainClient/wrapBeth.js @@ -7,8 +7,8 @@ const { MainClient } = require('binance'); // PUBLIC: NO const client = new MainClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.wrapBeth(params) diff --git a/examples/apidoc/PortfolioClient/autoCollectFunds.js b/examples/apidoc/PortfolioClient/autoCollectFunds.js new file mode 100644 index 00000000..420b925e --- /dev/null +++ b/examples/apidoc/PortfolioClient/autoCollectFunds.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/auto-collection + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.autoCollectFunds(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelAllCMConditionalOrders.js b/examples/apidoc/PortfolioClient/cancelAllCMConditionalOrders.js new file mode 100644 index 00000000..f57a74d0 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelAllCMConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelAllCMConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelAllCMOrders.js b/examples/apidoc/PortfolioClient/cancelAllCMOrders.js new file mode 100644 index 00000000..8cc23050 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelAllCMOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelAllCMOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelAllMarginOrders.js b/examples/apidoc/PortfolioClient/cancelAllMarginOrders.js new file mode 100644 index 00000000..a2689efc --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelAllMarginOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelAllMarginOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelAllUMConditionalOrders.js b/examples/apidoc/PortfolioClient/cancelAllUMConditionalOrders.js new file mode 100644 index 00000000..4b197e47 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelAllUMConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelAllUMConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelAllUMOrders.js b/examples/apidoc/PortfolioClient/cancelAllUMOrders.js new file mode 100644 index 00000000..b3762fbe --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelAllUMOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/allOpenOrders + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelAllUMOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelCMConditionalOrder.js b/examples/apidoc/PortfolioClient/cancelCMConditionalOrder.js new file mode 100644 index 00000000..ee7c45b9 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelCMConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/order + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelCMConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelCMOrder.js b/examples/apidoc/PortfolioClient/cancelCMOrder.js new file mode 100644 index 00000000..05c25df5 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelCMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/order + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelCMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelMarginOCO.js b/examples/apidoc/PortfolioClient/cancelMarginOCO.js new file mode 100644 index 00000000..0e973176 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelMarginOCO.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/orderList + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelMarginOCO(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelMarginOrder.js b/examples/apidoc/PortfolioClient/cancelMarginOrder.js new file mode 100644 index 00000000..80240f5f --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelMarginOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/order + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelMarginOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelUMConditionalOrder.js b/examples/apidoc/PortfolioClient/cancelUMConditionalOrder.js new file mode 100644 index 00000000..e26192b8 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelUMConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/order + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelUMConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/cancelUMOrder.js b/examples/apidoc/PortfolioClient/cancelUMOrder.js new file mode 100644 index 00000000..7876d485 --- /dev/null +++ b/examples/apidoc/PortfolioClient/cancelUMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order + // METHOD: DELETE + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.cancelUMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/closePMUserDataListenKey.js b/examples/apidoc/PortfolioClient/closePMUserDataListenKey.js new file mode 100644 index 00000000..189cd4ca --- /dev/null +++ b/examples/apidoc/PortfolioClient/closePMUserDataListenKey.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/listenKey + // METHOD: DELETE + // PUBLIC: YES + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.closePMUserDataListenKey(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAccountInfo.js b/examples/apidoc/PortfolioClient/getAccountInfo.js new file mode 100644 index 00000000..513ffe17 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAccountInfo.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/account + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAccountInfo(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllCMConditionalOrders.js b/examples/apidoc/PortfolioClient/getAllCMConditionalOrders.js new file mode 100644 index 00000000..34ae5004 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllCMConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/allOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllCMConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllCMOpenOrders.js b/examples/apidoc/PortfolioClient/getAllCMOpenOrders.js new file mode 100644 index 00000000..e417479a --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllCMOpenOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/openOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllCMOpenOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllCMOrders.js b/examples/apidoc/PortfolioClient/getAllCMOrders.js new file mode 100644 index 00000000..5ca24a51 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllCMOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/allOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllCMOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllMarginOCO.js b/examples/apidoc/PortfolioClient/getAllMarginOCO.js new file mode 100644 index 00000000..98638e45 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllMarginOCO.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/allOrderList + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllMarginOCO(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllMarginOrders.js b/examples/apidoc/PortfolioClient/getAllMarginOrders.js new file mode 100644 index 00000000..7ef08b6b --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllMarginOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/allOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllMarginOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllUMConditionalOrders.js b/examples/apidoc/PortfolioClient/getAllUMConditionalOrders.js new file mode 100644 index 00000000..561979e6 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllUMConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/allOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllUMConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllUMOpenOrders.js b/examples/apidoc/PortfolioClient/getAllUMOpenOrders.js new file mode 100644 index 00000000..fd7acca1 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllUMOpenOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/openOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllUMOpenOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAllUMOrders.js b/examples/apidoc/PortfolioClient/getAllUMOrders.js new file mode 100644 index 00000000..3251b3d9 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAllUMOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/allOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAllUMOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getAutoRepayFuturesStatus.js b/examples/apidoc/PortfolioClient/getAutoRepayFuturesStatus.js new file mode 100644 index 00000000..ebf50610 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getAutoRepayFuturesStatus.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/repay-futures-switch + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getAutoRepayFuturesStatus(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getBalance.js b/examples/apidoc/PortfolioClient/getBalance.js new file mode 100644 index 00000000..7e213092 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getBalance.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/balance + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getBalance(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMADLQuantile.js b/examples/apidoc/PortfolioClient/getCMADLQuantile.js new file mode 100644 index 00000000..953ec049 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMADLQuantile.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/adlQuantile + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMADLQuantile(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMAccount.js b/examples/apidoc/PortfolioClient/getCMAccount.js new file mode 100644 index 00000000..1cfa5d9e --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMAccount.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/account + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMAccount(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMCommissionRate.js b/examples/apidoc/PortfolioClient/getCMCommissionRate.js new file mode 100644 index 00000000..7092bebc --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMCommissionRate.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/commissionRate + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMCommissionRate(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMConditionalOrderHistory.js b/examples/apidoc/PortfolioClient/getCMConditionalOrderHistory.js new file mode 100644 index 00000000..f9f9320d --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMConditionalOrderHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/orderHistory + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMConditionalOrderHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMForceOrders.js b/examples/apidoc/PortfolioClient/getCMForceOrders.js new file mode 100644 index 00000000..9aa26604 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMForceOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/forceOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMForceOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMIncomeHistory.js b/examples/apidoc/PortfolioClient/getCMIncomeHistory.js new file mode 100644 index 00000000..cc3d1bc9 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMIncomeHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/income + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMIncomeHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMLeverageBrackets.js b/examples/apidoc/PortfolioClient/getCMLeverageBrackets.js new file mode 100644 index 00000000..1d8129ba --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMLeverageBrackets.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/leverageBracket + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMLeverageBrackets(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMOpenConditionalOrder.js b/examples/apidoc/PortfolioClient/getCMOpenConditionalOrder.js new file mode 100644 index 00000000..f4a6ee24 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMOpenConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/openOrder + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMOpenConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMOpenConditionalOrders.js b/examples/apidoc/PortfolioClient/getCMOpenConditionalOrders.js new file mode 100644 index 00000000..05a6f83e --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMOpenConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/openOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMOpenConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMOpenOrder.js b/examples/apidoc/PortfolioClient/getCMOpenOrder.js new file mode 100644 index 00000000..23919f9c --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMOpenOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/openOrder + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMOpenOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMOrder.js b/examples/apidoc/PortfolioClient/getCMOrder.js new file mode 100644 index 00000000..f1215eb6 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/order + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMOrderModificationHistory.js b/examples/apidoc/PortfolioClient/getCMOrderModificationHistory.js new file mode 100644 index 00000000..2315ee76 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMOrderModificationHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/orderAmendment + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMOrderModificationHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMPosition.js b/examples/apidoc/PortfolioClient/getCMPosition.js new file mode 100644 index 00000000..0e897c12 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMPosition.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/positionRisk + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMPosition(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMPositionMode.js b/examples/apidoc/PortfolioClient/getCMPositionMode.js new file mode 100644 index 00000000..2088b4e3 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMPositionMode.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/positionSide/dual + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMPositionMode(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getCMTrades.js b/examples/apidoc/PortfolioClient/getCMTrades.js new file mode 100644 index 00000000..4aca4bda --- /dev/null +++ b/examples/apidoc/PortfolioClient/getCMTrades.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/userTrades + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getCMTrades(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginForceOrders.js b/examples/apidoc/PortfolioClient/getMarginForceOrders.js new file mode 100644 index 00000000..c07fd4e7 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginForceOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/forceOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginForceOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginInterestHistory.js b/examples/apidoc/PortfolioClient/getMarginInterestHistory.js new file mode 100644 index 00000000..2e6e7b7e --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginInterestHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/marginInterestHistory + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginInterestHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginLoanRecords.js b/examples/apidoc/PortfolioClient/getMarginLoanRecords.js new file mode 100644 index 00000000..0e715956 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginLoanRecords.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/marginLoan + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginLoanRecords(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginMaxBorrow.js b/examples/apidoc/PortfolioClient/getMarginMaxBorrow.js new file mode 100644 index 00000000..1b626976 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginMaxBorrow.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/maxBorrowable + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginMaxBorrow(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginMaxWithdraw.js b/examples/apidoc/PortfolioClient/getMarginMaxWithdraw.js new file mode 100644 index 00000000..2f6f661e --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginMaxWithdraw.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/maxWithdraw + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginMaxWithdraw(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginOCO.js b/examples/apidoc/PortfolioClient/getMarginOCO.js new file mode 100644 index 00000000..4deedb2b --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginOCO.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/orderList + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginOCO(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginOpenOCO.js b/examples/apidoc/PortfolioClient/getMarginOpenOCO.js new file mode 100644 index 00000000..11b9da59 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginOpenOCO.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/openOrderList + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginOpenOCO(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginOpenOrders.js b/examples/apidoc/PortfolioClient/getMarginOpenOrders.js new file mode 100644 index 00000000..5a7928be --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginOpenOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/openOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginOpenOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginOrder.js b/examples/apidoc/PortfolioClient/getMarginOrder.js new file mode 100644 index 00000000..5a6b2090 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/order + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginRepayRecords.js b/examples/apidoc/PortfolioClient/getMarginRepayRecords.js new file mode 100644 index 00000000..5a048e8c --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginRepayRecords.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/repayLoan + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginRepayRecords(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getMarginTrades.js b/examples/apidoc/PortfolioClient/getMarginTrades.js new file mode 100644 index 00000000..b0ad0d0d --- /dev/null +++ b/examples/apidoc/PortfolioClient/getMarginTrades.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/myTrades + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getMarginTrades(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getPMUserDataListenKey.js b/examples/apidoc/PortfolioClient/getPMUserDataListenKey.js new file mode 100644 index 00000000..142599c3 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getPMUserDataListenKey.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/listenKey + // METHOD: POST + // PUBLIC: YES + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getPMUserDataListenKey(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getPortfolioNegativeBalanceInterestHistory.js b/examples/apidoc/PortfolioClient/getPortfolioNegativeBalanceInterestHistory.js new file mode 100644 index 00000000..ba10cf51 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getPortfolioNegativeBalanceInterestHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/portfolio/interest-history + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getPortfolioNegativeBalanceInterestHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMADLQuantile.js b/examples/apidoc/PortfolioClient/getUMADLQuantile.js new file mode 100644 index 00000000..bb733809 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMADLQuantile.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/adlQuantile + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMADLQuantile(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMAccount.js b/examples/apidoc/PortfolioClient/getUMAccount.js new file mode 100644 index 00000000..691955f7 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMAccount.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/account + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMAccount(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMAccountConfig.js b/examples/apidoc/PortfolioClient/getUMAccountConfig.js new file mode 100644 index 00000000..524cb972 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMAccountConfig.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/accountConfig + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMAccountConfig(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMAccountV2.js b/examples/apidoc/PortfolioClient/getUMAccountV2.js new file mode 100644 index 00000000..ca67b390 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMAccountV2.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v2/um/account + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMAccountV2(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMCommissionRate.js b/examples/apidoc/PortfolioClient/getUMCommissionRate.js new file mode 100644 index 00000000..decdd85c --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMCommissionRate.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/commissionRate + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMCommissionRate(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMConditionalOrderHistory.js b/examples/apidoc/PortfolioClient/getUMConditionalOrderHistory.js new file mode 100644 index 00000000..8567e3a1 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMConditionalOrderHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/orderHistory + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMConditionalOrderHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMFeeBurnStatus.js b/examples/apidoc/PortfolioClient/getUMFeeBurnStatus.js new file mode 100644 index 00000000..b18481a6 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMFeeBurnStatus.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/feeBurn + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMFeeBurnStatus(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMForceOrders.js b/examples/apidoc/PortfolioClient/getUMForceOrders.js new file mode 100644 index 00000000..5b61cb39 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMForceOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/forceOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMForceOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMIncomeHistory.js b/examples/apidoc/PortfolioClient/getUMIncomeHistory.js new file mode 100644 index 00000000..dcc20876 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMIncomeHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/income + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMIncomeHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMLeverageBrackets.js b/examples/apidoc/PortfolioClient/getUMLeverageBrackets.js new file mode 100644 index 00000000..d1a1beed --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMLeverageBrackets.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/leverageBracket + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMLeverageBrackets(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOpenConditionalOrder.js b/examples/apidoc/PortfolioClient/getUMOpenConditionalOrder.js new file mode 100644 index 00000000..a2c11b55 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOpenConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/openOrder + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOpenConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOpenConditionalOrders.js b/examples/apidoc/PortfolioClient/getUMOpenConditionalOrders.js new file mode 100644 index 00000000..658545ea --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOpenConditionalOrders.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/openOrders + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOpenConditionalOrders(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOpenOrder.js b/examples/apidoc/PortfolioClient/getUMOpenOrder.js new file mode 100644 index 00000000..1da8a529 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOpenOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/openOrder + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOpenOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOrder.js b/examples/apidoc/PortfolioClient/getUMOrder.js new file mode 100644 index 00000000..056d2d77 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOrderDownloadLink.js b/examples/apidoc/PortfolioClient/getUMOrderDownloadLink.js new file mode 100644 index 00000000..08291c8d --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOrderDownloadLink.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order/asyn/id + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOrderDownloadLink(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOrderHistoryDownloadId.js b/examples/apidoc/PortfolioClient/getUMOrderHistoryDownloadId.js new file mode 100644 index 00000000..52426a64 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOrderHistoryDownloadId.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order/asyn + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOrderHistoryDownloadId(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMOrderModificationHistory.js b/examples/apidoc/PortfolioClient/getUMOrderModificationHistory.js new file mode 100644 index 00000000..b3b6b6c9 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMOrderModificationHistory.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/orderAmendment + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMOrderModificationHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMPosition.js b/examples/apidoc/PortfolioClient/getUMPosition.js new file mode 100644 index 00000000..af75b440 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMPosition.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/positionRisk + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMPosition(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMPositionMode.js b/examples/apidoc/PortfolioClient/getUMPositionMode.js new file mode 100644 index 00000000..5b713708 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMPositionMode.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/positionSide/dual + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMPositionMode(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMSymbolConfig.js b/examples/apidoc/PortfolioClient/getUMSymbolConfig.js new file mode 100644 index 00000000..58c5fc9b --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMSymbolConfig.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/symbolConfig + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMSymbolConfig(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTradeDownloadLink.js b/examples/apidoc/PortfolioClient/getUMTradeDownloadLink.js new file mode 100644 index 00000000..ea666e13 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTradeDownloadLink.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/trade/asyn/id + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTradeDownloadLink(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTradeHistoryDownloadId.js b/examples/apidoc/PortfolioClient/getUMTradeHistoryDownloadId.js new file mode 100644 index 00000000..9c77f368 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTradeHistoryDownloadId.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/trade/asyn + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTradeHistoryDownloadId(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTrades.js b/examples/apidoc/PortfolioClient/getUMTrades.js new file mode 100644 index 00000000..f3ad2750 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTrades.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/userTrades + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTrades(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTradingStatus.js b/examples/apidoc/PortfolioClient/getUMTradingStatus.js new file mode 100644 index 00000000..dc52ec77 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTradingStatus.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/apiTradingStatus + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTradingStatus(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTransactionDownloadLink.js b/examples/apidoc/PortfolioClient/getUMTransactionDownloadLink.js new file mode 100644 index 00000000..599f673f --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTransactionDownloadLink.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/income/asyn/id + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTransactionDownloadLink(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/getUMTransactionHistoryDownloadId.js b/examples/apidoc/PortfolioClient/getUMTransactionHistoryDownloadId.js new file mode 100644 index 00000000..45676707 --- /dev/null +++ b/examples/apidoc/PortfolioClient/getUMTransactionHistoryDownloadId.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/income/asyn + // METHOD: GET + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.getUMTransactionHistoryDownloadId(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/keepAlivePMUserDataListenKey.js b/examples/apidoc/PortfolioClient/keepAlivePMUserDataListenKey.js new file mode 100644 index 00000000..38c229f7 --- /dev/null +++ b/examples/apidoc/PortfolioClient/keepAlivePMUserDataListenKey.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/listenKey + // METHOD: PUT + // PUBLIC: YES + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.keepAlivePMUserDataListenKey(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/modifyCMOrder.js b/examples/apidoc/PortfolioClient/modifyCMOrder.js new file mode 100644 index 00000000..1b743878 --- /dev/null +++ b/examples/apidoc/PortfolioClient/modifyCMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/order + // METHOD: PUT + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.modifyCMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/modifyUMOrder.js b/examples/apidoc/PortfolioClient/modifyUMOrder.js new file mode 100644 index 00000000..e13c620d --- /dev/null +++ b/examples/apidoc/PortfolioClient/modifyUMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order + // METHOD: PUT + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.modifyUMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/repayFuturesNegativeBalance.js b/examples/apidoc/PortfolioClient/repayFuturesNegativeBalance.js new file mode 100644 index 00000000..630e9a04 --- /dev/null +++ b/examples/apidoc/PortfolioClient/repayFuturesNegativeBalance.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/repay-futures-negative-balance + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.repayFuturesNegativeBalance(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/repayMarginDebt.js b/examples/apidoc/PortfolioClient/repayMarginDebt.js new file mode 100644 index 00000000..e85bc68a --- /dev/null +++ b/examples/apidoc/PortfolioClient/repayMarginDebt.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/repay-debt + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.repayMarginDebt(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitMarginLoan.js b/examples/apidoc/PortfolioClient/submitMarginLoan.js new file mode 100644 index 00000000..e921fa38 --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitMarginLoan.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/marginLoan + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitMarginLoan(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitMarginRepay.js b/examples/apidoc/PortfolioClient/submitMarginRepay.js new file mode 100644 index 00000000..faed36fb --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitMarginRepay.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/repayLoan + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitMarginRepay(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewCMConditionalOrder.js b/examples/apidoc/PortfolioClient/submitNewCMConditionalOrder.js new file mode 100644 index 00000000..5052396f --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewCMConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/conditional/order + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewCMConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewCMOrder.js b/examples/apidoc/PortfolioClient/submitNewCMOrder.js new file mode 100644 index 00000000..1b4d5215 --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewCMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/order + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewCMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewMarginOCO.js b/examples/apidoc/PortfolioClient/submitNewMarginOCO.js new file mode 100644 index 00000000..8cd91cf0 --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewMarginOCO.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/order/oco + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewMarginOCO(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewMarginOrder.js b/examples/apidoc/PortfolioClient/submitNewMarginOrder.js new file mode 100644 index 00000000..536df056 --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewMarginOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/margin/order + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewMarginOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewUMConditionalOrder.js b/examples/apidoc/PortfolioClient/submitNewUMConditionalOrder.js new file mode 100644 index 00000000..aed37dbd --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewUMConditionalOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/conditional/order + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewUMConditionalOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/submitNewUMOrder.js b/examples/apidoc/PortfolioClient/submitNewUMOrder.js new file mode 100644 index 00000000..123e45bc --- /dev/null +++ b/examples/apidoc/PortfolioClient/submitNewUMOrder.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/order + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.submitNewUMOrder(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/testConnectivity.js b/examples/apidoc/PortfolioClient/testConnectivity.js new file mode 100644 index 00000000..afcb5354 --- /dev/null +++ b/examples/apidoc/PortfolioClient/testConnectivity.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/ping + // METHOD: GET + // PUBLIC: YES + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.testConnectivity(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/toggleUMFeeBurn.js b/examples/apidoc/PortfolioClient/toggleUMFeeBurn.js new file mode 100644 index 00000000..deffc705 --- /dev/null +++ b/examples/apidoc/PortfolioClient/toggleUMFeeBurn.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/feeBurn + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.toggleUMFeeBurn(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/transferAssetFuturesMargin.js b/examples/apidoc/PortfolioClient/transferAssetFuturesMargin.js new file mode 100644 index 00000000..72e2c8d1 --- /dev/null +++ b/examples/apidoc/PortfolioClient/transferAssetFuturesMargin.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/asset-collection + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.transferAssetFuturesMargin(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/transferBNB.js b/examples/apidoc/PortfolioClient/transferBNB.js new file mode 100644 index 00000000..18973414 --- /dev/null +++ b/examples/apidoc/PortfolioClient/transferBNB.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/bnb-transfer + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.transferBNB(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/updateAutoRepayFuturesStatus.js b/examples/apidoc/PortfolioClient/updateAutoRepayFuturesStatus.js new file mode 100644 index 00000000..57b6227b --- /dev/null +++ b/examples/apidoc/PortfolioClient/updateAutoRepayFuturesStatus.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/repay-futures-switch + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.updateAutoRepayFuturesStatus(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/updateCMLeverage.js b/examples/apidoc/PortfolioClient/updateCMLeverage.js new file mode 100644 index 00000000..1652a545 --- /dev/null +++ b/examples/apidoc/PortfolioClient/updateCMLeverage.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/leverage + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.updateCMLeverage(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/updateCMPositionMode.js b/examples/apidoc/PortfolioClient/updateCMPositionMode.js new file mode 100644 index 00000000..9f35a8b3 --- /dev/null +++ b/examples/apidoc/PortfolioClient/updateCMPositionMode.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/cm/positionSide/dual + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.updateCMPositionMode(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/updateUMLeverage.js b/examples/apidoc/PortfolioClient/updateUMLeverage.js new file mode 100644 index 00000000..9b140ed6 --- /dev/null +++ b/examples/apidoc/PortfolioClient/updateUMLeverage.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/leverage + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.updateUMLeverage(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/PortfolioClient/updateUMPositionMode.js b/examples/apidoc/PortfolioClient/updateUMPositionMode.js new file mode 100644 index 00000000..253e3991 --- /dev/null +++ b/examples/apidoc/PortfolioClient/updateUMPositionMode.js @@ -0,0 +1,20 @@ +const { PortfolioClient } = require('binance'); + + // This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange + // This Binance API SDK is available on npm via "npm install binance" + // ENDPOINT: papi/v1/um/positionSide/dual + // METHOD: POST + // PUBLIC: NO + +const client = new PortfolioClient({ + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', +}); + +client.updateUMPositionMode(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 index 4003c8e3..6ac37bc2 100644 --- a/examples/apidoc/USDMClient/acceptConvertQuote.js +++ b/examples/apidoc/USDMClient/acceptConvertQuote.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.acceptConvertQuote(params) diff --git a/examples/apidoc/USDMClient/cancelAllOpenOrders.js b/examples/apidoc/USDMClient/cancelAllOpenOrders.js index 8c0760c3..2baa5f75 100644 --- a/examples/apidoc/USDMClient/cancelAllOpenOrders.js +++ b/examples/apidoc/USDMClient/cancelAllOpenOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelAllOpenOrders(params) diff --git a/examples/apidoc/USDMClient/cancelMultipleOrders.js b/examples/apidoc/USDMClient/cancelMultipleOrders.js index b226cc11..d77f9d45 100644 --- a/examples/apidoc/USDMClient/cancelMultipleOrders.js +++ b/examples/apidoc/USDMClient/cancelMultipleOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelMultipleOrders(params) diff --git a/examples/apidoc/USDMClient/cancelOrder.js b/examples/apidoc/USDMClient/cancelOrder.js index d71c1949..697c5c45 100644 --- a/examples/apidoc/USDMClient/cancelOrder.js +++ b/examples/apidoc/USDMClient/cancelOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.cancelOrder(params) diff --git a/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js index a5853ea5..0416c05b 100644 --- a/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js +++ b/examples/apidoc/USDMClient/closeFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.closeFuturesUserDataListenKey(params) diff --git a/examples/apidoc/USDMClient/get24hrChangeStatistics.js b/examples/apidoc/USDMClient/get24hrChangeStatistics.js index 9ae0df98..b35f5c89 100644 --- a/examples/apidoc/USDMClient/get24hrChangeStatistics.js +++ b/examples/apidoc/USDMClient/get24hrChangeStatistics.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.get24hrChangeStatistics(params) diff --git a/examples/apidoc/USDMClient/get24hrChangeStatististics.js b/examples/apidoc/USDMClient/get24hrChangeStatististics.js index c6a89b4a..4f133c0c 100644 --- a/examples/apidoc/USDMClient/get24hrChangeStatististics.js +++ b/examples/apidoc/USDMClient/get24hrChangeStatististics.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.get24hrChangeStatististics(params) diff --git a/examples/apidoc/USDMClient/getADLQuantileEstimation.js b/examples/apidoc/USDMClient/getADLQuantileEstimation.js index d418616a..0a0fec17 100644 --- a/examples/apidoc/USDMClient/getADLQuantileEstimation.js +++ b/examples/apidoc/USDMClient/getADLQuantileEstimation.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getADLQuantileEstimation(params) diff --git a/examples/apidoc/USDMClient/getAccountComissionRate.js b/examples/apidoc/USDMClient/getAccountComissionRate.js index d87a1119..ee2f65a8 100644 --- a/examples/apidoc/USDMClient/getAccountComissionRate.js +++ b/examples/apidoc/USDMClient/getAccountComissionRate.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountComissionRate(params) diff --git a/examples/apidoc/USDMClient/getAccountCommissionRate.js b/examples/apidoc/USDMClient/getAccountCommissionRate.js index e0a9ddea..00344a4a 100644 --- a/examples/apidoc/USDMClient/getAccountCommissionRate.js +++ b/examples/apidoc/USDMClient/getAccountCommissionRate.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountCommissionRate(params) diff --git a/examples/apidoc/USDMClient/getAccountInformation.js b/examples/apidoc/USDMClient/getAccountInformation.js index 4788aebc..2425eace 100644 --- a/examples/apidoc/USDMClient/getAccountInformation.js +++ b/examples/apidoc/USDMClient/getAccountInformation.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountInformation(params) diff --git a/examples/apidoc/USDMClient/getAccountInformationV3.js b/examples/apidoc/USDMClient/getAccountInformationV3.js index 01c3d24c..06a981c0 100644 --- a/examples/apidoc/USDMClient/getAccountInformationV3.js +++ b/examples/apidoc/USDMClient/getAccountInformationV3.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountInformationV3(params) diff --git a/examples/apidoc/USDMClient/getAccountTrades.js b/examples/apidoc/USDMClient/getAccountTrades.js index 2c6d64e0..c432d8f2 100644 --- a/examples/apidoc/USDMClient/getAccountTrades.js +++ b/examples/apidoc/USDMClient/getAccountTrades.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAccountTrades(params) diff --git a/examples/apidoc/USDMClient/getAggregateTrades.js b/examples/apidoc/USDMClient/getAggregateTrades.js index bf983825..c99f9306 100644 --- a/examples/apidoc/USDMClient/getAggregateTrades.js +++ b/examples/apidoc/USDMClient/getAggregateTrades.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAggregateTrades(params) diff --git a/examples/apidoc/USDMClient/getAllConvertPairs.js b/examples/apidoc/USDMClient/getAllConvertPairs.js index 5a4555d5..80650ea9 100644 --- a/examples/apidoc/USDMClient/getAllConvertPairs.js +++ b/examples/apidoc/USDMClient/getAllConvertPairs.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllConvertPairs(params) diff --git a/examples/apidoc/USDMClient/getAllOpenOrders.js b/examples/apidoc/USDMClient/getAllOpenOrders.js index dbb60973..33c1a4a9 100644 --- a/examples/apidoc/USDMClient/getAllOpenOrders.js +++ b/examples/apidoc/USDMClient/getAllOpenOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOpenOrders(params) diff --git a/examples/apidoc/USDMClient/getAllOrders.js b/examples/apidoc/USDMClient/getAllOrders.js index 863a67b2..7789f3eb 100644 --- a/examples/apidoc/USDMClient/getAllOrders.js +++ b/examples/apidoc/USDMClient/getAllOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getAllOrders(params) diff --git a/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js b/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js index 31679b9b..be588a5b 100644 --- a/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js +++ b/examples/apidoc/USDMClient/getApiQuantitativeRulesIndicators.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getApiQuantitativeRulesIndicators(params) diff --git a/examples/apidoc/USDMClient/getBNBBurnStatus.js b/examples/apidoc/USDMClient/getBNBBurnStatus.js index 30d602bf..c1ef3a5a 100644 --- a/examples/apidoc/USDMClient/getBNBBurnStatus.js +++ b/examples/apidoc/USDMClient/getBNBBurnStatus.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBNBBurnStatus(params) diff --git a/examples/apidoc/USDMClient/getBalance.js b/examples/apidoc/USDMClient/getBalance.js index 2ddb0aa8..75ddb366 100644 --- a/examples/apidoc/USDMClient/getBalance.js +++ b/examples/apidoc/USDMClient/getBalance.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBalance(params) diff --git a/examples/apidoc/USDMClient/getBalanceV3.js b/examples/apidoc/USDMClient/getBalanceV3.js index 0d918557..bb2d22ba 100644 --- a/examples/apidoc/USDMClient/getBalanceV3.js +++ b/examples/apidoc/USDMClient/getBalanceV3.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBalanceV3(params) diff --git a/examples/apidoc/USDMClient/getBasis.js b/examples/apidoc/USDMClient/getBasis.js index fa9d1799..21d65218 100644 --- a/examples/apidoc/USDMClient/getBasis.js +++ b/examples/apidoc/USDMClient/getBasis.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBasis(params) diff --git a/examples/apidoc/USDMClient/getBrokerClientCustomIds.js b/examples/apidoc/USDMClient/getBrokerClientCustomIds.js index 3e196799..dbd4360e 100644 --- a/examples/apidoc/USDMClient/getBrokerClientCustomIds.js +++ b/examples/apidoc/USDMClient/getBrokerClientCustomIds.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerClientCustomIds(params) diff --git a/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js b/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js index 5a4bd878..86cf3367 100644 --- a/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js +++ b/examples/apidoc/USDMClient/getBrokerIfNewFuturesUser.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerIfNewFuturesUser(params) diff --git a/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js b/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js index 9923d58d..ba315a39 100644 --- a/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js +++ b/examples/apidoc/USDMClient/getBrokerRebateDataOverview.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerRebateDataOverview(params) diff --git a/examples/apidoc/USDMClient/getBrokerRebateVolume.js b/examples/apidoc/USDMClient/getBrokerRebateVolume.js index db9f672b..72a4b62e 100644 --- a/examples/apidoc/USDMClient/getBrokerRebateVolume.js +++ b/examples/apidoc/USDMClient/getBrokerRebateVolume.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerRebateVolume(params) diff --git a/examples/apidoc/USDMClient/getBrokerTradeDetail.js b/examples/apidoc/USDMClient/getBrokerTradeDetail.js index 924e9402..1b907239 100644 --- a/examples/apidoc/USDMClient/getBrokerTradeDetail.js +++ b/examples/apidoc/USDMClient/getBrokerTradeDetail.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerTradeDetail(params) diff --git a/examples/apidoc/USDMClient/getBrokerUserCustomId.js b/examples/apidoc/USDMClient/getBrokerUserCustomId.js index 9ef0b2cc..fb3f0a28 100644 --- a/examples/apidoc/USDMClient/getBrokerUserCustomId.js +++ b/examples/apidoc/USDMClient/getBrokerUserCustomId.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerUserCustomId(params) diff --git a/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js b/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js index ede90b10..134a6126 100644 --- a/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js +++ b/examples/apidoc/USDMClient/getBrokerUserTradeVolume.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getBrokerUserTradeVolume(params) diff --git a/examples/apidoc/USDMClient/getCompositeSymbolIndex.js b/examples/apidoc/USDMClient/getCompositeSymbolIndex.js index f45b9422..e47b167c 100644 --- a/examples/apidoc/USDMClient/getCompositeSymbolIndex.js +++ b/examples/apidoc/USDMClient/getCompositeSymbolIndex.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCompositeSymbolIndex(params) diff --git a/examples/apidoc/USDMClient/getContinuousContractKlines.js b/examples/apidoc/USDMClient/getContinuousContractKlines.js index 23ca5b8d..b8e404a1 100644 --- a/examples/apidoc/USDMClient/getContinuousContractKlines.js +++ b/examples/apidoc/USDMClient/getContinuousContractKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getContinuousContractKlines(params) diff --git a/examples/apidoc/USDMClient/getConvertOrderStatus.js b/examples/apidoc/USDMClient/getConvertOrderStatus.js index 40d0b694..a8dd1197 100644 --- a/examples/apidoc/USDMClient/getConvertOrderStatus.js +++ b/examples/apidoc/USDMClient/getConvertOrderStatus.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getConvertOrderStatus(params) diff --git a/examples/apidoc/USDMClient/getCurrentOpenOrder.js b/examples/apidoc/USDMClient/getCurrentOpenOrder.js index 9aa8aa7f..49e2a62a 100644 --- a/examples/apidoc/USDMClient/getCurrentOpenOrder.js +++ b/examples/apidoc/USDMClient/getCurrentOpenOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCurrentOpenOrder(params) diff --git a/examples/apidoc/USDMClient/getCurrentPositionMode.js b/examples/apidoc/USDMClient/getCurrentPositionMode.js index f1ee8ff7..b2959315 100644 --- a/examples/apidoc/USDMClient/getCurrentPositionMode.js +++ b/examples/apidoc/USDMClient/getCurrentPositionMode.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getCurrentPositionMode(params) diff --git a/examples/apidoc/USDMClient/getExchangeInfo.js b/examples/apidoc/USDMClient/getExchangeInfo.js index 74ab10fa..e7556dd1 100644 --- a/examples/apidoc/USDMClient/getExchangeInfo.js +++ b/examples/apidoc/USDMClient/getExchangeInfo.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getExchangeInfo(params) diff --git a/examples/apidoc/USDMClient/getForceOrders.js b/examples/apidoc/USDMClient/getForceOrders.js index f392a930..2ce1e358 100644 --- a/examples/apidoc/USDMClient/getForceOrders.js +++ b/examples/apidoc/USDMClient/getForceOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getForceOrders(params) diff --git a/examples/apidoc/USDMClient/getFundingRateHistory.js b/examples/apidoc/USDMClient/getFundingRateHistory.js index c2e2233a..13579c01 100644 --- a/examples/apidoc/USDMClient/getFundingRateHistory.js +++ b/examples/apidoc/USDMClient/getFundingRateHistory.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFundingRateHistory(params) diff --git a/examples/apidoc/USDMClient/getFundingRates.js b/examples/apidoc/USDMClient/getFundingRates.js index 8e8aa9e8..bc3418d6 100644 --- a/examples/apidoc/USDMClient/getFundingRates.js +++ b/examples/apidoc/USDMClient/getFundingRates.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFundingRates(params) diff --git a/examples/apidoc/USDMClient/getFuturesAccountConfig.js b/examples/apidoc/USDMClient/getFuturesAccountConfig.js index 570b0b88..435e9378 100644 --- a/examples/apidoc/USDMClient/getFuturesAccountConfig.js +++ b/examples/apidoc/USDMClient/getFuturesAccountConfig.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesAccountConfig(params) diff --git a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js index 6c8293b2..79dd8848 100644 --- a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js +++ b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadId.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesOrderHistoryDownloadId(params) diff --git a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js index b6ac402c..1c737987 100644 --- a/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js +++ b/examples/apidoc/USDMClient/getFuturesOrderHistoryDownloadLink.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesOrderHistoryDownloadLink(params) diff --git a/examples/apidoc/USDMClient/getFuturesSymbolConfig.js b/examples/apidoc/USDMClient/getFuturesSymbolConfig.js index eb8344ac..5586040c 100644 --- a/examples/apidoc/USDMClient/getFuturesSymbolConfig.js +++ b/examples/apidoc/USDMClient/getFuturesSymbolConfig.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesSymbolConfig(params) diff --git a/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js b/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js index e9be0275..bdb32b14 100644 --- a/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js +++ b/examples/apidoc/USDMClient/getFuturesTradeDownloadLink.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTradeDownloadLink(params) diff --git a/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js index a2188578..19939a73 100644 --- a/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js +++ b/examples/apidoc/USDMClient/getFuturesTradeHistoryDownloadId.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTradeHistoryDownloadId(params) diff --git a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js index 5b908d49..c4bca9e1 100644 --- a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js +++ b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadId.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTransactionHistoryDownloadId(params) diff --git a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js index e6d1dbd0..5813eacc 100644 --- a/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js +++ b/examples/apidoc/USDMClient/getFuturesTransactionHistoryDownloadLink.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesTransactionHistoryDownloadLink(params) diff --git a/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js index d047f48c..a453eccd 100644 --- a/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js +++ b/examples/apidoc/USDMClient/getFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getFuturesUserDataListenKey(params) diff --git a/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js b/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js index 44dbbc28..ce322a4e 100644 --- a/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js +++ b/examples/apidoc/USDMClient/getGlobalLongShortAccountRatio.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getGlobalLongShortAccountRatio(params) diff --git a/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js b/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js index 2ea5621d..74a70579 100644 --- a/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js +++ b/examples/apidoc/USDMClient/getHistoricalBlvtNavKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHistoricalBlvtNavKlines(params) diff --git a/examples/apidoc/USDMClient/getHistoricalTrades.js b/examples/apidoc/USDMClient/getHistoricalTrades.js index d24e5a74..d9e0a03e 100644 --- a/examples/apidoc/USDMClient/getHistoricalTrades.js +++ b/examples/apidoc/USDMClient/getHistoricalTrades.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getHistoricalTrades(params) diff --git a/examples/apidoc/USDMClient/getIncomeHistory.js b/examples/apidoc/USDMClient/getIncomeHistory.js index 2dc09e7f..4255816d 100644 --- a/examples/apidoc/USDMClient/getIncomeHistory.js +++ b/examples/apidoc/USDMClient/getIncomeHistory.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIncomeHistory(params) diff --git a/examples/apidoc/USDMClient/getIndexPriceConstituents.js b/examples/apidoc/USDMClient/getIndexPriceConstituents.js index d264cd7a..906fee9b 100644 --- a/examples/apidoc/USDMClient/getIndexPriceConstituents.js +++ b/examples/apidoc/USDMClient/getIndexPriceConstituents.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIndexPriceConstituents(params) diff --git a/examples/apidoc/USDMClient/getIndexPriceKlines.js b/examples/apidoc/USDMClient/getIndexPriceKlines.js index 541b2a09..90444a6b 100644 --- a/examples/apidoc/USDMClient/getIndexPriceKlines.js +++ b/examples/apidoc/USDMClient/getIndexPriceKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getIndexPriceKlines(params) diff --git a/examples/apidoc/USDMClient/getKlines.js b/examples/apidoc/USDMClient/getKlines.js index bc4b23c8..44560d7f 100644 --- a/examples/apidoc/USDMClient/getKlines.js +++ b/examples/apidoc/USDMClient/getKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getKlines(params) diff --git a/examples/apidoc/USDMClient/getMarkPrice.js b/examples/apidoc/USDMClient/getMarkPrice.js index ac49050a..467cea15 100644 --- a/examples/apidoc/USDMClient/getMarkPrice.js +++ b/examples/apidoc/USDMClient/getMarkPrice.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarkPrice(params) diff --git a/examples/apidoc/USDMClient/getMarkPriceKlines.js b/examples/apidoc/USDMClient/getMarkPriceKlines.js index 886b56e3..b4999aa2 100644 --- a/examples/apidoc/USDMClient/getMarkPriceKlines.js +++ b/examples/apidoc/USDMClient/getMarkPriceKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMarkPriceKlines(params) diff --git a/examples/apidoc/USDMClient/getMultiAssetsMode.js b/examples/apidoc/USDMClient/getMultiAssetsMode.js index f39d79e1..73a676c0 100644 --- a/examples/apidoc/USDMClient/getMultiAssetsMode.js +++ b/examples/apidoc/USDMClient/getMultiAssetsMode.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMultiAssetsMode(params) diff --git a/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js b/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js index d4e00922..c5350e88 100644 --- a/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js +++ b/examples/apidoc/USDMClient/getMultiAssetsModeAssetIndex.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getMultiAssetsModeAssetIndex(params) diff --git a/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js b/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js index c2289d77..69866e56 100644 --- a/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js +++ b/examples/apidoc/USDMClient/getNotionalAndLeverageBrackets.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getNotionalAndLeverageBrackets(params) diff --git a/examples/apidoc/USDMClient/getOpenInterest.js b/examples/apidoc/USDMClient/getOpenInterest.js index 303bb2af..573a9cd1 100644 --- a/examples/apidoc/USDMClient/getOpenInterest.js +++ b/examples/apidoc/USDMClient/getOpenInterest.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOpenInterest(params) diff --git a/examples/apidoc/USDMClient/getOpenInterestStatistics.js b/examples/apidoc/USDMClient/getOpenInterestStatistics.js index 17404ce3..255193ee 100644 --- a/examples/apidoc/USDMClient/getOpenInterestStatistics.js +++ b/examples/apidoc/USDMClient/getOpenInterestStatistics.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOpenInterestStatistics(params) diff --git a/examples/apidoc/USDMClient/getOrder.js b/examples/apidoc/USDMClient/getOrder.js index eaeb43b4..68c84996 100644 --- a/examples/apidoc/USDMClient/getOrder.js +++ b/examples/apidoc/USDMClient/getOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrder(params) diff --git a/examples/apidoc/USDMClient/getOrderBook.js b/examples/apidoc/USDMClient/getOrderBook.js index 6e4e77ae..51c9e54c 100644 --- a/examples/apidoc/USDMClient/getOrderBook.js +++ b/examples/apidoc/USDMClient/getOrderBook.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderBook(params) diff --git a/examples/apidoc/USDMClient/getOrderModifyHistory.js b/examples/apidoc/USDMClient/getOrderModifyHistory.js index b8ff8597..a62962e3 100644 --- a/examples/apidoc/USDMClient/getOrderModifyHistory.js +++ b/examples/apidoc/USDMClient/getOrderModifyHistory.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getOrderModifyHistory(params) diff --git a/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js b/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js index ed9f058d..eed54886 100644 --- a/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js +++ b/examples/apidoc/USDMClient/getPortfolioMarginProAccountInfo.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPortfolioMarginProAccountInfo(params) diff --git a/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js b/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js index 63ff26aa..48575ead 100644 --- a/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js +++ b/examples/apidoc/USDMClient/getPositionMarginChangeHistory.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPositionMarginChangeHistory(params) diff --git a/examples/apidoc/USDMClient/getPositions.js b/examples/apidoc/USDMClient/getPositions.js index f159b445..932b42af 100644 --- a/examples/apidoc/USDMClient/getPositions.js +++ b/examples/apidoc/USDMClient/getPositions.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPositions(params) diff --git a/examples/apidoc/USDMClient/getPositionsV3.js b/examples/apidoc/USDMClient/getPositionsV3.js index d21d8d95..1b3a290a 100644 --- a/examples/apidoc/USDMClient/getPositionsV3.js +++ b/examples/apidoc/USDMClient/getPositionsV3.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPositionsV3(params) diff --git a/examples/apidoc/USDMClient/getPremiumIndexKlines.js b/examples/apidoc/USDMClient/getPremiumIndexKlines.js index c2808c9f..24c057a4 100644 --- a/examples/apidoc/USDMClient/getPremiumIndexKlines.js +++ b/examples/apidoc/USDMClient/getPremiumIndexKlines.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getPremiumIndexKlines(params) diff --git a/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js b/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js index 9ce846ee..ec62412b 100644 --- a/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js +++ b/examples/apidoc/USDMClient/getQuarterlyContractSettlementPrices.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getQuarterlyContractSettlementPrices(params) diff --git a/examples/apidoc/USDMClient/getRecentTrades.js b/examples/apidoc/USDMClient/getRecentTrades.js index 06d9f361..2192633e 100644 --- a/examples/apidoc/USDMClient/getRecentTrades.js +++ b/examples/apidoc/USDMClient/getRecentTrades.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getRecentTrades(params) diff --git a/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js b/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js index 59bb0c37..bb8aedaa 100644 --- a/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js +++ b/examples/apidoc/USDMClient/getSymbolOrderBookTicker.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolOrderBookTicker(params) diff --git a/examples/apidoc/USDMClient/getSymbolPriceTicker.js b/examples/apidoc/USDMClient/getSymbolPriceTicker.js index bda33f0b..0cac5960 100644 --- a/examples/apidoc/USDMClient/getSymbolPriceTicker.js +++ b/examples/apidoc/USDMClient/getSymbolPriceTicker.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolPriceTicker(params) diff --git a/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js b/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js index f521af88..0faf25fe 100644 --- a/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js +++ b/examples/apidoc/USDMClient/getSymbolPriceTickerV2.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getSymbolPriceTickerV2(params) diff --git a/examples/apidoc/USDMClient/getTakerBuySellVolume.js b/examples/apidoc/USDMClient/getTakerBuySellVolume.js index b2673b30..f674c23c 100644 --- a/examples/apidoc/USDMClient/getTakerBuySellVolume.js +++ b/examples/apidoc/USDMClient/getTakerBuySellVolume.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTakerBuySellVolume(params) diff --git a/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js b/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js index 065ed5bd..c62533eb 100644 --- a/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js +++ b/examples/apidoc/USDMClient/getTopTradersLongShortAccountRatio.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTopTradersLongShortAccountRatio(params) diff --git a/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js b/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js index 58b42bc1..1cc01d2d 100644 --- a/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js +++ b/examples/apidoc/USDMClient/getTopTradersLongShortPositionRatio.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getTopTradersLongShortPositionRatio(params) diff --git a/examples/apidoc/USDMClient/getUserForceOrders.js b/examples/apidoc/USDMClient/getUserForceOrders.js index 2f5c904c..0951828c 100644 --- a/examples/apidoc/USDMClient/getUserForceOrders.js +++ b/examples/apidoc/USDMClient/getUserForceOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.getUserForceOrders(params) diff --git a/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js b/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js index 02a0c471..cf465716 100644 --- a/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js +++ b/examples/apidoc/USDMClient/keepAliveFuturesUserDataListenKey.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.keepAliveFuturesUserDataListenKey(params) diff --git a/examples/apidoc/USDMClient/modifyMultipleOrders.js b/examples/apidoc/USDMClient/modifyMultipleOrders.js index 2f310031..0a6d0afe 100644 --- a/examples/apidoc/USDMClient/modifyMultipleOrders.js +++ b/examples/apidoc/USDMClient/modifyMultipleOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.modifyMultipleOrders(params) diff --git a/examples/apidoc/USDMClient/modifyOrder.js b/examples/apidoc/USDMClient/modifyOrder.js index 49bf68ad..3025955d 100644 --- a/examples/apidoc/USDMClient/modifyOrder.js +++ b/examples/apidoc/USDMClient/modifyOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.modifyOrder(params) diff --git a/examples/apidoc/USDMClient/setBNBBurnEnabled.js b/examples/apidoc/USDMClient/setBNBBurnEnabled.js index e063405f..2b4c47f9 100644 --- a/examples/apidoc/USDMClient/setBNBBurnEnabled.js +++ b/examples/apidoc/USDMClient/setBNBBurnEnabled.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setBNBBurnEnabled(params) diff --git a/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js b/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js index d24463ac..4dc4cba9 100644 --- a/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js +++ b/examples/apidoc/USDMClient/setBrokerCustomIdForClient.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setBrokerCustomIdForClient(params) diff --git a/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js b/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js index 79fcb595..ccb21b87 100644 --- a/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js +++ b/examples/apidoc/USDMClient/setCancelOrdersOnTimeout.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setCancelOrdersOnTimeout(params) diff --git a/examples/apidoc/USDMClient/setIsolatedPositionMargin.js b/examples/apidoc/USDMClient/setIsolatedPositionMargin.js index 955763fa..dc15a9f1 100644 --- a/examples/apidoc/USDMClient/setIsolatedPositionMargin.js +++ b/examples/apidoc/USDMClient/setIsolatedPositionMargin.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setIsolatedPositionMargin(params) diff --git a/examples/apidoc/USDMClient/setLeverage.js b/examples/apidoc/USDMClient/setLeverage.js index 279fda88..0fcc01e0 100644 --- a/examples/apidoc/USDMClient/setLeverage.js +++ b/examples/apidoc/USDMClient/setLeverage.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setLeverage(params) diff --git a/examples/apidoc/USDMClient/setMarginType.js b/examples/apidoc/USDMClient/setMarginType.js index 058b1cbb..3e0a3ed8 100644 --- a/examples/apidoc/USDMClient/setMarginType.js +++ b/examples/apidoc/USDMClient/setMarginType.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setMarginType(params) diff --git a/examples/apidoc/USDMClient/setMultiAssetsMode.js b/examples/apidoc/USDMClient/setMultiAssetsMode.js index 372b0c27..62bb8c2b 100644 --- a/examples/apidoc/USDMClient/setMultiAssetsMode.js +++ b/examples/apidoc/USDMClient/setMultiAssetsMode.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setMultiAssetsMode(params) diff --git a/examples/apidoc/USDMClient/setPositionMode.js b/examples/apidoc/USDMClient/setPositionMode.js index ef5c8e04..8c897cd5 100644 --- a/examples/apidoc/USDMClient/setPositionMode.js +++ b/examples/apidoc/USDMClient/setPositionMode.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.setPositionMode(params) diff --git a/examples/apidoc/USDMClient/submitConvertQuoteRequest.js b/examples/apidoc/USDMClient/submitConvertQuoteRequest.js index 306dd0f7..3b55a36e 100644 --- a/examples/apidoc/USDMClient/submitConvertQuoteRequest.js +++ b/examples/apidoc/USDMClient/submitConvertQuoteRequest.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitConvertQuoteRequest(params) diff --git a/examples/apidoc/USDMClient/submitMultipleOrders.js b/examples/apidoc/USDMClient/submitMultipleOrders.js index a750011f..bf6111ac 100644 --- a/examples/apidoc/USDMClient/submitMultipleOrders.js +++ b/examples/apidoc/USDMClient/submitMultipleOrders.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitMultipleOrders(params) diff --git a/examples/apidoc/USDMClient/submitNewOrder.js b/examples/apidoc/USDMClient/submitNewOrder.js index 9e814819..25bd95e9 100644 --- a/examples/apidoc/USDMClient/submitNewOrder.js +++ b/examples/apidoc/USDMClient/submitNewOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.submitNewOrder(params) diff --git a/examples/apidoc/USDMClient/testConnectivity.js b/examples/apidoc/USDMClient/testConnectivity.js index 2499cd43..b4af3de8 100644 --- a/examples/apidoc/USDMClient/testConnectivity.js +++ b/examples/apidoc/USDMClient/testConnectivity.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: YES const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.testConnectivity(params) diff --git a/examples/apidoc/USDMClient/testOrder.js b/examples/apidoc/USDMClient/testOrder.js index 6094bb80..5ef25b4d 100644 --- a/examples/apidoc/USDMClient/testOrder.js +++ b/examples/apidoc/USDMClient/testOrder.js @@ -7,8 +7,8 @@ const { USDMClient } = require('binance'); // PUBLIC: NO const client = new USDMClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', + api_key: 'insert_api_key_here', + api_secret: 'insert_api_secret_here', }); client.testOrder(params) diff --git a/package-lock.json b/package-lock.json index d47c6030..b48fb8f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "binance", - "version": "2.13.13", + "version": "2.14.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "binance", - "version": "2.13.13", + "version": "2.14.0", "license": "MIT", "dependencies": { "axios": "^1.6.2", diff --git a/package.json b/package.json index e9e2ee52..d1976fc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binance", - "version": "2.13.13", + "version": "2.14.0", "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", diff --git a/src/index.ts b/src/index.ts index dea18d35..4f55640e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ export * from './types/shared'; export * from './types/spot'; export * from './types/websockets'; export * from './usdm-client'; +export * from './portfolio-client'; export * from './util/proxy'; export * from './util/requestUtils'; export * from './util/typeGuards'; diff --git a/src/portfolio-client.ts b/src/portfolio-client.ts new file mode 100644 index 00000000..6568b390 --- /dev/null +++ b/src/portfolio-client.ts @@ -0,0 +1,838 @@ +import { AxiosRequestConfig } from 'axios'; + +import { + BinanceBaseUrlKey, + CancelOrderParams, + CancelOCOParams, + NewOCOParams, + OrderIdProperty, +} from './types/shared'; + +import { + generateNewOrderId, + getOrderIdPrefix, + getServerTimeEndpoint, + logInvalidOrderId, + RestClientOptions, +} from './util/requestUtils'; + +import BaseRestClient from './util/BaseRestClient'; +import { + CancelPortfolioCMConditionalOrderReq, + CancelPortfolioCMOrderReq, + CancelPortfolioMarginOCOReq, + CancelPortfolioMarginOrderReq, + CancelPortfolioUMConditionalOrderReq, + CancelPortfolioUMOrderReq, + ModifyPortfolioCMOrderReq, + ModifyPortfolioUMOrderReq, + NewPortfolioCMConditionalOrderReq, + NewPortfolioCMOrderReq, + NewPortfolioUMConditionalOrderReq, + NewPortfolioMarginOCOReq, + NewPortfolioMarginOrderReq, + PortfolioADLQuantile, + PortfolioCMCancelConditionalOrderResponse, + PortfolioCMCancelOrderResponse, + PortfolioCMConditionalHistoryOrder, + PortfolioCMConditionalOrder, + NewPortfolioCMConditionalOrderResponse, + PortfolioCMForceOrder, + PortfolioCMModifyOrderResponse, + PortfolioCMOrderModificationHistory, + PortfolioCMOrder, + NewPortfolioCMOrderResponse, + PortfolioCMTrade, + NewPortfolioConditionalOrderResponse, + PortfolioMarginCancelAllOrdersResponse, + PortfolioMarginCancelOrderResponse, + PortfolioMarginForceOrder, + PortfolioMarginOCO, + PortfolioMarginOCOCancelResponse, + NewPortfolioMarginOCOResponse, + PortfolioMarginOrder, + NewPortfolioMarginOrderResponse, + PortfolioMarginRepayDebtReq, + PortfolioMarginRepayDebtResponse, + PortfolioMarginTrade, + PortfolioUMCancelConditionalOrderResponse, + PortfolioUMCancelOrderResponse, + PortfolioUMConditionalOrder, + PortfolioUMForceOrder, + PortfolioUMModifyOrderResponse, + PortfolioUMOrderModificationHistory, + PortfolioUMOrder, + PortfolioUMTrade, + QueryPortfolioAllCMConditionalOrdersReq, + QueryPortfolioAllCMOrdersReq, + QueryPortfolioAllUMConditionalOrdersReq, + QueryPortfolioAllUMOrdersReq, + QueryPortfolioCMConditionalOrderHistoryReq, + QueryPortfolioCMForceOrdersReq, + QueryPortfolioCMOpenOrderReq, + QueryPortfolioCMOrderAmendmentReq, + QueryPortfolioCMOrderReq, + QueryPortfolioCMTradesReq, + QueryPortfolioMarginAllOCOReq, + QueryPortfolioMarginAllOrdersReq, + QueryPortfolioMarginForceOrdersReq, + QueryPortfolioMarginOCOReq, + QueryPortfolioMarginOrderReq, + QueryPortfolioMarginTradesReq, + QueryPortfolioUMConditionalOrderHistoryReq, + QueryPortfolioUMForceOrdersReq, + QueryPortfolioUMOpenConditionalOrderReq, + QueryPortfolioUMOpenOrderReq, + QueryPortfolioUMOrderAmendmentReq, + QueryPortfolioUMOrderReq, + QueryPortfolioUMTradesReq, + PortfolioBalance, + PortfolioAccountInformation, + PortfolioUMPosition, + PortfolioCMPosition, + PortfolioUMLeverageBracket, + PortfolioCMLeverageBracket, + PortfolioTradingStatus, + PortfolioMarginLoanRecord, + GetMarginLoanRecordsReq, + GetMarginRepayRecordsReq, + PortfolioMarginRepayRecord, + PortfolioMarginInterestRecord, + GetMarginInterestHistoryReq, + GetPortfolioInterestHistoryReq, + PortfolioNegativeBalanceInterestRecord, + QueryPortfolioUMIncomeReq, + PortfolioUMIncome, + QueryPortfolioCMIncomeReq, + PortfolioCMIncome, + PortfolioUMAccountAsset, + PortfolioUMAccountPosition, + PortfolioCMAccountAsset, + PortfolioCMAccountPosition, + PortfolioUMAccountConfig, + PortfolioUMSymbolConfig, + PortfolioUMAccountAssetV2, + PortfolioUMAccountPositionV2, + DownloadLinkResponse, + NewPortfolioUMOrderReq, + NewPortfolioUMOrderResponse, +} from './types/portfolio-margin'; + +const PORTFOLIO_MARGIN_BASE_URL_KEY = 'papi'; + +/** + * REST client for Portfolio Margin APIs (papi) + * + * https://developers.binance.com/docs/derivatives/portfolio-margin/general-info + */ +export class PortfolioClient extends BaseRestClient { + private clientId: BinanceBaseUrlKey = PORTFOLIO_MARGIN_BASE_URL_KEY; + + constructor( + restClientOptions: RestClientOptions = {}, + requestOptions: AxiosRequestConfig = {}, + ) { + super(PORTFOLIO_MARGIN_BASE_URL_KEY, restClientOptions, requestOptions); + + this.clientId = this.getClientId(); + + return this; + } + + getClientId(): BinanceBaseUrlKey { + return PORTFOLIO_MARGIN_BASE_URL_KEY; + } + + /** + * Abstraction required by each client to aid with time sync / drift handling + */ + async getServerTime(): Promise { + return this.get(getServerTimeEndpoint('usdm')).then( + (response) => response.serverTime, + ); + } + + /** + * + * Misc Endpoints + * + **/ + + testConnectivity(): Promise<{}> { + return this.get('papi/v1/ping'); + } + + /** + * + * DERIVATIVES -TRADE endpoints + * + **/ + + submitNewUMOrder( + params: NewPortfolioUMOrderReq, + ): Promise { + this.validateOrderId(params, 'newClientOrderId'); + return this.postPrivate('papi/v1/um/order', params); + } + + submitNewUMConditionalOrder( + params: NewPortfolioUMConditionalOrderReq, + ): Promise { + this.validateOrderId(params, 'newClientOrderId'); + return this.postPrivate('papi/v1/um/conditional/order', params); + } + + submitNewCMOrder( + params: NewPortfolioCMOrderReq, + ): Promise { + this.validateOrderId(params, 'newClientOrderId'); + return this.postPrivate('papi/v1/cm/order', params); + } + + submitNewCMConditionalOrder( + params: NewPortfolioCMConditionalOrderReq, + ): Promise { + this.validateOrderId(params, 'newClientStrategyId'); + return this.postPrivate('papi/v1/cm/conditional/order', params); + } + + submitNewMarginOrder( + params: NewPortfolioMarginOrderReq, + ): Promise { + this.validateOrderId(params, 'newClientOrderId'); + return this.postPrivate('papi/v1/margin/order', params); + } + + submitMarginLoan(params: { asset: string; amount: string }): Promise<{ + tranId: number; + }> { + return this.postPrivate('papi/v1/marginLoan', params); + } + + submitMarginRepay(params: { asset: string; amount: string }): Promise<{ + tranId: number; + }> { + return this.postPrivate('papi/v1/repayLoan', params); + } + + submitNewMarginOCO( + params: NewPortfolioMarginOCOReq, + ): Promise { + this.validateOrderId(params, 'limitClientOrderId'); + this.validateOrderId(params, 'stopClientOrderId'); + this.validateOrderId(params, 'listClientOrderId'); + return this.postPrivate('papi/v1/margin/order/oco', params); + } + + cancelUMOrder( + params: CancelPortfolioUMOrderReq, + ): Promise { + return this.deletePrivate('papi/v1/um/order', params); + } + + cancelAllUMOrders(params: { symbol: string }): Promise<{ + code: number; + msg: string; + }> { + return this.deletePrivate('papi/v1/um/allOpenOrders', params); + } + + cancelUMConditionalOrder( + params: CancelPortfolioUMConditionalOrderReq, + ): Promise { + return this.deletePrivate('papi/v1/um/conditional/order', params); + } + + cancelAllUMConditionalOrders(params: { symbol: string }): Promise<{ + code: number; + msg: string; + }> { + return this.deletePrivate('papi/v1/um/conditional/allOpenOrders', params); + } + + cancelCMOrder( + params: CancelPortfolioCMOrderReq, + ): Promise { + return this.deletePrivate('papi/v1/cm/order', params); + } + + cancelAllCMOrders(params: { symbol: string }): Promise<{ + code: number; + msg: string; + }> { + return this.deletePrivate('papi/v1/cm/allOpenOrders', params); + } + + cancelCMConditionalOrder( + params: CancelPortfolioCMConditionalOrderReq, + ): Promise { + return this.deletePrivate('papi/v1/cm/conditional/order', params); + } + + cancelAllCMConditionalOrders(params: { symbol: string }): Promise<{ + code: number; + msg: string; + }> { + return this.deletePrivate('papi/v1/cm/conditional/allOpenOrders', params); + } + + cancelMarginOrder( + params: CancelPortfolioMarginOrderReq, + ): Promise { + return this.deletePrivate('papi/v1/margin/order', params); + } + + cancelMarginOCO( + params: CancelPortfolioMarginOCOReq, + ): Promise { + return this.deletePrivate('papi/v1/margin/orderList', params); + } + + cancelAllMarginOrders(params: { + symbol: string; + }): Promise { + return this.deletePrivate('papi/v1/margin/allOpenOrders', params); + } + + modifyUMOrder( + params: ModifyPortfolioUMOrderReq, + ): Promise { + return this.putPrivate('papi/v1/um/order', params); + } + + modifyCMOrder( + params: ModifyPortfolioCMOrderReq, + ): Promise { + return this.putPrivate('papi/v1/cm/order', params); + } + + getUMOrder(params: QueryPortfolioUMOrderReq): Promise { + return this.getPrivate('papi/v1/um/order', params); + } + + getAllUMOrders( + params: QueryPortfolioAllUMOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/um/allOrders', params); + } + + getUMOpenOrder( + params: QueryPortfolioUMOpenOrderReq, + ): Promise { + return this.getPrivate('papi/v1/um/openOrder', params); + } + + getAllUMOpenOrders(params: { symbol?: string }): Promise { + return this.getPrivate('papi/v1/um/openOrders', params); + } + + getAllUMConditionalOrders( + params: QueryPortfolioAllUMConditionalOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/um/conditional/allOrders', params); + } + + getUMOpenConditionalOrders(params: { + symbol?: string; + }): Promise { + return this.getPrivate('papi/v1/um/conditional/openOrders', params); + } + + getUMOpenConditionalOrder( + params: QueryPortfolioUMOpenConditionalOrderReq, + ): Promise { + return this.getPrivate('papi/v1/um/conditional/openOrder', params); + } + + getUMConditionalOrderHistory( + params: QueryPortfolioUMConditionalOrderHistoryReq, + ): Promise { + return this.getPrivate('papi/v1/um/conditional/orderHistory', params); + } + + getCMOrder(params: QueryPortfolioCMOrderReq): Promise { + return this.getPrivate('papi/v1/cm/order', params); + } + + getAllCMOrders( + params: QueryPortfolioAllCMOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/cm/allOrders', params); + } + + getCMOpenOrder( + params: QueryPortfolioCMOpenOrderReq, + ): Promise { + return this.getPrivate('papi/v1/cm/openOrder', params); + } + + getAllCMOpenOrders(params: { + symbol?: string; + pair?: string; + }): Promise { + return this.getPrivate('papi/v1/cm/openOrders', params); + } + + getCMOpenConditionalOrders(params: { + symbol?: string; + }): Promise { + return this.getPrivate('papi/v1/cm/conditional/openOrders', params); + } + + getCMOpenConditionalOrder(params: { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; + }): Promise { + return this.getPrivate('papi/v1/cm/conditional/openOrder', params); + } + + getAllCMConditionalOrders( + params: QueryPortfolioAllCMConditionalOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/cm/conditional/allOrders', params); + } + + getCMConditionalOrderHistory( + params: QueryPortfolioCMConditionalOrderHistoryReq, + ): Promise { + return this.getPrivate('papi/v1/cm/conditional/orderHistory', params); + } + + getUMForceOrders( + params: QueryPortfolioUMForceOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/um/forceOrders', params); + } + + getCMForceOrders( + params: QueryPortfolioCMForceOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/cm/forceOrders', params); + } + + getUMOrderModificationHistory( + params: QueryPortfolioUMOrderAmendmentReq, + ): Promise { + return this.getPrivate('papi/v1/um/orderAmendment', params); + } + + getCMOrderModificationHistory( + params: QueryPortfolioCMOrderAmendmentReq, + ): Promise { + return this.getPrivate('papi/v1/cm/orderAmendment', params); + } + + getMarginForceOrders(params: QueryPortfolioMarginForceOrdersReq): Promise<{ + rows: PortfolioMarginForceOrder[]; + total: number; + }> { + return this.getPrivate('papi/v1/margin/forceOrders', params); + } + + getUMTrades(params: QueryPortfolioUMTradesReq): Promise { + return this.getPrivate('papi/v1/um/userTrades', params); + } + + getCMTrades(params: QueryPortfolioCMTradesReq): Promise { + return this.getPrivate('papi/v1/cm/userTrades', params); + } + + getUMADLQuantile(params: { symbol?: string }): Promise< + { + symbol: string; + adlQuantile: PortfolioADLQuantile; + }[] + > { + return this.getPrivate('papi/v1/um/adlQuantile', params); + } + + getCMADLQuantile(params: { symbol?: string }): Promise< + { + symbol: string; + adlQuantile: PortfolioADLQuantile; + }[] + > { + return this.getPrivate('papi/v1/cm/adlQuantile', params); + } + + toggleUMFeeBurn(params: { + feeBurn: 'true' | 'false'; // 'true': Fee Discount On; 'false': Fee Discount Off + }): Promise<{ code: number; msg: string }> { + return this.postPrivate('papi/v1/um/feeBurn', params); + } + + getUMFeeBurnStatus(): Promise<{ feeBurn: boolean }> { + return this.getPrivate('papi/v1/um/feeBurn'); + } + + getMarginOrder( + params: QueryPortfolioMarginOrderReq, + ): Promise { + return this.getPrivate('papi/v1/margin/order', params); + } + + getMarginOpenOrders(params: { + symbol: string; + }): Promise { + return this.getPrivate('papi/v1/margin/openOrders', params); + } + + getAllMarginOrders( + params: QueryPortfolioMarginAllOrdersReq, + ): Promise { + return this.getPrivate('papi/v1/margin/allOrders', params); + } + + getMarginOCO( + params: QueryPortfolioMarginOCOReq, + ): Promise { + return this.getPrivate('papi/v1/margin/orderList', params); + } + + getAllMarginOCO( + params: QueryPortfolioMarginAllOCOReq, + ): Promise { + return this.getPrivate('papi/v1/margin/allOrderList', params); + } + + getMarginOpenOCO(): Promise { + return this.getPrivate('papi/v1/margin/openOrderList'); + } + + getMarginTrades( + params: QueryPortfolioMarginTradesReq, + ): Promise { + return this.getPrivate('papi/v1/margin/myTrades', params); + } + + repayMarginDebt( + params: PortfolioMarginRepayDebtReq, + ): Promise { + return this.postPrivate('papi/v1/margin/repay-debt', params); + } + + /** + * + * DERIVATIVES - ACCOUNT endpoints + * + **/ + + getBalance(params?: { asset?: string }): Promise { + return this.getPrivate('papi/v1/balance', params); + } + + getAccountInfo(): Promise { + return this.getPrivate('papi/v1/account'); + } + + getMarginMaxBorrow(params: { asset: string }): Promise<{ + amount: string; // account's currently max borrowable amount with sufficient system availability + borrowLimit: string; // max borrowable amount limited by the account level + }> { + return this.getPrivate('papi/v1/margin/maxBorrowable', params); + } + + getMarginMaxWithdraw(params: { asset: string }): Promise<{ + amount: string; // max withdrawable amount + }> { + return this.getPrivate('papi/v1/margin/maxWithdraw', params); + } + + getUMPosition(params?: { symbol?: string }): Promise { + return this.getPrivate('papi/v1/um/positionRisk', params); + } + + getCMPosition(params?: { + marginAsset?: string; + pair?: string; + }): Promise { + return this.getPrivate('papi/v1/cm/positionRisk', params); + } + + updateUMLeverage(params: { symbol: string; leverage: number }): Promise<{ + leverage: number; + maxNotionalValue: string; + symbol: string; + }> { + return this.postPrivate('papi/v1/um/leverage', params); + } + + updateCMLeverage(params: { symbol: string; leverage: number }): Promise<{ + leverage: number; + maxQty: string; + symbol: string; + }> { + return this.postPrivate('papi/v1/cm/leverage', params); + } + + updateUMPositionMode(params: { + dualSidePosition: 'true' | 'false'; + }): Promise<{ + code: number; + msg: string; + }> { + return this.postPrivate('papi/v1/um/positionSide/dual', params); + } + + updateCMPositionMode(params: { + dualSidePosition: 'true' | 'false'; + }): Promise<{ + code: number; + msg: string; + }> { + return this.postPrivate('papi/v1/cm/positionSide/dual', params); + } + + getUMPositionMode(): Promise<{ + dualSidePosition: boolean; // true: Hedge Mode; false: One-way Mode + }> { + return this.getPrivate('papi/v1/um/positionSide/dual'); + } + + getCMPositionMode(): Promise<{ + dualSidePosition: boolean; // true: Hedge Mode; false: One-way Mode + }> { + return this.getPrivate('papi/v1/cm/positionSide/dual'); + } + + getUMLeverageBrackets(params?: { symbol?: string }): Promise< + { + symbol: string; + notionalCoef: string; + brackets: PortfolioUMLeverageBracket[]; + }[] + > { + return this.getPrivate('papi/v1/um/leverageBracket', params); + } + + getCMLeverageBrackets(params?: { symbol?: string }): Promise< + { + symbol: string; + brackets: PortfolioCMLeverageBracket[]; + }[] + > { + return this.getPrivate('papi/v1/cm/leverageBracket', params); + } + + getUMTradingStatus(params?: { + symbol?: string; + }): Promise { + return this.getPrivate('papi/v1/um/apiTradingStatus', params); + } + + getUMCommissionRate(params: { symbol: string }): Promise<{ + symbol: string; + makerCommissionRate: string; // e.g., "0.0002" for 0.02% + takerCommissionRate: string; // e.g., "0.0004" for 0.04% + }> { + return this.getPrivate('papi/v1/um/commissionRate', params); + } + + getCMCommissionRate(params: { symbol: string }): Promise<{ + symbol: string; + makerCommissionRate: string; // e.g., "0.0002" for 0.02% + takerCommissionRate: string; // e.g., "0.0004" for 0.04% + }> { + return this.getPrivate('papi/v1/cm/commissionRate', params); + } + + getMarginLoanRecords(params: GetMarginLoanRecordsReq): Promise<{ + rows: PortfolioMarginLoanRecord[]; + total: number; + }> { + return this.getPrivate('papi/v1/margin/marginLoan', params); + } + + getMarginRepayRecords(params: GetMarginRepayRecordsReq): Promise<{ + rows: PortfolioMarginRepayRecord[]; + total: number; + }> { + return this.getPrivate('papi/v1/margin/repayLoan', params); + } + + getAutoRepayFuturesStatus(): Promise<{ + autoRepay: boolean; // true: auto-repay futures is on; false: auto-repay futures is off + }> { + return this.getPrivate('papi/v1/repay-futures-switch'); + } + + updateAutoRepayFuturesStatus(params: { + autoRepay: 'true' | 'false'; + }): Promise<{ + msg: string; + }> { + return this.postPrivate('papi/v1/repay-futures-switch', params); + } + + getMarginInterestHistory(params?: GetMarginInterestHistoryReq): Promise<{ + rows: PortfolioMarginInterestRecord[]; + total: number; + }> { + return this.getPrivate('papi/v1/margin/marginInterestHistory', params); + } + + repayFuturesNegativeBalance(): Promise<{ + msg: string; + }> { + return this.postPrivate('papi/v1/repay-futures-negative-balance'); + } + + getPortfolioNegativeBalanceInterestHistory( + params?: GetPortfolioInterestHistoryReq, + ): Promise { + return this.getPrivate('papi/v1/portfolio/interest-history', params); + } + + autoCollectFunds(): Promise<{ + msg: string; + }> { + return this.postPrivate('papi/v1/auto-collection'); + } + + transferAssetFuturesMargin(params: { asset: string }): Promise<{ + msg: string; + }> { + return this.postPrivate('papi/v1/asset-collection', params); + } + + transferBNB(params: { + amount: string; + transferSide: 'TO_UM' | 'FROM_UM'; + }): Promise<{ + tranId: number; // transaction id + }> { + return this.postPrivate('papi/v1/bnb-transfer', params); + } + + getUMIncomeHistory( + params?: QueryPortfolioUMIncomeReq, + ): Promise { + return this.getPrivate('papi/v1/um/income', params); + } + + getCMIncomeHistory( + params?: QueryPortfolioCMIncomeReq, + ): Promise { + return this.getPrivate('papi/v1/cm/income', params); + } + + getUMAccount(): Promise<{ + assets: PortfolioUMAccountAsset[]; + positions: PortfolioUMAccountPosition[]; // positions of all symbols in the market + }> { + return this.getPrivate('papi/v1/um/account'); + } + + getCMAccount(): Promise<{ + assets: PortfolioCMAccountAsset[]; + positions: PortfolioCMAccountPosition[]; + }> { + return this.getPrivate('papi/v1/cm/account'); + } + + getUMAccountConfig(): Promise { + return this.getPrivate('papi/v1/um/accountConfig'); + } + getUMSymbolConfig(params?: { + symbol?: string; + }): Promise { + return this.getPrivate('papi/v1/um/symbolConfig', params); + } + + getUMAccountV2(): Promise<{ + assets: PortfolioUMAccountAssetV2[]; + positions: PortfolioUMAccountPositionV2[]; // positions of all symbols in the market + }> { + return this.getPrivate('papi/v2/um/account'); + } + + getUMTradeHistoryDownloadId(params: { + startTime: number; // Timestamp in ms + endTime: number; // Timestamp in ms + }): Promise<{ + avgCostTimestampOfLast30d: number; // Average time taken for data download in the past 30 days + downloadId: string; + }> { + return this.getPrivate('papi/v1/um/trade/asyn', params); + } + + getUMTradeDownloadLink(params: { + downloadId: string; + }): Promise { + return this.getPrivate('papi/v1/um/trade/asyn/id', params); + } + + getUMOrderHistoryDownloadId(params: { + startTime: number; // Timestamp in ms + endTime: number; // Timestamp in ms + }): Promise<{ + avgCostTimestampOfLast30d: number; // Average time taken for data download in the past 30 days + downloadId: string; + }> { + return this.getPrivate('papi/v1/um/order/asyn', params); + } + + getUMOrderDownloadLink(params: { + downloadId: string; + }): Promise { + return this.getPrivate('papi/v1/um/order/asyn/id', params); + } + + getUMTransactionHistoryDownloadId(params: { + startTime: number; // Timestamp in ms + endTime: number; // Timestamp in ms + }): Promise<{ + avgCostTimestampOfLast30d: number; // Average time taken for data download in the past 30 days + downloadId: string; + }> { + return this.getPrivate('papi/v1/um/income/asyn', params); + } + + getUMTransactionDownloadLink(params: { + downloadId: string; + }): Promise { + return this.getPrivate('papi/v1/um/income/asyn/id', params); + } + + /** + * Validate syntax meets requirements set by binance. Log warning if not. + */ + private validateOrderId( + params: + | NewPortfolioUMOrderReq + | CancelOrderParams + | NewOCOParams + | CancelOCOParams, + orderIdProperty: OrderIdProperty, + ): void { + const apiCategory = this.clientId; + + if (!params[orderIdProperty]) { + params[orderIdProperty] = generateNewOrderId(apiCategory); + return; + } + + const expectedOrderIdPrefix = `x-${getOrderIdPrefix(apiCategory)}`; + if (!params[orderIdProperty].startsWith(expectedOrderIdPrefix)) { + logInvalidOrderId(orderIdProperty, expectedOrderIdPrefix, params); + } + } + + /** + * + * User Data Stream Endpoints + * + **/ + getPMUserDataListenKey(): Promise<{ listenKey: string }> { + return this.post('papi/v1/listenKey'); + } + + keepAlivePMUserDataListenKey(): Promise<{}> { + return this.put('papi/v1/listenKey'); + } + + closePMUserDataListenKey(): Promise<{}> { + return this.delete('papi/v1/listenKey'); + } +} diff --git a/src/types/portfolio-margin.ts b/src/types/portfolio-margin.ts new file mode 100644 index 00000000..4facf12c --- /dev/null +++ b/src/types/portfolio-margin.ts @@ -0,0 +1,1430 @@ +// Enums +export type PortfolioStrategyType = + | 'STOP' + | 'STOP_MARKET' + | 'TAKE_PROFIT' + | 'TAKE_PROFIT_MARKET' + | 'TRAILING_STOP_MARKET'; + +export type WorkingType = 'MARK_PRICE' | 'CONTRACT_PRICE'; + +export type PriceMatch = + | 'NONE' + | 'OPPONENT' + | 'OPPONENT_5' + | 'OPPONENT_10' + | 'OPPONENT_20' + | 'QUEUE' + | 'QUEUE_5' + | 'QUEUE_10' + | 'QUEUE_20'; + +export type SelfTradePreventionMode = + | 'NONE' + | 'EXPIRE_TAKER' + | 'EXPIRE_MAKER' + | 'EXPIRE_BOTH'; + +export type MarginOrderType = + | 'LIMIT' + | 'MARKET' + | 'STOP_LOSS' + | 'STOP_LOSS_LIMIT' + | 'TAKE_PROFIT' + | 'TAKE_PROFIT_LIMIT'; + +export type MarginSideEffectType = + | 'NO_SIDE_EFFECT' + | 'MARGIN_BUY' + | 'AUTO_REPAY' + | 'AUTO_BORROW_REPAY'; + +export type AutoCloseType = 'LIQUIDATION' | 'ADL'; + +export interface NewPortfolioUMOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + positionSide?: 'BOTH' | 'LONG' | 'SHORT'; // Default BOTH for One-way Mode + type: 'LIMIT' | 'MARKET'; + timeInForce?: string; + quantity?: string; + reduceOnly?: boolean; // Cannot be sent in Hedge Mode + price?: string; + newClientOrderId?: string; // Must match: ^[\.A-Z\:/a-z0-9_-]{1,32}$ + newOrderRespType?: 'ACK' | 'RESULT'; // Default: ACK + priceMatch?: PriceMatch; // Only for LIMIT/STOP/TAKE_PROFIT orders + selfTradePreventionMode?: SelfTradePreventionMode; + goodTillDate?: number; // Mandatory when timeInForce is GTD +} + +export interface NewPortfolioUMOrderResponse { + clientOrderId: string; + cumQty: string; + cumQuote: string; + executedQty: string; + orderId: number; + avgPrice: string; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + status: string; + symbol: string; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate?: number; + updateTime: number; + priceMatch: PriceMatch; +} + +export interface NewPortfolioUMConditionalOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + positionSide?: 'BOTH' | 'LONG' | 'SHORT'; + strategyType: PortfolioStrategyType; + timeInForce?: string; + quantity?: string; + reduceOnly?: boolean; + price?: string; + workingType?: WorkingType; + priceProtect?: boolean; + newClientStrategyId?: string; + stopPrice?: string; + activationPrice?: string; + callbackRate?: string; + priceMatch?: PriceMatch; + selfTradePreventionMode?: SelfTradePreventionMode; + goodTillDate?: number; +} + +export interface NewPortfolioConditionalOrderResponse { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + stopPrice?: string; + symbol: string; + timeInForce: string; + activatePrice?: string; + priceRate?: string; + bookTime: number; + updateTime: number; + workingType: WorkingType; + priceProtect: boolean; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate?: number; + priceMatch: PriceMatch; +} + +export interface NewPortfolioCMOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + positionSide?: 'BOTH' | 'LONG' | 'SHORT'; + type: 'LIMIT' | 'MARKET'; + timeInForce?: string; + quantity?: string; + reduceOnly?: boolean; + price?: string; + newClientOrderId?: string; + newOrderRespType?: 'ACK' | 'RESULT'; +} + +export interface NewPortfolioCMOrderResponse { + clientOrderId: string; + cumQty: string; + cumBase: string; + executedQty: string; + orderId: number; + avgPrice: string; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + status: string; + symbol: string; + pair: string; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + updateTime: number; +} + +export interface NewPortfolioCMConditionalOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + positionSide?: 'BOTH' | 'LONG' | 'SHORT'; + strategyType: PortfolioStrategyType; + timeInForce?: string; + quantity?: string; + reduceOnly?: boolean; + price?: string; + workingType?: WorkingType; + priceProtect?: boolean; + newClientStrategyId?: string; + stopPrice?: string; + activationPrice?: string; + callbackRate?: string; +} + +export interface NewPortfolioCMConditionalOrderResponse { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + stopPrice?: string; + symbol: string; + pair: string; + timeInForce: string; + activatePrice?: string; + priceRate?: string; + bookTime: number; + updateTime: number; + workingType: WorkingType; + priceProtect: boolean; +} + +export interface MarginOrderFill { + price: string; + qty: string; + commission: string; + commissionAsset: string; +} + +export interface NewPortfolioMarginOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + type: MarginOrderType; + quantity?: string; + quoteOrderQty?: string; + price?: string; + stopPrice?: string; + newClientOrderId?: string; + newOrderRespType?: 'ACK' | 'RESULT' | 'FULL'; + icebergQty?: string; + sideEffectType?: MarginSideEffectType; + timeInForce?: string; + selfTradePreventionMode?: SelfTradePreventionMode; + autoRepayAtCancel?: boolean; +} + +export interface NewPortfolioMarginOrderResponse { + symbol: string; + orderId: number; + clientOrderId: string; + transactTime: number; + price: string; + origQty: string; + executedQty: string; + cummulativeQuoteQty: string; + status: string; + timeInForce: string; + type: MarginOrderType; + side: 'BUY' | 'SELL'; + marginBuyBorrowAmount?: string; + marginBuyBorrowAsset?: string; + fills: MarginOrderFill[]; +} + +export interface PortfolioMarginOCOOrder { + symbol: string; + orderId: number; + clientOrderId: string; +} + +export interface PortfolioMarginOCOOrderReport { + symbol: string; + orderId: number; + orderListId: number; + clientOrderId: string; + transactTime: number; + price: string; + origQty: string; + executedQty: string; + cummulativeQuoteQty: string; + status: string; + timeInForce: string; + type: string; + side: 'BUY' | 'SELL'; + stopPrice?: string; +} + +export interface NewPortfolioMarginOCOReq { + symbol: string; + listClientOrderId?: string; + side: 'BUY' | 'SELL'; + quantity: string; + limitClientOrderId?: string; + price: string; + limitIcebergQty?: string; + stopClientOrderId?: string; + stopPrice: string; + stopLimitPrice?: string; + stopIcebergQty?: string; + stopLimitTimeInForce?: 'GTC' | 'FOK' | 'IOC'; + newOrderRespType?: 'ACK' | 'RESULT' | 'FULL'; + sideEffectType?: MarginSideEffectType; +} + +export interface NewPortfolioMarginOCOResponse { + orderListId: number; + contingencyType: 'OCO'; + listStatusType: string; + listOrderStatus: string; + listClientOrderId: string; + transactionTime: number; + symbol: string; + marginBuyBorrowAmount?: string; + marginBuyBorrowAsset?: string; + orders: PortfolioMarginOCOOrder[]; + orderReports: PortfolioMarginOCOOrderReport[]; +} + +// Add new interfaces for canceling UM orders +export interface CancelPortfolioUMOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface PortfolioUMCancelOrderResponse { + avgPrice: string; + clientOrderId: string; + cumQty: string; + cumQuote: string; + executedQty: string; + orderId: number; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + status: string; + symbol: string; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + updateTime: number; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate: number; + priceMatch: PriceMatch; +} + +export interface CancelPortfolioUMConditionalOrderReq { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; +} + +export interface PortfolioUMCancelConditionalOrderResponse { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + stopPrice?: string; + symbol: string; + timeInForce: string; + activatePrice?: string; + priceRate?: string; + bookTime: number; + updateTime: number; + workingType: WorkingType; + priceProtect: boolean; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate: number; + priceMatch: PriceMatch; +} + +export interface CancelPortfolioCMOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface PortfolioCMCancelOrderResponse { + avgPrice: string; + clientOrderId: string; + cumQty: string; + cumBase: string; + executedQty: string; + orderId: number; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + status: string; + symbol: string; + pair: string; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + updateTime: number; +} + +export interface CancelPortfolioCMConditionalOrderReq { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; +} + +export interface PortfolioCMCancelConditionalOrderResponse { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + stopPrice?: string; + symbol: string; + timeInForce: string; + activatePrice?: string; + priceRate?: string; + bookTime: number; + updateTime: number; + workingType: WorkingType; + priceProtect: boolean; +} + +export interface CancelPortfolioMarginOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; + newClientOrderId?: string; +} + +export interface PortfolioMarginCancelOrderResponse { + symbol: string; + orderId: number; + origClientOrderId: string; + clientOrderId: string; + price: string; + origQty: string; + executedQty: string; + cummulativeQuoteQty: string; + status: string; + timeInForce: string; + type: MarginOrderType; + side: 'BUY' | 'SELL'; +} + +export interface CancelPortfolioMarginOCOReq { + symbol: string; + orderListId?: number; + listClientOrderId?: string; + newClientOrderId?: string; +} + +export interface PortfolioMarginOCOCancelOrder { + symbol: string; + orderId: number; + clientOrderId: string; +} + +export interface PortfolioMarginOCOCancelOrderReport { + symbol: string; + origClientOrderId: string; + orderId: number; + orderListId: number; + clientOrderId: string; + price: string; + origQty: string; + executedQty: string; + cummulativeQuoteQty: string; + status: string; + timeInForce: string; + type: 'STOP_LOSS_LIMIT' | 'LIMIT_MAKER'; + side: 'BUY' | 'SELL'; + stopPrice?: string; +} + +export interface PortfolioMarginOCOCancelResponse { + orderListId: number; + contingencyType: 'OCO'; + listStatusType: string; + listOrderStatus: string; + listClientOrderId: string; + transactionTime: number; + symbol: string; + orders: PortfolioMarginOCOCancelOrder[]; + orderReports: PortfolioMarginOCOCancelOrderReport[]; +} + +export interface PortfolioMarginCancelAllOrdersOrderReport { + symbol: string; + origClientOrderId: string; + orderId: number; + orderListId: number; + clientOrderId: string; + price: string; + origQty: string; + executedQty: string; + cummulativeQuoteQty: string; + status: string; + timeInForce: string; + type: MarginOrderType; + side: 'BUY' | 'SELL'; + stopPrice?: string; + icebergQty?: string; +} + +export interface PortfolioMarginCancelAllOrdersOCOReport { + orderListId: number; + contingencyType: 'OCO'; + listStatusType: string; + listOrderStatus: string; + listClientOrderId: string; + transactionTime: number; + symbol: string; + orders: PortfolioMarginOCOCancelOrder[]; + orderReports: PortfolioMarginCancelAllOrdersOrderReport[]; +} + +export type PortfolioMarginCancelAllOrdersResponse = + | PortfolioMarginCancelAllOrdersOrderReport + | PortfolioMarginCancelAllOrdersOCOReport; + +export interface ModifyPortfolioUMOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + quantity: string; + price: string; + orderId?: number; + origClientOrderId?: string; + priceMatch?: PriceMatch; +} + +export interface PortfolioUMModifyOrderResponse { + orderId: number; + symbol: string; + status: string; + clientOrderId: string; + price: string; + avgPrice: string; + origQty: string; + executedQty: string; + cumQty: string; + cumQuote: string; + timeInForce: string; + type: 'LIMIT'; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'LONG' | 'SHORT' | 'BOTH'; + origType: 'LIMIT'; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate: number; + updateTime: number; + priceMatch: PriceMatch; +} + +export interface ModifyPortfolioCMOrderReq { + symbol: string; + side: 'BUY' | 'SELL'; + quantity: string; + price: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface PortfolioCMModifyOrderResponse { + orderId: number; + symbol: string; + pair: string; + status: string; + clientOrderId: string; + price: string; + avgPrice: string; + origQty: string; + executedQty: string; + cumQty: string; + cumBase: string; + timeInForce: string; + type: 'LIMIT'; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'LONG' | 'SHORT' | 'BOTH'; + origType: 'LIMIT'; + updateTime: number; +} + +export interface QueryPortfolioUMOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface PortfolioUMOrder { + avgPrice: string; + clientOrderId: string; + cumQuote: string; + executedQty: string; + orderId: number; + origQty: string; + origType: 'LIMIT' | 'MARKET'; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'LONG' | 'SHORT' | 'BOTH'; + status: string; + symbol: string; + time: number; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + updateTime: number; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate: number; + priceMatch: PriceMatch; +} + +export interface QueryPortfolioAllUMOrdersReq { + symbol: string; + orderId?: number; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface QueryPortfolioUMOpenOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface QueryPortfolioAllUMConditionalOrdersReq { + symbol?: string; + strategyId?: number; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioUMConditionalOrder { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'LONG' | 'SHORT' | 'BOTH'; + stopPrice?: string; + symbol: string; + orderId?: number; + status?: string; + bookTime: number; + updateTime: number; + triggerTime?: number; + timeInForce: string; + type?: 'MARKET' | 'LIMIT'; + activatePrice?: string; + priceRate?: string; + selfTradePreventionMode: SelfTradePreventionMode; + goodTillDate: number; + priceMatch: PriceMatch; +} + +export interface QueryPortfolioUMOpenConditionalOrderReq { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; +} + +export interface QueryPortfolioUMConditionalOrderHistoryReq { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; +} + +export interface QueryPortfolioCMOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface PortfolioCMOrder { + avgPrice: string; + clientOrderId: string; + cumBase: string; + executedQty: string; + orderId: number; + origQty: string; + origType: 'LIMIT' | 'MARKET'; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + status: string; + symbol: string; + pair: string; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + time: number; + timeInForce: string; + type: 'LIMIT' | 'MARKET'; + updateTime: number; +} + +export interface QueryPortfolioAllCMOrdersReq { + symbol: string; + pair?: string; + orderId?: number; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface QueryPortfolioCMOpenOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; +} + +export interface QueryPortfolioAllCMConditionalOrdersReq { + symbol?: string; + strategyId?: number; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioCMConditionalOrder { + newClientStrategyId: string; + strategyId: number; + strategyStatus: string; + strategyType: PortfolioStrategyType; + origQty: string; + price: string; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + stopPrice?: string; + symbol: string; + orderId?: number; + status?: string; + bookTime: number; + updateTime: number; + triggerTime?: number; + timeInForce: string; + type?: 'MARKET' | 'LIMIT'; + activatePrice?: string; + priceRate?: string; + workingType: WorkingType; + priceProtect: boolean; +} + +export interface QueryPortfolioCMConditionalOrderHistoryReq { + symbol: string; + strategyId?: number; + newClientStrategyId?: string; +} + +export interface PortfolioCMConditionalHistoryOrder + extends PortfolioCMConditionalOrder { + priceMatch: PriceMatch; +} + +export interface QueryPortfolioUMForceOrdersReq { + symbol?: string; + autoCloseType?: AutoCloseType; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioUMForceOrder { + orderId: number; + symbol: string; + status: string; + clientOrderId: string; + price: string; + avgPrice: string; + origQty: string; + executedQty: string; + cumQuote: string; + timeInForce: string; + type: 'LIMIT'; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + origType: 'LIMIT'; + time: number; + updateTime: number; +} + +export interface QueryPortfolioCMForceOrdersReq { + symbol?: string; + autoCloseType?: AutoCloseType; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioCMForceOrder { + orderId: number; + symbol: string; + pair: string; + status: string; + clientOrderId: string; + price: string; + avgPrice: string; + origQty: string; + executedQty: string; + cumBase: string; + timeInForce: string; + type: 'LIMIT'; + reduceOnly: boolean; + side: 'BUY' | 'SELL'; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + origType: 'LIMIT'; + time: number; + updateTime: number; +} + +export interface QueryPortfolioUMOrderAmendmentReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioUMOrderAmendment { + price: { + before: string; + after: string; + }; + origQty: { + before: string; + after: string; + }; + count: number; +} + +export interface PortfolioUMOrderModificationHistory { + amendmentId: number; + symbol: string; + pair: string; + orderId: number; + clientOrderId: string; + time: number; + amendment: PortfolioUMOrderAmendment; + priceMatch: PriceMatch; +} + +export interface QueryPortfolioCMOrderAmendmentReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; + startTime?: number; + endTime?: number; + limit?: number; +} + +export interface PortfolioCMOrderAmendment { + price: { + before: string; + after: string; + }; + origQty: { + before: string; + after: string; + }; + count: number; +} + +export interface PortfolioCMOrderModificationHistory { + amendmentId: number; + symbol: string; + pair: string; + orderId: number; + clientOrderId: string; + time: number; + amendment: PortfolioCMOrderAmendment; +} + +export interface QueryPortfolioMarginForceOrdersReq { + startTime?: number; + endTime?: number; + current?: number; // Currently querying page. Start from 1. Default: 1 + size?: number; // Default: 10, Max: 100 +} + +export interface PortfolioMarginForceOrder { + avgPrice: string; + executedQty: string; + orderId: number; + price: string; + qty: string; + side: 'BUY' | 'SELL'; + symbol: string; + timeInForce: string; + updatedTime: number; +} + +export interface QueryPortfolioUMTradesReq { + symbol: string; + startTime?: number; + endTime?: number; + fromId?: number; // Trade id to fetch from. Default gets most recent trades + limit?: number; // Default 500; max 1000 +} + +export interface PortfolioUMTrade { + symbol: string; + id: number; + orderId: number; + side: 'BUY' | 'SELL'; + price: string; + qty: string; + realizedPnl: string; + quoteQty: string; + commission: string; + commissionAsset: string; + time: number; + buyer: boolean; + maker: boolean; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; +} + +export interface QueryPortfolioCMTradesReq { + symbol?: string; + pair?: string; + startTime?: number; + endTime?: number; + fromId?: number; // Trade id to fetch from. Default gets most recent trades + limit?: number; // Default 50; max 1000 +} + +export interface PortfolioCMTrade { + symbol: string; + id: number; + orderId: number; + pair: string; + side: 'BUY' | 'SELL'; + price: string; + qty: string; + realizedPnl: string; + marginAsset: string; + baseQty: string; + commission: string; + commissionAsset: string; + time: number; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + buyer: boolean; + maker: boolean; +} + +export interface PortfolioADLQuantile { + LONG: number; + SHORT: number; + BOTH?: number; // For one-way mode or isolated margin in hedge mode + HEDGE?: number; // For cross margin in hedge mode (ignore value, just a sign) +} + +export interface QueryPortfolioMarginOrderReq { + symbol: string; + orderId?: number; + origClientOrderId?: string; + recvWindow?: number; // Cannot be greater than 60000 + timestamp: number; +} + +export interface PortfolioMarginOrder { + clientOrderId: string; + cummulativeQuoteQty: string; + executedQty: string; + icebergQty: string; + isWorking: boolean; + orderId: number; + origQty: string; + price: string; + side: 'BUY' | 'SELL'; + status: string; + stopPrice: string; + symbol: string; + time: number; + timeInForce: string; + type: MarginOrderType; + updateTime: number; + accountId: number; + selfTradePreventionMode: SelfTradePreventionMode; + preventedMatchId: number | null; + preventedQuantity: string | null; +} + +export interface QueryPortfolioMarginAllOrdersReq { + symbol: string; + orderId?: number; + startTime?: number; + endTime?: number; + limit?: number; // Default 500; max 500 + recvWindow?: number; // Cannot be greater than 60000 + timestamp: number; +} + +export interface QueryPortfolioMarginOCOReq { + orderListId?: number; // Either orderListId or origClientOrderId must be provided + origClientOrderId?: string; // Either orderListId or origClientOrderId must be provided + recvWindow?: number; // Cannot be greater than 60000 + timestamp: number; +} + +export interface PortfolioMarginOCOQueryOrder { + symbol: string; + orderId: number; + clientOrderId: string; +} + +export interface PortfolioMarginOCO { + orderListId: number; + contingencyType: 'OCO'; + listStatusType: string; + listOrderStatus: string; + listClientOrderId: string; + transactionTime: number; + symbol: string; + orders: PortfolioMarginOCOQueryOrder[]; +} + +export interface QueryPortfolioMarginAllOCOReq { + fromId?: number; // If supplied, neither startTime or endTime can be provided + startTime?: number; + endTime?: number; + limit?: number; // Default 500; max 500 +} + +export interface QueryPortfolioMarginTradesReq { + symbol: string; + orderId?: number; + startTime?: number; + endTime?: number; + fromId?: number; // TradeId to fetch from. Default gets most recent trades + limit?: number; // Default 500; max 1000 +} + +export interface PortfolioMarginTrade { + commission: string; + commissionAsset: string; + id: number; + isBestMatch: boolean; + isBuyer: boolean; + isMaker: boolean; + orderId: number; + price: string; + qty: string; + symbol: string; + time: number; +} + +export interface PortfolioMarginRepayDebtReq { + asset: string; + amount?: string; + specifyRepayAssets?: string; // Specific asset list to repay debt; Can be added in batch, separated by commas +} + +export interface PortfolioMarginRepayDebtResponse { + amount: string; + asset: string; + specifyRepayAssets: string[]; + updateTime: number; + success: boolean; +} + +/** + * + * DERIVATIVES - ACCOUNT endpoints + * + **/ + +export type PortfolioAccountStatus = + | 'NORMAL' + | 'MARGIN_CALL' + | 'SUPPLY_MARGIN' + | 'REDUCE_ONLY' + | 'ACTIVE_LIQUIDATION' + | 'FORCE_LIQUIDATION' + | 'BANKRUPTED'; + +export type PortfolioIndicatorType = 'UFR' | 'IFER' | 'GCR' | 'DR' | 'TMV'; +export type MarginLoanStatus = 'PENDING' | 'CONFIRMED' | 'FAILED'; + +export interface PortfolioTotalBalance { + asset: string; + totalWalletBalance: string; // wallet balance = cross margin free + cross margin locked + UM wallet balance + CM wallet balance + crossMarginAsset: string; // crossMarginAsset = crossMarginFree + crossMarginLocked + crossMarginBorrowed: string; // principal of cross margin + crossMarginFree: string; // free asset of cross margin + crossMarginInterest: string; // interest of cross margin + crossMarginLocked: string; // lock asset of cross margin + umWalletBalance: string; // wallet balance of um + umUnrealizedPNL: string; // unrealized profit of um + cmWalletBalance: string; // wallet balance of cm + cmUnrealizedPNL: string; // unrealized profit of cm + updateTime: number; + negativeBalance: string; +} + +export interface PortfolioSingleBalance { + asset: string; + totalWalletBalance: string; // wallet balance = cross margin free + cross margin locked + UM wallet balance + CM wallet balance + crossMarginBorrowed: string; // principal of cross margin + crossMarginFree: string; // free asset of cross margin + crossMarginInterest: string; // interest of cross margin + crossMarginLocked: string; // lock asset of cross margin + umWalletBalance: string; // wallet balance of um + umUnrealizedPNL: string; // unrealized profit of um + cmWalletBalance: string; // wallet balance of cm + cmUnrealizedPNL: string; // unrealized profit of cm + updateTime: number; + negativeBalance: string; +} + +export type PortfolioBalance = PortfolioBalance[] | PortfolioSingleBalance; + +export interface PortfolioAccountInformation { + uniMMR: string; // Portfolio margin account maintenance margin rate + accountEquity: string; // Account equity, in USD value + actualEquity: string; // Account equity without collateral rate, in USD value + accountInitialMargin: string; + accountMaintMargin: string; // Portfolio margin account maintenance margin, unit: USD + accountStatus: PortfolioAccountStatus; + virtualMaxWithdrawAmount: string; // Portfolio margin maximum amount for transfer out in USD + totalAvailableBalance: string; + totalMarginOpenLoss: string; // in USD margin open order + updateTime: number; // last update time +} + +export interface PortfolioUMPosition { + symbol: string; + positionAmt: string; + entryPrice: string; + markPrice: string; + unRealizedProfit: string; + liquidationPrice: string; + leverage: string; + maxNotionalValue: string; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + notional: string; + updateTime: number; +} + +export interface PortfolioCMPosition { + symbol: string; + positionAmt: string; + entryPrice: string; + markPrice: string; + unRealizedProfit: string; + liquidationPrice: string; + leverage: string; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; + updateTime: number; + maxQty: string; + notionalValue: string; +} + +export interface PortfolioUMLeverageBracket { + bracket: number; // Notional bracket + initialLeverage: number; // Max initial leverage for this bracket + notionalCap: number; // Cap notional of this bracket + notionalFloor: number; // Notional threshold of this bracket + maintMarginRatio: number; // Maintenance ratio for this bracket + cum: number; // Auxiliary number for quick calculation +} + +export interface PortfolioCMLeverageBracket { + bracket: number; // bracket level + initialLeverage: number; // the maximum leverage + qtyCap: number; // upper edge of base asset quantity + qtyFloor: number; // lower edge of base asset quantity + maintMarginRatio: number; // maintenance margin rate + cum: number; // Auxiliary number for quick calculation +} + +export interface PortfolioTradingIndicator { + isLocked: boolean; + plannedRecoverTime: number; + indicator: PortfolioIndicatorType; + value: number; + triggerValue: number; +} + +export interface PortfolioTradingStatus { + indicators: { + [key: string]: PortfolioTradingIndicator[]; // key can be symbol or "ACCOUNT" + }; + updateTime: number; +} + +export interface PortfolioMarginLoanRecord { + txId: number; + asset: string; + principal: string; + timestamp: number; + status: MarginLoanStatus; +} + +export interface GetMarginLoanRecordsReq { + asset: string; + txId?: number; + startTime?: number; + endTime?: number; + current?: number; // Currently querying page. Start from 1. Default: 1 + size?: number; // Default: 10, Max: 100 + archived?: boolean; // Default: false. Set to true for archived data from 6 months ago +} + +export interface GetMarginRepayRecordsReq { + asset: string; + txId?: number; + startTime?: number; + endTime?: number; + current?: number; // Currently querying page. Start from 1. Default: 1 + size?: number; // Default: 10, Max: 100 + archived?: boolean; // Default: false. Set to true for archived data from 6 months ago +} + +export interface PortfolioMarginRepayRecord { + amount: string; // Total amount repaid + asset: string; + interest: string; // Interest repaid + principal: string; // Principal repaid + status: MarginLoanStatus; + txId: number; +} + +export interface GetMarginInterestHistoryReq { + asset?: string; + startTime?: number; + endTime?: number; + current?: number; // Currently querying page. Start from 1. Default: 1 + size?: number; // Default: 10, Max: 100 + archived?: boolean; // Default: false. Set to true for archived data from 6 months ago +} + +export type MarginInterestType = + | 'PERIODIC' // interest charged per hour + | 'ON_BORROW' // first interest charged on borrow + | 'PERIODIC_CONVERTED' // interest charged per hour converted into BNB + | 'ON_BORROW_CONVERTED' // first interest charged on borrow converted into BNB + | 'PORTFOLIO'; // Portfolio Margin negative balance daily interest + +export interface PortfolioMarginInterestRecord { + txId: number; + interestAccuredTime: number; + asset: string; + rawAsset: string; + principal: string; + interest: string; + interestRate: string; + type: MarginInterestType; +} + +export interface GetPortfolioInterestHistoryReq { + asset?: string; + startTime?: number; + endTime?: number; + size?: number; // Default: 10, Max: 100 + recvWindow?: number; +} + +export interface PortfolioNegativeBalanceInterestRecord { + asset: string; + interest: string; // interest amount + interestAccuredTime: number; + interestRate: string; // daily interest rate + principal: string; +} + +export type UMIncomeType = + | 'TRANSFER' + | 'WELCOME_BONUS' + | 'REALIZED_PNL' + | 'FUNDING_FEE' + | 'COMMISSION' + | 'INSURANCE_CLEAR' + | 'REFERRAL_KICKBACK' + | 'COMMISSION_REBATE' + | 'API_REBATE' + | 'CONTEST_REWARD' + | 'CROSS_COLLATERAL_TRANSFER' + | 'OPTIONS_PREMIUM_FEE' + | 'OPTIONS_SETTLE_PROFIT' + | 'INTERNAL_TRANSFER' + | 'AUTO_EXCHANGE' + | 'DELIVERED_SETTELMENT' + | 'COIN_SWAP_DEPOSIT' + | 'COIN_SWAP_WITHDRAW' + | 'POSITION_LIMIT_INCREASE_FEE'; + +export interface QueryPortfolioUMIncomeReq { + symbol?: string; + incomeType?: UMIncomeType; + startTime?: number; + endTime?: number; + page?: number; + limit?: number; // Default 100; max 1000 + recvWindow?: number; +} + +export interface PortfolioUMIncome { + symbol: string; // trade symbol, if existing + incomeType: UMIncomeType; + income: string; // income amount + asset: string; // income asset + info: string; // extra information + time: number; + tranId: string; // transaction id + tradeId: string; // trade id, if existing +} + +export type CMIncomeType = + | 'TRANSFER' + | 'WELCOME_BONUS' + | 'FUNDING_FEE' + | 'REALIZED_PNL' + | 'COMMISSION' + | 'INSURANCE_CLEAR' + | 'DELIVERED_SETTELMENT'; + +export interface QueryPortfolioCMIncomeReq { + symbol?: string; + incomeType?: CMIncomeType; + startTime?: number; + endTime?: number; + page?: number; + limit?: number; // Default 100; max 1000 + recvWindow?: number; +} + +export interface PortfolioCMIncome { + symbol: string; // trade symbol, if existing + incomeType: CMIncomeType; + income: string; // income amount + asset: string; // income asset + info: string; // extra information + time: number; + tranId: string; // transaction id + tradeId: string; // trade id, if existing +} + +export interface PortfolioUMAccountAsset { + asset: string; // asset name + crossWalletBalance: string; // wallet balance + crossUnPnl: string; // unrealized profit + maintMargin: string; // maintenance margin required + initialMargin: string; // total initial margin required with current mark price + positionInitialMargin: string; // initial margin required for positions with current mark price + openOrderInitialMargin: string; // initial margin required for open orders with current mark price + updateTime: number; // last update time +} + +export interface PortfolioUMAccountPosition { + symbol: string; // symbol name + initialMargin: string; // initial margin required with current mark price + maintMargin: string; // maintenance margin required + unrealizedProfit: string; // unrealized profit + positionInitialMargin: string; // initial margin required for positions with current mark price + openOrderInitialMargin: string; // initial margin required for open orders with current mark price + leverage: string; // current initial leverage + entryPrice: string; // average entry price + maxNotional: string; // maximum available notional with current leverage + bidNotional: string; // bids notional + askNotional: string; // ask notional + positionSide: 'BOTH' | 'LONG' | 'SHORT'; // position side + positionAmt: string; // position amount + updateTime: number; // last update time +} + +export interface PortfolioCMAccountAsset { + asset: string; // asset name + crossWalletBalance: string; // total wallet balance + crossUnPnl: string; // unrealized profit or loss + maintMargin: string; // maintenance margin + initialMargin: string; // total initial margin required with the latest mark price + positionInitialMargin: string; // positions' margin required with the latest mark price + openOrderInitialMargin: string; // open orders' initial margin required with the latest mark price + updateTime: number; // last update time +} + +export interface PortfolioCMAccountPosition { + symbol: string; // symbol name + positionAmt: string; // position amount + initialMargin: string; + maintMargin: string; + unrealizedProfit: string; + positionInitialMargin: string; + openOrderInitialMargin: string; + leverage: string; + positionSide: 'BOTH' | 'LONG' | 'SHORT'; // BOTH means that it is the position of One-way Mode + entryPrice: string; + maxQty: string; // maximum quantity of base asset + updateTime: number; +} + +export interface PortfolioUMAccountConfig { + feeTier: number; // account commission tier + canTrade: boolean; // if can trade + canDeposit: boolean; // if can transfer in asset + canWithdraw: boolean; // if can transfer out asset + dualSidePosition: boolean; + updateTime: number; // reserved property + multiAssetsMargin: boolean; + tradeGroupId: number; +} + +export interface PortfolioUMSymbolConfig { + symbol: string; + marginType: 'CROSSED' | 'ISOLATED'; + isAutoAddMargin: string; // "true" or "false" as string + leverage: number; + maxNotionalValue: string; +} + +export interface PortfolioUMAccountAssetV2 { + asset: string; // asset name + crossWalletBalance: string; // wallet balance + crossUnPnl: string; // unrealized profit + maintMargin: string; // maintenance margin required + initialMargin: string; // total initial margin required with current mark price + positionInitialMargin: string; // initial margin required for positions with current mark price + openOrderInitialMargin: string; // initial margin required for open orders with current mark price + updateTime: number; // last update time +} + +export interface PortfolioUMAccountPositionV2 { + symbol: string; // symbol name + initialMargin: string; // initial margin required with current mark price + maintMargin: string; // maintenance margin required + unrealizedProfit: string; // unrealized profit + positionSide: 'BOTH' | 'LONG' | 'SHORT'; // position side + positionAmt: string; // position amount + updateTime: number; // last update time + notional: string; // position notional value +} + +export interface DownloadLinkResponse { + downloadId: string; + status: 'completed' | 'processing'; // Enum: completed, processing + url: string; // The link is mapped to download id + s3Link: string | null; + notified: boolean; // ignore + expirationTimestamp: number; // The link would expire after this timestamp + isExpired: boolean | null; +} diff --git a/src/types/shared.ts b/src/types/shared.ts index 86bc8c67..f15f30ea 100644 --- a/src/types/shared.ts +++ b/src/types/shared.ts @@ -18,7 +18,8 @@ export type BinanceBaseUrlKey = | 'coinm' | 'coinmtest' | 'voptions' - | 'voptionstest'; + | 'voptionstest' + | 'papi'; /** * Time in force. Note: `GTE_GTC` is not officially documented, use at your own risk. @@ -44,6 +45,7 @@ export type OrderResponseType = 'ACK' | 'RESULT' | 'FULL'; export type OrderIdProperty = | 'newClientOrderId' + | 'newClientStrategyId' | 'listClientOrderId' | 'limitClientOrderId' | 'stopClientOrderId' diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index d62ae4ee..17b31a31 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -223,12 +223,15 @@ export default abstract class BaseRestClient { // 'sending request: ', // JSON.stringify( // { + // serialisedParams, + // requestBody, + // signature, // reqOptions: options, // reqParams: params, // }, // null, - // 2 - // ) + // 2, + // ), // ); return axios(options) diff --git a/src/util/requestUtils.ts b/src/util/requestUtils.ts index dca4c9db..8fce28a2 100644 --- a/src/util/requestUtils.ts +++ b/src/util/requestUtils.ts @@ -45,8 +45,13 @@ export interface RestClientOptions { // Default: false, if true will try to resolve known strings containing numbers to "number" type beautifyResponses?: boolean; - //Defailt: false, if true will try to filter off undefined values from request params + // Default: false, if true will try to filter off undefined values from request params filterUndefinedParams?: boolean; + + /** + * Default: false. If true, use testnet when available + */ + useTestnet?: boolean; } export type GenericAPIResponse = Promise; @@ -172,6 +177,9 @@ const BINANCE_BASE_URLS: Record = { // Vanilla Options voptions: 'https://vapi.binance.com', voptionstest: 'https://testnet.binanceops.com', + + // Portfolio Margin + papi: 'https://papi.binance.com', }; export function getServerTimeEndpoint(urlKey: BinanceBaseUrlKey): string { @@ -200,14 +208,14 @@ export function getServerTimeEndpoint(urlKey: BinanceBaseUrlKey): string { export function getRestBaseUrl( clientType: BinanceBaseUrlKey, - restInverseOptions: RestClientOptions, + restClientOptions: RestClientOptions, ): string { - if (restInverseOptions.baseUrl) { - return restInverseOptions.baseUrl; + if (restClientOptions.baseUrl) { + return restClientOptions.baseUrl; } - if (restInverseOptions.baseUrlKey) { - return BINANCE_BASE_URLS[restInverseOptions.baseUrlKey]; + if (restClientOptions.baseUrlKey) { + return BINANCE_BASE_URLS[restClientOptions.baseUrlKey]; } return BINANCE_BASE_URLS[clientType];