net.sf.emarket.trade.service
Interface IOrderExecutorService
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- OrderExecutorServiceImpl
public interface IOrderExecutorService
- extends java.io.Serializable
IOrderExecutorService is used by other modules to send orders to the Trading Engine.
The only method that accepts orders is execute()
.
In future we may add other methods, that provides state of the trading engine and ability to control the trading engine.
- Author:
- snambi
execute
void execute(Order order)
execute()
method accepts an order, and processes the asynchronously.
This method is the marker line between order management system and trade processing system (trading engine).
The trading engine runs completely using background threads.
- Parameters:
order
-
getMarketDepth
MarketDepth getMarketDepth(java.lang.String symbol)
Copyright © 2009. All Rights Reserved.