AlgoQuant, an integrated trading strategy research and backtesting system
com.numericalmethod.algoquant.execution.component.simulator.market

## Interface SimMarket

• All Known Implementing Classes:
SimpleSimMarket

public interface SimMarket
Defines the operations supported by a simulated market.
• ### Method Summary

All Methods
Modifier and Type Method and Description
void acceptOrder(Order order, MarketOperator operator)
Accepts order for this market.
boolean cancelOrder(Order order, MarketOperator operator)
Cancels the order, such that if it has not been executed, it will not get executed in the future.
Product product()
Gets the product traded in this market.
void updatePrice(org.joda.time.DateTime time, Depth depth, MarketOperator operator)
Updates the depth for this market.
• ### Method Detail

• #### product

Product product()
Gets the product traded in this market.
Returns:
• #### updatePrice

void updatePrice(org.joda.time.DateTime time,
Depth depth,
MarketOperator operator)
Updates the depth for this market.
Parameters:
time - the current time
depth - the current depth
operator - the operator for sending out price update or execution messages
• #### acceptOrder

void acceptOrder(Order order,
MarketOperator operator)
Accepts order for this market.
Parameters:
order - a received order
operator - the operator for sending out execution messages
• #### cancelOrder

boolean cancelOrder(Order order,
MarketOperator operator)
Cancels the order, such that if it has not been executed, it will not get executed in the future.
Parameters:
order - the order to cancel
operator - the operator for sending out confirmation messages
Returns:
true if the order had not yet been executed