Reading an Orderbook
The orderbook is the most important data structure in trading. It shows you exactly who wants to buy and sell, and at what prices.
Structure
An orderbook has two sides:
- Bids (left/buy side): Orders from people wanting to buy. Sorted highest price first. The best bid is the highest price anyone will pay.
- Asks (right/sell side): Orders from people wanting to sell. Sorted lowest price first. The best ask is the lowest price anyone will accept.
What It Tells You
- Current price: The midpoint between best bid and best ask
- Spread: The gap between best bid and best ask
- Depth: How many contracts are available at each price level
- Support/resistance: Large resting orders act as barriers to price movement
- Imbalance: If bids are much larger than asks (or vice versa), it suggests directional pressure
Orderbook vs. AMM
Kalshi uses an orderbook model where every trade matches a specific buyer with a specific seller. Polymarket uses an AMM (Automated Market Maker) for most markets, where you trade against a liquidity pool rather than specific counterparties. The CLI normalizes both into a consistent format.
Using the Orderbook for Edge Detection
The orderbook reveals more than just prices. A thin orderbook with a big ask wall at 35 cents might indicate a large seller who needs to exit — potentially creating an opportunity if your thesis says fair value is higher.