com.dxfeed.event.market
Class Quote

java.lang.Object
  extended by com.dxfeed.event.market.MarketEvent
      extended by com.dxfeed.event.market.Quote
All Implemented Interfaces:
LastingEvent, Serializable

public final class Quote
extends MarketEvent
implements LastingEvent

Quote event is a snapshot of the best bid and ask prices, and other fields that change with each quote. It represents the most recent information that is available about the best quote on the market at any given moment of time.

Implementation details

This event is implemented on top of QDS records Quote and Quote&X for regional exchange best quotes.

See Also:
Serialized Form

Constructor Summary
Quote()
          Creates new quote with default values.
Quote(String eventSymbol)
          Creates new quote with the specified event symbol.
 
Method Summary
 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.
 
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

Quote

public Quote()
Creates new quote with default values.


Quote

public Quote(String eventSymbol)
Creates new quote with the specified event symbol.

Parameters:
eventSymbol - event symbol.
Method Detail

getBidTime

public long getBidTime()
Returns time of the last bid change. Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.

Returns:
time of the last bid change.

setBidTime

public void setBidTime(long bidTime)
Changes time of the last bid change. Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.

Parameters:
bidTime - time of the last bid change.

getBidExchangeCode

public char getBidExchangeCode()
Returns bid exchange code.

Returns:
bid exchange code.

setBidExchangeCode

public void setBidExchangeCode(char bidExchangeCode)
Changes bid exchange code.

Parameters:
bidExchangeCode - bid exchange code.

getBidPrice

public double getBidPrice()
Returns bid price.

Returns:
bid price.

setBidPrice

public void setBidPrice(double bidPrice)
Changes bid price.

Parameters:
bidPrice - bid price.

getBidSize

public long getBidSize()
Returns bid size.

Returns:
bid size.

setBidSize

public void setBidSize(long bidSize)
Changes bid size.

Parameters:
bidSize - bid size.

getAskTime

public long getAskTime()
Returns time of the last ask change. Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.

Returns:
time of the last ask change.

setAskTime

public void setAskTime(long askTime)
Changes time of the last ask change. Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.

Parameters:
askTime - time of the last ask change.

getAskExchangeCode

public char getAskExchangeCode()
Returns ask exchange code.

Returns:
ask exchange code.

setAskExchangeCode

public void setAskExchangeCode(char askExchangeCode)
Changes ask exchange code.

Parameters:
askExchangeCode - ask exchange code.

getAskPrice

public double getAskPrice()
Returns ask price.

Returns:
ask price.

setAskPrice

public void setAskPrice(double askPrice)
Changes ask price.

Parameters:
askPrice - ask price.

getAskSize

public long getAskSize()
Returns ask size.

Returns:
ask size.

setAskSize

public void setAskSize(long askSize)
Changes ask size.

Parameters:
askSize - ask size.

toString

public String toString()
Returns string representation of this quote event.

Overrides:
toString in class Object
Returns:
string representation of this quote event.


Copyright © 2013 Devexperts. All Rights Reserved.