Skip to content

Ticker.history

Python

Every update of a security, oldest first. Reads the loaded recording (exactly its span) or the live feed (with history=True: every update since it connected); never the network. For more than one day, use Historical.

Parameters

start str | datetime | None optional

From this JST time.

end str | datetime | None optional

Until this JST time.

raw bool optional = False

BRiSK's own fields.

Returns

Table

A Table (a list of dicts with .to_pandas()).

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

briskapi.load("recordings/demo")   # or briskapi.connect() for live
updates = briskapi.Ticker("7203").history(start="09:00:00", end="09:00:01").to_pandas()
print(updates[["time", "last_price", "volume", "bid_price", "ask_price"]].head())
Example responseCaptured from the demo
                              time  last_price  volume  bid_price  ask_price
0 2021-09-27 09:00:00.008850+09:00         NaN       0    10150.0    10155.0
1 2021-09-27 09:00:00.019149+09:00         NaN       0    10155.0    10160.0
2 2021-09-27 09:00:00.072765+09:00     10155.0  305500    10155.0    10160.0
3 2021-09-27 09:00:00.213898+09:00     10155.0  305500    10155.0    10160.0
4 2021-09-27 09:00:00.269884+09:00     10155.0  305500    10155.0    10160.0