Exchange attribute of CandleSymbol defines the exchange identifier where data is taken from to build the candles.
More...
#include <CandleExchange.hpp>
Exchange attribute of CandleSymbol defines the 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 changeExchangeCode methods.
◆ changeAttributeForSymbol()
| std::string CandleExchange::changeAttributeForSymbol |
( |
const StringLike & | symbol | ) |
const |
|
overridevirtual |
Returns candle event symbol string with this exchange set.
- Parameters
-
| symbol | The original candle event symbol. |
- Returns
- candle event symbol string with this exchange set.
Implements CandleSymbolAttribute.
◆ getAttributeForSymbol()
◆ getExchangeCode()
| char CandleExchange::getExchangeCode |
( |
| ) |
const |
|
noexcept |
◆ toString()
| std::string CandleExchange::toString |
( |
| ) |
const |
Returns string representation of this exchange.
It is the string "COMPOSITE" for CandleExchange::COMPOSITE exchange or exchange character otherwise.
- Returns
- string representation of this exchange.
◆ valueOf()
Returns an exchange attribute object that corresponds to the specified exchange code character.
- Parameters
-
| exchangeCode | The exchange code character. |
- Returns
- exchange attribute object.
References COMPOSITE.
Referenced by getAttributeForSymbol().