org.marketcetera.strategy
Interface RunningStrategy

All Known Implementing Classes:
AbstractRunningStrategy, Strategy, Strategy

public interface RunningStrategy

An interface to a running strategy that facilitates communication to the strategy.

Since:
1.0.0
Version:
$Id: RunningStrategy.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Method Summary
 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 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.
 

Method Detail

onTrade

void onTrade(TradeEvent inTrade)
Indicates a TradeEvent has been received.

Parameters:
inTrade - a TradeEvent value

onBid

void onBid(BidEvent inBid)
Indicates a BidEvent has been received.

Parameters:
inBid - a BidEvent value

onAsk

void onAsk(AskEvent inAsk)
Indicates an AskEvent has been received.

Parameters:
inAsk - an AskEvent value

onMarketstat

void onMarketstat(MarketstatEvent inStatistics)
Indicates a MarketstatEvent has been received.

Parameters:
inStatistics - a MarketstatEvent value

onDividend

void onDividend(DividendEvent inDividend)
Indicates a DividendEvent has been received.

Parameters:
inDividend - a DividendEvent value

onExecutionReport

void onExecutionReport(ExecutionReport inExecutionReport)
Indicates an ExecutionReport has been received.

Parameters:
inExecutionReport - an ExecutionReport value

onCancelReject

void onCancelReject(OrderCancelReject inCancelReject)
Indicates an OrderCancelReject has been received.

Parameters:
inCancelReject - an OrderCancelReject value

onOther

void onOther(Object inEvent)
Indicates an object has been sent that does not fit any of the other callbacks.

Parameters:
inEvent - an Object value

onCallback

void onCallback(Object inData)
Indicates a scheduled callback has been executed.

Parameters:
inData - an Object value passed to the request for callback method

onStart

void onStart()
Called when a strategy is started.


onStop

void onStop()
Called when a strategy is about to be stopped.



Copyright © 2012. All Rights Reserved.