Class Trade


  • public class Trade
    extends Object
    A single trade tick.
    • Constructor Detail

      • Trade

        public Trade()
    • 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