public final class Trade extends MarketEvent implements LastingEvent<String>
Trade
and Trade&X
for regional exchange trades.Constructor and Description |
---|
Trade()
Creates new trade with default values.
|
Trade(String eventSymbol)
Creates new trade with the specified event symbol.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getEventSymbol, setEventSymbol
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEventSymbol, setEventSymbol
public Trade()
public Trade(String eventSymbol)
eventSymbol
- event symbol.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.Copyright © 2014 Devexperts. All Rights Reserved.