Update links to new bybit api docs
This commit is contained in:
@@ -14,106 +14,106 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
|
|||||||
### Private enpoints
|
### Private enpoints
|
||||||
|
|
||||||
#### async placeActiveOrder(params)
|
#### async placeActiveOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#place-active-order-v2)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-placev2active)
|
||||||
|
|
||||||
#### async getActiveOrder(params)
|
#### async getActiveOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-active-order)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-getactive)
|
||||||
|
|
||||||
#### async cancelActiveOrder(params)
|
#### async cancelActiveOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiordercancelv2post)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-cancelv2active)
|
||||||
|
|
||||||
#### async cancelAllActiveOrders(params)
|
#### async cancelAllActiveOrders(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiordercancelallpost)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-cancelallactive)
|
||||||
|
|
||||||
#### async replaceActiveOrder(params)
|
#### async replaceActiveOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiorderreplacepost)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-replaceactive)
|
||||||
|
|
||||||
#### async queryActiveOrder(params)
|
#### async queryActiveOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#query-active-order-real-time)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-queryactive)
|
||||||
|
|
||||||
#### async placeConditionalOrder(params)
|
#### async placeConditionalOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#place-conditional-order)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-placecond)
|
||||||
|
|
||||||
#### async getConditioanlOrder(params)
|
#### async getConditioanlOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-conditional-order)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-getcond)
|
||||||
|
|
||||||
#### async cancelConditionalOrder(params)
|
#### async cancelConditionalOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#cancel-conditional-order-)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-cancelcond)
|
||||||
|
|
||||||
#### async cancelAllConditionalOrders(params)
|
#### async cancelAllConditionalOrders(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#cancel-all-conditional-orders)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-cancelallcond)
|
||||||
|
|
||||||
#### async queryConditionalOrder(params)
|
#### async queryConditionalOrder(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#query-stop-order-real-time)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-querycond)
|
||||||
|
|
||||||
#### async getUserLeverage()
|
#### async getUserLeverage()
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#user-leverage)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-getleverage)
|
||||||
|
|
||||||
#### async changeUserLeverage(params)
|
#### async changeUserLeverage(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-change-user-leverage)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-changeleverage)
|
||||||
|
|
||||||
#### async getPosition(params)
|
#### async getPosition(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-my-position-v2)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-mypositionv2)
|
||||||
|
|
||||||
#### async getPositions()
|
#### async getPositions()
|
||||||
*Deprecated v1 method*
|
*Deprecated v1 method*
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#positionlistget)
|
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#positionlistget)
|
||||||
|
|
||||||
#### async changePositionMargin(params)
|
#### async changePositionMargin(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-change-position-margin)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-changemargin)
|
||||||
|
|
||||||
#### async setTradingStop(params)
|
#### async setTradingStop(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-set-trading-stop)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-tradingstop)
|
||||||
|
|
||||||
#### async getWalletFundRecords(params)
|
#### async getWalletFundRecords(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-wallet-fund-records)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-walletrecords)
|
||||||
|
|
||||||
#### async getWithdrawRecords(params)
|
#### async getWithdrawRecords(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-withdraw-records)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-withdrawrecords)
|
||||||
|
|
||||||
#### async getWalletBalance(params)
|
#### async getWalletBalance(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiwalletbalanceget)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-balance)
|
||||||
|
|
||||||
#### async setRiskLimit(params)
|
#### async setRiskLimit(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#set-risk-limit-)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-setrisklimit)
|
||||||
|
|
||||||
#### async getRiskLimitList()
|
#### async getRiskLimitList()
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-risk-limit-list-)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-getrisklimit)
|
||||||
|
|
||||||
#### async getLastFundingRate(params)
|
#### async getLastFundingRate(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-the-last-funding-rate)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-fundingrate)
|
||||||
|
|
||||||
#### async getMyLastFundingFee(params)
|
#### async getMyLastFundingFee(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-my-last-funding-fee)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-mylastfundingfee)
|
||||||
|
|
||||||
#### async getPredictedFunding(params)
|
#### async getPredictedFunding(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-predicted-funding-rate-and-funding-fee)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-predictedfunding)
|
||||||
|
|
||||||
#### async getTradeRecords(params)
|
#### async getTradeRecords(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-users-trade-records)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-usertraderecords)
|
||||||
|
|
||||||
### Public enpoints
|
### Public enpoints
|
||||||
|
|
||||||
#### async getOrderBook(params)
|
#### async getOrderBook(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-orderbook)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-orderbook)
|
||||||
|
|
||||||
#### async getLatestInformation()
|
#### async getLatestInformation()
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#latest-information-for-symbol)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-latestsymbolinfo)
|
||||||
|
|
||||||
#### async getPublicTradingRecords(params)
|
#### async getPublicTradingRecords(params)
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-public-trading-records)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-publictradingrecords)
|
||||||
|
|
||||||
#### async getServerTime()
|
#### async getServerTime()
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#server-time)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-servertime)
|
||||||
|
|
||||||
#### async getApiAnnouncements()
|
#### async getApiAnnouncements()
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiannouncement)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-announcement)
|
||||||
|
|
||||||
#### async getSymbols()
|
#### async getSymbols()
|
||||||
Returns symbol information (such as tick size & min notional):
|
Returns symbol information (such as tick size & min notional):
|
||||||
[Meeting price restrictions](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#price-price)
|
[Meeting price restrictions](https://bybit-exchange.github.io/docs/inverse/#price-price)
|
||||||
|
|
||||||
[See bybit documentation](https://bybit-exchange.github.io/bybit-official-api-docs/en/index.html#operation/query_symbol)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-querysymbol)
|
||||||
|
|
||||||
#### async getTimeOffset()
|
#### async getTimeOffset()
|
||||||
|
|
||||||
|
|||||||
@@ -100,9 +100,8 @@ Emitted when an error occurs.
|
|||||||
|
|
||||||
## Available Topics
|
## Available Topics
|
||||||
|
|
||||||
Generaly all topics as described in the
|
Generaly all [public](https://bybit-exchange.github.io/docs/inverse/#t-publictopics) and [private](https://bybit-exchange.github.io/docs/inverse/#t-privatetopics)
|
||||||
[official bybit api documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md)
|
topics are available.
|
||||||
are available.
|
|
||||||
|
|
||||||
### Private topics
|
### Private topics
|
||||||
|
|
||||||
@@ -111,21 +110,28 @@ Generaly all topics as described in the
|
|||||||
All positions of your account.
|
All positions of your account.
|
||||||
Topic: `position`
|
Topic: `position`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#positions-of-your-account)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketposition)
|
||||||
|
|
||||||
#### Execution message
|
#### Execution message
|
||||||
|
|
||||||
Execution message, whenever an order has been (partially) filled.
|
Execution message, whenever an order has been (partially) filled.
|
||||||
Topic: `execution`
|
Topic: `execution`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#execution-message)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketexecution)
|
||||||
|
|
||||||
#### Update for your orders
|
#### Update for your orders
|
||||||
|
|
||||||
Updates for your active orders
|
Updates for your active orders
|
||||||
Topic: `order`
|
Topic: `order`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#update-for-your-orders)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketorder)
|
||||||
|
|
||||||
|
#### Update for your conditional orders
|
||||||
|
|
||||||
|
Updates for your active conditional orders
|
||||||
|
Topic: `stop_order`
|
||||||
|
|
||||||
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketstoporder)
|
||||||
|
|
||||||
|
|
||||||
### Public topics
|
### Public topics
|
||||||
@@ -133,36 +139,43 @@ Topic: `order`
|
|||||||
#### Candlestick chart
|
#### Candlestick chart
|
||||||
|
|
||||||
Candlestick OHLC "candles" for selected symbol and interval.
|
Candlestick OHLC "candles" for selected symbol and interval.
|
||||||
Example topic: `kline.BTCUSD.1m`
|
Example topic: `klineV2.BTCUSD.1m`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#kline)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketklinev2)
|
||||||
|
|
||||||
#### Real-time trading information
|
#### Real-time trading information
|
||||||
|
|
||||||
All trades as they occur.
|
All trades as they occur.
|
||||||
Topic: `trade`
|
Topic: `trade`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#trade)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websockettrade)
|
||||||
|
|
||||||
#### Daily insurance fund update
|
#### Daily insurance fund update
|
||||||
|
|
||||||
Topic: `insurance`
|
Topic: `insurance`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#daily-insurance-fund-update)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketinsurance)
|
||||||
|
|
||||||
#### OrderBook of 25 depth per side
|
#### OrderBook of 25 depth per side
|
||||||
|
|
||||||
OrderBook for selected symbol
|
OrderBook for selected symbol
|
||||||
Example topic: `orderBookL2_25.BTCUSD`
|
Example topic: `orderBookL2_25.BTCUSD`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#orderBook25_v2)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketorderbook25)
|
||||||
|
|
||||||
|
#### OrderBook of 200 depth per side
|
||||||
|
|
||||||
|
OrderBook for selected symbol
|
||||||
|
Example topic: `orderBook_200.100ms.BTCUS`
|
||||||
|
|
||||||
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketorderbook200)
|
||||||
|
|
||||||
#### Latest information for symbol
|
#### Latest information for symbol
|
||||||
|
|
||||||
LAtest information for selected symbol
|
Latest information for selected symbol
|
||||||
Example topic: `instrument_info.100ms.BTCUSD`
|
Example topic: `instrument_info.100ms.BTCUSD`
|
||||||
|
|
||||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/websocket.md#instrument_info)
|
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-websocketinstrumentinfo)
|
||||||
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|||||||
Reference in New Issue
Block a user