pybotters.CoincheckDataStore¶
- class pybotters.CoincheckDataStore¶
Coincheck の DataStoreCollection クラス
Methods
__init__()initialize(*aws)Initialize DataStore from HTTP response data.
onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
- async initialize(*aws: Awaitable[aiohttp.ClientResponse]) None¶
Initialize DataStore from HTTP response data.
対応エンドポイント
GET /api/order_books (
CoincheckDataStore.orderbook)GET /api/order_books?version=1.0 (
CoincheckDataStore.orderbook)
- property orderbook: Orderbook¶
orderbook channel.
{"type":"subscribe","channel":"[pair]-orderbook"}{"type":"subscribe","channel":"[pair]-limit-range-orderbook"}(undocumented)
https://coincheck.com/ja/documents/exchange/api#websocket-order-book
- property trades: Trades¶
trades channel.
https://coincheck.com/ja/documents/exchange/api#websocket-trades