public abstract class TradeBase extends MarketEvent implements LastingEvent<String>
Trade
and TradeETH
events.
Trade events represent the most recent information that is available about the last trade on
the market at any given moment of time.
Trade
event represents last trade information for regular trading hours
(RTH) with an official volume for the whole trading day.
TradeETH
event is defined only for symbols (typically stocks and ETFs) with a designated
extended trading hours (ETH, pre market and post market trading sessions). It represents
last trade price during ETH and accumulated volume during ETH.
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.
|
getEventSymbol, setEventSymbol
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventSymbol, setEventSymbol
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 © 2015 Devexperts. All Rights Reserved.