public abstract class RFSHandler extends java.lang.Object implements TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OVERALL_TIME_OUT |
Constructor and Description |
---|
RFSHandler(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade,
org.slf4j.Logger logger,
RFSConfirmationFactory rfsConfirmationFactory) |
Modifier and Type | Method and Description |
---|---|
com.caplin.generated.motif.fx.trading.rfs.events.server.ClientCloseAckTradeEvent |
createClientCloseAckEvent(java.lang.String tradeId) |
com.caplin.generated.motif.fx.trading.rfs.events.server.ExecuteAckTradeEvent |
createExecuteAckEvent(java.lang.String tradeID) |
com.caplin.generated.motif.fx.trading.rfs.events.server.ExpireTradeEvent |
createExpiredEvent(java.lang.String tradeID) |
com.caplin.generated.motif.fx.trading.rfs.events.server.HoldTradeEvent |
createHeldEvent(java.lang.String tradeID) |
com.caplin.generated.motif.fx.trading.rfs.events.server.PickUpTradeEvent |
createPickUpEvent(java.lang.String tradeID) |
com.caplin.generated.motif.fx.trading.rfs.events.server.PriceUpdateTradeEvent |
createQuoteEvent(java.lang.String tradeID,
long timePriceReceived,
java.lang.String receivedNanotime,
RFSQuote rfsQuote) |
com.caplin.generated.motif.fx.trading.rfs.events.server.PriceUpdateTradeEvent |
createQuoteEvent(java.lang.String tradeID,
long timePriceReceived,
java.lang.String receivedNanotime,
RFSQuote rfsQuote,
int timeout) |
com.caplin.generated.motif.fx.trading.rfs.events.server.SubmitAckTradeEvent |
createSubmitAckEvent(java.util.Map<java.lang.String,java.lang.String> fields) |
com.caplin.generated.motif.fx.trading.rfs.events.server.TradeConfirmationTradeEvent |
createTradeConfirmationEvent(java.lang.String tradeID,
com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
Takes a trapi quotes to create a trade confirmation.
Note: Don't use the original trade to create the trade confirmation to ensure fields are updates correctly. |
com.caplin.generated.motif.fx.trading.rfs.events.server.WithdrawTradeEvent |
createWithdrawEvent(java.lang.String tradeID) |
java.util.Map<java.lang.String,java.lang.String> |
getExtraFieldsFromTrade() |
com.caplin.generated.motif.fx.trading.rfs.RFSTrade |
getTrade() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLegCount, getLegExecutionSides, getQuote, getTradeType, isTwoWay, setupTradeLeg
public static final java.lang.String OVERALL_TIME_OUT
public RFSHandler(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, org.slf4j.Logger logger, RFSConfirmationFactory rfsConfirmationFactory)
public com.caplin.generated.motif.fx.trading.rfs.RFSTrade getTrade()
getTrade
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public java.util.Map<java.lang.String,java.lang.String> getExtraFieldsFromTrade()
getExtraFieldsFromTrade
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.TradeConfirmationTradeEvent createTradeConfirmationEvent(java.lang.String tradeID, com.caplin.ret.trapi.fx.execution.QuoteEvent quote) throws java.lang.Exception
createTradeConfirmationEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
java.lang.Exception
public com.caplin.generated.motif.fx.trading.rfs.events.server.SubmitAckTradeEvent createSubmitAckEvent(java.util.Map<java.lang.String,java.lang.String> fields)
createSubmitAckEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.ClientCloseAckTradeEvent createClientCloseAckEvent(java.lang.String tradeId)
createClientCloseAckEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.PickUpTradeEvent createPickUpEvent(java.lang.String tradeID)
createPickUpEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.WithdrawTradeEvent createWithdrawEvent(java.lang.String tradeID)
createWithdrawEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.ExpireTradeEvent createExpiredEvent(java.lang.String tradeID)
createExpiredEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.PriceUpdateTradeEvent createQuoteEvent(java.lang.String tradeID, long timePriceReceived, java.lang.String receivedNanotime, RFSQuote rfsQuote) throws java.lang.Exception
createQuoteEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
java.lang.Exception
public com.caplin.generated.motif.fx.trading.rfs.events.server.PriceUpdateTradeEvent createQuoteEvent(java.lang.String tradeID, long timePriceReceived, java.lang.String receivedNanotime, RFSQuote rfsQuote, int timeout) throws java.lang.Exception
createQuoteEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
java.lang.Exception
public com.caplin.generated.motif.fx.trading.rfs.events.server.ExecuteAckTradeEvent createExecuteAckEvent(java.lang.String tradeID)
createExecuteAckEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public com.caplin.generated.motif.fx.trading.rfs.events.server.HoldTradeEvent createHeldEvent(java.lang.String tradeID)
createHeldEvent
in interface TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
Copyright © 2019 Caplin Systems.