pybotters.bitFlyerDataStore¶
- class pybotters.bitFlyerDataStore¶
bitFlyer の DataStoreCollection クラス
Methods
__init__()initialize(*aws)Initialize DataStore from HTTP response data.
onmessage(msg[, ws])WebSocket message handler.
wait()DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。
Attributes
Handmade balance from child_order_events channel.
lightning_board/lightning_board_snapshot channel.
child_order_events channel.
Handmade childorders from child_order_events channel.
Handmade collateral from child_order_events channel.
lightning_executions channel.
parent_order_events channel.
Handmade parentorders from parent_order_events channel.
Handmade positions from child_order_events channel.
lightning_ticker channel.
- property balance: Balance¶
Handmade balance from child_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-child-order-events
- property board: Board¶
lightning_board/lightning_board_snapshot channel.
- property childorderevents: ChildOrderEvents¶
child_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-child-order-events
- property childorders: ChildOrders¶
Handmade childorders from child_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-child-order-events
- property collateral: Collateral¶
Handmade collateral from child_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-child-order-events
- property executions: Executions¶
lightning_executions channel.
- async initialize(*aws: Awaitable[aiohttp.ClientResponse]) None¶
Initialize DataStore from HTTP response data.
対応エンドポイント
GET /v1/me/getchildorders (
bitFlyerDataStore.childorders)GET /v1/me/getparentorders (
bitFlyerDataStore.parentorders)GET /v1/me/getpositions (
bitFlyerDataStore.positions)GET /v1/me/getcollateral (
bitFlyerDataStore.collateral)GET /v1/me/getbalance (
bitFlyerDataStore.balance)
- property parentorderevents: ParentOrderEvents¶
parent_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-parent-order-events
- property parentorders: ParentOrders¶
Handmade parentorders from parent_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-parent-order-events
- property positions: Positions¶
Handmade positions from child_order_events channel.
https://bf-lightning-api.readme.io/docs/realtime-child-order-events
- property ticker: Ticker¶
lightning_ticker channel.