@Description(value="Quote event is a snapshot of the best bid and ask prices, and other fields that change with each quote.") public class Quote extends MarketEvent implements LastingEvent<String>
Quote event has the following properties:
eventSymbol - symbol of this event;
bidTime - time of the last bid change;
bidExchangeCode - bid exchange code;
bidPrice - bid price;
bidSize - bid size;
askTime - time of the last ask change;
askExchangeCode - ask exchange code;
askPrice - ask price;
askSize - ask size.
Quote and Quote&X
for regional exchange best quotes.| Constructor and Description |
|---|
Quote()
Creates new quote with default values.
|
Quote(String eventSymbol)
Creates new quote with the specified event symbol.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getAskExchangeCode()
Returns ask exchange code.
|
double |
getAskPrice()
Returns ask price.
|
long |
getAskSize()
Returns ask size.
|
long |
getAskTime()
Returns time of the last ask change.
|
char |
getBidExchangeCode()
Returns bid exchange code.
|
double |
getBidPrice()
Returns bid price.
|
long |
getBidSize()
Returns bid size.
|
long |
getBidTime()
Returns time of the last bid change.
|
void |
setAskExchangeCode(char askExchangeCode)
Changes ask exchange code.
|
void |
setAskPrice(double askPrice)
Changes ask price.
|
void |
setAskSize(long askSize)
Changes ask size.
|
void |
setAskTime(long askTime)
Changes time of the last ask change.
|
void |
setBidExchangeCode(char bidExchangeCode)
Changes bid exchange code.
|
void |
setBidPrice(double bidPrice)
Changes bid price.
|
void |
setBidSize(long bidSize)
Changes bid size.
|
void |
setBidTime(long bidTime)
Changes time of the last bid change.
|
String |
toString()
Returns string representation of this quote event.
|
getEventSymbol, setEventSymbolclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEventSymbol, setEventSymbolpublic Quote()
public Quote(String eventSymbol)
eventSymbol - event symbol.public long getBidTime()
public void setBidTime(long bidTime)
bidTime - time of the last bid change.public char getBidExchangeCode()
public void setBidExchangeCode(char bidExchangeCode)
bidExchangeCode - bid exchange code.public double getBidPrice()
public void setBidPrice(double bidPrice)
bidPrice - bid price.public long getBidSize()
public void setBidSize(long bidSize)
bidSize - bid size.public long getAskTime()
public void setAskTime(long askTime)
askTime - time of the last ask change.public char getAskExchangeCode()
public void setAskExchangeCode(char askExchangeCode)
askExchangeCode - ask exchange code.public double getAskPrice()
public void setAskPrice(double askPrice)
askPrice - ask price.public long getAskSize()
public void setAskSize(long askSize)
askSize - ask size.Copyright © 2015 Devexperts. All Rights Reserved.