How Simulated Fills Work
Forecast Rally uses a deterministic, versioned matching engine (`sim-1.0.0`). Identical inputs always produce identical fills, fees, and ledger postings.
1. Execution Mechanics
- Deterministic Acceptance Delay: Every marketable order incurs a disclosed
250 msacceptance delay and matches against the first eligible complete book snapshot at or after that timestamp. - Disclosed Liquidity Haircut: Displayed book depth is reduced by
25%(2,500 bps) before matching to model conservative fill availability. - Per-Account Snapshot Consumption: Repeated orders from the same challenge against the same
bookEventIdsubtract previously consumed depth. - IOC & Marketable Limits Only: No last-price fills, no negative inventory. Unfilled IOC remainder is cancelled with an explicit reason code.
- Integer-Cent Accounting: All notional, fee (100 bps / 1.00%), and cash postings use deterministic integer-cent fixed-point arithmetic.
2. Numerical Receipt Example
A participant requests 100 YES with a 47¢ price cap. After the 250 ms delay and 25% liquidity haircut, 40 contracts are available at 45¢ and 50 at 47¢:
Level 0: 40 YES @ 45¢ = $18.00
Level 1: 50 YES @ 47¢ = $23.50
Filled: 90 contracts @ 46.11¢ weighted avg (Notional: $41.50)
Cancelled IOC: 10 contracts (PARTIAL_IOC_DEPTH_EXHAUSTED)
Simulated Fee: $0.45 • Total Cash Debit: $41.95
Settlement: +$48.05 net if YES ($90.00 payout) • −$41.95 net if NO ($0.00 payout)
