CrossTradingStatusMessage
Package: velox.api.layer1.messages
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.messages.CrossTradingStatusMessage
All Implemented Interfaces: Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromGui, Layer1ApiIgnorableUpwardMessage
Descriptionโ
Received by add-ons and providers when cross-trading starts/stops through Layer1ApiAdminListener.onUserMessage(Object) for add-ons and through Layer1ApiAdminProvider.sendUserMessage(Object) for providers.
Note that if the target instrument is not subscribed, isDepthFull in InstrumentInfo of target instrument will be false regardless of it's value in the actual InstrumentInfo.
Fieldsโ
hostAliasโ
public final String hostAlias
The instrument from which cross-trading happens (from which user send orders)
targetAliasโ
public final String targetAlias
The instrument on which cross-trading happens (on which orders are executed)
Note: providers should receive this alias without provider type (i.e. if full target alias is "M6BH3.CME@RITHMIC" the provider should receive "M6BH3.CME")
statusโ
public final CrossTradingStatus status
targetInstrumentInfoโ
public final InstrumentInfo targetInstrumentInfo
Constructorsโ
CrossTradingStatusMessageโ
public CrossTradingStatusMessage(String hostAlias, String targetAlias, CrossTradingStatus status, InstrumentInfo targetInstrumentInfo)
Parameters:
hostAlias- The instrument from which cross-trading happens (from which user send orders)targetAlias- The instrument on which cross-trading happens (on which orders are executed)status- Current cross-trading statustargetInstrumentInfo- The Info of the target instrument
See Also:
CrossTradingStatus
CrossTradingStatusMessageโ
public CrossTradingStatusMessage(String hostAlias, String targetAlias, CrossTradingStatus status)
CrossTradingStatusMessageโ
public CrossTradingStatusMessage(CrossTradingStatusMessage event)
Methodsโ
cloneโ
public Object clone()
Overrides: clone in class Object
toStringโ
public String toString()
Overrides: toString in class Object