Exchange attribute of CandleSymbol defines exchange identifier where data is taken from to build the candles.
More...
Exchange attribute of CandleSymbol defines exchange identifier where data is taken from to build the candles.
Implementation details
This attribute is encoded in a symbol string with MarketEventSymbols.GetExchangeCode and MarketEventSymbols.ChangeExchangeCode methods.
◆ ChangeAttributeForSymbol()
string com.dxfeed.api.candle.CandleExchange.ChangeAttributeForSymbol |
( |
string |
symbol | ) |
|
|
inline |
Returns candle event symbol string with this exchange set.
- Parameters
-
symbol | original candle event symbol. |
- Returns
- candle event symbol string with this exchange set.
Implements com.dxfeed.api.candle.ICandleSymbolAttribute.
◆ CheckInAttributeImpl()
void com.dxfeed.api.candle.CandleExchange.CheckInAttributeImpl |
( |
CandleSymbol |
candleSymbol | ) |
|
|
inline |
Internal method that initializes attribute in the candle symbol.
- Parameters
-
candleSymbol | candle symbol. |
- Exceptions
-
InvalidOperationException | if used outside of internal initialization logic. |
Implements com.dxfeed.api.candle.ICandleSymbolAttribute.
◆ Equals()
override bool com.dxfeed.api.candle.CandleExchange.Equals |
( |
object |
o | ) |
|
|
inline |
Indicates whether this exchange attribute is the same as another one.
- Parameters
-
- Returns
true
if this exchange attribute is the same as another one.
◆ GetAttributeForSymbol()
static CandleExchange com.dxfeed.api.candle.CandleExchange.GetAttributeForSymbol |
( |
string |
symbol | ) |
|
|
inlinestatic |
Returns exchange attribute object of the given candle symbol string. The result is DEFAULT if the symbol does not have exchange attribute.
- Parameters
-
symbol | candle symbol string. |
- Returns
- exchange attribute object of the given candle symbol string.
◆ GetExchangeCode()
char com.dxfeed.api.candle.CandleExchange.GetExchangeCode |
( |
| ) |
|
|
inline |
Returns exchange code. It is `'\0'` for COMPOSITE exchange.
- Returns
- exchange code.
◆ GetHashCode()
override int com.dxfeed.api.candle.CandleExchange.GetHashCode |
( |
| ) |
|
|
inline |
Returns hash code of this exchange attribute.
- Returns
- hash code of this exchange attribute.
◆ ToString()
override string com.dxfeed.api.candle.CandleExchange.ToString |
( |
| ) |
|
|
inline |
Returns string representation of this exchange. It is the string "COMPOSITE"
for COMPOSITE exchange or exchange character otherwise.
- Returns
- string representation of this exchange.
◆ ValueOf()
static CandleExchange com.dxfeed.api.candle.CandleExchange.ValueOf |
( |
char |
exchangeCode | ) |
|
|
inlinestatic |
Returns exchange attribute object that corresponds to the specified exchange code character.
- Parameters
-
exchangeCode | exchange code character. |
- Returns
- exchange attribute object.
◆ COMPOSITE
Composite exchange where data is taken from all exchanges.
◆ DEFAULT
The documentation for this class was generated from the following file: