Skip to content

API reference

Generated from the docstrings. The public API is what these pages list: every name is importable from the package shown on its page (microbook, microbook.sim, microbook.stylized, microbook.replay or microbook.rl).

Page Contents
Order book LimitOrderBook, Order, enums, Fill, ExecutionReport
Simulator MarketSimulator, SimResult, Strategy, Action, events
Strategies the market makers and TWAPExecutor
Market and agents MarketConfig, build_market, the background agents, Hawkes and open-loop flow
Analytics Portfolio, ExecutionMetrics, markouts, PnL and inventory statistics
Stylized facts return and order-flow statistics, square-root impact
Historical replay LOBSTER I/O, reconstruction check, replay backtests
Reinforcement learning the Gymnasium market-making environment