pybotters.CoincheckPrivateDataStore¶
- class pybotters.CoincheckPrivateDataStore¶
DataStoreCollection for Coincheck Private WebSocket API
Methods
__init__()initialize(*aws)Initialize DataStore from HTTP response data.
onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
- property execution: Execution¶
execution-eventschannel.https://coincheck.com/ja/documents/exchange/api#websocket-execution-events
- async initialize(*aws: Awaitable[aiohttp.ClientResponse]) None¶
Initialize DataStore from HTTP response data.
Supported endpoints:
GET /api/exchange/orders/opens(coincheckPrivateDataStore.order)
- property order: Order¶
order-eventschannel.https://coincheck.com/ja/documents/exchange/api#websocket-order-events
Only active orders are stored. Completed and canceled orders are removed from the store.
The fields
pending_amountandpending_market_buy_amountare added to each item to track pending orders.警告
New-order events are not sent from the WebSocket, you should call
Order.feed_response()to insert the response fromPOST /api/exchange/ordersinto the DataStore.