Interface ExecutionPlatform
-
- All Known Implementing Classes:
AbstractExecutionPlatform,BacktestExecutionPlatform
public interface ExecutionPlatform
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExecutionPlatformListener(ExecutionPlatformListener listener)Add the listener of execution platformExecutionResultcancelOrder(int orderId)Cancel the trading orderExecutionResultcancelOrder(Order order)Cancel the trading orderExecutionResultperformOrder(Order order)Execute the trading ordervoidremoveExecutionPlatformListener(ExecutionPlatformListener listener)Remove the listener of execution platform
-
-
-
Method Detail
-
performOrder
ExecutionResult performOrder(Order order)
Execute the trading order- Parameters:
order- Order- Returns:
- result
-
cancelOrder
ExecutionResult cancelOrder(int orderId)
Cancel the trading order- Parameters:
orderId- int- Returns:
- result
-
cancelOrder
ExecutionResult cancelOrder(Order order)
Cancel the trading order- Parameters:
order- instance- Returns:
- result
-
addExecutionPlatformListener
void addExecutionPlatformListener(ExecutionPlatformListener listener)
Add the listener of execution platform- Parameters:
listener- ExecutionPlatformListener
-
removeExecutionPlatformListener
void removeExecutionPlatformListener(ExecutionPlatformListener listener)
Remove the listener of execution platform- Parameters:
listener- ExecutionPlatformListener
-
-