PyIBQuant documentation¶
Start with the quick start. It runs without an IBKR account, then shows how to replace synthetic bars with a small historical download. If you want real daily prices without TWS, use the Yahoo Finance guide for installation, charts and Python examples.
These docs describe the implemented 0.1.0.dev1 snapshot, not planned features.
| I want to… | Read |
|---|---|
| Install and run my first example | Quick start |
| Download real daily prices without TWS | Yahoo Finance data |
| Look up market data, bars, datasets, quotes or caching | Core API reference |
| Backtest built-in or custom strategies | Backtesting guide |
| Validate a strategy step by step, through a paper run | Strategy validation checklist |
| Calculate signals, run studies or simulate a strategy | Research and simulation API |
| Inspect a paper account or understand runner/order arguments | Paper trading API |
| Try features one at a time and diagnose failures | Manual testing guide |
| Understand advanced funding, recovery and execution workflows | Operational workflows |
| Find complete command-line programs | Examples directory |
How the pieces fit¶
Market (connected) ──bars()──> BarSeries (mutable, optionally live)
│
BarDataset.from_series()
│
v
BarDataset (frozen, offline)
│
save/load, audit, research, backtest
Market.datasets() ──> BarDatasetCollection ──align()──> AlignedData
Market.quote() / stream_quote() ──> Quote (separate from historical bars)
PaperBroker ──> account snapshots, durable journal, experimental paper orders
A bar contains open, high, low, close and volume (OHLCV) for one interval.
A series can change as callbacks arrive. A dataset freezes rows and their
provenance (source, contract, request and download metadata) for reuse.
A collection gives datasets your own labels, such as apple or benchmark.
A quote contains independently received bid/ask/last fields; it is not a bar.
Examples marked offline need only Python and this package. IBKR data examples need the official SDK and logged-in TWS/Gateway. Paper execution examples can send orders when explicitly enabled. Documentation work and offline tests do not require running any broker integration checks.
In signatures, * means following arguments must be passed by name. None means
an absent value, not zero. Paths are relative to your current working directory
unless stated otherwise. Commands assume the repository root and an activated
virtual environment. Generated examples use the Git-ignored charts/ directory.