Merge pull request #48 from JJ-Cro/Update151024

feat(): updated examples
This commit is contained in:
Tiago
2024-10-16 11:10:41 +01:00
committed by GitHub
252 changed files with 5001 additions and 251 deletions

2
.gitignore vendored
View File

@@ -24,5 +24,5 @@ bundleReport.html
.history/ .history/
tiagoSpot.ts tiagoSpot.ts
restClientRegex.ts restClientRegex.ts
localtest.sh
privaterepotracker privaterepotracker

View File

@@ -41,253 +41,253 @@ This table includes all endpoints from the official Exchange API docs and corres
| Function | AUTH | HTTP Method | Endpoint | | Function | AUTH | HTTP Method | Endpoint |
| -------- | :------: | :------: | -------- | | -------- | :------: | :------: | -------- |
| `getAnnouncements()` | | GET | `/api/v2/public/annoucements` | | [getAnnouncements()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L39) | | GET | `/api/v2/public/annoucements` |
| `getServerTime()` | | GET | `/api/v2/public/time` | | [getServerTime()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L49) | | GET | `/api/v2/public/time` |
| `getTradeRate()` | :closed_lock_with_key: | GET | `/api/v2/common/trade-rate` | | [getTradeRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L53) | :closed_lock_with_key: | GET | `/api/v2/common/trade-rate` |
| `getSpotTransactionRecords()` | :closed_lock_with_key: | GET | `/api/v2/tax/spot-record` | | [getSpotTransactionRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L63) | :closed_lock_with_key: | GET | `/api/v2/tax/spot-record` |
| `getFuturesTransactionRecords()` | :closed_lock_with_key: | GET | `/api/v2/tax/future-record` | | [getFuturesTransactionRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L67) | :closed_lock_with_key: | GET | `/api/v2/tax/future-record` |
| `getMarginTransactionRecords()` | :closed_lock_with_key: | GET | `/api/v2/tax/margin-record` | | [getMarginTransactionRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L71) | :closed_lock_with_key: | GET | `/api/v2/tax/margin-record` |
| `getP2PTransactionRecords()` | :closed_lock_with_key: | GET | `/api/v2/tax/p2p-record` | | [getP2PTransactionRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L75) | :closed_lock_with_key: | GET | `/api/v2/tax/p2p-record` |
| `getP2PMerchantList()` | :closed_lock_with_key: | GET | `/api/v2/p2p/merchantList` | | [getP2PMerchantList()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L85) | :closed_lock_with_key: | GET | `/api/v2/p2p/merchantList` |
| `getP2PMerchantInfo()` | :closed_lock_with_key: | GET | `/api/v2/p2p/merchantInfo` | | [getP2PMerchantInfo()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L89) | :closed_lock_with_key: | GET | `/api/v2/p2p/merchantInfo` |
| `getP2PMerchantOrders()` | :closed_lock_with_key: | GET | `/api/v2/p2p/orderList` | | [getP2PMerchantOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L93) | :closed_lock_with_key: | GET | `/api/v2/p2p/orderList` |
| `getP2PMerchantAdvertisementList()` | :closed_lock_with_key: | GET | `/api/v2/p2p/advList` | | [getP2PMerchantAdvertisementList()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L97) | :closed_lock_with_key: | GET | `/api/v2/p2p/advList` |
| `getSpotWhaleNetFlowData()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/whale-net-flow` | | [getSpotWhaleNetFlowData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L107) | :closed_lock_with_key: | GET | `/api/v2/spot/market/whale-net-flow` |
| `getFuturesActiveTakerBuySellVolumeData()` | | GET | `/api/v2/mix/market/taker-buy-sell` | | [getFuturesActiveTakerBuySellVolumeData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L111) | | GET | `/api/v2/mix/market/taker-buy-sell` |
| `getFuturesActiveLongShortPositionData()` | | GET | `/api/v2/mix/market/position-long-short` | | [getFuturesActiveLongShortPositionData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L117) | | GET | `/api/v2/mix/market/position-long-short` |
| `getFuturesLongShortRatio()` | | GET | `/api/v2/mix/market/long-short-ratio` | | [getFuturesLongShortRatio()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L123) | | GET | `/api/v2/mix/market/long-short-ratio` |
| `getMarginLoanGrowthRate()` | | GET | `/api/v2/mix/market/loan-growth` | | [getMarginLoanGrowthRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L127) | | GET | `/api/v2/mix/market/loan-growth` |
| `getIsolatedMarginBorrowingRatio()` | | GET | `/api/v2/mix/market/isolated-borrow-rate` | | [getIsolatedMarginBorrowingRatio()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L131) | | GET | `/api/v2/mix/market/isolated-borrow-rate` |
| `getFuturesActiveBuySellVolumeData()` | | GET | `/api/v2/mix/market/long-short` | | [getFuturesActiveBuySellVolumeData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L135) | | GET | `/api/v2/mix/market/long-short` |
| `getSpotFundFlow()` | | GET | `/api/v2/spot/market/fund-flow` | | [getSpotFundFlow()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L139) | | GET | `/api/v2/spot/market/fund-flow` |
| `getTradeDataSupportSymbols()` | | GET | `/api/v2/spot/market/support-symbols` | | [getTradeDataSupportSymbols()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L143) | | GET | `/api/v2/spot/market/support-symbols` |
| `getSpotFundNetFlowData()` | | GET | `/api/v2/spot/market/fund-net-flow` | | [getSpotFundNetFlowData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L147) | | GET | `/api/v2/spot/market/fund-net-flow` |
| `getFuturesActiveLongShortAccountData()` | | GET | `/api/v2/mix/market/account-long-short` | | [getFuturesActiveLongShortAccountData()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L151) | | GET | `/api/v2/mix/market/account-long-short` |
| `createVirtualSubaccount()` | :closed_lock_with_key: | POST | `/api/v2/user/create-virtual-subaccount` | | [createVirtualSubaccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L163) | :closed_lock_with_key: | POST | `/api/v2/user/create-virtual-subaccount` |
| `modifyVirtualSubaccount()` | :closed_lock_with_key: | POST | `/api/v2/user/modify-virtual-subaccount` | | [modifyVirtualSubaccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L167) | :closed_lock_with_key: | POST | `/api/v2/user/modify-virtual-subaccount` |
| `batchCreateVirtualSubaccountAndAPIKey()` | :closed_lock_with_key: | POST | `/api/v2/user/batch-create-subaccount-and-apikey` | | [batchCreateVirtualSubaccountAndAPIKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L171) | :closed_lock_with_key: | POST | `/api/v2/user/batch-create-subaccount-and-apikey` |
| `getVirtualSubaccounts()` | :closed_lock_with_key: | GET | `/api/v2/user/virtual-subaccount-list` | | [getVirtualSubaccounts()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L180) | :closed_lock_with_key: | GET | `/api/v2/user/virtual-subaccount-list` |
| `createVirtualSubaccountAPIKey()` | :closed_lock_with_key: | POST | `/api/v2/user/create-virtual-subaccount-apikey` | | [createVirtualSubaccountAPIKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L184) | :closed_lock_with_key: | POST | `/api/v2/user/create-virtual-subaccount-apikey` |
| `modifyVirtualSubaccountAPIKey()` | :closed_lock_with_key: | POST | `/api/v2/user/modify-virtual-subaccount-apikey` | | [modifyVirtualSubaccountAPIKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L191) | :closed_lock_with_key: | POST | `/api/v2/user/modify-virtual-subaccount-apikey` |
| `getVirtualSubaccountAPIKeys()` | :closed_lock_with_key: | GET | `/api/v2/user/virtual-subaccount-apikey-list` | | [getVirtualSubaccountAPIKeys()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L198) | :closed_lock_with_key: | GET | `/api/v2/user/virtual-subaccount-apikey-list` |
| `getFundingAssets()` | :closed_lock_with_key: | GET | `/api/v2/account/funding-assets` | | [getFundingAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L210) | :closed_lock_with_key: | GET | `/api/v2/account/funding-assets` |
| `getBotAccount()` | :closed_lock_with_key: | GET | `/api/v2/account/bot-assets` | | [getBotAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L214) | :closed_lock_with_key: | GET | `/api/v2/account/bot-assets` |
| `getBalances()` | :closed_lock_with_key: | GET | `/api/v2/account/all-account-balance` | | [getBalances()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L219) | :closed_lock_with_key: | GET | `/api/v2/account/all-account-balance` |
| `getConvertCoins()` | :closed_lock_with_key: | GET | `/api/v2/convert/currencies` | | [getConvertCoins()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L229) | :closed_lock_with_key: | GET | `/api/v2/convert/currencies` |
| `getConvertQuotedPrice()` | :closed_lock_with_key: | GET | `/api/v2/convert/quoted-price` | | [getConvertQuotedPrice()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L233) | :closed_lock_with_key: | GET | `/api/v2/convert/quoted-price` |
| `convert()` | :closed_lock_with_key: | POST | `/api/v2/convert/trade` | | [convert()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L237) | :closed_lock_with_key: | POST | `/api/v2/convert/trade` |
| `getConvertHistory()` | :closed_lock_with_key: | GET | `/api/v2/convert/convert-record` | | [getConvertHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L241) | :closed_lock_with_key: | GET | `/api/v2/convert/convert-record` |
| `getConvertBGBCoins()` | :closed_lock_with_key: | GET | `/api/v2/convert/bgb-convert-coin-list` | | [getConvertBGBCoins()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L251) | :closed_lock_with_key: | GET | `/api/v2/convert/bgb-convert-coin-list` |
| `convertBGB()` | :closed_lock_with_key: | POST | `/api/v2/convert/bgb-convert` | | [convertBGB()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L255) | :closed_lock_with_key: | POST | `/api/v2/convert/bgb-convert` |
| `getConvertBGBHistory()` | :closed_lock_with_key: | GET | `/api/v2/convert/bgb-convert-records` | | [getConvertBGBHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L259) | :closed_lock_with_key: | GET | `/api/v2/convert/bgb-convert-records` |
| `getSpotCoinInfo()` | :closed_lock_with_key: | GET | `/api/v2/spot/public/coins` | | [getSpotCoinInfo()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L277) | :closed_lock_with_key: | GET | `/api/v2/spot/public/coins` |
| `getSpotSymbolInfo()` | :closed_lock_with_key: | GET | `/api/v2/spot/public/symbols` | | [getSpotSymbolInfo()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L281) | :closed_lock_with_key: | GET | `/api/v2/spot/public/symbols` |
| `getSpotVIPFeeRate()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/vip-fee-rate` | | [getSpotVIPFeeRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L285) | :closed_lock_with_key: | GET | `/api/v2/spot/market/vip-fee-rate` |
| `getSpotTicker()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/tickers` | | [getSpotTicker()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L289) | :closed_lock_with_key: | GET | `/api/v2/spot/market/tickers` |
| `getSpotMergeDepth()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/merge-depth` | | [getSpotMergeDepth()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L293) | :closed_lock_with_key: | GET | `/api/v2/spot/market/merge-depth` |
| `getSpotOrderBookDepth()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/orderbook` | | [getSpotOrderBookDepth()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L297) | :closed_lock_with_key: | GET | `/api/v2/spot/market/orderbook` |
| `getSpotCandles()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/candles` | | [getSpotCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L301) | :closed_lock_with_key: | GET | `/api/v2/spot/market/candles` |
| `getSpotHistoricCandles()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/history-candles` | | [getSpotHistoricCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L305) | :closed_lock_with_key: | GET | `/api/v2/spot/market/history-candles` |
| `getSpotRecentTrades()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/fills` | | [getSpotRecentTrades()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L309) | :closed_lock_with_key: | GET | `/api/v2/spot/market/fills` |
| `getSpotHistoricTrades()` | :closed_lock_with_key: | GET | `/api/v2/spot/market/fills-history` | | [getSpotHistoricTrades()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L313) | :closed_lock_with_key: | GET | `/api/v2/spot/market/fills-history` |
| `spotSubmitOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/place-order` | | [spotSubmitOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L323) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/place-order` |
| `spotCancelOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-order` | | [spotCancelOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L327) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-order` |
| `spotBatchSubmitOrders()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-orders` | | [spotBatchSubmitOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L331) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-orders` |
| `spotBatchCancelOrders()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-cancel-order` | | [spotBatchCancelOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L335) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-cancel-order` |
| `spotCancelSymbolOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-symbol-order` | | [spotCancelSymbolOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L339) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-symbol-order` |
| `getSpotOrder()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/orderInfo` | | [getSpotOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L343) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/orderInfo` |
| `getSpotOpenOrders()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/unfilled-orders` | | [getSpotOpenOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L347) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/unfilled-orders` |
| `getSpotHistoricOrders()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/history-orders` | | [getSpotHistoricOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L351) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/history-orders` |
| `getSpotFills()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/fills` | | [getSpotFills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L355) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/fills` |
| `spotSubmitPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/place-plan-order` | | [spotSubmitPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L365) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/place-plan-order` |
| `spotModifyPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/modify-plan-order` | | [spotModifyPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L369) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/modify-plan-order` |
| `spotCancelPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-plan-order` | | [spotCancelPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L373) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/cancel-plan-order` |
| `getSpotCurrentPlanOrders()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/current-plan-order` | | [getSpotCurrentPlanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L377) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/current-plan-order` |
| `getSpotPlanSubOrder()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/plan-sub-order` | | [getSpotPlanSubOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L381) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/plan-sub-order` |
| `getSpotHistoricPlanOrders()` | :closed_lock_with_key: | GET | `/api/v2/spot/trade/history-plan-order` | | [getSpotHistoricPlanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L385) | :closed_lock_with_key: | GET | `/api/v2/spot/trade/history-plan-order` |
| `spotCancelPlanOrders()` | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-cancel-plan-order` | | [spotCancelPlanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L389) | :closed_lock_with_key: | POST | `/api/v2/spot/trade/batch-cancel-plan-order` |
| `getSpotAccount()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/info` | | [getSpotAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L402) | :closed_lock_with_key: | GET | `/api/v2/spot/account/info` |
| `getSpotAccountAssets()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/assets` | | [getSpotAccountAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L406) | :closed_lock_with_key: | GET | `/api/v2/spot/account/assets` |
| `getSpotSubAccountAssets()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/subaccount-assets` | | [getSpotSubAccountAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L410) | :closed_lock_with_key: | GET | `/api/v2/spot/account/subaccount-assets` |
| `spotModifyDepositAccount()` | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/modify-deposit-account` | | [spotModifyDepositAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L414) | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/modify-deposit-account` |
| `getSpotAccountBills()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/bills` | | [getSpotAccountBills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L421) | :closed_lock_with_key: | GET | `/api/v2/spot/account/bills` |
| `spotTransfer()` | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/transfer` | | [spotTransfer()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L433) | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/transfer` |
| `getSpotTransferableCoins()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/transfer-coin-info` | | [getSpotTransferableCoins()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L437) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/transfer-coin-info` |
| `spotSubTransfer()` | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/subaccount-transfer` | | [spotSubTransfer()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L441) | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/subaccount-transfer` |
| `getSpotTransferHistory()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/transferRecords` | | [getSpotTransferHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L445) | :closed_lock_with_key: | GET | `/api/v2/spot/account/transferRecords` |
| `spotSwitchBGBDeduct()` | :closed_lock_with_key: | POST | `/api/v2/spot/account/switch-deduct` | | [spotSwitchBGBDeduct()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L449) | :closed_lock_with_key: | POST | `/api/v2/spot/account/switch-deduct` |
| `spotWithdraw()` | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/withdrawal` | | [spotWithdraw()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L453) | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/withdrawal` |
| `getSpotDepositAddress()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/deposit-address` | | [getSpotDepositAddress()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L457) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/deposit-address` |
| `getSpotSubDepositAddress()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/subaccount-deposit-address` | | [getSpotSubDepositAddress()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L461) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/subaccount-deposit-address` |
| `getSpotDepositHistory()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/deposit-records` | | [getSpotDepositHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L468) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/deposit-records` |
| `getSpotBGBDeductInfo()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/deduct-info` | | [getSpotBGBDeductInfo()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L472) | :closed_lock_with_key: | GET | `/api/v2/spot/account/deduct-info` |
| `spotCancelWithdrawal()` | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/cancel-withdrawal` | | [spotCancelWithdrawal()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L476) | :closed_lock_with_key: | POST | `/api/v2/spot/wallet/cancel-withdrawal` |
| `getSpotWithdrawalHistory()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/withdrawal-records` | | [getSpotWithdrawalHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L480) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/withdrawal-records` |
| `getSpotMainSubTransferRecord()` | :closed_lock_with_key: | GET | `/api/v2/spot/account/sub-main-trans-record` | | [getSpotMainSubTransferRecord()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L484) | :closed_lock_with_key: | GET | `/api/v2/spot/account/sub-main-trans-record` |
| `getSubAccountDepositRecords()` | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/subaccount-deposit-records` | | [getSubAccountDepositRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L491) | :closed_lock_with_key: | GET | `/api/v2/spot/wallet/subaccount-deposit-records` |
| `getFuturesVIPFeeRate()` | | GET | `/api/v2/mix/market/vip-fee-rate` | | [getFuturesVIPFeeRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L512) | | GET | `/api/v2/mix/market/vip-fee-rate` |
| `getFuturesTicker()` | | GET | `/api/v2/mix/market/ticker` | | [getFuturesTicker()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L516) | | GET | `/api/v2/mix/market/ticker` |
| `getFuturesAllTickers()` | | GET | `/api/v2/mix/market/tickers` | | [getFuturesAllTickers()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L520) | | GET | `/api/v2/mix/market/tickers` |
| `getFuturesMergeDepth()` | | GET | `/api/v2/mix/market/merge-depth` | | [getFuturesMergeDepth()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L524) | | GET | `/api/v2/mix/market/merge-depth` |
| `getFuturesCandles()` | | GET | `/api/v2/mix/market/candles` | | [getFuturesCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L528) | | GET | `/api/v2/mix/market/candles` |
| `getFuturesHistoricCandles()` | | GET | `/api/v2/mix/market/history-candles` | | [getFuturesHistoricCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L534) | | GET | `/api/v2/mix/market/history-candles` |
| `getFuturesHistoricIndexPriceCandles()` | | GET | `/api/v2/mix/market/history-index-candles` | | [getFuturesHistoricIndexPriceCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L538) | | GET | `/api/v2/mix/market/history-index-candles` |
| `getFuturesHistoricMarkPriceCandles()` | | GET | `/api/v2/mix/market/history-mark-candles` | | [getFuturesHistoricMarkPriceCandles()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L544) | | GET | `/api/v2/mix/market/history-mark-candles` |
| `getFuturesRecentTrades()` | | GET | `/api/v2/mix/market/fills` | | [getFuturesRecentTrades()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L550) | | GET | `/api/v2/mix/market/fills` |
| `getFuturesHistoricTrades()` | | GET | `/api/v2/mix/market/fills-history` | | [getFuturesHistoricTrades()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L554) | | GET | `/api/v2/mix/market/fills-history` |
| `getFuturesOpenInterest()` | | GET | `/api/v2/mix/market/open-interest` | | [getFuturesOpenInterest()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L558) | | GET | `/api/v2/mix/market/open-interest` |
| `getFuturesNextFundingTime()` | | GET | `/api/v2/mix/market/funding-time` | | [getFuturesNextFundingTime()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L562) | | GET | `/api/v2/mix/market/funding-time` |
| `getFuturesSymbolPrice()` | | GET | `/api/v2/mix/market/symbol-price` | | [getFuturesSymbolPrice()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L566) | | GET | `/api/v2/mix/market/symbol-price` |
| `getFuturesHistoricFundingRates()` | | GET | `/api/v2/mix/market/history-fund-rate` | | [getFuturesHistoricFundingRates()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L570) | | GET | `/api/v2/mix/market/history-fund-rate` |
| `getFuturesCurrentFundingRate()` | | GET | `/api/v2/mix/market/current-fund-rate` | | [getFuturesCurrentFundingRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L574) | | GET | `/api/v2/mix/market/current-fund-rate` |
| `getFuturesContractConfig()` | | GET | `/api/v2/mix/market/contracts` | | [getFuturesContractConfig()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L578) | | GET | `/api/v2/mix/market/contracts` |
| `getFuturesAccountAsset()` | :closed_lock_with_key: | GET | `/api/v2/mix/account/account` | | [getFuturesAccountAsset()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L588) | :closed_lock_with_key: | GET | `/api/v2/mix/account/account` |
| `getFuturesAccountAssets()` | :closed_lock_with_key: | GET | `/api/v2/mix/account/accounts` | | [getFuturesAccountAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L592) | :closed_lock_with_key: | GET | `/api/v2/mix/account/accounts` |
| `getFuturesSubAccountAssets()` | :closed_lock_with_key: | GET | `/api/v2/mix/account/sub-account-assets` | | [getFuturesSubAccountAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L596) | :closed_lock_with_key: | GET | `/api/v2/mix/account/sub-account-assets` |
| `getFuturesOpenCount()` | :closed_lock_with_key: | GET | `/api/v2/mix/account/open-count` | | [getFuturesOpenCount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L600) | :closed_lock_with_key: | GET | `/api/v2/mix/account/open-count` |
| `setFuturesLeverage()` | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-leverage` | | [setFuturesLeverage()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L604) | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-leverage` |
| `setFuturesPositionAutoMargin()` | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-auto-margin` | | [setFuturesPositionAutoMargin()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L608) | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-auto-margin` |
| `setFuturesPositionMargin()` | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-margin` | | [setFuturesPositionMargin()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L612) | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-margin` |
| `setFuturesMarginMode()` | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-margin-mode` | | [setFuturesMarginMode()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L616) | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-margin-mode` |
| `setFuturesPositionMode()` | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-position-mode` | | [setFuturesPositionMode()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L620) | :closed_lock_with_key: | POST | `/api/v2/mix/account/set-position-mode` |
| `getFuturesAccountBills()` | :closed_lock_with_key: | GET | `/api/v2/mix/account/bill` | | [getFuturesAccountBills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L624) | :closed_lock_with_key: | GET | `/api/v2/mix/account/bill` |
| `getFuturesPositionTier()` | | GET | `/api/v2/mix/market/query-position-lever` | | [getFuturesPositionTier()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L636) | | GET | `/api/v2/mix/market/query-position-lever` |
| `getFuturesPosition()` | :closed_lock_with_key: | GET | `/api/v2/mix/position/single-position` | | [getFuturesPosition()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L640) | :closed_lock_with_key: | GET | `/api/v2/mix/position/single-position` |
| `getFuturesPositions()` | :closed_lock_with_key: | GET | `/api/v2/mix/position/all-position` | | [getFuturesPositions()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L644) | :closed_lock_with_key: | GET | `/api/v2/mix/position/all-position` |
| `getFuturesHistoricPositions()` | :closed_lock_with_key: | GET | `/api/v2/mix/position/history-position` | | [getFuturesHistoricPositions()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L648) | :closed_lock_with_key: | GET | `/api/v2/mix/position/history-position` |
| `futuresSubmitOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-order` | | [futuresSubmitOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L658) | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-order` |
| `futuresCancelOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-order` | | [futuresCancelOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L662) | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-order` |
| `futuresSubmitReversal()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/click-backhand` | | [futuresSubmitReversal()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L666) | :closed_lock_with_key: | POST | `/api/v2/mix/order/click-backhand` |
| `futuresBatchSubmitOrders()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/batch-place-order` | | [futuresBatchSubmitOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L670) | :closed_lock_with_key: | POST | `/api/v2/mix/order/batch-place-order` |
| `futuresModifyOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-order` | | [futuresModifyOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L674) | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-order` |
| `futuresBatchCancelOrders()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/batch-cancel-orders` | | [futuresBatchCancelOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L678) | :closed_lock_with_key: | POST | `/api/v2/mix/order/batch-cancel-orders` |
| `futuresFlashClosePositions()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/close-positions` | | [futuresFlashClosePositions()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L682) | :closed_lock_with_key: | POST | `/api/v2/mix/order/close-positions` |
| `getFuturesOrder()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/detail` | | [getFuturesOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L686) | :closed_lock_with_key: | GET | `/api/v2/mix/order/detail` |
| `getFuturesFills()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/fills` | | [getFuturesFills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L690) | :closed_lock_with_key: | GET | `/api/v2/mix/order/fills` |
| `getFuturesHistoricOrderFills()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/fill-history` | | [getFuturesHistoricOrderFills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L694) | :closed_lock_with_key: | GET | `/api/v2/mix/order/fill-history` |
| `getFuturesOpenOrders()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-pending` | | [getFuturesOpenOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L698) | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-pending` |
| `getFuturesHistoricOrders()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-history` | | [getFuturesHistoricOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L702) | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-history` |
| `futuresCancelAllOrders()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-all-orders` | | [futuresCancelAllOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L706) | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-all-orders` |
| `futuresSubmitPlanSubOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/plan-sub-order` | | [futuresSubmitPlanSubOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L716) | :closed_lock_with_key: | POST | `/api/v2/mix/order/plan-sub-order` |
| `futuresSubmitTPSLOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-tpsl-order` | | [futuresSubmitTPSLOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L720) | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-tpsl-order` |
| `futuresSubmitPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-plan-order` | | [futuresSubmitPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L724) | :closed_lock_with_key: | POST | `/api/v2/mix/order/place-plan-order` |
| `futuresModifyTPSLPOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-tpsl-order` | | [futuresModifyTPSLPOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L728) | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-tpsl-order` |
| `futuresModifyPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-plan-order` | | [futuresModifyPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L732) | :closed_lock_with_key: | POST | `/api/v2/mix/order/modify-plan-order` |
| `futuresCancelPlanOrder()` | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-plan-order` | | [futuresCancelPlanOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L736) | :closed_lock_with_key: | POST | `/api/v2/mix/order/cancel-plan-order` |
| `getFuturesPlanOrders()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-plan-pending` | | [getFuturesPlanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L740) | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-plan-pending` |
| `getFuturesHistoricPlanOrders()` | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-plan-history` | | [getFuturesHistoricPlanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L744) | :closed_lock_with_key: | GET | `/api/v2/mix/order/orders-plan-history` |
| `modifySubaccountEmail()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/modify-subaccount-email` | | [modifySubaccountEmail()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L762) | :closed_lock_with_key: | POST | `/api/v2/broker/account/modify-subaccount-email` |
| `getBrokerInfo()` | :closed_lock_with_key: | GET | `/api/v2/broker/account/info` | | [getBrokerInfo()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L769) | :closed_lock_with_key: | GET | `/api/v2/broker/account/info` |
| `createSubaccount()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/create-subaccount` | | [createSubaccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L773) | :closed_lock_with_key: | POST | `/api/v2/broker/account/create-subaccount` |
| `getSubaccounts()` | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-list` | | [getSubaccounts()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L777) | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-list` |
| `modifySubaccount()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/modify-subaccount` | | [modifySubaccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L781) | :closed_lock_with_key: | POST | `/api/v2/broker/account/modify-subaccount` |
| `getSubaccountEmail()` | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-email` | | [getSubaccountEmail()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L785) | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-email` |
| `getSubaccountSpotAssets()` | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-spot-assets` | | [getSubaccountSpotAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L789) | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-spot-assets` |
| `getSubaccountFuturesAssets()` | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-future-assets` | | [getSubaccountFuturesAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L796) | :closed_lock_with_key: | GET | `/api/v2/broker/account/subaccount-future-assets` |
| `createSubaccountDepositAddress()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/subaccount-address` | | [createSubaccountDepositAddress()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L803) | :closed_lock_with_key: | POST | `/api/v2/broker/account/subaccount-address` |
| `subaccountWithdrawal()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/subaccount-withdrawal` | | [subaccountWithdrawal()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L810) | :closed_lock_with_key: | POST | `/api/v2/broker/account/subaccount-withdrawal` |
| `subaccountSetAutoTransfer()` | :closed_lock_with_key: | POST | `/api/v2/broker/account/set-subaccount-autotransfer` | | [subaccountSetAutoTransfer()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L817) | :closed_lock_with_key: | POST | `/api/v2/broker/account/set-subaccount-autotransfer` |
| `subaccountDepositRecords()` | :closed_lock_with_key: | POST | `/api/v2/broker/subaccount-deposit` | | [subaccountDepositRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L824) | :closed_lock_with_key: | POST | `/api/v2/broker/subaccount-deposit` |
| `subaccountWithdrawalRecords()` | :closed_lock_with_key: | POST | `/api/v2/broker/subaccount-withdrawal` | | [subaccountWithdrawalRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L828) | :closed_lock_with_key: | POST | `/api/v2/broker/subaccount-withdrawal` |
| `createSubaccountApiKey()` | :closed_lock_with_key: | POST | `/api/v2/broker/manage/create-subaccount-apikey` | | [createSubaccountApiKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L838) | :closed_lock_with_key: | POST | `/api/v2/broker/manage/create-subaccount-apikey` |
| `getSubaccountApiKey()` | :closed_lock_with_key: | GET | `/api/v2/broker/manage/subaccount-apikey-list` | | [getSubaccountApiKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L845) | :closed_lock_with_key: | GET | `/api/v2/broker/manage/subaccount-apikey-list` |
| `modifySubaccountApiKey()` | :closed_lock_with_key: | POST | `/api/v2/broker/manage/modify-subaccount-apikey` | | [modifySubaccountApiKey()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L852) | :closed_lock_with_key: | POST | `/api/v2/broker/manage/modify-subaccount-apikey` |
| `getMarginCurrencies()` | | GET | `/api/v2/margin/currencies` | | [getMarginCurrencies()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L873) | | GET | `/api/v2/margin/currencies` |
| `getMarginBorrowHistory()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/borrow-history` | | [getMarginBorrowHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L883) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/borrow-history` |
| `getMarginRepayHistory()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/repay-history` | | [getMarginRepayHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L894) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/repay-history` |
| `getMarginInterestHistory()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/interest-history` | | [getMarginInterestHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L905) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/interest-history` |
| `getMarginLiquidationHistory()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/liquidation-history` | | [getMarginLiquidationHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L916) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/liquidation-history` |
| `getMarginFinancialHistory()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/financial-records` | | [getMarginFinancialHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L927) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/financial-records` |
| `getMarginAccountAssets()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/assets` | | [getMarginAccountAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L944) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/assets` |
| `marginBorrow()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/borrow` | | [marginBorrow()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L955) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/borrow` |
| `marginRepay()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/repay` | | [marginRepay()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L966) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/repay` |
| `getMarginRiskRate()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/risk-rate` | | [getMarginRiskRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L977) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/risk-rate` |
| `getMarginMaxBorrowable()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/max-borrowable-amount` | | [getMarginMaxBorrowable()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L982) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/max-borrowable-amount` |
| `getMarginMaxTransferable()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/max-transfer-out-amount` | | [getMarginMaxTransferable()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L993) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/max-transfer-out-amount` |
| `getMarginInterestRateAndMaxBorrowable()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/interest-rate-and-limit` | | [getMarginInterestRateAndMaxBorrowable()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1004) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/interest-rate-and-limit` |
| `getMarginTierConfiguration()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/tier-data` | | [getMarginTierConfiguration()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1015) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/tier-data` |
| `marginFlashRepay()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/flash-repay` | | [marginFlashRepay()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1023) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/account/flash-repay` |
| `getMarginFlashRepayResult()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/query-flash-repay-status` | | [getMarginFlashRepayResult()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1034) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/account/query-flash-repay-status` |
| `marginSubmitOrder()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/place-order` | | [marginSubmitOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1051) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/place-order` |
| `marginBatchSubmitOrders()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/batch-place-order` | | [marginBatchSubmitOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1059) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/batch-place-order` |
| `marginCancelOrder()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/cancel-order` | | [marginCancelOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1070) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/cancel-order` |
| `marginBatchCancelOrders()` | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/batch-cancel-order` | | [marginBatchCancelOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1081) | :closed_lock_with_key: | POST | `/api/v2/margin/${marginType}/batch-cancel-order` |
| `getMarginOpenOrders()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/open-orders` | | [getMarginOpenOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1092) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/open-orders` |
| `getMarginHistoricOrders()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/history-orders` | | [getMarginHistoricOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1100) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/history-orders` |
| `getMarginHistoricOrderFills()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/fills` | | [getMarginHistoricOrderFills()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1111) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/fills` |
| `getMarginLiquidationOrders()` | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/liquidation-order` | | [getMarginLiquidationOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1119) | :closed_lock_with_key: | GET | `/api/v2/margin/${marginType}/liquidation-order` |
| `getFuturesTraderCurrentOrder()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-current-track` | | [getFuturesTraderCurrentOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1146) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-current-track` |
| `getFuturesTraderHistoryOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-history-track` | | [getFuturesTraderHistoryOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1153) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-history-track` |
| `modifyFuturesTraderOrderTPSL()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/order-modify-tpsl` | | [modifyFuturesTraderOrderTPSL()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1160) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/order-modify-tpsl` |
| `getFuturesTraderOrder()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-total-detail` | | [getFuturesTraderOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1167) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/order-total-detail` |
| `getFuturesTraderProfitHistory()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-history-summarys` | | [getFuturesTraderProfitHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1171) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-history-summarys` |
| `getFuturesTraderProfitShareHistory()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-history-details` | | [getFuturesTraderProfitShareHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1175) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-history-details` |
| `closeFuturesTraderOrder()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/order-close-positions` | | [closeFuturesTraderOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1184) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/order-close-positions` |
| `getFuturesTraderProfitShare()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-details` | | [getFuturesTraderProfitShare()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1191) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profit-details` |
| `getFuturesTraderProfitShareGroup()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profits-group-coin-date` | | [getFuturesTraderProfitShareGroup()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1195) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/profits-group-coin-date` |
| `getFuturesTraderSymbolSettings()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/config-query-symbols` | | [getFuturesTraderSymbolSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1202) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/config-query-symbols` |
| `updateFuturesTraderSymbolSettings()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-setting-symbols` | | [updateFuturesTraderSymbolSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1209) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-setting-symbols` |
| `updateFuturesTraderGlobalSettings()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-settings-base` | | [updateFuturesTraderGlobalSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1216) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-settings-base` |
| `getFuturesTraderFollowers()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/config-query-followers` | | [getFuturesTraderFollowers()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1223) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-trader/config-query-followers` |
| `removeFuturesTraderFollower()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-remove-follower` | | [removeFuturesTraderFollower()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1230) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-trader/config-remove-follower` |
| `getFuturesFollowerCurrentOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-current-orders` | | [getFuturesFollowerCurrentOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1245) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-current-orders` |
| `getFuturesFollowerHistoryOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-history-orders` | | [getFuturesFollowerHistoryOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1252) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-history-orders` |
| `updateFuturesFollowerTPSL()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/setting-tpsl` | | [updateFuturesFollowerTPSL()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1259) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/setting-tpsl` |
| `updateFuturesFollowerSettings()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/settings` | | [updateFuturesFollowerSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1263) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/settings` |
| `getFuturesFollowerSettings()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-settings` | | [getFuturesFollowerSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1267) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-settings` |
| `closeFuturesFollowerPositions()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/close-positions` | | [closeFuturesFollowerPositions()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1271) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/close-positions` |
| `getFuturesFollowerTraders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-traders` | | [getFuturesFollowerTraders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1278) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-traders` |
| `getFuturesFollowerFollowLimit()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-quantity-limit` | | [getFuturesFollowerFollowLimit()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1282) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-follower/query-quantity-limit` |
| `unfollowFuturesTrader()` | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/cancel-trader` | | [unfollowFuturesTrader()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1289) | :closed_lock_with_key: | POST | `/api/v2/copy/mix-follower/cancel-trader` |
| `getBrokerTraders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-traders` | | [getBrokerTraders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1301) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-traders` |
| `getBrokerTradersHistoricalOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-history-traces` | | [getBrokerTradersHistoricalOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1305) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-history-traces` |
| `getBrokerTradersPendingOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-current-traces` | | [getBrokerTradersPendingOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1312) | :closed_lock_with_key: | GET | `/api/v2/copy/mix-broker/query-current-traces` |
| `getSpotTraderProfit()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-summarys` | | [getSpotTraderProfit()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1327) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-summarys` |
| `getSpotTraderHistoryProfit()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-history-details` | | [getSpotTraderHistoryProfit()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1331) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-history-details` |
| `getSpotTraderUnrealizedProfit()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-details` | | [getSpotTraderUnrealizedProfit()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1338) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/profit-details` |
| `getSpotTraderOrder()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-total-detail` | | [getSpotTraderOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1342) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-total-detail` |
| `modifySpotTraderOrderTPSL()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/order-modify-tpsl` | | [modifySpotTraderOrderTPSL()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1346) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/order-modify-tpsl` |
| `getSpotTraderHistoryOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-history-track` | | [getSpotTraderHistoryOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1353) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-history-track` |
| `getSpotTraderCurrentOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-current-track` | | [getSpotTraderCurrentOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1360) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/order-current-track` |
| `sellSpotTrader()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/order-close-tracking` | | [sellSpotTrader()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1367) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/order-close-tracking` |
| `getSpotTraderSymbolSettings()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/config-setting-symbols` | | [getSpotTraderSymbolSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1374) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/config-setting-symbols` |
| `removeSpotTraderFollowers()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/config-remove-follower` | | [removeSpotTraderFollowers()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1381) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-trader/config-remove-follower` |
| `getSpotTraderConfiguration()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/config-query-settings` | | [getSpotTraderConfiguration()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1388) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/config-query-settings` |
| `getSpotTraderFollowers()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/config-query-followers` | | [getSpotTraderFollowers()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1392) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-trader/config-query-followers` |
| `cancelSpotFollowerOrder()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/stop-order` | | [cancelSpotFollowerOrder()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1407) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/stop-order` |
| `updateSpotFollowerSettings()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/settings` | | [updateSpotFollowerSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1411) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/settings` |
| `updateSpotFollowerTPSL()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/setting-tpsl` | | [updateSpotFollowerTPSL()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1415) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/setting-tpsl` |
| `getSpotFollowerTraders()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-traders` | | [getSpotFollowerTraders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1419) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-traders` |
| `getSpotFollowerCurrentTraderSymbols()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-trader-symbols` | | [getSpotFollowerCurrentTraderSymbols()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1423) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-trader-symbols` |
| `getSpotFollowerSettings()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-settings` | | [getSpotFollowerSettings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1432) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-settings` |
| `getSpotFollowerHistoryOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-history-orders` | | [getSpotFollowerHistoryOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1436) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-history-orders` |
| `getSpotFollowerOpenOrders()` | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-current-orders` | | [getSpotFollowerOpenOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1443) | :closed_lock_with_key: | GET | `/api/v2/copy/spot-follower/query-current-orders` |
| `sellSpotFollower()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/order-close-tracking` | | [sellSpotFollower()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1450) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/order-close-tracking` |
| `unfollowSpotTrader()` | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/cancel-trader` | | [unfollowSpotTrader()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1457) | :closed_lock_with_key: | POST | `/api/v2/copy/spot-follower/cancel-trader` |
| `getEarnSavingsProducts()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/product` | | [getEarnSavingsProducts()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1469) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/product` |
| `getEarnSavingsAccount()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/account` | | [getEarnSavingsAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1473) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/account` |
| `getEarnSavingsAssets()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/assets` | | [getEarnSavingsAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1477) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/assets` |
| `getEarnSavingsRecords()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/records` | | [getEarnSavingsRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1481) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/records` |
| `getEarnSavingsSubscription()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/subscribe-info` | | [getEarnSavingsSubscription()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1485) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/subscribe-info` |
| `earnSubscribeSavings()` | :closed_lock_with_key: | POST | `/api/v2/earn/savings/subscribe` | | [earnSubscribeSavings()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1489) | :closed_lock_with_key: | POST | `/api/v2/earn/savings/subscribe` |
| `getEarnSavingsSubscriptionResult()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/subscribe-result` | | [getEarnSavingsSubscriptionResult()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1493) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/subscribe-result` |
| `getEarnSavingsRedemptionResult()` | :closed_lock_with_key: | GET | `/api/v2/earn/savings/redeem-result` | | [getEarnSavingsRedemptionResult()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1497) | :closed_lock_with_key: | GET | `/api/v2/earn/savings/redeem-result` |
| `getEarnAccount()` | :closed_lock_with_key: | GET | `/api/v2/earn/account/assets` | | [getEarnAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1509) | :closed_lock_with_key: | GET | `/api/v2/earn/account/assets` |
| `getSharkfinProducts()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/product` | | [getSharkfinProducts()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1521) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/product` |
| `getSharkfinAccount()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/account` | | [getSharkfinAccount()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1525) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/account` |
| `getSharkfinAssets()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/assets` | | [getSharkfinAssets()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1529) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/assets` |
| `getSharkfinRecords()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/records` | | [getSharkfinRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1533) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/records` |
| `getSharkfinSubscription()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/subscribe-info` | | [getSharkfinSubscription()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1537) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/subscribe-info` |
| `subscribeSharkfin()` | :closed_lock_with_key: | POST | `/api/v2/earn/sharkfin/subscribe` | | [subscribeSharkfin()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1541) | :closed_lock_with_key: | POST | `/api/v2/earn/sharkfin/subscribe` |
| `getSharkfinSubscriptionResult()` | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/subscribe-result` | | [getSharkfinSubscriptionResult()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1545) | :closed_lock_with_key: | GET | `/api/v2/earn/sharkfin/subscribe-result` |
| `getLoanCurrencies()` | | GET | `/api/v2/earn/loan/public/coinInfos` | | [getLoanCurrencies()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1557) | | GET | `/api/v2/earn/loan/public/coinInfos` |
| `getLoanEstInterestAndBorrowable()` | | GET | `/api/v2/earn/loan/public/hour-interest` | | [getLoanEstInterestAndBorrowable()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1561) | | GET | `/api/v2/earn/loan/public/hour-interest` |
| `borrowLoan()` | :closed_lock_with_key: | POST | `/api/v2/earn/loan/borrow` | | [borrowLoan()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1565) | :closed_lock_with_key: | POST | `/api/v2/earn/loan/borrow` |
| `getOngoingLoanOrders()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/ongoing-orders` | | [getOngoingLoanOrders()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1569) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/ongoing-orders` |
| `repayLoan()` | :closed_lock_with_key: | POST | `/api/v2/earn/loan/repay` | | [repayLoan()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1573) | :closed_lock_with_key: | POST | `/api/v2/earn/loan/repay` |
| `getRepayHistory()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/repay-history` | | [getRepayHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1577) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/repay-history` |
| `updateLoanPledgeRate()` | :closed_lock_with_key: | POST | `/api/v2/earn/loan/revise-pledge` | | [updateLoanPledgeRate()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1581) | :closed_lock_with_key: | POST | `/api/v2/earn/loan/revise-pledge` |
| `getLoanPledgeRateHistory()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/revise-history` | | [getLoanPledgeRateHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1585) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/revise-history` |
| `getLoanHistory()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/borrow-history` | | [getLoanHistory()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1589) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/borrow-history` |
| `getLoanDebts()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/debts` | | [getLoanDebts()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1593) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/debts` |
| `getLoanLiquidationRecords()` | :closed_lock_with_key: | GET | `/api/v2/earn/loan/reduces` | | [getLoanLiquidationRecords()](https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1597) | :closed_lock_with_key: | GET | `/api/v2/earn/loan/reduces` |

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/user/batch-create-subaccount-and-apikey
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L171
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.batchCreateVirtualSubaccountAndAPIKey(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/loan/borrow
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1565
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.borrowLoan(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/spot-follower/stop-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1407
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.cancelSpotFollowerOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/close-positions
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1271
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.closeFuturesFollowerPositions(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/order-close-positions
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1184
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.closeFuturesTraderOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/trade
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L237
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.convert(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/bgb-convert
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L255
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.convertBGB(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/broker/account/create-subaccount
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L773
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.createSubaccount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/broker/manage/create-subaccount-apikey
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L838
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.createSubaccountApiKey(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/broker/account/subaccount-address
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L803
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.createSubaccountDepositAddress(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/user/create-virtual-subaccount
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L163
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.createVirtualSubaccount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/user/create-virtual-subaccount-apikey
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L184
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.createVirtualSubaccountAPIKey(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/subscribe
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1489
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.earnSubscribeSavings(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/batch-cancel-orders
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L678
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresBatchCancelOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/batch-place-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L670
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresBatchSubmitOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/cancel-all-orders
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L706
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresCancelAllOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/cancel-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L662
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresCancelOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/cancel-plan-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L736
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresCancelPlanOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/close-positions
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L682
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresFlashClosePositions(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/modify-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L674
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresModifyOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/modify-plan-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L732
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresModifyPlanOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/modify-tpsl-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L728
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresModifyTPSLPOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/place-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L658
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresSubmitOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/place-plan-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L724
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresSubmitPlanOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/plan-sub-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L716
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresSubmitPlanSubOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/click-backhand
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L666
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresSubmitReversal(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/place-tpsl-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L720
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.futuresSubmitTPSLOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/public/annoucements
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L39
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getAnnouncements(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/account/all-account-balance
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L219
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBalances(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/account/bot-assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L214
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBotAccount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/broker/account/info
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L769
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBrokerInfo(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-broker/query-traders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1301
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBrokerTraders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-broker/query-history-traces
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1305
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBrokerTradersHistoricalOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-broker/query-current-traces
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1312
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getBrokerTradersPendingOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/bgb-convert-coin-list
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L251
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getConvertBGBCoins(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/bgb-convert-records
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L259
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getConvertBGBHistory(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/currencies
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L229
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getConvertCoins(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/convert-record
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L241
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getConvertHistory(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/convert/quoted-price
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L233
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getConvertQuotedPrice(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/account/assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1509
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnAccount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/account
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1473
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsAccount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1477
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsAssets(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/product
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1469
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsProducts(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/records
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1481
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsRecords(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/redeem-result
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1497
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsRedemptionResult(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/subscribe-info
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1485
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsSubscription(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/earn/savings/subscribe-result
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1493
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getEarnSavingsSubscriptionResult(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/account/funding-assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L210
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFundingAssets(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/account/account
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L588
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesAccountAsset(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/account/accounts
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L592
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesAccountAssets(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/account/bill
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L624
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesAccountBills(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/long-short
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L135
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesActiveBuySellVolumeData(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/account-long-short
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L151
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesActiveLongShortAccountData(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/position-long-short
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L117
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesActiveLongShortPositionData(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/taker-buy-sell
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L111
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesActiveTakerBuySellVolumeData(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/tickers
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L520
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesAllTickers(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/candles
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L528
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesCandles(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/contracts
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L578
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesContractConfig(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/current-fund-rate
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L574
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesCurrentFundingRate(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/fills
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L690
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFills(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/query-current-orders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1245
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFollowerCurrentOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/query-quantity-limit
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1282
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFollowerFollowLimit(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/query-history-orders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1252
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFollowerHistoryOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/query-settings
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1267
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFollowerSettings(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-follower/query-traders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1278
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesFollowerTraders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/history-candles
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L534
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricCandles(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/history-fund-rate
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L570
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricFundingRates(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/history-index-candles
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L538
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricIndexPriceCandles(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/history-mark-candles
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L544
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricMarkPriceCandles(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/fill-history
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L694
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricOrderFills(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/orders-history
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L702
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/orders-plan-history
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L744
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricPlanOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/position/history-position
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L648
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricPositions(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/fills-history
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L554
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesHistoricTrades(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/long-short-ratio
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L123
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesLongShortRatio(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/merge-depth
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L524
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesMergeDepth(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/funding-time
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L562
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesNextFundingTime(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/account/open-count
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L600
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesOpenCount(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/open-interest
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L558
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesOpenInterest(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/orders-pending
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L698
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesOpenOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/detail
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L686
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/order/orders-plan-pending
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L740
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesPlanOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/position/single-position
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L640
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesPosition(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/query-position-lever
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L636
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesPositionTier(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/position/all-position
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L644
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesPositions(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/fills
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L550
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesRecentTrades(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/account/sub-account-assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L596
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesSubAccountAssets(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/symbol-price
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L566
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesSymbolPrice(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/mix/market/ticker
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L516
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTicker(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/order-current-track
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1146
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderCurrentOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/config-query-followers
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1223
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderFollowers(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/order-history-track
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1153
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderHistoryOrders(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/order-total-detail
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1167
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/profit-history-summarys
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1171
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderProfitHistory(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/profit-details
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1191
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderProfitShare(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/profits-group-coin-date
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1195
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderProfitShareGroup(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/profit-history-details
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1175
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderProfitShareHistory(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/copy/mix-trader/config-query-symbols
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L1202
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getFuturesTraderSymbolSettings(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});

Some files were not shown because too many files have changed in this diff Show More