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

execution

execution topic.

greek

greek topic.

kline

kline topic.

liquidation

liquidation topic.

lt_kline

lt_kline topic.

lt_nav

lt_nav topic.

lt_ticker

lt_ticker topic.

order

order topic.

orderbook

orderbook topic.

position

position topic.

ticker

ticker topic.

trade

trade topic.

wallet

wallet topic.

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[ClientResponse]) None

Initialize DataStore from HTTP response data.

対応エンドポイント

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_nav: LTNav

lt_nav topic.

https://bybit-exchange.github.io/docs/v5/websocket/public/etp-nav

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