pybotters.models.ftx.FTXDataStore

class pybotters.models.ftx.FTXDataStore(auto_cast: bool = False)

FTXのデータストアマネージャー

Methods

__init__([auto_cast])

create(name, *[, keys, data, datastore_class])

get(name, type)

initialize(*aws)

対応エンドポイント

onmessage(msg, ws)

Clientクラスws_connectメソッドの引数send_jsonに渡すハンドラです。

wait()

非同期メソッド。onmessageのイベントがあるまで待機します。

Attributes

fills

markets

orderbook

orders

アクティブオーダーのみ(約定・キャンセル済みは削除される)

positions

ticker

trades

async initialize(*aws: Awaitable[aiohttp.client_reqrep.ClientResponse]) None

対応エンドポイント

  • GET /orders (DataStore: orders)

  • GET /conditional_orders (DataStore: orders)

  • GET /positions (DataStore: positions)

    • fills 受信時に GET /positions の自動フェッチする機能が有効化される。

property orders: Orders

アクティブオーダーのみ(約定・キャンセル済みは削除される)