Interface OrderGateway
- All Known Implementing Classes:
PaperTradingGateway
public interface OrderGateway
Order entry abstraction — the seam between strategy code and the venue.
Strategies talk to this interface only, so the same strategy runs against
PaperTradingGateway in simulation and a broker adapter in
production.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancancel(long orderId) Cancels a working order.status(long orderId) longsubmitLimit(String symbol, Side side, long quantity, double price) Submits a limit order; returns the order id (status may be REJECTED).longsubmitMarket(String symbol, Side side, long quantity) Submits a market order for immediate execution at the touch.
-
Method Details
-
submitLimit
-
submitMarket
-
cancel
boolean cancel(long orderId) Cancels a working order. Returns false if unknown or already terminal. -
status
-
addExecutionListener
-