pybotters.BitgetDataStore¶
- class pybotters.BitgetDataStore¶
DataStoreCollection for Bitget V1 API
Methods
__init__()initialize(*aws)Initialize DataStore from HTTP response data.
onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
account channel.
candle1m channel.
books channel.
orders channel.
positions channel.
ticker channel.
trade channel.
- property account: Account¶
account channel.
- property candlesticks: CandleSticks¶
candle1m channel.
- async initialize(*aws: Awaitable[aiohttp.ClientResponse]) None¶
Initialize DataStore from HTTP response data.
対応エンドポイント
GET /api/mix/v1/order/current (
BitgetDataStore.orders)
- property orderbook: OrderBook¶
books channel.
- property orders: Orders¶
orders channel.
アクティブオーダーのみデータが格納されます。 キャンセル、約定済みなどは削除されます。
- property positions: Positions¶
positions channel.
- property ticker¶
ticker channel.
- property trade: Trade¶
trade channel.