Package com.longbridge.quote
Class WatchlistSecurity
- java.lang.Object
-
- com.longbridge.quote.WatchlistSecurity
-
public class WatchlistSecurity extends Object
A security in a watchlist group.
-
-
Constructor Summary
Constructors Constructor Description WatchlistSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarketgetMarket()Returns the market the security belongs to.StringgetName()Returns the security name.StringgetSymbol()Returns the security code.OffsetDateTimegetWatchedAt()Returns the time at which the security was added to the watchlist.BigDecimalgetWatchedPrice()Returns the price at which the security was added to the watchlist, or null if not set.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the security code.- Returns:
- the security code
-
getMarket
public Market getMarket()
Returns the market the security belongs to.- Returns:
- the market
-
getName
public String getName()
Returns the security name.- Returns:
- the security name
-
getWatchedPrice
public BigDecimal getWatchedPrice()
Returns the price at which the security was added to the watchlist, or null if not set.- Returns:
- the watched price, or null if not set
-
getWatchedAt
public OffsetDateTime getWatchedAt()
Returns the time at which the security was added to the watchlist.- Returns:
- the time added to the watchlist
-
-