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 theTradewas in when the event with invalid fields was received.getTrade()Gets theTradeobject to which thisInvalidFieldsEventrelates.Gets theTradeEventthat was invalid.
-
Method Details
-
getTrade
Trade getTrade()Gets theTradeobject to which thisInvalidFieldsEventrelates. 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
Tradeobject.
-
getTradeEvent
TradeEvent getTradeEvent()Gets theTradeEventthat was invalid.- Returns:
- The
TradeEvent.
-
getStateName
String getStateName()Gets the state that theTradewas in when the event with invalid fields was received.- Returns:
- The name of the
Tradestate.
-
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.
-