public interface RunningStrategy extends BrokerStatusListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAsk(AskEvent inAsk)
Indicates an
AskEvent has been received. |
void |
onBid(BidEvent inBid)
Indicates a
BidEvent has been received. |
void |
onCallback(Object inData)
Indicates a scheduled callback has been executed.
|
void |
onCancelReject(OrderCancelReject inCancelReject)
Indicates an
OrderCancelReject has been received. |
void |
onDividend(DividendEvent inDividend)
Indicates a
DividendEvent has been received. |
void |
onExecutionReport(ExecutionReport inExecutionReport)
Indicates an
ExecutionReport has been received. |
void |
onMarketstat(MarketstatEvent inStatistics)
Indicates a
MarketstatEvent has been received. |
void |
onOther(Object inEvent)
Indicates an object has been sent that does not fit any of the other callbacks.
|
void |
onReceiveBrokerStatus(BrokerStatus inStatus)
Indicates a
BrokerStatus has been received. |
void |
onStart()
Called when a strategy is started.
|
void |
onStop()
Called when a strategy is about to be stopped.
|
void |
onTrade(TradeEvent inTrade)
Indicates a
TradeEvent has been received. |
receiveBrokerStatusvoid onTrade(TradeEvent inTrade)
TradeEvent has been received.inTrade - a TradeEvent valuevoid onBid(BidEvent inBid)
BidEvent has been received.inBid - a BidEvent valuevoid onAsk(AskEvent inAsk)
AskEvent has been received.inAsk - an AskEvent valuevoid onMarketstat(MarketstatEvent inStatistics)
MarketstatEvent has been received.inStatistics - a MarketstatEvent valuevoid onDividend(DividendEvent inDividend)
DividendEvent has been received.inDividend - a DividendEvent valuevoid onExecutionReport(ExecutionReport inExecutionReport)
ExecutionReport has been received.inExecutionReport - an ExecutionReport valuevoid onCancelReject(OrderCancelReject inCancelReject)
OrderCancelReject has been received.inCancelReject - an OrderCancelReject valuevoid onReceiveBrokerStatus(BrokerStatus inStatus)
BrokerStatus has been received.inStatus - a BrokerStatus valuevoid onOther(Object inEvent)
inEvent - an Object valuevoid onCallback(Object inData)
inData - an Object value passed to the request for callback methodvoid onStart()
void onStop()
Copyright © 2014. All Rights Reserved.