briskapi.connect (your broker)¶
Your broker's live BRiSK feed, decoded by BRiSK's own decoder under Node. It records one trading day after another until closed, keeping (output) and uploading each day as two recordings, its morning and afternoon sessions. Without output, a recording is kept only in your archive, and with uploads off, nowhere. On the command line: brisk live --site sbi or another broker's site (see Recording).
Parameters¶
site str required"sbi", "e-shiten", "matsui", "monex" or "smbcnikko". Uses the session login made, or signs in as it does.
codes list[str] | None optionalSecurities to decode.
history bool optional = FalseKeep every update and trade.
upload bool | None optionalFalse uploads nothing.
upload_market_data bool | None optionalFalse uploads the timing summary but not the market recording.
output str | Path | None optionalKeep each recording here as SOURCE_YYYYMMDD_FROM-TO.
on_day Callable | None optionalCalled with each recording's result.
gateway bool optional = FalseAlso serve the feed to briskapi.Live() on this computer (brisk live does by default).
trace_protocol bool optional = FalsePrint the connection steps, tokens redacted.
profile dict | None optionalUnverified Socket.IO parameters, should the server open with Socket.IO.
timeout float | None optionalSeconds to wait for the initial state (default 120). With no session to join (after the close, on a holiday), the feed waits for the next trading day's however long that is.
Returns¶
A Feed.
briskapi.connect(
*,
site: str,
codes: list[str] | None = None,
history: bool = False,
upload: bool | None = None,
upload_market_data: bool | None = None,
output: str | Path | None = None,
on_day: Callable | None = None,
gateway: bool = False,
trace_protocol: bool = False,
profile: dict | None = None,
timeout: float | None = None,
) -> Feed