263 lines
37 KiB
Markdown
263 lines
37 KiB
Markdown
|
|
# Endpoint maps
|
|
|
|
<p align="center">
|
|
<a href="https://www.npmjs.com/package/bybit-api">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/tiagosiebler/bybit-api/blob/master/docs/images/logoDarkMode2.svg?raw=true#gh-dark-mode-only">
|
|
<img alt="SDK Logo" src="https://github.com/tiagosiebler/bybit-api/blob/master/docs/images/logoBrightMode2.svg?raw=true#gh-light-mode-only">
|
|
</picture>
|
|
</a>
|
|
</p>
|
|
|
|
Each REST client is a JavaScript class, which provides functions individually mapped to each endpoint available in the exchange's API offering.
|
|
|
|
The following table shows all methods available in each REST client, whether the method requires authentication (automatically handled if API keys are provided), as well as the exact endpoint each method is connected to.
|
|
|
|
This can be used to easily find which method to call, once you have [found which endpoint you're looking to use](https://github.com/tiagosiebler/awesome-crypto-examples/wiki/How-to-find-SDK-functions-that-match-API-docs-endpoint).
|
|
|
|
All REST clients are in the [src](/src) folder. For usage examples, make sure to check the [examples](/examples) folder.
|
|
|
|
List of clients:
|
|
- [rest-client-v5](#rest-client-v5ts)
|
|
- [websocket-api-client](#websocket-api-clientts)
|
|
|
|
|
|
If anything is missing or wrong, please open an issue or let us know in our [Node.js Traders](https://t.me/nodetraders) telegram group!
|
|
|
|
## How to use table
|
|
|
|
Table consists of 4 parts:
|
|
|
|
- Function name
|
|
- AUTH
|
|
- HTTP Method
|
|
- Endpoint
|
|
|
|
**Function name** is the name of the function that can be called through the SDK. Check examples folder in the repo for more help on how to use them!
|
|
|
|
**AUTH** is a boolean value that indicates if the function requires authentication - which means you need to pass your API key and secret to the SDK.
|
|
|
|
**HTTP Method** shows HTTP method that the function uses to call the endpoint. Sometimes endpoints can have same URL, but different HTTP method so you can use this column to differentiate between them.
|
|
|
|
**Endpoint** is the URL that the function uses to call the endpoint. Best way to find exact function you need for the endpoint is to search for URL in this table and find corresponding function name.
|
|
|
|
|
|
# rest-client-v5.ts
|
|
|
|
This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [rest-client-v5.ts](/src/rest-client-v5.ts).
|
|
|
|
| Function | AUTH | HTTP Method | Endpoint |
|
|
| -------- | :------: | :------: | -------- |
|
|
| [fetchServerTime()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L322) | | GET | `/v5/market/time` |
|
|
| [requestDemoTradingFunds()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L339) | :closed_lock_with_key: | POST | `/v5/account/demo-apply-money` |
|
|
| [createDemoAccount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L352) | :closed_lock_with_key: | POST | `/v5/user/create-demo-member` |
|
|
| [getSpreadInstrumentsInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L365) | | GET | `/v5/spread/instrument` |
|
|
| [getSpreadOrderbook()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L377) | | GET | `/v5/spread/orderbook` |
|
|
| [getSpreadTickers()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L387) | | GET | `/v5/spread/tickers` |
|
|
| [getSpreadRecentTrades()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L398) | | GET | `/v5/spread/recent-trade` |
|
|
| [submitSpreadOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L409) | :closed_lock_with_key: | POST | `/v5/spread/order/create` |
|
|
| [amendSpreadOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L422) | :closed_lock_with_key: | POST | `/v5/spread/order/amend` |
|
|
| [cancelSpreadOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L434) | :closed_lock_with_key: | POST | `/v5/spread/order/cancel` |
|
|
| [cancelAllSpreadOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L452) | :closed_lock_with_key: | POST | `/v5/spread/order/cancel-all` |
|
|
| [getSpreadOpenOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L471) | :closed_lock_with_key: | GET | `/v5/spread/order/realtime` |
|
|
| [getSpreadOrderHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L488) | :closed_lock_with_key: | GET | `/v5/spread/order/history` |
|
|
| [getSpreadTradeHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L504) | :closed_lock_with_key: | GET | `/v5/spread/execution/list` |
|
|
| [getKline()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L524) | | GET | `/v5/market/kline` |
|
|
| [getMarkPriceKline()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L539) | | GET | `/v5/market/mark-price-kline` |
|
|
| [getIndexPriceKline()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L554) | | GET | `/v5/market/index-price-kline` |
|
|
| [getPremiumIndexPriceKline()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L569) | | GET | `/v5/market/premium-index-price-kline` |
|
|
| [getOrderbook()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L595) | | GET | `/v5/market/orderbook` |
|
|
| [getTickers()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L601) | | GET | `/v5/market/tickers` |
|
|
| [getFundingRateHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L639) | | GET | `/v5/market/funding/history` |
|
|
| [getPublicTradingHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L654) | | GET | `/v5/market/recent-trade` |
|
|
| [getOpenInterest()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L667) | | GET | `/v5/market/open-interest` |
|
|
| [getHistoricalVolatility()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L677) | | GET | `/v5/market/historical-volatility` |
|
|
| [getInsurance()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L688) | | GET | `/v5/market/insurance` |
|
|
| [getRiskLimit()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L699) | | GET | `/v5/market/risk-limit` |
|
|
| [getOptionDeliveryPrice()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L714) | | GET | `/v5/market/delivery-price` |
|
|
| [getDeliveryPrice()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L727) | | GET | `/v5/market/delivery-price` |
|
|
| [getLongShortRatio()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L733) | | GET | `/v5/market/account-ratio` |
|
|
| [getOrderPriceLimit()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L739) | | GET | `/v5/order/price-limit` |
|
|
| [submitOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L752) | :closed_lock_with_key: | POST | `/v5/order/create` |
|
|
| [amendOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L758) | :closed_lock_with_key: | POST | `/v5/order/amend` |
|
|
| [cancelOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L764) | :closed_lock_with_key: | POST | `/v5/order/cancel` |
|
|
| [getActiveOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L773) | :closed_lock_with_key: | GET | `/v5/order/realtime` |
|
|
| [cancelAllOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L779) | :closed_lock_with_key: | POST | `/v5/order/cancel-all` |
|
|
| [getHistoricOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L792) | :closed_lock_with_key: | GET | `/v5/order/history` |
|
|
| [getExecutionList()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L804) | :closed_lock_with_key: | GET | `/v5/execution/list` |
|
|
| [batchSubmitOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L822) | :closed_lock_with_key: | POST | `/v5/order/create-batch` |
|
|
| [batchAmendOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L847) | :closed_lock_with_key: | POST | `/v5/order/amend-batch` |
|
|
| [batchCancelOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L872) | :closed_lock_with_key: | POST | `/v5/order/cancel-batch` |
|
|
| [getSpotBorrowCheck()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L894) | :closed_lock_with_key: | GET | `/v5/order/spot-borrow-check` |
|
|
| [setDisconnectCancelAllWindow()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L915) | :closed_lock_with_key: | POST | `/v5/order/disconnected-cancel-all` |
|
|
| [setDisconnectCancelAllWindowV2()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L933) | :closed_lock_with_key: | POST | `/v5/order/disconnected-cancel-all` |
|
|
| [preCheckOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L948) | :closed_lock_with_key: | POST | `/v5/order/pre-check` |
|
|
| [getPositionInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L971) | :closed_lock_with_key: | GET | `/v5/position/list` |
|
|
| [setLeverage()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L986) | :closed_lock_with_key: | POST | `/v5/position/set-leverage` |
|
|
| [switchIsolatedMargin()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L999) | :closed_lock_with_key: | POST | `/v5/position/switch-isolated` |
|
|
| [setTPSLMode()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1013) | :closed_lock_with_key: | POST | `/v5/position/set-tpsl-mode` |
|
|
| [switchPositionMode()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1028) | :closed_lock_with_key: | POST | `/v5/position/switch-mode` |
|
|
| [setRiskLimit()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1042) | :closed_lock_with_key: | POST | `/v5/position/set-risk-limit` |
|
|
| [setTradingStop()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1057) | :closed_lock_with_key: | POST | `/v5/position/trading-stop` |
|
|
| [setAutoAddMargin()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1068) | :closed_lock_with_key: | POST | `/v5/position/set-auto-add-margin` |
|
|
| [addOrReduceMargin()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1080) | :closed_lock_with_key: | POST | `/v5/position/add-margin` |
|
|
| [getClosedPnL()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1092) | :closed_lock_with_key: | GET | `/v5/position/closed-pnl` |
|
|
| [getClosedOptionsPositions()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1106) | :closed_lock_with_key: | GET | `/v5/position/get-closed-positions` |
|
|
| [movePosition()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1131) | :closed_lock_with_key: | POST | `/v5/position/move-positions` |
|
|
| [getMovePositionHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1142) | :closed_lock_with_key: | GET | `/v5/position/move-history` |
|
|
| [confirmNewRiskLimit()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1161) | :closed_lock_with_key: | POST | `/v5/position/confirm-pending-mmr` |
|
|
| [getPreUpgradeOrderHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1181) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/order/history` |
|
|
| [getPreUpgradeTradeHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1196) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/execution/list` |
|
|
| [getPreUpgradeClosedPnl()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1207) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/position/closed-pnl` |
|
|
| [getPreUpgradeTransactions()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1221) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/account/transaction-log` |
|
|
| [getPreUpgradeOptionDeliveryRecord()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1238) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/asset/delivery-record` |
|
|
| [getPreUpgradeUSDCSessionSettlements()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1252) | :closed_lock_with_key: | GET | `/v5/pre-upgrade/asset/settlement-record` |
|
|
| [getWalletBalance()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1273) | :closed_lock_with_key: | GET | `/v5/account/wallet-balance` |
|
|
| [getTransferableAmount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1284) | :closed_lock_with_key: | GET | `/v5/account/withdrawal` |
|
|
| [upgradeToUnifiedAccount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1297) | :closed_lock_with_key: | POST | `/v5/account/upgrade-to-uta` |
|
|
| [getBorrowHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1308) | :closed_lock_with_key: | GET | `/v5/account/borrow-history` |
|
|
| [repayLiability()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1322) | :closed_lock_with_key: | POST | `/v5/account/quick-repayment` |
|
|
| [setCollateralCoin()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1331) | :closed_lock_with_key: | POST | `/v5/account/set-collateral-switch` |
|
|
| [batchSetCollateralCoin()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1337) | :closed_lock_with_key: | POST | `/v5/account/set-collateral-switch-batch` |
|
|
| [getCollateralInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1347) | :closed_lock_with_key: | GET | `/v5/account/collateral-info` |
|
|
| [getCoinGreeks()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1356) | :closed_lock_with_key: | GET | `/v5/asset/coin-greeks` |
|
|
| [getFeeRate()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1369) | :closed_lock_with_key: | GET | `/v5/account/fee-rate` |
|
|
| [getAccountInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1378) | :closed_lock_with_key: | GET | `/v5/account/info` |
|
|
| [getDCPInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1391) | :closed_lock_with_key: | GET | `/v5/account/query-dcp-info` |
|
|
| [getTransactionLog()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1398) | :closed_lock_with_key: | GET | `/v5/account/transaction-log` |
|
|
| [getClassicTransactionLogs()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1409) | :closed_lock_with_key: | GET | `/v5/account/contract-transaction-log` |
|
|
| [getSMPGroup()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1420) | :closed_lock_with_key: | GET | `/v5/account/smp-group` |
|
|
| [setMarginMode()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1433) | :closed_lock_with_key: | POST | `/v5/account/set-margin-mode` |
|
|
| [setSpotHedging()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1450) | :closed_lock_with_key: | POST | `/v5/account/set-hedging-mode` |
|
|
| [setMMP()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1459) | :closed_lock_with_key: | POST | `/v5/account/mmp-modify` |
|
|
| [resetMMP()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1466) | :closed_lock_with_key: | POST | `/v5/account/mmp-reset` |
|
|
| [getMMPState()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1473) | :closed_lock_with_key: | GET | `/v5/account/mmp-state` |
|
|
| [getDeliveryRecord()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1490) | :closed_lock_with_key: | GET | `/v5/asset/delivery-record` |
|
|
| [getSettlementRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1501) | :closed_lock_with_key: | GET | `/v5/asset/settlement-record` |
|
|
| [getCoinExchangeRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1514) | :closed_lock_with_key: | GET | `/v5/asset/exchange/order-record` |
|
|
| [getCoinInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1526) | :closed_lock_with_key: | GET | `/v5/asset/coin/query-info` |
|
|
| [getSubUID()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1540) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-sub-member-list` |
|
|
| [getAssetInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1555) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-asset-info` |
|
|
| [getAllCoinsBalance()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1566) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-account-coins-balance` |
|
|
| [getCoinBalance()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1580) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-account-coin-balance` |
|
|
| [getWithdrawableAmount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1592) | :closed_lock_with_key: | GET | `/v5/asset/withdraw/withdrawable-amount` |
|
|
| [getTransferableCoinList()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1601) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-transfer-coin-list` |
|
|
| [createInternalTransfer()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1617) | :closed_lock_with_key: | POST | `/v5/asset/transfer/inter-transfer` |
|
|
| [getInternalTransferRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1636) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-inter-transfer-list` |
|
|
| [enableUniversalTransferForSubUIDs()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1656) | :closed_lock_with_key: | POST | `/v5/asset/transfer/save-transfer-sub-member` |
|
|
| [createUniversalTransfer()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1667) | :closed_lock_with_key: | POST | `/v5/asset/transfer/universal-transfer` |
|
|
| [getUniversalTransferRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1679) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-universal-transfer-list` |
|
|
| [getAllowedDepositCoinInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1692) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-allowed-list` |
|
|
| [setDepositAccount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1706) | :closed_lock_with_key: | POST | `/v5/asset/deposit/deposit-to-account` |
|
|
| [getDepositRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1722) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-record` |
|
|
| [getSubAccountDepositRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1737) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-sub-member-record` |
|
|
| [getInternalDepositRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1753) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-internal-record` |
|
|
| [getMasterDepositAddress()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1765) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-address` |
|
|
| [getSubDepositAddress()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1783) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-sub-member-address` |
|
|
| [querySubMemberAddress()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1808) | :closed_lock_with_key: | GET | `/v5/asset/deposit/query-sub-member-address` |
|
|
| [getWithdrawalRecords()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1828) | :closed_lock_with_key: | GET | `/v5/asset/withdraw/query-record` |
|
|
| [getExchangeEntities()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1839) | :closed_lock_with_key: | GET | `/v5/asset/withdraw/vasp/list` |
|
|
| [submitWithdrawal()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1852) | :closed_lock_with_key: | POST | `/v5/asset/withdraw/create` |
|
|
| [cancelWithdrawal()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1863) | :closed_lock_with_key: | POST | `/v5/asset/withdraw/cancel` |
|
|
| [getConvertCoins()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1872) | :closed_lock_with_key: | GET | `/v5/asset/exchange/query-coin-list` |
|
|
| [requestConvertQuote()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1883) | :closed_lock_with_key: | POST | `/v5/asset/exchange/quote-apply` |
|
|
| [confirmConvertQuote()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1892) | :closed_lock_with_key: | POST | `/v5/asset/exchange/convert-execute` |
|
|
| [getConvertStatus()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1904) | :closed_lock_with_key: | GET | `/v5/asset/exchange/convert-result-query` |
|
|
| [getConvertHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1923) | :closed_lock_with_key: | GET | `/v5/asset/exchange/query-convert-history` |
|
|
| [createSubMember()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1943) | :closed_lock_with_key: | POST | `/v5/user/create-sub-member` |
|
|
| [createSubUIDAPIKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1955) | :closed_lock_with_key: | POST | `/v5/user/create-sub-api` |
|
|
| [getSubUIDList()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1964) | :closed_lock_with_key: | GET | `/v5/user/query-sub-members` |
|
|
| [getSubUIDListUnlimited()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1973) | :closed_lock_with_key: | GET | `/v5/user/submembers` |
|
|
| [setSubUIDFrozenState()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L1991) | :closed_lock_with_key: | POST | `/v5/user/frozen-sub-member` |
|
|
| [getQueryApiKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2004) | :closed_lock_with_key: | GET | `/v5/user/query-api` |
|
|
| [getSubAccountAllApiKeys()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2011) | :closed_lock_with_key: | GET | `/v5/user/sub-apikeys` |
|
|
| [getUIDWalletType()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2020) | :closed_lock_with_key: | GET | `/v5/user/get-member-type` |
|
|
| [updateMasterApiKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2037) | :closed_lock_with_key: | POST | `/v5/user/update-api` |
|
|
| [updateSubApiKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2051) | :closed_lock_with_key: | POST | `/v5/user/update-sub-api` |
|
|
| [deleteSubMember()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2064) | :closed_lock_with_key: | POST | `/v5/user/del-submember` |
|
|
| [deleteMasterApiKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2079) | :closed_lock_with_key: | POST | `/v5/user/delete-api` |
|
|
| [deleteSubApiKey()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2093) | :closed_lock_with_key: | POST | `/v5/user/delete-sub-api` |
|
|
| [getAffiliateUserList()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2113) | :closed_lock_with_key: | GET | `/v5/affiliate/aff-user-list` |
|
|
| [getAffiliateUserInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2132) | :closed_lock_with_key: | GET | `/v5/user/aff-customer-info` |
|
|
| [getLeveragedTokenInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2147) | | GET | `/v5/spot-lever-token/info` |
|
|
| [getLeveragedTokenMarket()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2156) | | GET | `/v5/spot-lever-token/reference` |
|
|
| [purchaseSpotLeveragedToken()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2165) | :closed_lock_with_key: | POST | `/v5/spot-lever-token/purchase` |
|
|
| [redeemSpotLeveragedToken()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2174) | :closed_lock_with_key: | POST | `/v5/spot-lever-token/redeem` |
|
|
| [getSpotLeveragedTokenOrderHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2183) | :closed_lock_with_key: | GET | `/v5/spot-lever-token/order-record` |
|
|
| [getVIPMarginData()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2205) | | GET | `/v5/spot-margin-trade/data` |
|
|
| [getHistoricalInterestRate()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2216) | :closed_lock_with_key: | GET | `/v5/spot-margin-trade/interest-rate-history` |
|
|
| [toggleSpotMarginTrade()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2243) | :closed_lock_with_key: | POST | `/v5/spot-margin-trade/switch-mode` |
|
|
| [setSpotMarginLeverage()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2255) | :closed_lock_with_key: | POST | `/v5/spot-margin-trade/set-leverage` |
|
|
| [getSpotMarginState()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2264) | :closed_lock_with_key: | GET | `/v5/spot-margin-trade/state` |
|
|
| [getSpotMarginCoinInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2277) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/pledge-token` |
|
|
| [getSpotMarginBorrowableCoinInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2294) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/borrow-token` |
|
|
| [getSpotMarginInterestAndQuota()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2311) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/loan-info` |
|
|
| [getSpotMarginLoanAccountInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2329) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/account` |
|
|
| [spotMarginBorrow()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2353) | :closed_lock_with_key: | POST | `/v5/spot-cross-margin-trade/loan` |
|
|
| [spotMarginRepay()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2364) | :closed_lock_with_key: | POST | `/v5/spot-cross-margin-trade/repay` |
|
|
| [getSpotMarginBorrowOrderDetail()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2379) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/orders` |
|
|
| [getSpotMarginRepaymentOrderDetail()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2408) | :closed_lock_with_key: | GET | `/v5/spot-cross-margin-trade/repay-history` |
|
|
| [toggleSpotCrossMarginTrade()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2437) | :closed_lock_with_key: | POST | `/v5/spot-cross-margin-trade/switch` |
|
|
| [getCollateralCoins()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2454) | | GET | `/v5/crypto-loan/collateral-data` |
|
|
| [getBorrowableCoins()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2470) | | GET | `/v5/crypto-loan/loanable-data` |
|
|
| [getAccountBorrowCollateralLimit()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2487) | :closed_lock_with_key: | GET | `/v5/crypto-loan/borrowable-collateralisable-number` |
|
|
| [borrowCryptoLoan()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2506) | :closed_lock_with_key: | POST | `/v5/crypto-loan/borrow` |
|
|
| [repayCryptoLoan()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2525) | :closed_lock_with_key: | POST | `/v5/crypto-loan/repay` |
|
|
| [getUnpaidLoanOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2539) | :closed_lock_with_key: | GET | `/v5/crypto-loan/ongoing-orders` |
|
|
| [getRepaymentHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2558) | :closed_lock_with_key: | GET | `/v5/crypto-loan/repayment-history` |
|
|
| [getCompletedLoanOrderHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2576) | :closed_lock_with_key: | GET | `/v5/crypto-loan/borrow-history` |
|
|
| [getMaxAllowedReductionCollateralAmount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2593) | :closed_lock_with_key: | GET | `/v5/crypto-loan/max-collateral-amount` |
|
|
| [adjustCollateralAmount()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2610) | :closed_lock_with_key: | POST | `/v5/crypto-loan/adjust-ltv` |
|
|
| [getLoanLTVAdjustmentHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2632) | :closed_lock_with_key: | GET | `/v5/crypto-loan/adjustment-history` |
|
|
| [getInstitutionalLendingProductInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2652) | | GET | `/v5/ins-loan/product-infos` |
|
|
| [getInstitutionalLendingMarginCoinInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2662) | | GET | `/v5/ins-loan/ensure-tokens` |
|
|
| [getInstitutionalLendingMarginCoinInfoWithConversionRate()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2671) | | GET | `/v5/ins-loan/ensure-tokens-convert` |
|
|
| [getInstitutionalLendingLoanOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2680) | :closed_lock_with_key: | GET | `/v5/ins-loan/loan-order` |
|
|
| [getInstitutionalLendingRepayOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2692) | :closed_lock_with_key: | GET | `/v5/ins-loan/repaid-history` |
|
|
| [getInstitutionalLendingLTV()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2704) | :closed_lock_with_key: | GET | `/v5/ins-loan/ltv` |
|
|
| [getInstitutionalLendingLTVWithLadderConversionRate()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2713) | :closed_lock_with_key: | GET | `/v5/ins-loan/ltv-convert` |
|
|
| [bindOrUnbindUID()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2728) | :closed_lock_with_key: | POST | `/v5/ins-loan/association-uid` |
|
|
| [getExchangeBrokerEarnings()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2752) | :closed_lock_with_key: | GET | `/v5/broker/earnings-info` |
|
|
| [getExchangeBrokerAccountInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2765) | :closed_lock_with_key: | GET | `/v5/broker/account-info` |
|
|
| [getBrokerSubAccountDeposits()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2781) | :closed_lock_with_key: | GET | `/v5/broker/asset/query-sub-member-deposit-record` |
|
|
| [getBrokerVoucherSpec()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2796) | :closed_lock_with_key: | POST | `/v5/broker/award/info` |
|
|
| [issueBrokerVoucher()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2808) | :closed_lock_with_key: | POST | `/v5/broker/award/distribute-award` |
|
|
| [getBrokerIssuedVoucher()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2820) | :closed_lock_with_key: | POST | `/v5/broker/award/distribution-record` |
|
|
| [getEarnProduct()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2837) | | GET | `/v5/earn/product` |
|
|
| [submitStakeRedeem()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2855) | :closed_lock_with_key: | POST | `/v5/earn/place-order` |
|
|
| [getEarnOrderHistory()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2872) | :closed_lock_with_key: | GET | `/v5/earn/order` |
|
|
| [getEarnPosition()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2887) | :closed_lock_with_key: | GET | `/v5/earn/position` |
|
|
| [getP2PAccountCoinsBalance()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2911) | :closed_lock_with_key: | GET | `/v5/asset/transfer/query-account-coins-balance` |
|
|
| [getP2POnlineAds()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2928) | :closed_lock_with_key: | POST | `/v5/p2p/item/online` |
|
|
| [createP2PAd()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2937) | :closed_lock_with_key: | POST | `/v5/p2p/item/create` |
|
|
| [cancelP2PAd()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2946) | :closed_lock_with_key: | POST | `/v5/p2p/item/cancel` |
|
|
| [updateP2PAd()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2960) | :closed_lock_with_key: | POST | `/v5/p2p/item/update` |
|
|
| [getP2PPersonalAds()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2970) | :closed_lock_with_key: | POST | `/v5/p2p/item/personal/list` |
|
|
| [getP2PAdDetail()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2979) | :closed_lock_with_key: | POST | `/v5/p2p/item/info` |
|
|
| [getP2POrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L2994) | :closed_lock_with_key: | POST | `/v5/p2p/order/simplifyList` |
|
|
| [getP2POrderDetail()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3004) | :closed_lock_with_key: | POST | `/v5/p2p/order/info` |
|
|
| [getP2PPendingOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3013) | :closed_lock_with_key: | POST | `/v5/p2p/order/pending/simplifyList` |
|
|
| [markP2POrderAsPaid()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3022) | :closed_lock_with_key: | POST | `/v5/p2p/order/pay` |
|
|
| [releaseP2POrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3031) | :closed_lock_with_key: | POST | `/v5/p2p/order/finish` |
|
|
| [sendP2POrderMessage()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3040) | :closed_lock_with_key: | POST | `/v5/p2p/order/message/send` |
|
|
| [uploadP2PChatFile()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3049) | :closed_lock_with_key: | POST | `/v5/p2p/oss/upload_file` |
|
|
| [getP2POrderMessages()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3058) | :closed_lock_with_key: | POST | `/v5/p2p/order/message/listpage` |
|
|
| [getP2PUserInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3072) | :closed_lock_with_key: | POST | `/v5/p2p/user/personal/info` |
|
|
| [getP2PCounterpartyUserInfo()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3079) | :closed_lock_with_key: | POST | `/v5/p2p/user/order/personal/info` |
|
|
| [getP2PUserPayments()](https://github.com/tiagosiebler/bybit-api/blob/master/src/rest-client-v5.ts#L3088) | :closed_lock_with_key: | POST | `/v5/p2p/user/payment/list` |
|
|
|
|
# websocket-api-client.ts
|
|
|
|
This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [websocket-api-client.ts](/src/websocket-api-client.ts).
|
|
|
|
This client provides WebSocket API endpoints which allow for faster interactions with the Bybit API via a WebSocket connection.
|
|
|
|
| Function | AUTH | HTTP Method | Endpoint |
|
|
| -------- | :------: | :------: | -------- |
|
|
| [submitNewOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L95) | :closed_lock_with_key: | WS | `order.create` |
|
|
| [amendOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L111) | :closed_lock_with_key: | WS | `order.amend` |
|
|
| [cancelOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L127) | :closed_lock_with_key: | WS | `order.cancel` |
|
|
| [batchSubmitOrders()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L143) | :closed_lock_with_key: | WS | `order.create-batch` |
|
|
| [batchAmendOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L171) | :closed_lock_with_key: | WS | `order.amend-batch` |
|
|
| [batchCancelOrder()](https://github.com/tiagosiebler/bybit-api/blob/master/src/websocket-api-client.ts#L199) | :closed_lock_with_key: | WS | `order.cancel-batch` | |