|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.event.market.MarketEvent
com.dxfeed.event.market.Trade
public final class Trade
Trade event is a snapshot of the price and size of the last trade and other fields that change with each trade. It represents the most recent information that is available about the last trade on the market at any given moment of time.
Trade
and Trade&X
for regional exchange trades.
Constructor Summary | |
---|---|
Trade()
Creates new trade with default values. |
|
Trade(String eventSymbol)
Creates new trade with the specified event symbol. |
Method Summary | |
---|---|
long |
getDayVolume()
Returns total volume traded for a day. |
char |
getExchangeCode()
Returns exchange code of the last trade. |
double |
getPrice()
Returns price of the last trade. |
long |
getSize()
Returns size of the last trade. |
long |
getTime()
Returns time of the last trade. |
void |
setDayVolume(long dayVolume)
Changes total volume traded for a day. |
void |
setExchangeCode(char exchangeCode)
Changes exchange code of the last trade. |
void |
setPrice(double price)
Changes price of the last trade. |
void |
setSize(long size)
Changes size of the last trade. |
void |
setTime(long time)
Changes time of the last trade. |
String |
toString()
Returns string representation of this trade event. |
Methods inherited from class com.dxfeed.event.market.MarketEvent |
---|
getEventSymbol, setEventSymbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Trade()
public Trade(String eventSymbol)
eventSymbol
- event symbol.Method Detail |
---|
public long getTime()
public void setTime(long time)
time
- time of the last trade.public char getExchangeCode()
public void setExchangeCode(char exchangeCode)
exchangeCode
- exchange code of the last trade.public double getPrice()
public void setPrice(double price)
price
- price of the last trade.public long getSize()
public void setSize(long size)
size
- size of the last trade.public long getDayVolume()
public void setDayVolume(long dayVolume)
dayVolume
- total volume traded for a day.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |