public class Summary extends MarketEvent implements LastingEvent<String>
Summary
event has the following properties:
eventSymbol
- symbol of this event;
dayId
- identifier of the day that this summary represents;
dayOpenPrice
- the first (open) price for the day;
dayHighPrice
- the maximal (high) price for the day;
dayLowPrice
- the minimal (low) price for the day;
dayClosePrice
- the last (close) price for the day;
dayClosePriceType
- the price type of the last (close) price for the day;
prevDayId
- identifier of the previous day that this summary represents;
prevDayClosePrice
- the last (close) price for the previous day;
prevDayClosePriceType
- the price type of the last (close) price for the previous day;
prevDayVolume
- total volume traded for the previous day;
openInterest
- open interest of the symbol as the number of open contracts.
Summary
and Summary&X
for regional exchange trading session summaries.Constructor and Description |
---|
Summary()
Creates new summary with default values.
|
Summary(String eventSymbol)
Creates new summary with the specified event symbol.
|
Modifier and Type | Method and Description |
---|---|
double |
getDayClosePrice()
Returns the last (close) price for the day.
|
PriceType |
getDayClosePriceType()
Returns the price type of the last (close) price for the day.
|
double |
getDayHighPrice()
Returns the maximal (high) price for the day.
|
int |
getDayId()
Returns identifier of the day that this summary represents.
|
double |
getDayLowPrice()
Returns the minimal (low) price for the day.
|
double |
getDayOpenPrice()
Returns the first (open) price for the day.
|
long |
getOpenInterest()
Returns open interest of the symbol as the number of open contracts.
|
double |
getPrevDayClosePrice()
Returns the last (close) price for the previous day.
|
PriceType |
getPrevDayClosePriceType()
Returns the price type of the last (close) price for the previous day.
|
int |
getPrevDayId()
Returns identifier of the previous day that this summary represents.
|
double |
getPrevDayVolume()
Returns total volume traded for the previous day.
|
void |
setDayClosePrice(double dayClosePrice)
Changes the last (close) price for the day.
|
void |
setDayClosePriceType(PriceType type)
Changes the price type of the last (close) price for the day.
|
void |
setDayHighPrice(double dayHighPrice)
Changes the maximal (high) price for the day.
|
void |
setDayId(int dayId)
Changes identifier of the day that this summary represents.
|
void |
setDayLowPrice(double dayLowPrice)
Changes the minimal (low) price for the day.
|
void |
setDayOpenPrice(double dayOpenPrice)
Changes the first (open) price for the day.
|
void |
setOpenInterest(long openInterest)
Changes open interest of the symbol as the number of open contracts.
|
void |
setPrevDayClosePrice(double prevDayClosePrice)
Changes the last (close) price for the previous day.
|
void |
setPrevDayClosePriceType(PriceType type)
Changes the price type of the last (close) price for the previous day.
|
void |
setPrevDayId(int prevDayId)
Changes identifier of the previous day that this summary represents.
|
void |
setPrevDayVolume(double prevDayVolume)
Changes total volume traded for the previous day.
|
String |
toString()
Returns string representation of this summary event.
|
getEventSymbol, getEventTime, setEventSymbol, setEventTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEventSymbol, getEventTime, setEventSymbol, setEventTime
public Summary()
public Summary(String eventSymbol)
eventSymbol
- event symbol.public int getDayId()
public void setDayId(int dayId)
dayId
- identifier of the day that this summary represents.public double getDayOpenPrice()
public void setDayOpenPrice(double dayOpenPrice)
dayOpenPrice
- the first (open) price for the day.public double getDayHighPrice()
public void setDayHighPrice(double dayHighPrice)
dayHighPrice
- the maximal (high) price for the day.public double getDayLowPrice()
public void setDayLowPrice(double dayLowPrice)
dayLowPrice
- the minimal (low) price for the day.public double getDayClosePrice()
public void setDayClosePrice(double dayClosePrice)
dayClosePrice
- the last (close) price for the day.public PriceType getDayClosePriceType()
public void setDayClosePriceType(PriceType type)
type
- the price type of the last (close) price for the day.public int getPrevDayId()
public void setPrevDayId(int prevDayId)
prevDayId
- identifier of the previous day that this summary represents.public double getPrevDayClosePrice()
public void setPrevDayClosePrice(double prevDayClosePrice)
prevDayClosePrice
- the last (close) price for the previous day.public PriceType getPrevDayClosePriceType()
public void setPrevDayClosePriceType(PriceType type)
type
- the price type of the last (close) price for the previous day.public double getPrevDayVolume()
public void setPrevDayVolume(double prevDayVolume)
prevDayVolume
- total volume traded for the previous day.public long getOpenInterest()
public void setOpenInterest(long openInterest)
openInterest
- open interest of the symbol as the number of open contracts.Copyright © 2002–2023 Devexperts LLC. All rights reserved.