Settings

Theme

Show HN: Trade simulation engine with realistic bid/ask fills

parsepect.com

2 points by vain 2 months ago · 1 comment · 1 min read

Reader

I've been tinkering as a solo quant dev and built a trade simulation engine that uses real bid/ask data with 5-second candles to model executions more realistically than most backtesting frameworks I've tried.

After experimenting with the most popular backtesting libraries, I wanted something that handled 5-second (the lowest interval data I have access to) and bid/ask fill behavior better. So I ended up building my own prediction and simulation stack - Python, Pandas, SQLite, DuckDB, Torch, etc.

The simulated fills line up closely with empirical results from actual trades (the sim is deliberately a bit pessimistic), so I'm feeling confident in its accuracy so far. The live trader itself is another python codebase :)

I've just wrapped it in a small web frontend. It's running on my home machine, so performance might be rough. I'd love to hear what you think!

vainOP 2 months ago

Forgot to mention - feel free to use fake emails to register. There's no verification.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection