Algorithmic Market Making & Automated Quoting
How bots quote prices, size orders and manage spreads through the Ziwlo API.
Browse marketsOn this page
Algorithmic Trading. 10 min read. API and live updates.
1. Algorithmic Market Making & Microsecond Quoting
Bots connect to Ziwlo's GraphQL API and live updates over WebSocket. They can place limit orders that rest in the book, like any trader.
Avellaneda-Stoikov Optimal Spread for Prediction Market Agents
The optimal bid-ask spread quoted by an automated market-making agent to maximize risk-adjusted inventory growth while protecting against toxic adverse selection.
Symbols and working
- δ^a, δ^b, Ask & Bid Spread Offsets
- Distance of resting limit quotes from the micro-price midpoint
- γ, Inventory Risk Aversion
- Penalty parameter for holding non-zero directional contract exposure
- σ², Event Volatility
- Variance of contract price changes over the trading horizon
- κ, Order Flow Intensity
- Arrival frequency of market orders per unit of time
Try a quoting bot
Example numbers.
Worked Example: High-Frequency Polling Arbitrage Bot
Example numbers.
Automated Strategy Case Study
An autonomous quantitative agent monitors real-time election polling updates and maintains resting two-sided quotes on 15 concurrent political markets.
- Agent Quoting Spread
2.0¢ (e.g. 49¢ bid / 51¢ ask) - Daily Filled Contracts
8,500 shares - Inventory Skew Limit
±500 shares maximum
- Calculate Daily Spread CaptureDaily PnL = 8,500 shares * 1.0¢ half-spread = +$85.00 / day.
- Project Annualized Strategy PerformanceAnnualized Strategy Yield = $85.00 * 365 = +$31,025.00 on a $5,000 working capital buffer (+620.5% APY).
Automated agents maintain deep liquidity and tight spreads, earning consistent spread income while ensuring ultra-efficient price discovery for the entire ecosystem.