pybotters.KuCoinDataStore¶
- class pybotters.KuCoinDataStore¶
KuCoin の DataStoreCollection クラス
Methods
__init__
()initialize
(*aws)Initialize DataStore from HTTP response data.
onmessage
(msg, ws)WebSocket message handler.
wait
()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
/contract/announcement topic.
/account/balance topic.
/contractAccount/wallet topic.
Retrieved KuCoin WebSocket endpoint.
/market/match, /contractMarket/execution topic.
/indicator/index topic.
/contract/instrument topic.
/market/candles topic.
/margin/fundingBook topic.
/margin/loan topic.
/margin/loan topic.
/margin/position topic.
/margin/position topic.
/indicator/markPrice topic.
/spotMarket/level2Depth50, /contractMarket/level2Depth5 topic.
/spotMarket/level2Depth50, /contractMarket/level2Depth50 topic.
/spotMarket/tradeOrders, /spotMarket/advancedOrders, /contractMarket/tradeOrders, /contractMarket/advancedOrders topic.
tradeOrders/advancedOrders topic.
/contract/position topic.
/market/snapshot topic.
/market/ticker, /contractMarket/tickerV2, /contractMarket/ticker topic.
/contractMarket/snapshot topic.
- property announcements: Announcements¶
/contract/announcement topic.
- property balance: Balance¶
/account/balance topic.
- property balanceevents: BalanceEvents¶
/contractAccount/wallet topic.
- property endpoint¶
Retrieved KuCoin WebSocket endpoint.
- property execution: Execution¶
/market/match, /contractMarket/execution topic.
- property indexprice: IndexPrice¶
/indicator/index topic.
- async initialize(*aws: Awaitable[ClientResponse]) None ¶
Initialize DataStore from HTTP response data.
対応エンドポイント
GET /api/v1/market/candles (
KuCoinDataStore.kline
)GET /api/v1/positions (
KuCoinDataStore.positions
)
- property instrument: Instrument¶
/contract/instrument topic.
- property kline: Kline¶
/market/candles topic.
- property marginfundingbook: MarginFundingBook¶
/margin/fundingBook topic.
- property marginorderevents: MarginOrderEvents¶
/margin/loan topic.
- property marginorders: MarginOrders¶
/margin/loan topic.
アクティブオーダーのみデータが格納されます。 キャンセル、約定済みなどは削除されます。
- property marginpositionevents: MarginPositionEvents¶
/margin/position topic.
- property marginpositions: MarginPositions¶
/margin/position topic.
- property markprice: MarkPrice¶
/indicator/markPrice topic.
- property orderbook5: TopKOrderBook¶
/spotMarket/level2Depth50, /contractMarket/level2Depth5 topic.
- property orderbook50: TopKOrderBook¶
/spotMarket/level2Depth50, /contractMarket/level2Depth50 topic.
- property orderevents: OrderEvents¶
/spotMarket/tradeOrders, /spotMarket/advancedOrders, /contractMarket/tradeOrders, /contractMarket/advancedOrders topic.
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/stop-order-event
https://www.kucoin.com/docs/websocket/futures-trading/private-channels/trade-orders
https://www.kucoin.com/docs/websocket/futures-trading/private-channels/stop-order-lifecycle-event
- property orders: Orders¶
tradeOrders/advancedOrders topic.
アクティブオーダーのみデータが格納されます。 キャンセル、約定済みなどは削除されます。
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change
https://www.kucoin.com/docs/websocket/spot-trading/private-channels/stop-order-event
https://www.kucoin.com/docs/websocket/futures-trading/private-channels/trade-orders
https://www.kucoin.com/docs/websocket/futures-trading/private-channels/stop-order-lifecycle-event
- property positions: Positions¶
/contract/position topic.
- property symbolsnapshot: SymbolSnapshot¶
/market/snapshot topic.
- property ticker: Ticker¶
/market/ticker, /contractMarket/tickerV2, /contractMarket/ticker topic.
- property transactionstats: TransactionStats¶
/contractMarket/snapshot topic.