mirror of
https://github.com/cjudice-commits/prediction-market-arb.git
synced 2026-07-27 21:47:46 +00:00
a65256ca74
New arb/prepare.py + GET /api/prepare: for one monthly arb pair it re-pulls fresh quotes (incl. real Kalshi top-of-book ask size) and builds the exact order pair a cross-venue hedge would need -- sides from best_side, size capped to the thinner book, limit = ask + slippage buffer, capital required, guaranteed worst-case, and warnings. Places NO orders and touches no order endpoints anywhere. UI: a "Prepare trade" button in the monthly drawer's breakdown card opens a PREVIEW-ONLY ticket modal (max-size + slippage-cent inputs that re-price live; a deliberately disabled Confirm button as the Step-2 placeholder). Also reorders the expanded drawer so the breakdown/Prepare card is the wide left column. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>