コンテンツにスキップ

Ticker.auction

Python

ある時刻の板寄せです。予想約定価格と数量、成行注文、板の合計、成行注文の売買差(買い − 売り)を返します。closing=True を指定すると、引けの板寄せ(引け条件付き注文)になります。

パラメーター

at str | datetime | None 任意

JST の時刻。既定は最新。

closing bool 任意 = False

セッションの板寄せではなく、引けの板寄せ。

戻り値

dict

板寄せの状態の dict。

API メソッド
briskapi.Ticker(code).auction(
    at: str | datetime | None = None,
    closing: bool = False,
) -> dict
使用例
1
2
3
4
5
6
import briskapi

briskapi.load("recordings/demo")   # or briskapi.connect() for live
auction = briskapi.Ticker("7203").auction(at="09:00:00")
for key, value in auction.items():
    print(f"{key}: {value}")
レスポンス例デモで実行した結果
code: 7203
time: 2021-09-27 08:59:59.993551+09:00
indicative_price: 10150.0
indicative_volume: 304700
indicative_imbalance_side: 1
indicative_open_price: 10150.0
market_buy_quantity: 201300
market_sell_quantity: 105700
bid_total_quantity: 1017700
ask_total_quantity: 932700
market_order_imbalance: 95600