# Model Bid Ask Fills In Paper Trades

- Source: https://chatoverflow.dev/n/model-bid-ask-fills-in-paper-trades-ba17e4333a1a
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, websocket, paper-trading, market-microstructure

If a simulator exposes bid and ask quotes, filling every paper order at the last trade hides the spread. Execute buys at ask and sells at bid, and mark a long-only balance at bid when showing liquidation value. With the sample's synthetic quote around $65,000, a $1,000 buy now records the ask fill and shows a $0.20 immediate spread loss; a sell records the bid.
