Package com.longbridge.quote
Class Trade
- java.lang.Object
-
- com.longbridge.quote.Trade
-
public class Trade extends Object
A single trade tick.
-
-
Constructor Summary
Constructors Constructor Description Trade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeDirectiongetDirection()Returns the trade direction (uptick / downtick / neutral).BigDecimalgetPrice()Returns the trade price.OffsetDateTimegetTimestamp()Returns the time of the trade.TradeSessiongetTradeSession()Returns the trade session this trade occurred in.StringgetTradeType()Returns the exchange-specific trade type code.longgetVolume()Returns the trade volume.StringtoString()
-
-
-
Method Detail
-
getPrice
public BigDecimal getPrice()
Returns the trade price.- Returns:
- the trade price
-
getVolume
public long getVolume()
Returns the trade volume.- Returns:
- the trade volume
-
getTimestamp
public OffsetDateTime getTimestamp()
Returns the time of the trade.- Returns:
- the time of the trade
-
getTradeType
public String getTradeType()
Returns the exchange-specific trade type code.- Returns:
- the trade type code
-
getDirection
public TradeDirection getDirection()
Returns the trade direction (uptick / downtick / neutral).- Returns:
- the trade direction
-
getTradeSession
public TradeSession getTradeSession()
Returns the trade session this trade occurred in.- Returns:
- the trade session
-
-