|
dxFeed Graal CXX API v5.0.0
|
Helper class to compose and parse symbols for market events. More...
#include <MarketEventSymbols.hpp>
Static Public Member Functions | |
| static bool | hasExchangeCode (const StringLike &symbol) noexcept |
Returns true if the specified symbol has the exchange code specification. | |
| static char | getExchangeCode (const StringLike &symbol) noexcept |
| Returns exchange code of the specified symbol or ‘’\0'` if none is defined. | |
| static std::string | changeExchangeCode (const StringLike &symbol, char exchangeCode) noexcept |
| Changes exchange code of the specified symbol or removes it if the new exchange code is ‘’\0'`. | |
| static std::string | getBaseSymbol (const StringLike &symbol) noexcept |
| Returns base symbol without exchange code and attributes. | |
| static std::string | changeBaseSymbol (const StringLike &symbol, const StringLike &baseSymbol) noexcept |
| Changes base symbol while leaving exchange code and attributes intact. | |
| static std::optional< std::string > | getAttributeStringByKey (const StringLike &symbol, const StringLike &key) noexcept |
| Returns value of the attribute with the specified key. | |
| static std::string | changeAttributeStringByKey (const StringLike &symbol, const StringLike &key, const StringLike &value) noexcept |
| Changes the value of one attribute value while leaving exchange code and other attributes intact. | |
| static std::string | removeAttributeStringByKey (const StringLike &symbol, const StringLike &key) noexcept |
| Removes one attribute with the specified key while leaving exchange code and other attributes intact. | |
Helper class to compose and parse symbols for market events.
Regional symbol subscription receives events only from a designated exchange, marketplace, or venue instead of receiving composite events from all venues (by default). Regional symbol is composed of a base symbol, ampersand character ('&'), and an exchange code character. For example,
Market event symbols can have a number of attributes attached to them in curly braces with <key>=<value> paris separated by commas. For example,
The methods in this class always maintain attribute keys in alphabetic order.
|
inlinestaticnoexcept |
Changes the value of one attribute value while leaving exchange code and other attributes intact.
| symbol | old symbol. |
| key | attribute key. |
| value | attribute value. |
|
inlinestaticnoexcept |
Changes base symbol while leaving exchange code and attributes intact.
| symbol | old symbol. |
| baseSymbol | new base symbol. |
|
inlinestaticnoexcept |
Changes exchange code of the specified symbol or removes it if the new exchange code is ‘’\0'`.
| symbol | The old symbol. |
| exchangeCode | The new exchange code. |
|
inlinestaticnoexcept |
Returns value of the attribute with the specified key.
The result is std::nullopt if the attribute with the specified key is not found.
| symbol | symbol. |
| key | attribute key. |
std::nullopt if the attribute with the specified key is not found.
|
inlinestaticnoexcept |
Returns base symbol without exchange code and attributes.
| symbol | symbol. |
|
inlinestaticnoexcept |
Returns exchange code of the specified symbol or ‘’\0'` if none is defined.
| symbol | The symbol. |
Referenced by CandleExchange::getAttributeForSymbol().
|
inlinestaticnoexcept |
Returns true if the specified symbol has the exchange code specification.
| symbol | The symbol. |
true if the specified symbol has the exchange code specification.
|
inlinestaticnoexcept |
Removes one attribute with the specified key while leaving exchange code and other attributes intact.
| symbol | old symbol. |
| key | attribute key. |