Skip to content

Ticker.book

Python

Every price level of a security's books at a time, not only the ten best quote lists: its book changes, replayed from the session's first update, from a broker's recording or live feed (with history=True) of briskapi 1.9 or later. The demo has none. Across days, or as records: book-deltas in Historical.

Parameters

at str | datetime | None optional

A JST time ("09:00:00") or datetime. Default: the latest.

raw bool optional = False

The decoder's own lists (bid_levels …, [price10, quantity, orders]) and source_time_us.

Returns

dict

A dict: code, time, frame, and bids, asks, closing_bids, closing_asks, each best first as {price, quantity, orders}.

API method
briskapi.Ticker(code).book(
    at: str | datetime | None = None,
    raw: bool = False,
) -> dict
Example usage
1
2
3
4
5
import briskapi

briskapi.load("recordings/sbi_20261013_080100-113000")
book = briskapi.Ticker("7203").book(at="08:59:59")
print(len(book["bids"]), book["bids"][:2])
Example responseIllustrative
Illustrative values: this call needs your broker's BRiSK, or your own uploads, to run.
549 [{'price': 3021.0, 'quantity': 1200, 'orders': 3}, {'price': 3020.5, 'quantity': 800, 'orders': 2}]