bourse.core.OrderBook.save_json_snapshot(path: str, pretty: bool = False)

Save a snapshot of the order book state to JSON

Parameters:
path: str

Path to write the JSON snapshot to.

pretty: bool = False

If True the JSON output will be pretty-print formatted, default value is False