Package com.longbridge.quote
Class Subscription
- java.lang.Object
-
- com.longbridge.quote.Subscription
-
public class Subscription extends Object
Active subscription for a security.
-
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Period[]getCandlesticks()Returns the candlestick periods subscribed for this security.intgetSubTypes()Returns the subscribed data types as a bitfield (see SubFlags).StringgetSymbol()Returns the subscribed security symbol.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the subscribed security symbol.- Returns:
- the subscribed security symbol
-
getSubTypes
public int getSubTypes()
Returns the subscribed data types as a bitfield (see SubFlags).- Returns:
- the subscribed data types
-
getCandlesticks
public Period[] getCandlesticks()
Returns the candlestick periods subscribed for this security.- Returns:
- the subscribed candlestick periods
-
-