Package com.caplin.trading
Interface InvalidFieldsEvent
public interface InvalidFieldsEvent
An event raised when one or more of the fields sent in a client event are invalid.
For more about how such an error can arise, see
TradeListener.receiveInvalidFieldsEvent(InvalidFieldsEvent)
.-
Method Summary
Modifier and TypeMethodDescriptionGets the fields in the client event that were invalid.Gets the error message relating to the invalid fields event.Gets the state that theTrade
was in when the event with invalid fields was received.getTrade()
Gets theTrade
object to which thisInvalidFieldsEvent
relates.Gets theTradeEvent
that was invalid.
-
Method Details
-
getTrade
Trade getTrade()Gets theTrade
object to which thisInvalidFieldsEvent
relates. As long as your code executes on the thread in whichTradeListener.receiveInvalidFieldsEvent(InvalidFieldsEvent)
was called, theTrade
's fields will not be updated by subsequent events, though its state may change.- Returns:
- The
Trade
object.
-
getTradeEvent
TradeEvent getTradeEvent()Gets theTradeEvent
that was invalid.- Returns:
- The
TradeEvent
.
-
getStateName
String getStateName()Gets the state that theTrade
was in when the event with invalid fields was received.- Returns:
- The name of the
Trade
state.
-
getInvalidFields
LinkedHashSet<String> getInvalidFields()Gets the fields in the client event that were invalid.- Returns:
- The invalid fields.
-
getMessage
String getMessage()Gets the error message relating to the invalid fields event.- Returns:
- The error message.
-