Package com.longbridge.quote
Class OptionQuote
- java.lang.Object
-
- com.longbridge.quote.OptionQuote
-
public class OptionQuote extends Object
Quote of an option security.
-
-
Constructor Summary
Constructors Constructor Description OptionQuote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetContractMultiplier()Returns the contract multiplier.BigDecimalgetContractSize()Returns the contract size.OptionTypegetContractType()Returns the option type (American / European).OptionDirectiongetDirection()Returns the option direction (Put / Call).LocalDategetExpiryDate()Returns the option expiry date.BigDecimalgetHigh()Returns the highest price of the day.BigDecimalgetHistoricalVolatility()Returns the underlying security's historical volatility.BigDecimalgetImpliedVolatility()Returns the implied volatility.BigDecimalgetLastDone()Returns the latest price.BigDecimalgetLow()Returns the lowest price of the day.BigDecimalgetOpen()Returns the opening price.longgetOpenInterest()Returns the number of open positions.BigDecimalgetPrevClose()Returns yesterday's closing price.BigDecimalgetStrikePrice()Returns the strike price.StringgetSymbol()Returns the security code.OffsetDateTimegetTimestamp()Returns the timestamp of the latest price.TradeStatusgetTradeStatus()Returns the security trading status.BigDecimalgetTurnover()Returns the turnover.StringgetUnderlyingSymbol()Returns the underlying security symbol.longgetVolume()Returns the trading volume.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the security code.- Returns:
- the security code
-
getLastDone
public BigDecimal getLastDone()
Returns the latest price.- Returns:
- the latest price
-
getPrevClose
public BigDecimal getPrevClose()
Returns yesterday's closing price.- Returns:
- yesterday's closing price
-
getOpen
public BigDecimal getOpen()
Returns the opening price.- Returns:
- the opening price
-
getHigh
public BigDecimal getHigh()
Returns the highest price of the day.- Returns:
- the highest price of the day
-
getLow
public BigDecimal getLow()
Returns the lowest price of the day.- Returns:
- the lowest price of the day
-
getTimestamp
public OffsetDateTime getTimestamp()
Returns the timestamp of the latest price.- Returns:
- the timestamp of the latest price
-
getVolume
public long getVolume()
Returns the trading volume.- Returns:
- the trading volume
-
getTurnover
public BigDecimal getTurnover()
Returns the turnover.- Returns:
- the turnover
-
getTradeStatus
public TradeStatus getTradeStatus()
Returns the security trading status.- Returns:
- the security trading status
-
getImpliedVolatility
public BigDecimal getImpliedVolatility()
Returns the implied volatility.- Returns:
- the implied volatility
-
getOpenInterest
public long getOpenInterest()
Returns the number of open positions.- Returns:
- the number of open positions
-
getExpiryDate
public LocalDate getExpiryDate()
Returns the option expiry date.- Returns:
- the option expiry date
-
getStrikePrice
public BigDecimal getStrikePrice()
Returns the strike price.- Returns:
- the strike price
-
getContractMultiplier
public BigDecimal getContractMultiplier()
Returns the contract multiplier.- Returns:
- the contract multiplier
-
getContractType
public OptionType getContractType()
Returns the option type (American / European).- Returns:
- the option type
-
getContractSize
public BigDecimal getContractSize()
Returns the contract size.- Returns:
- the contract size
-
getDirection
public OptionDirection getDirection()
Returns the option direction (Put / Call).- Returns:
- the option direction
-
getHistoricalVolatility
public BigDecimal getHistoricalVolatility()
Returns the underlying security's historical volatility.- Returns:
- the historical volatility
-
getUnderlyingSymbol
public String getUnderlyingSymbol()
Returns the underlying security symbol.- Returns:
- the underlying security symbol
-
-