pybotters.PhemexDataStore

class pybotters.PhemexDataStore

Phemex の DataStoreCollection クラス

Methods

__init__()

initialize(*aws)

Initialize DataStore from HTTP response data.

onmessage(msg, ws)

WebSocket message handler.

wait()

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

Attributes

accounts

accounts/accounts_p channel.

kline

kline/kline_pkline_p channel.

market24h

market24h/market24h_p channel.

orderbook

book/orderbook_p channel.

orders

orders/orders_p channel.

positions

positions/positions_p channel.

ticker

tick/tick_p channel.

trade

trades/trades_p channel.

property accounts: Accounts

accounts/accounts_p channel.

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

Initialize DataStore from HTTP response data.

対応エンドポイント

property kline: Kline

kline/kline_pkline_p channel.

property market24h: Market24h

market24h/market24h_p channel.

property orderbook: OrderBook

book/orderbook_p channel.

property orders: Orders

orders/orders_p channel.

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

property positions: Positions

positions/positions_p channel.

property ticker

tick/tick_p channel.

property trade: Trade

trades/trades_p channel.