Exchange attribute of CandleSymbol defines exchange identifier where data is taken from to build the candles.
More...
#include <CandleExchange.hpp>
|
| char | getExchangeCode () const noexcept |
| | Returns exchange code.
|
| |
| std::string | changeAttributeForSymbol (const dxfcpp::StringLikeWrapper &symbol) const override |
| | Returns candle event symbol string with this exchange set.
|
| |
| std::string | toString () const |
| | Returns string representation of this exchange.
|
| |
|
| static CandleExchange | valueOf (char exchangeCode) noexcept |
| | Returns exchange attribute object that corresponds to the specified exchange code character.
|
| |
| static CandleExchange | getAttributeForSymbol (const dxfcpp::StringLikeWrapper &symbol) |
| | Returns exchange attribute object of the given candle symbol string.
|
| |
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 changeExchangeCode methods.
◆ changeAttributeForSymbol()
| std::string CandleExchange::changeAttributeForSymbol |
( |
const dxfcpp::StringLikeWrapper & | symbol | ) |
const |
|
inlineoverridevirtual |
◆ getAttributeForSymbol()
| static CandleExchange CandleExchange::getAttributeForSymbol |
( |
const dxfcpp::StringLikeWrapper & | symbol | ) |
|
|
inlinestatic |
◆ getExchangeCode()
| char CandleExchange::getExchangeCode |
( |
| ) |
const |
|
inlinenoexcept |
◆ toString()
| std::string CandleExchange::toString |
( |
| ) |
const |
|
inline |
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 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().