public class Strategy extends AbstractRunningStrategy
RunningStrategy implementation for Ruby strategies to extend.| Constructor and Description |
|---|
Strategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel_all_data_requests()
Cancels all data requests for this
Strategy. |
int |
cancel_all_orders()
Submits cancel requests for all
OrderSingle open orders owned by the strategy's owner. |
void |
cancel_data_flow(DataFlowID inDataFlowID)
Cancels a data flow identified by the supplied data flow ID.
|
void |
cancel_data_request(int inRequestID)
Cancels a given data request.
|
OrderCancel |
cancel_order(OrderID inOrderID,
boolean inSendOrder)
Submits a request to cancel the
OrderSingle with the given OrderID. |
OrderReplace |
cancel_replace(OrderID inOrderID,
OrderSingle inNewOrder,
boolean inSendOrder)
Submits a cancel-replace order for the given
OrderID with
the given Order. |
DataFlowID |
create_data_flow(boolean inAppendDataSink,
DataRequest[] inRequests)
Initiates a data flow request.
|
void |
debug(String inMessage)
Emits the given debug message to the strategy log output.
|
void |
error(String inMessage)
Emits the given error message to the strategy log output.
|
Map<PositionKey<Currency>,BigDecimal> |
get_all_currency_positions_as_of(Date inDate)
Gets all open
Currency positions at the given point in time. |
Map<PositionKey<Future>,BigDecimal> |
get_all_future_positions_as_of(Date inDate)
Gets all open
Future positions at the given point in time. |
Map<PositionKey<Option>,BigDecimal> |
get_all_option_positions_as_of(Date inDate)
Gets all open
Option positions at the given point in time. |
Map<PositionKey<Equity>,BigDecimal> |
get_all_positions_as_of(Date inDate)
Gets all open
Equity positions at the given point in time. |
BrokerStatus[] |
get_brokers()
Returns the list of brokers known to the system.
|
BigDecimal |
get_currency_position_as_of(Date inDate,
String inUnderlyingSymbol)
Gets the position in the given
Currency at the given point in time. |
Deque<ReportBase> |
get_execution_reports(OrderID inOrderID)
Gets the
ReportBase values representing the order history of the given OrderID. |
BigDecimal |
get_future_position_as_of(Date inDate,
String inUnderlyingSymbol,
FutureExpirationMonth inExpirationMonth,
int inExpirationYear)
Gets the position in the given
Future at the given point in time. |
Set<OrderID> |
get_open_order_ids()
Returns the list of
OrderID values for open orders created in this
session in the order they were submitted. |
Collection<ExecutionReport> |
get_open_orders()
Gets the collection of open orders represented by the most recent
ExecutionReport. |
BigDecimal |
get_option_position_as_of(Date inDate,
String inOptionRoot,
String inExpiry,
BigDecimal inStrikePrice,
OptionType inType)
Gets the position in the given
Option at the given point in time. |
Map<PositionKey<Option>,BigDecimal> |
get_option_positions_as_of(Date inDate,
String[] inOptionRoots)
Gets open positions for the options specified by the given option roots at the given point in time.
|
Collection<String> |
get_option_roots(String inUnderlying)
Gets the set of of known option roots for the given underlying symbol.
|
OrderStatus |
get_order_status(OrderID inOrderID)
Gets the
OrderStatus for the given OrderID. |
String |
get_parameter(String inName)
Gets the parameter associated with the given name.
|
BigDecimal |
get_position_as_of(Date inDate,
String inSymbol)
Gets the position in the given
Equity at the given point in time. |
String |
get_property(String inName)
Gets the property associated with the given name.
|
Set<OrderID> |
get_submitted_order_ids()
Returns the list of open order IDs created during this session in the order they
were submitted.
|
String |
get_underlying(String inOptionRoot)
Gets the underlying symbol for the given option root, if available.
|
ModuleURN |
get_urn()
Gets the
ModuleURN of this strategy. |
Properties |
get_user_data()
Gets the user data associated with the current user.
|
void |
info(String inMessage)
Emits the given info message to the strategy log output.
|
void |
notify_high(String inSubject,
String inBody)
Creates and issues a
Notification at high priority. |
void |
notify_low(String inSubject,
String inBody)
Creates and issues a
Notification at low priority. |
void |
notify_medium(String inSubject,
String inBody)
Creates and issues a
Notification at medium priority. |
protected void |
on_ask(AskEvent inAsk)
Invoked when the
Strategy receives an AskEvent. |
protected void |
on_bid(BidEvent inBid)
Invoked when the
Strategy receives a BidEvent. |
protected void |
on_callback(Object inData)
Invoked when the
Strategy receives a callback requested via request_callback_at(Date, Object)
or request_callback_after(long, Object). |
protected void |
on_cancel_reject(OrderCancelReject inCancelReject)
Invoked when the
Strategy receives an OrderCancelReject. |
protected void |
on_dividend(DividendEvent inStatistics)
Invoked when the
Strategy receives a DividendEvent. |
protected void |
on_execution_report(ExecutionReport inExecutionReport)
Invoked when the
Strategy receives an ExecutionReport. |
protected void |
on_marketstat(MarketstatEvent inStatistics)
Invoked when the
Strategy receives a MarketstatEvent. |
protected void |
on_other(Object inEvent)
Invoked when the
Strategy receives an object that does not fit any of the other categories. |
protected void |
on_receive_status(BrokerStatus inStatus)
Invoked when the
Strategy receives a BrokerStatus. |
protected void |
on_start()
Called when a strategy is started.
|
protected void |
on_stop()
Called when a strategy is about to be stopped.
|
protected void |
on_trade(TradeEvent inTrade)
Invoked when the
Strategy receives a TradeEvent. |
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 inCancel)
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. |
void |
request_callback_after(long inDelay,
Object inData)
Requests a callback after a specified delay in milliseconds.
|
void |
request_callback_at(Date inDate,
Object inData)
Requests a callback at a specific point in time.
|
void |
request_callback_every(long inDelay,
long inPeriod,
Object inData)
Requests a callback periodically after a specified period in milliseconds.
|
int |
request_cep_data(String[] inStatements,
String inSource)
Creates a complex event processor request.
|
int |
request_market_data(MarketDataRequest inRequest)
Creates a market data request.
|
int |
request_market_data(String inRequest)
Creates a market data request.
|
int |
request_processed_market_data(MarketDataRequest inRequest,
String[] inStatements,
String inCepSource)
Requests market data processed by the given complex event processor from the given source.
|
int |
request_processed_market_data(String inRequest,
String[] inStatements,
String inCepSource)
Requests market data processed by the given complex event processor from the given source.
|
void |
send_event_to_cep(Event inEvent,
String inProvider)
Sends the given event to the CEP module indicated by the provider.
|
void |
send_event(Event inEvent)
Sends the given event to the appropriate subscribers.
|
void |
send_message(quickfix.Message inMessage,
BrokerID inBroker)
Sends a
FIX message to all subscribers to which orders are sent. |
boolean |
send(Object inData)
Sends an order to order subscribers.
|
void |
set_property(String inKey,
String inValue)
Sets the given key to the given value in the storage area common to all running strategies.
|
void |
set_user_data(Properties inData)
Sets the user data associated with the current user.
|
void |
suggest_trade(OrderSingle inOrder,
BigDecimal inScore,
String inIdentifier)
Suggests a trade.
|
void |
warn(String inMessage)
Emits the given warn message to the strategy log output.
|
cancelAllDataRequests, cancelAllOrders, cancelDataFlow, cancelDataRequest, cancelOrder, cancelReplace, createDataFlow, getAllCurrencyPositionsAsOf, getAllFuturePositionsAsOf, getAllOptionPositionsAsOf, getAllPositionsAsOf, getBrokers, getCurrencyPositionAsOf, getExecutionReports, getFuturePositionAsOf, getOpenOrderIDs, getOpenOrders, getOptionPositionAsOf, getOptionPositionsAsOf, getOptionRoots, getOrderStatus, getParameter, getPositionAsOf, getProperty, getReportHistoryOriginDate, getSubmittedOrderIDs, getUnderlying, getURN, getUserData, initializeReportHistoryManager, receiveBrokerStatus, requestCallbackAfter, requestCallbackAt, requestCallbackEvery, requestCEPData, requestMarketData, requestMarketData, requestProcessedMarketData, requestProcessedMarketData, sendEvent, sendEventToCEP, sendMessage, sendNotification, setProperty, setUserData, suggestTrade, toStringpublic final void onAsk(AskEvent inAsk)
RunningStrategyAskEvent has been received.inAsk - an AskEvent valuepublic final void onBid(BidEvent inBid)
RunningStrategyBidEvent has been received.inBid - a BidEvent valuepublic void onMarketstat(MarketstatEvent inStatistics)
RunningStrategyMarketstatEvent has been received.inStatistics - a MarketstatEvent valuepublic void onDividend(DividendEvent inDividend)
RunningStrategyDividendEvent has been received.inDividend - a DividendEvent valuepublic final void onCallback(Object inData)
RunningStrategyinData - an Object value passed to the request for callback methodpublic final void onExecutionReport(ExecutionReport inExecutionReport)
RunningStrategyExecutionReport has been received.inExecutionReport - an ExecutionReport valuepublic final void onCancelReject(OrderCancelReject inCancel)
RunningStrategyOrderCancelReject has been received.inCancel - an OrderCancelReject valuepublic void onReceiveBrokerStatus(BrokerStatus inStatus)
RunningStrategyBrokerStatus has been received.inStatus - a BrokerStatus valuepublic final void onTrade(TradeEvent inTrade)
RunningStrategyTradeEvent has been received.inTrade - a TradeEvent valuepublic final void onOther(Object inEvent)
RunningStrategyinEvent - an Object valuepublic final void onStart()
RunningStrategypublic final void onStop()
RunningStrategyprotected void on_ask(AskEvent inAsk)
Strategy receives an AskEvent.inAsk - an AskEvent valueprotected void on_bid(BidEvent inBid)
Strategy receives a BidEvent.inBid - a BidEvent valueprotected void on_marketstat(MarketstatEvent inStatistics)
Strategy receives a MarketstatEvent.inStatistics - a MarketstatEvent valueprotected void on_dividend(DividendEvent inStatistics)
Strategy receives a DividendEvent.inStatistics - a DividendEvent valueprotected void on_execution_report(ExecutionReport inExecutionReport)
Strategy receives an ExecutionReport.inExecutionReport - an ExecutionReport valueprotected void on_cancel_reject(OrderCancelReject inCancelReject)
Strategy receives an OrderCancelReject.inCancelReject - an OrderCancelReject valueprotected void on_receive_status(BrokerStatus inStatus)
Strategy receives a BrokerStatus.inStatus - a BrokerStatus valueprotected void on_trade(TradeEvent inTrade)
Strategy receives a TradeEvent.inTrade - a TradeEvent valueprotected void on_other(Object inEvent)
Strategy receives an object that does not fit any of the other categories.inEvent - an Object valueprotected void on_callback(Object inData)
Strategy receives a callback requested via request_callback_at(Date, Object)
or request_callback_after(long, Object).inData - an Object value which was passed to the request, may be nullprotected void on_start()
protected void on_stop()
public final void set_property(String inKey, String inValue)
inKey - a String valueinValue - a String valuepublic final String get_parameter(String inName)
inName - a String value containing the key of a parameter key/value valueString value or null if no parameter is associated with the given namepublic final String get_property(String inName)
inName - a String value containing the key of a property key/value valueString value or null if no property is associated with the given namepublic final void request_callback_after(long inDelay,
Object inData)
The callback will be executed as close to the specified millisecond
as possible. There is no guarantee that the timing will be exact. If
more than one callback is requested by the same RunningStrategy
for the same millisecond, the requests will be processed serially in
FIFO order. This implies that a long-running callback request may
delay other callbacks from the same RunningStrategy unless the
caller takes steps to mitigate the bottleneck.
inDelay - a long value indicating how many milliseconds
to wait before executing the callback. A value <= 0 will be interpreted
as a request for an immediate callback.inData - an Object value to deliver along with the callback,
may be nullpublic final void request_callback_every(long inDelay,
long inPeriod,
Object inData)
The callback will be executed as close to the specified millisecond
as possible. There is no guarantee that the timing will be exact. If
more than one callback is requested by the same RunningStrategy
for the same millisecond, the requests will be processed serially in
FIFO order. This implies that a long-running callback request may
delay other callbacks from the same RunningStrategy unless the
caller takes steps to mitigate the bottleneck.
inDelay - a long value indicating how many milliseconds
to wait before executing the first callback. A value <= 0 will be interpreted
as a request for an immediate callback.inPeriod - a long value indicating how many milliseconds
to wait before executing the second callback, and thereafter repeatedly
The value must be > 0.inData - an Object value to deliver along with the callback,
may be nullpublic final void request_callback_at(Date inDate, Object inData)
The callback will be executed as close to the specified millisecond
as possible. There is no guarantee that the timing will be exact. If
more than one callback is requested by the same RunningStrategy
for the same millisecond, the requests will be processed serially in
FIFO order. This implies that a long-running callback request may
delay other callbacks from the same RunningStrategy unless the
caller takes steps to mitigate the bottleneck.
inDate - a Date value at which to execute the callback. A date
value earlier than the present will be interpreted as a request for an
immediate callback.inData - an Object value to deliver with the callback or nullpublic final int request_market_data(MarketDataRequest inRequest)
The inRequest object must refer to a started market data provider module.
inRequest - a MarketDataRequest value containing the request to executeint value containing an identifier corresponding to this market data request or 0 if the request failedpublic final int request_market_data(String inRequest)
The inRequest object must refer to a started market data provider module.
inRequest - a String value containing the representation of a MarketDataRequest to executeint value containing an identifier corresponding to this market data request or 0 if the request failedpublic final int request_processed_market_data(MarketDataRequest inRequest, String[] inStatements, String inCepSource)
inRequest - a MarketDataRequest value containing the request to executeinStatements - a String[] value containing the statements to pass to the
complex event processor. The meaning of the statements varies according to the actual
event processor that handles them.inCepSource - a String value containing the name of the complex event processor
to which to send the query requestint value containing the handle of the request or 0 if the request failedpublic final int request_processed_market_data(String inRequest, String[] inStatements, String inCepSource)
inRequest - a String value containing the representation of a MarketDataRequest to executeinStatements - a String[] value containing the statements to pass to the
complex event processor. The meaning of the statements varies according to the actual
event processor that handles them.inCepSource - a String value containing the name of the complex event processor
to which to send the query requestint value containing the handle of the request or 0 if the request failedpublic final void cancel_data_request(int inRequestID)
If the given inRequestID identifier does not correspond to an active data
request, this method does nothing.
inRequestID - an int value identifying the data request to cancelpublic final void cancel_all_data_requests()
public final int request_cep_data(String[] inStatements, String inSource)
inStatements - a String[] value containing an array of statements that comprises the requestinSource - a String value indicating what market data provider from which to request the dataint value containing an identifier corresponding to this market data request or 0 if the request failedpublic final void suggest_trade(OrderSingle inOrder, BigDecimal inScore, String inIdentifier)
inOrder - an OrderSingle value containing the trade to suggestinScore - a BigDecimal value containing the score of this suggestion. this value is determined by the user
but is recommended to fit in the interval [0..1]inIdentifier - a String value containing a user-specified string to identify the suggestionpublic final void send_message(quickfix.Message inMessage,
BrokerID inBroker)
FIX message to all subscribers to which orders are sent.inMessage - a Message valueinBroker - a BrokerID valuepublic final void send_event_to_cep(Event inEvent, String inProvider)
The corresponding CEP module must already exist or the message will not be sent.
inEvent - an Event value containing the event to be sentinProvider - a String value containing the name of a CEP providerpublic final void send_event(Event inEvent)
inEvent - an Event valuepublic final boolean send(Object inData)
OrderSingle objects passed to this method will be added to the list of submitted orders
but other object types will not. In order to track, for example, OrderReplace and OrderCancel
objects, they must have first been created via cancel_replace(OrderID, OrderSingle, boolean) and
cancel_order(OrderID, boolean) respectively.
send in class AbstractRunningStrategyinData - an Object valueboolean value indicating whether the object was successfully transmitted or notpublic final OrderCancel cancel_order(OrderID inOrderID, boolean inSendOrder)
OrderSingle with the given OrderID.
The order must currently be open or this operation will fail. Note that the strategy's concept of
open orders is based on its report history origin date as specified.
inOrderID - an OrderID value containing the ID of the open order to cancelinSendOrder - a boolean value indicating whether the OrderCancel should be submitted or just returned to the caller
If false, it is the caller's responsibility to submit the OrderCancel with send(Object).OrderCancel value containing the cancel order or null if the OrderCancel could not be constructedpublic final OrderReplace cancel_replace(OrderID inOrderID, OrderSingle inNewOrder, boolean inSendOrder)
OrderID with
the given Order.
The order must be open or this call will have no effect.
If inSendOrder is false, it is the caller's responsibility
to submit the OrderReplace.
inOrderID - an OrderID value containing the order to cancelinNewOrder - an OrderSingle value containing the order with which to replace the existing orderinSendOrder - a boolean value indicating whether the OrderReplace should be submitted or just returned to the caller. If false,
it is the caller's responsibility to submit the OrderReplace with send(Object).OrderReplace value containing the new order or null if the old order could not be canceled and the new one could not be sentpublic final int cancel_all_orders()
OrderSingle open orders owned by the strategy's owner.
This method will make a best-effort attempt to cancel all orders. If an attempt to cancel one order fails, that order will be skipped and the others will still be attempted in their turn.
int value containing the number of orders for which cancels were submittedpublic final OrderStatus get_order_status(OrderID inOrderID)
OrderStatus for the given OrderID.
The given OrderID may be any part of the order chain. For example, if an order is replaced,
either the original OrderID or the current OrderID will return the same value,
although only the current OrderID is open.
inOrderID - an OrderID value or null if the given order cannot be foundOrderStatus valuepublic final Collection<ExecutionReport> get_open_orders()
ExecutionReport.Collection<ExecutionReport> valuepublic final Set<OrderID> get_submitted_order_ids()
Returns all order IDs regardless of their state.
Set<OrderID> valuepublic final Set<OrderID> get_open_order_ids()
OrderID values for open orders created in this
session in the order they were submitted.
Returns IDs of open orders only. Orders that were canceled, replaced, filled, or
otherwise are no longer open will not be returned. For orders submitted
via AbstractRunningStrategy.cancelReplace(OrderID, OrderSingle, boolean),
the ID of the OrderReplace value sent to the broker is returned, not the
OrderSingle value used to create the OrderReplace.
Set<OrderID> valuepublic final DataFlowID create_data_flow(boolean inAppendDataSink, DataRequest[] inRequests)
inAppendDataSink - a boolean value indicating if the sink module should be appended to the
data pipeline, if it's not already requested as the last module and the last module is capable of emitting data.inRequests - a DataRequest[] value containing the ordered list of requests. Each instance
identifies a stage of the data pipeline. The data from the first stage is piped to the next.DataFlowID value containing a unique ID identifying the data flow. The ID can be used to cancel
the data flow request and get more details on it. Returns null if the request could not be created.public final void cancel_data_flow(DataFlowID inDataFlowID)
inDataFlowID - a DataFlowID value containing the request handle that was returned from
a prior call to create_data_flow(boolean, DataRequest[])public final Deque<ReportBase> get_execution_reports(OrderID inOrderID)
ReportBase values representing the order history of the given OrderID.
The ReportBase objects returned by this call represent the history of the order represented
by the given OrderID. if there is no order history for the given OrderID, this operation
will return an empty collection.
The values returned by this operation are sorted from newest to oldest: the order's current status is represented by the first element in the collection.
The collection returned by this operation will be updated as the underlying report history changes. The collection itself may not be modified.
The contents of the returned collection are limited by the value returned by AbstractRunningStrategy.getReportHistoryOriginDate(). The
default value is all reports. No reports with a sending time before the origin date will be returned.
inOrderID - an OrderID value corresponding to an existing order, either open or closedDeque<ReportBase> value containing the ReportBase objectspublic final void notify_low(String inSubject, String inBody)
Notification at low priority.inSubject - a String valueinBody - a String valuepublic final void notify_medium(String inSubject, String inBody)
Notification at medium priority.inSubject - a String valueinBody - a String valuepublic final void notify_high(String inSubject, String inBody)
Notification at high priority.inSubject - a String valueinBody - a String valuepublic final void debug(String inMessage)
debug in class AbstractRunningStrategyinMessage - a String valuepublic final void info(String inMessage)
info in class AbstractRunningStrategyinMessage - a String valuepublic final void warn(String inMessage)
warn in class AbstractRunningStrategyinMessage - a String valuepublic final void error(String inMessage)
error in class AbstractRunningStrategyinMessage - a String valuepublic final BrokerStatus[] get_brokers()
These values can be used to create and send orders with send_message(Message, BrokerID)
or send(Object).
BrokerStatus[] valuepublic final BigDecimal get_position_as_of(Date inDate, String inSymbol)
Equity at the given point in time.
Note that this method will not retrieve Option positions. To retrieve
Option positions, use get_option_position_as_of(Date, String, String, BigDecimal, OptionType).
inDate - a Date value indicating the point in time for which to searchinSymbol - a String value containing the Equity symbolBigDecimal value or null if no position could be foundpublic final Map<PositionKey<Equity>,BigDecimal> get_all_positions_as_of(Date inDate)
Equity positions at the given point in time.inDate - a Date value indicating the point in time for which to searchMap<PositionKey<Equity>,BigDecimal> valuepublic final BigDecimal get_option_position_as_of(Date inDate, String inOptionRoot, String inExpiry, BigDecimal inStrikePrice, OptionType inType)
Option at the given point in time.inDate - a Date value indicating the point in time for which to searchinOptionRoot - a String valueinExpiry - a String valueinStrikePrice - a BigDecimal valueinType - an OptionType valueBigDecimal value or null if no position could be foundpublic final Map<PositionKey<Option>,BigDecimal> get_all_option_positions_as_of(Date inDate)
Option positions at the given point in time.inDate - a Date value indicating the point in time for which to searchMap<PositionKey<Option>,BigDecimal> valuepublic final Map<PositionKey<Option>,BigDecimal> get_option_positions_as_of(Date inDate, String[] inOptionRoots)
inDate - a Date value indicating the point in time for which to searchinOptionRoots - a String[] value containing the specific option roots for which to searchMap<PositionKey<Option>,BigDecimal> valuepublic final String get_underlying(String inOptionRoot)
inOptionRoot - a String value containing an option rootString value containing the symbol for the underlying instrument or null if
no underlying instrument could be foundpublic final Collection<String> get_option_roots(String inUnderlying)
inUnderlying - a String value containing the symbol of an underlying instrumentCollection<String> value sorted lexicographically by option root or null
if no option roots could be foundpublic final Map<PositionKey<Future>,BigDecimal> get_all_future_positions_as_of(Date inDate)
Future positions at the given point in time.inDate - a Date value indicating the point in time for which to searchMap<PositionKey<Option>,BigDecimal> valuepublic final BigDecimal get_future_position_as_of(Date inDate, String inUnderlyingSymbol, FutureExpirationMonth inExpirationMonth, int inExpirationYear)
Future at the given point in time.
Note that this method will not retrieve Option or Equity positions. To retrieve
Option positions, use AbstractRunningStrategy.getOptionPositionAsOf(Date, String, String, BigDecimal, OptionType).
To retrieve
Equity positions, use AbstractRunningStrategy.getPositionAsOf(Date, String).
inDate - a Date value indicating the point in time for which to searchinUnderlyingSymbol - a String value containing the underlying Future symbolinExpirationMonth - a FutureExpirationMonth valueinExpirationYear - an int valueBigDecimal value or null if no position could be foundpublic final Map<PositionKey<Currency>,BigDecimal> get_all_currency_positions_as_of(Date inDate)
Currency positions at the given point in time.inDate - a Date value indicating the point in time for which to searchMap<PositionKey<Currency>,BigDecimal> valuepublic final BigDecimal get_currency_position_as_of(Date inDate, String inUnderlyingSymbol)
Currency at the given point in time.inDate - a Date value indicating the point in time for which to searchinUnderlyingSymbol - a String value containing the underlying Currency symbolBigDecimal value or null if no position could be foundpublic final ModuleURN get_urn()
ModuleURN of this strategy.ModuleURN valuepublic final Properties get_user_data()
Properties valuepublic final void set_user_data(Properties inData)
inData - a Properties valueCopyright © 2014. All Rights Reserved.