Class CandleSymbol
Symbol that should be used with DXFeedSubscription class
to subscribe for Candle events. DXFeedSubscription also accepts a string
representation of the candle symbol for subscription.
For more details see Javadoc.
public class CandleSymbol
- Inheritance
-
CandleSymbol
- Inherited Members
Properties
Alignment
Gets alignment attribute of this symbol.
public CandleAlignment? Alignment { get; }
Property Value
BaseSymbol
Gets base market symbol without attributes.
public string? BaseSymbol { get; }
Property Value
Exchange
Gets exchange attribute of this symbol.
public CandleExchange? Exchange { get; }
Property Value
Period
Gets aggregation period of this symbol.
public CandlePeriod? Period { get; }
Property Value
Price
Gets price type attribute of this symbol.
public CandlePrice? Price { get; }
Property Value
PriceLevel
Gets price level attribute of this symbol.
public CandlePriceLevel? PriceLevel { get; }
Property Value
Session
Gets session attribute of this symbol.
public CandleSession? Session { get; }
Property Value
Symbol
Returns string representation of this symbol. The string representation can be transformed back into symbol object using ValueOf(string?) method.
public string? Symbol { get; }
Property Value
- string
The string representation.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true
if the specified object is equal to the current object; otherwise,false
.
GetHashCode()
Returns a hash code value for this symbol.
public override int GetHashCode()
Returns
- int
A hash code value for this symbol.
ToString()
Returns string representation of this symbol. The string representation can be transformed back into symbol object using ValueOf(string?) method.
public override string ToString()
Returns
- string
The string representation.
ValueOf(string?)
Converts the given string symbol into the candle symbol object.
public static CandleSymbol ValueOf(string? symbol)
Parameters
symbol
stringThe string symbol.
Returns
- CandleSymbol
The candle symbol object.
Exceptions
- ArgumentException
If the string does not represent a valid symbol.
ValueOf(string?, params ICandleSymbolProperty[])
Converts the given string symbol into the candle symbol object with the specified attribute set.
public static CandleSymbol ValueOf(string? symbol, params ICandleSymbolProperty[] attributes)
Parameters
symbol
stringThe string symbol.
attributes
ICandleSymbolProperty[]The attributes to set.
Returns
- CandleSymbol
The candle symbol object.
Exceptions
- ArgumentException
If the string does not represent a valid symbol.