Skip to content

briskapi.load

Python

Make a recording (a folder, or a Recording) or a live Feed the default source for Ticker and Market.

Parameters

source str | Path | Recording | Feed required

What to read.

Returns

Recording | Feed

The source.

API method
briskapi.load(
    source: str | Path | Recording | Feed,
) -> Recording | Feed
Example usage
1
2
3
4
import briskapi

briskapi.load("recordings/demo")   # or briskapi.connect() for live
print(briskapi.Market().summary()["trading_date"])
Example responseCaptured from the demo
20210927