- channelClosed(TradeChannel) - Method in interface com.caplin.trading.TradingApplicationListener
-
Called when a channel is closed as a result of the user finishing its trading session or the connection
being lost to the Liberator.
- channelCreated(TradeChannel) - Method in interface com.caplin.trading.TradingApplicationListener
-
Called when a client wants to open a trading channel that will subsequently be used to perform
trades.
- close() - Method in interface com.caplin.trading.BlotterChannel
-
Deprecated.
Closes this BlotterChannel
.
- com.caplin.trading - package com.caplin.trading
-
The Caplin Trading Integration API provides Java classes and interfaces that
allow you to create Trading Adapters.
- createAddLegAction() - Method in interface com.caplin.trading.Leg
-
Creates an action that represents the addition of a leg to a trade.
- createBlotterMessage() - Method in interface com.caplin.trading.BlotterChannel
-
Deprecated.
Creates a blotter message that will be sent to the user on this channel.
- createErrorEvent(String, String) - Method in interface com.caplin.trading.Trade
-
Creates an error event for this Trade.
- createEvent(String) - Method in interface com.caplin.trading.Trade
-
Creates an event for this Trade.
- createLeg() - Method in interface com.caplin.trading.Trade
-
Creates a new trade leg on this trade.
- createRemoveLegAction() - Method in interface com.caplin.trading.Leg
-
Creates an action that represents the removal of a leg from a trade.
- createRestoreEvent(String) - Method in interface com.caplin.trading.Trade
-
Creates an event that will restore a trade into the specified state.
- createTrade(String) - Method in interface com.caplin.trading.TradeChannel
-
- createTrade(TradeChannel, String) - Method in class com.caplin.trading.TradingProvider
-
Creates a new Trade and restores it to the specified channel, setting the requestId to a generated value.
- createUpdateLegAction() - Method in interface com.caplin.trading.Leg
-
Creates an action that represents an update to an existing trade leg, for example a change in the
value of one of the leg fields.
- getAllTrades() - Method in interface com.caplin.trading.TradeChannel
-
Gets all the trades that this channel is currently managing.
- getBlotterChannel() - Method in interface com.caplin.trading.BlotterEvent
-
Deprecated.
Gets the BlotterChannel on which the event occurred.
- getChannel() - Method in interface com.caplin.trading.Trade
-
Gets the Trade Channel for this Trade.
- getDataSource() - Method in class com.caplin.trading.TradingProvider
-
The underlying DataSource object that is used for communication with the Liberator.
- getEventSource() - Method in interface com.caplin.trading.TradeEvent
-
Returns the source of this event: CLIENT, SERVER, or RESTORE
- getField(String) - Method in interface com.caplin.trading.BlotterMessage
-
Deprecated.
Gets a field from the blotter message.
- getField(String) - Method in interface com.caplin.trading.LegAction
-
Gets the value of a field on this leg action.
- getField(String) - Method in interface com.caplin.trading.Trade
-
Gets a stored field value from this Trade.
- getField(String) - Method in interface com.caplin.trading.TradeEvent
-
Gets the value of a field in this TradeEvent.
- getFields() - Method in interface com.caplin.trading.BlotterMessage
-
Deprecated.
Gets a map of all the fields.
- getFields() - Method in interface com.caplin.trading.LegAction
-
Gets an unmodifiable copy of all the fields on this leg action.
- getFields() - Method in interface com.caplin.trading.Trade
-
Gets the fields of this Trade as a Map.
- getFields() - Method in interface com.caplin.trading.TradeEvent
-
Gets the fields of this TradeEvent as a Map
- getInvalidFields() - Method in interface com.caplin.trading.InvalidFieldsEvent
-
Gets the fields in the client event that were invalid.
- getLeg() - Method in interface com.caplin.trading.LegAction
-
Gets the underlying
Leg
that this action relates to.
- getLegActions() - Method in interface com.caplin.trading.TradeEvent
-
Gets the leg actions associated with this event.
- getLegs() - Method in interface com.caplin.trading.Trade
-
Gets a copy of the list of legs that comprise this trade, in the correct order.
- getMessage() - Method in interface com.caplin.trading.InvalidFieldsEvent
-
Gets the error message relating to the invalid fields event.
- getMessage() - Method in interface com.caplin.trading.InvalidTransitionEvent
-
Gets the error message relating to the invalid state transition attempt.
- getName() - Method in interface com.caplin.trading.TradeChannel
-
Gets the name of the channel
- getParameters() - Method in interface com.caplin.trading.BlotterChannel
-
Deprecated.
Gets the parameters of the channel.
- getPeerIndex() - Method in interface com.caplin.trading.TradeChannel
-
Get the index of the peer connection that is managing this TradeChannel.
- getRequestId() - Method in interface com.caplin.trading.Trade
-
Gets the unique RequestId for this Trade.
- getSource() - Method in interface com.caplin.trading.TradeEvent
-
Gets the source of this TradeEvent.
- getState() - Method in interface com.caplin.trading.Trade
-
Gets the current state of this Trade.
- getStateName() - Method in interface com.caplin.trading.InvalidFieldsEvent
-
Gets the state that the
Trade
was in when the event with invalid fields was received.
- getStateName() - Method in interface com.caplin.trading.InvalidTransitionEvent
-
Gets the state that the trade was in when the invalid event was received.
- getTrade() - Method in interface com.caplin.trading.InvalidFieldsEvent
-
- getTrade() - Method in interface com.caplin.trading.InvalidTransitionEvent
-
Gets the
Trade
object to which this InvalidTransitionEvent relates.
- getTrade(String) - Method in interface com.caplin.trading.TradeChannel
-
Gets a Trade associated with this TradeChannel.
- getTrade() - Method in interface com.caplin.trading.TradeEvent
-
Gets the
Trade
object that this TradeEvent belongs to.
- getTradeChannelListener() - Method in interface com.caplin.trading.TradeChannel
-
Gets the ChannelListener that is set on this TradeChannel.
- getTradeEvent() - Method in interface com.caplin.trading.BlotterEvent
-
Deprecated.
Gets the trade event that triggered the blotter event.
- getTradeEvent() - Method in interface com.caplin.trading.InvalidFieldsEvent
-
- getTradeEvent() - Method in interface com.caplin.trading.InvalidTransitionEvent
-
- getTradeListener() - Method in interface com.caplin.trading.Trade
-
- getType() - Method in interface com.caplin.trading.LegAction
-
Gets the type of action that this instance represents.
- getType() - Method in interface com.caplin.trading.Trade
-
Gets the type of this Trade.
- getType() - Method in interface com.caplin.trading.TradeEvent
-
Gets the type of the TradeEvent.
- getUser() - Method in interface com.caplin.trading.TradeChannel
-
Gets the username of the user represented by this channel
- getUserName() - Method in interface com.caplin.trading.BlotterChannel
-
Deprecated.
Gets the username of the user represented by this channel
- terminate() - Method in class com.caplin.trading.TradingProvider
-
Closes all channels and cleans up all trades.
- toKey() - Method in enum com.caplin.trading.EventSource
-
- toString() - Method in enum com.caplin.trading.EventSource
-
- Trade - Interface in com.caplin.trading
-
A single Trade active in the system.
- TradeChannel - Interface in com.caplin.trading
-
An open trade messaging communications channel with an end user.
- TradeChannelListener - Interface in com.caplin.trading
-
Provides notifications relating to the
Trade
lifecycle.
- tradeClosed(Trade) - Method in interface com.caplin.trading.TradeChannelListener
-
Called when a trade has closed due to it reaching a terminal state, or the channel is being closed
while the trade is in progress.
- tradeCreated(Trade) - Method in interface com.caplin.trading.TradeChannelListener
-
Called when a new trade is initiated by a client.
- TradeErrorEvent - Interface in com.caplin.trading
-
- TradeEvent - Interface in com.caplin.trading
-
A single event acting on a Trade.
- TradeException - Exception in com.caplin.trading
-
Used for all errors raised by the Trading DataSource, or raised by user code that needs to notify the
Trading DataSource of an exception during a callback.
- TradeException(String) - Constructor for exception com.caplin.trading.TradeException
-
- TradeException(String, Throwable) - Constructor for exception com.caplin.trading.TradeException
-
- TradeListener - Interface in com.caplin.trading
-
Used to receive TradeEvents from the system.
- TradingApplicationListener - Interface in com.caplin.trading
-
- TradingProvider - Class in com.caplin.trading
-
All Trading DataSource applications must create an instance of this class.
- TradingProvider(TradingApplicationListener, DataSource) - Constructor for class com.caplin.trading.TradingProvider
-
Creates a TradingProvider
that uses, for Liberator communication, a preconfigured DataSource
passed to the constructor.
- TradingProvider(TradingApplicationListener, DataSource, Properties) - Constructor for class com.caplin.trading.TradingProvider
-
Creates a TradingProvider
that uses, for Liberator communication, a preconfigured DataSource
passed to the constructor.