public class TradeEventArgs extends Object implements SecurityId, SendingTimeEventArgs
Constructor and Description |
---|
TradeEventArgs(String channelId,
long receiveTime,
int securityId,
int tradeIndex,
biz.onixs.util.ScaledDecimal price,
int size,
biz.onixs.cme.sbe.IGroup dataBlocks,
long rptSeq,
long seqNum,
long sendingTime)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Side |
getAggressorSide()
Aggressor side.
|
String |
getChannelId()
Channel ID.
|
int |
getCurrentTradeIndexInEvent()
Current trade index in event.
|
int |
getDataBlockIndex()
Index of entry in FIX repeating group.
|
biz.onixs.cme.sbe.IGroup |
getDataBlocks()
FIX repeating group which contains trade data.
|
EventIndicator |
getEventIndicator()
Match event indicator.
|
long |
getMessageSequenceNumber()
Message sequence number.
|
int |
getNumberOfOrders()
Number of orders.
|
biz.onixs.util.ScaledDecimal |
getPrice()
Price.
|
long |
getReceiveTime()
Message receive time.
|
long |
getReportSequence()
Instrument report sequence number.
|
int |
getSecurityId()
Security ID.
|
long |
getSendingTime()
Message sending time.
|
int |
getSize()
Size.
|
org.joda.time.LocalDate |
getTradeDate()
Trade date.
|
TradeUpdateAction |
getTradeUpdateAction()
Trade update action.
|
String |
toString()
Convert object to string representation.
|
public TradeEventArgs(String channelId, long receiveTime, int securityId, int tradeIndex, biz.onixs.util.ScaledDecimal price, int size, biz.onixs.cme.sbe.IGroup dataBlocks, long rptSeq, long seqNum, long sendingTime)
channelId
- Channel IDreceiveTime
- Message receive timesecurityId
- Security IDtradeIndex
- Index of trade in current eventsize
- Sizeprice
- PricedataBlocks
- FIX repeating group which contains trade datarptSeq
- report sequence numberseqNum
- packet sequence numbersendingTime
- packet sending timepublic biz.onixs.cme.sbe.IGroup getDataBlocks()
public int getDataBlockIndex()
public EventIndicator getEventIndicator()
biz.onixs.cme.sbe.exceptions.TagNotFoundException
- Thrown if tag MatchEventIndicator was not present in the message.public biz.onixs.util.ScaledDecimal getPrice()
public String getChannelId()
public long getReceiveTime()
public int getSecurityId()
getSecurityId
in interface SecurityId
public int getSize()
public long getSendingTime()
getSendingTime
in interface SendingTimeEventArgs
public TradeUpdateAction getTradeUpdateAction()
biz.onixs.cme.sbe.exceptions.TagNotFoundException
- field was not found in message schemapublic Side getAggressorSide()
biz.onixs.cme.sbe.exceptions.TagNotFoundException
- field was not found in message schemapublic long getMessageSequenceNumber()
public org.joda.time.LocalDate getTradeDate()
biz.onixs.cme.sbe.exceptions.TagNotFoundException
- field was not found in message schemapublic long getReportSequence()
public String toString()
public int getCurrentTradeIndexInEvent()
public int getNumberOfOrders()
Copyright © 2010–2020 Onix Solutions. All rights reserved.