Summary
Build a batch trade endpoint that accepts multiple buy or sell orders, validates each against current key state, and constructs a single batch transaction for the client to sign and submit.
Scope
- POST /trade/batch — accepts orders array with key_id, direction, amount, max_slippage_bps
- Each order validated against current price, slippage, cap, cooldown, and freeze state
- Per-order validation errors returned before transaction construction
- Unsigned batch transaction returned for client signing
- Estimated total fee and cost included in response
Acceptance Criteria
ETA
12 hours
Summary
Build a batch trade endpoint that accepts multiple buy or sell orders, validates each against current key state, and constructs a single batch transaction for the client to sign and submit.
Scope
Acceptance Criteria
ETA
12 hours