pybotters.BybitDataStore¶
- class pybotters.BybitDataStore¶
Bybit の DataStoreCollection クラス
Methods
__init__()initialize(*aws)Initialize DataStore from HTTP response data.
onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
allLiquidation topic.
execution topic.
greek topic.
kline topic.
liquidation topic.
lt_kline topic.
lt_nav topic.
lt_ticker topic.
order topic.
orderbook topic.
position topic.
ticker topic.
trade topic.
wallet topic.
- property all_liquidation: AllLiquidation¶
allLiquidation topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/all-liquidation
- property execution: Execution¶
execution topic.
https://bybit-exchange.github.io/docs/v5/websocket/private/execution
- property greek: Greek¶
greek topic.
https://bybit-exchange.github.io/docs/v5/websocket/private/greek
- async initialize(*aws: Awaitable[aiohttp.ClientResponse]) None¶
Initialize DataStore from HTTP response data.
対応エンドポイント
GET /v5/position/list (
BybitDataStore.position)GET /v5/order/realtime (
BybitDataStore.order)GET /v5/account/wallet-balance (
BybitDataStore.wallet)
- property kline: Kline¶
kline topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/kline
- property liquidation: Liquidation¶
liquidation topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/liquidation
- property lt_kline: LTKline¶
lt_kline topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/etp-kline
- property lt_ticker: LTTicker¶
lt_ticker topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
- property order: Order¶
order topic.
アクティブオーダーのみデータが格納されます。 キャンセル、約定済みなどは削除されます。
https://bybit-exchange.github.io/docs/v5/websocket/private/order
- property orderbook: OrderBook¶
orderbook topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
- property position: Position¶
position topic.
https://bybit-exchange.github.io/docs/v5/websocket/private/position
- property ticker: Ticker¶
ticker topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/ticker
- property trade: Trade¶
trade topic.
https://bybit-exchange.github.io/docs/v5/websocket/public/trade
- property wallet: Wallet¶
wallet topic.
https://bybit-exchange.github.io/docs/v5/websocket/private/wallet