com.dxfeed.api.event
Class Trade

java.lang.Object
  extended by com.dxfeed.api.event.Event
      extended by com.dxfeed.api.event.Trade

public final class Trade
extends Event

Trade event with the price and size of the last trade and other fields that change with each trade.

Implementation details

This event is implemented on top of QDS records Trade and Trade&X for reginal exchange trades.


Constructor Summary
Trade()
           
Trade(java.lang.String eventSymbol)
           
 
Method Summary
 long getDayVolume()
           
 char getExchangeCode()
           
 double getPrice()
           
 long getSize()
           
 long getTime()
           
 void setDayVolume(long dayVolume)
           
 void setExchangeCode(char exchangeCode)
           
 void setPrice(double price)
           
 void setSize(long size)
           
 void setTime(long time)
           
 java.lang.String toString()
           
 
Methods inherited from class com.dxfeed.api.event.Event
getEventSymbol, setEventSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Trade

public Trade()

Trade

public Trade(java.lang.String eventSymbol)
Method Detail

getTime

public long getTime()

setTime

public void setTime(long time)

getExchangeCode

public char getExchangeCode()

setExchangeCode

public void setExchangeCode(char exchangeCode)

getPrice

public double getPrice()

setPrice

public void setPrice(double price)

getSize

public long getSize()

setSize

public void setSize(long size)

getDayVolume

public long getDayVolume()

setDayVolume

public void setDayVolume(long dayVolume)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object