Overview
Extend the marketplace service to support advanced order types beyond simple market orders, enabling traders to execute sophisticated trading strategies with conditional execution.
Description
Currently the system supports basic market orders. This feature adds support for limit orders, stop-loss orders, and trailing stop orders that execute conditionally based on price thresholds.
Requirements
- Limit orders: Execute only at specified price or better
- Stop-loss orders: Trigger market order when price reaches threshold
- Trailing stop orders: Automatically adjust stop price as market price moves favorably
- Order state machine with proper lifecycle management (pending → triggered → filled/cancelled)
- Real-time price monitoring against active orders
- Background job processing for order execution
- Order modification and cancellation before execution
- Execution history and audit trail
Acceptance Criteria
Overview
Extend the marketplace service to support advanced order types beyond simple market orders, enabling traders to execute sophisticated trading strategies with conditional execution.
Description
Currently the system supports basic market orders. This feature adds support for limit orders, stop-loss orders, and trailing stop orders that execute conditionally based on price thresholds.
Requirements
Acceptance Criteria
/api/marketplace/orderssupports order_type parameter (market, limit, stop_loss, trailing_stop)/api/marketplace/orders/:idreturns complete order state and execution history