pybotters.BitgetDataStore

class pybotters.BitgetDataStore

Bitget の DataStoreCollection クラス

Methods

__init__()

initialize(*aws)

Initialize DataStore from HTTP response data.

onmessage(msg, ws)

WebSocket message handler.

wait()

DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。

Attributes

account

account channel.

candlesticks

candle1m channel.

orderbook

books channel.

orders

orders channel.

positions

positions channel.

ticker

ticker channel.

trade

trade channel.

property account: Account

account channel.

property candlesticks: CandleSticks

candle1m channel.

async initialize(*aws: Awaitable[ClientResponse]) None

Initialize DataStore from HTTP response data.

対応エンドポイント

property orderbook: OrderBook

books channel.

property orders: Orders

orders channel.

アクティブオーダーのみデータが格納されます。 キャンセル、約定済みなどは削除されます。

property positions: Positions

positions channel.

property ticker

ticker channel.

property trade: Trade

trade channel.