your-quantguy/entropy-arb ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python app for two venue perpetual arbitrage on Entropy and one hedge venue, with support for Lighter, Lighter Robinhood chain, and trade.xyz. I want it to watch both order books in real time, record the data into minute by minute CSVs, and show a live terminal dashboard with the books, positions, risk limits, and session PnL.

It should have a record only mode for collecting data first, then a live trading mode that sends taker orders when the premium crosses my configured thresholds. Please include a simple config file for thresholds, sizing, fees, and risk caps, plus a way to load credentials from an env file.

I also want a small analyzer script that reads the recorded CSV data and suggests the premium bands to use in the config. Keep it practical and safe, with clear logs, fresh feed checks, and sensible defaults. If you need current exchange details or API behavior, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab