Class BlockTradeSubmitEvent
An event received when the client initiates a block trade
-
Constructor Summary
ConstructorDescriptionBlockTradeSubmitEvent
(PricingSide pricingSide) Constructs a submit event with the PricingSide -
Method Summary
Modifier and TypeMethodDescriptionReturns the requested pricing side of the trade.
-
Constructor Details
-
BlockTradeSubmitEvent
Constructs a submit event with the PricingSideTypically this is
PricingSide.TWO_WAY
. Some users may not be permissioned for this, others may only request a specific side, for these cases PricingSide will be eitherPricingSide.BUY
to denote that the Ask price be sent, orPricingSide.SELL
to denote that only the Bid price should be sent.- Parameters:
pricingSide
- The pricing side denoting whether this event is for BUY or SELL
-
-
Method Details
-
getPricingSide
Returns the requested pricing side of the trade.
PricingSide is derived from the value of the BuySell field. The following lists the possible values of BuySell and what pricing side they are mapped to:
- BuySell = TWO_WAY, then pricing side is
PricingSide.TWO_WAY
, this denotes that both Bid and Ask price should be sent - BuySell = BUY, then pricing side is
PricingSide.BUY
, this denotes that only ASK price be sent - BuySell = SELL, then pricing side is
PricingSide.SELL
, this denotes that only BID price be sent
If BuySell field is empty or is not sent, then pricing side defaults to
PricingSide.TWO_WAY
.If the SubmitEvent is for a SWAP, and the pricing side is not
PricingSide.TWO_WAY
, then the pricing side refers to the near leg of the SWAP, and the pricing side of the far leg is the opposite side.- Returns:
- The requested pricing side.
- BuySell = TWO_WAY, then pricing side is
-