|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.emarket.trade.service.MatchingEngineServiceImpl
public class MatchingEngineServiceImpl
Constructor Summary | |
---|---|
MatchingEngineServiceImpl()
|
Method Summary | |
---|---|
void |
execute(Order order)
check whether the order is already registered in receievedOrders table? register the order received obtain the lock for the order book for the symbol if it is LIMIT order, update the order book load the order book for the symbol send a quote if there is a change in quote check whether any match is found in the book. if a match is found update then create an order match record the match update order book send a quote, if changed release the lock on order book for the symbol |
void |
setQuoteManagerService(IQuoteManagerService svc)
|
void |
setTradingService(net.sf.emarket.trade.service.ITradingService svc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchingEngineServiceImpl()
Method Detail |
---|
public void setTradingService(net.sf.emarket.trade.service.ITradingService svc)
public void setQuoteManagerService(IQuoteManagerService svc)
public void execute(Order order)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |