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 channel.
account-greeks channel.
algoadvance channel.
balance_and_position channel.
books channel.
candle channel.
estimated-price channel.
funding-rate channel.
index-candle channel.
index-tickers channel.
instruments channel.
liquidation-warning channel.
mark-price channel.
mark-price-candle channel.
open-interest channel.
opt-summary channel.
orders channel.
ordersalgo channel.
positions channel.
price-limit channel.
tickers channel.
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.
対応エンドポイント
GET /api/v5/trade/orders-pending (
OKXDataStore.orders
)GET /api/v5/trade/orders-algo-pending (
OKXDataStore.ordersalgo
OKXDataStore.algoadvance
)
- 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