com.dxfeed.api.event
Class Trade
java.lang.Object
com.dxfeed.api.event.Event
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Trade
public Trade()
Trade
public Trade(java.lang.String eventSymbol)
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