|
dxFeed Graal CXX API v9.0.0
|
Exchange attribute of CandleSymbol defines the exchange identifier where data is taken from to build the candles. More...
#include <CandleExchange.hpp>
Public Member Functions | |
| char | getExchangeCode () const noexcept |
| Returns exchange code. | |
| std::string | changeAttributeForSymbol (StringParam symbol) const override |
| Returns candle event symbol string with this exchange set. | |
| std::string | toString () const |
| Returns string representation of this exchange. | |
Static Public Member Functions | |
| static CandleExchange | valueOf (char exchangeCode) noexcept |
| Returns an exchange attribute object that corresponds to the specified exchange code character. | |
| static CandleExchange | getAttributeForSymbol (StringParam symbol) |
| Returns exchange an attribute object of the given candle symbol string. | |
Static Public Attributes | |
| static const CandleExchange | COMPOSITE {'\0'} |
| Composite exchange where data is taken from all exchanges. | |
| static const CandleExchange | DEFAULT {'\0'} |
| Default exchange is CandleExchange::COMPOSITE. | |
Exchange attribute of CandleSymbol defines the exchange identifier where data is taken from to build the candles.
This attribute is encoded in a symbol string with MarketEventSymbols.getExchangeCode and changeExchangeCode methods.
|
overridevirtual |
Returns candle event symbol string with this exchange set.
| symbol | The original candle event symbol. |
Implements CandleSymbolAttribute.
|
static |
Returns exchange an attribute object of the given candle symbol string.
The result is CandleExchange::DEFAULT if the symbol does not have an exchange attribute.
| symbol | candle symbol string. |
|
noexcept |
| std::string CandleExchange::toString | ( | ) | const |
Returns string representation of this exchange.
It is the string "COMPOSITE" for CandleExchange::COMPOSITE exchange or exchange character otherwise.
|
staticnoexcept |
Returns an exchange attribute object that corresponds to the specified exchange code character.
| exchangeCode | The exchange code character. |