pybotters.BitgetV2DataStore

class pybotters.BitgetV2DataStore

DataStoreCollection for Bitget V2 API

Methods

__init__()

onmessage(msg[, ws])

WebSocket message handler.

wait()

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

Attributes

account

account channel.

book

book channel.

candle

candle channel.

fill

fill channel.

orders

orders channel.

orders_algo

orders-algo channel.

positions

positions channel.

positions_history

positions-history channel.

ticker

ticker channel.

trade

trade channel.

property account: Account

account channel.

The following data will be added as identifiers:

  • instType

property book: Book

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:

  • instType

  • instId

  • side

property candle: Candle

candle 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:

  • instType

  • instId

  • granularity

property fill: Fill

fill channel.

The following data will be added as identifiers:

  • instType

property orders: Orders

orders channel.

The following data will be added as identifiers:

  • instType

property orders_algo: OrdersAlgo

orders-algo 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.

The following data will be added as identifiers:

  • instType

property trade: Trade

trade channel.

The following data will be added as identifiers:

  • instType

  • instId