pybotters.BitgetV2DataStore¶
- class pybotters.BitgetV2DataStore¶
DataStoreCollection for Bitget V2 API
Methods
__init__()onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
account channel.
book channel.
candle channel.
fill channel.
orders channel.
orders-algo channel.
positions channel.
positions-history channel.
ticker channel.
trade channel.
- property account: Account¶
account channel.
https://www.bitget.com/api-doc/spot/websocket/private/Account-Channel
https://www.bitget.com/api-doc/contract/websocket/private/Account-Channel
The following data will be added as identifiers:
instType
- property book: Book¶
book channel.
https://www.bitget.com/api-doc/spot/websocket/public/Depth-Channel
https://www.bitget.com/api-doc/contract/websocket/public/Order-Book-Channel
For the source data, the asks/bids array is converted to a dictionary in the following format:
[0]->price[1]->amount
The following data will be added as identifiers:
instTypeinstIdside
- property candle: Candle¶
candle channel.
https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
https://www.bitget.com/api-doc/contract/websocket/public/Candlesticks-Channel
For the source data, the array is converted to a dictionary in the following format:
[0]->startTime[1]->openPr[2]->highPr[3]->lowPr[4]->closePr[5]->baseVolume[6]->quoteVolume[7]->usdtVolume
The following data will be added as identifiers:
instTypeinstIdgranularity
- property fill: Fill¶
fill channel.
https://www.bitget.com/api-doc/spot/websocket/private/Fill-Channel
https://www.bitget.com/api-doc/contract/websocket/private/Fill-Channel
The following data will be added as identifiers:
instType
- property orders: Orders¶
orders channel.
https://www.bitget.com/api-doc/spot/websocket/private/Order-Channel
https://www.bitget.com/api-doc/contract/websocket/private/Order-Channel
The following data will be added as identifiers:
instType
- property orders_algo: OrdersAlgo¶
orders-algo channel.
https://www.bitget.com/api-doc/spot/websocket/private/Plan-Order-Channel
https://www.bitget.com/api-doc/contract/websocket/private/Plan-Order-Channel
The following data will be added as identifiers:
instType
- property positions: Positions¶
positions channel.
The following data will be added as identifiers:
instType
- property positions_history: PositionsHistory¶
positions-history channel.
The following data will be added as identifiers:
instType
- property ticker¶
ticker channel.
https://www.bitget.com/api-doc/spot/websocket/public/Tickers-Channel
https://www.bitget.com/api-doc/contract/websocket/public/Tickers-Channel
The following data will be added as identifiers:
instType
- property trade: Trade¶
trade channel.
https://www.bitget.com/api-doc/spot/websocket/public/Trades-Channel
https://www.bitget.com/api-doc/contract/websocket/public/New-Trades-Channel
The following data will be added as identifiers:
instTypeinstId