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

announcements

/contract/announcement topic.

balance

/account/balance topic.

balanceevents

/contractAccount/wallet topic.

endpoint

Retrieved KuCoin WebSocket endpoint.

execution

/market/match, /contractMarket/execution topic.

indexprice

/indicator/index topic.

instrument

/contract/instrument topic.

kline

/market/candles topic.

marginfundingbook

/margin/fundingBook topic.

marginorderevents

/margin/loan topic.

marginorders

/margin/loan topic.

marginpositionevents

/margin/position topic.

marginpositions

/margin/position topic.

markprice

/indicator/markPrice topic.

orderbook5

/spotMarket/level2Depth50, /contractMarket/level2Depth5 topic.

orderbook50

/spotMarket/level2Depth50, /contractMarket/level2Depth50 topic.

orderevents

/spotMarket/tradeOrders, /spotMarket/advancedOrders, /contractMarket/tradeOrders, /contractMarket/advancedOrders topic.

orders

tradeOrders/advancedOrders topic.

positions

/contract/position topic.

symbolsnapshot

/market/snapshot topic.

ticker

/market/ticker, /contractMarket/tickerV2, /contractMarket/ticker topic.

transactionstats

/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.

対応エンドポイント

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.

property orders: Orders

tradeOrders/advancedOrders topic.

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

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.