pybotters.OKXDataStore

class pybotters.OKXDataStore

OKX の DataStoreCollection クラス

Methods

__init__()

initialize(*aws)

Initialize DataStore from HTTP response data.

onmessage(msg, ws)

WebSocket message handler.

wait()

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

Attributes

account

account channel.

accountgreeks

account-greeks channel.

algoadvance

algoadvance channel.

balance_and_position

balance_and_position channel.

books

books channel.

candle

candle channel.

estimatedprice

estimated-price channel.

fundingrate

funding-rate channel.

indexcandle

index-candle channel.

indextickers

index-tickers channel.

instruments

instruments channel.

liquidationwarning

liquidation-warning channel.

markprice

mark-price channel.

markpricecandle

mark-price-candle channel.

openinterest

open-interest channel.

optsummary

opt-summary channel.

orders

orders channel.

ordersalgo

ordersalgo channel.

positions

positions channel.

pricelimit

price-limit channel.

tickers

tickers channel.

trades

trades channel.

property account: Account

account channel.

https://www.okx.com/docs-v5/en/#trading-account-websocket-account-channel

property accountgreeks: AccountGreeks

account-greeks channel.

https://www.okx.com/docs-v5/en/#trading-account-websocket-account-greeks-channel

property algoadvance: AlgoAdvance

algoadvance channel.

https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-ws-advance-algo-orders-channel

property balance_and_position: BalanceAndPosition

balance_and_position channel.

https://www.okx.com/docs-v5/en/#trading-account-websocket-balance-and-position-channel

property books: Books

books channel.

https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-order-book-channel

property candle: Candle

candle channel.

https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-candlesticks-channel

property estimatedprice: EstimatedPrice

estimated-price channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-estimated-delivery-exercise-price-channel

property fundingrate: FundingRate

funding-rate channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-funding-rate-channel

property indexcandle: IndexCandle

index-candle channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-index-candlesticks-channel

property indextickers: IndexTickers

index-tickers channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-index-tickers-channel

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

Initialize DataStore from HTTP response data.

対応エンドポイント

property instruments: Instruments

instruments channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-instruments-channel

property liquidationwarning: LiquidationWarning

liquidation-warning channel.

https://www.okx.com/docs-v5/en/#trading-account-websocket-position-risk-warning

property markprice: MarkPrice

mark-price channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-mark-price-channel

property markpricecandle: MarkPriceCandle

mark-price-candle channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-mark-price-candlesticks-channel

property openinterest: OpenInterest

open-interest channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-open-interest-channel

property optsummary: OptSummary

opt-summary channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-option-summary-channel

property orders: Orders

orders channel.

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

https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-order-channel

property ordersalgo: OrdersAlgo

ordersalgo channel.

https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-ws-algo-orders-channel

property positions: Positions

positions channel.

https://www.okx.com/docs-v5/en/#trading-account-websocket-positions-channel

property pricelimit: PriceLimit

price-limit channel.

https://www.okx.com/docs-v5/en/#public-data-websocket-price-limit-channel

property tickers: Tickers

tickers channel.

https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel

property trades: Trades

trades channel.

https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-trades-channel