|
dxFeed Graal CXX API v9.0.0
|
Identifies a source of Order, AnalyticOrder, OtcMarketsOrder, NuamOrder, SpreadOrder, and OrderImbalance events. More...
#include <OrderSource.hpp>
Public Member Functions | |
| OrderSource (const OrderSource &other) noexcept | |
| Creates a copy of the order source. | |
| OrderSource & | operator= (const OrderSource &other) noexcept=default |
| Copies the order source. | |
| bool | isPublishable (const EventTypeEnum &eventType) const |
| Returns true if the events of the given type can be directly published with this source. | |
| bool | isFullOrderBook () const noexcept |
| Returns true if this source supports Full Order Book. | |
| Public Member Functions inherited from IndexedEventSource | |
| void * | toGraal () const |
| Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
| IndexedEventSource (std::int32_t id, StringParam name) | |
| Creates the new IndexedEvent's source by id and name. | |
| IndexedEventSource (const IndexedEventSource &other) noexcept | |
| Creates a copy of the source. | |
| IndexedEventSource & | operator= (const IndexedEventSource &other) noexcept |
| Copies the identifier and the name of the source; the type of this source is kept. | |
| std::int32_t | id () const noexcept |
| Returns the source identifier. | |
| std::string | name () const |
| Returns the string representation of the object. | |
| std::string | toString () const |
| Returns the string representation of the object. | |
Static Public Member Functions | |
| static bool | isSpecialSourceId (std::int32_t sourceId) noexcept |
| Determines whether the specified source identifier refers to a special order source. | |
| static const OrderSource & | valueOf (std::int32_t sourceId) |
| Returns order source for the specified source identifier. | |
| static const OrderSource & | valueOf (StringParam name) |
| Returns order source for the specified source name. | |
| static std::span< const std::reference_wrapper< const OrderSource > > | publishable (const EventTypeEnum &eventType) |
| Returns a list of the publishable order sources for the given event type: the sources whose isPublishable is true, in the order of their declaration. | |
| static std::span< const std::reference_wrapper< const OrderSource > > | fullOrderBook () |
| Returns a list of the publishable order sources that support Full Order Book, in the order of their declaration. | |
| Static Public Member Functions inherited from IndexedEventSource | |
| static void | freeGraal (void *graalNative) |
| Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
| static IndexedEventSource | fromGraal (void *graalNative) |
| Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure. | |
Static Public Attributes | |
| static const ConstantMap< std::variant< std::int32_t, std::string_view >, OrderSource > | PREDEFINED_SOURCES {PredefinedSources::ENTRIES} |
| The predefined sources by identifier and by name. | |
| static const OrderSource | COMPOSITE_BID |
| Bid side of a composite Quote. | |
| static const OrderSource | COMPOSITE_ASK |
| Ask side of a composite Quote. | |
| static const OrderSource | REGIONAL_BID |
| Bid side of a regional Quote. | |
| static const OrderSource | REGIONAL_ASK |
| Ask side of a regional Quote. | |
| static const OrderSource | AGGREGATE_BID |
| Bid side of an aggregate order book (futures depth and NASDAQ Level II). | |
| static const OrderSource | AGGREGATE_ASK |
| Ask side of an aggregate order book (futures depth and NASDAQ Level II). | |
| static const OrderSource | COMPOSITE |
| Composite Quote. | |
| static const OrderSource | REGIONAL |
| Regional Quote. | |
| static const OrderSource | AGGREGATE |
| Aggregate order book (futures depth and NASDAQ Level II). | |
| static const OrderSource | DEFAULT |
| Default source for publishing custom order books. | |
| static const OrderSource | NTV |
| NASDAQ Total View. | |
| static const OrderSource | ntv |
| NASDAQ Total View. | |
| static const OrderSource | NFX |
| NASDAQ Futures Exchange. | |
| static const OrderSource | ESPD |
| NASDAQ eSpeed. | |
| static const OrderSource | XNFI |
| NASDAQ Fixed Income. | |
| static const OrderSource | ICE |
| Intercontinental Exchange. | |
| static const OrderSource | ISE |
| International Securities Exchange. | |
| static const OrderSource | DEA |
| Direct-Edge EDGA Exchange. | |
| static const OrderSource | DEX |
| Direct-Edge EDGX Exchange. | |
| static const OrderSource | dex |
| Direct-Edge EDGX Exchange. | |
| static const OrderSource | BYX |
| Bats BYX Exchange. | |
| static const OrderSource | BZX |
| Bats BZX Exchange. | |
| static const OrderSource | bzx |
| Bats BZX Exchange. | |
| static const OrderSource | BATE |
| Bats Europe BXE Exchange. | |
| static const OrderSource | CHIX |
| Bats Europe CXE Exchange. | |
| static const OrderSource | CEUX |
| Bats Europe DXE Exchange. | |
| static const OrderSource | BXTR |
| Bats Europe TRF. | |
| static const OrderSource | IST |
| Borsa Istanbul Exchange. | |
| static const OrderSource | BI20 |
| Borsa Istanbul Exchange. | |
| static const OrderSource | ABE |
| ABE (abe.io) exchange. | |
| static const OrderSource | FAIR |
| FAIR (FairX) exchange. | |
| static const OrderSource | GLBX |
| CME Globex. | |
| static const OrderSource | glbx |
| CME Globex. | |
| static const OrderSource | ERIS |
| Eris Exchange group of companies. | |
| static const OrderSource | XEUR |
| Eurex Exchange. | |
| static const OrderSource | xeur |
| Eurex Exchange. | |
| static const OrderSource | CFE |
| CBOE Futures Exchange. | |
| static const OrderSource | C2OX |
| CBOE Options C2 Exchange. | |
| static const OrderSource | SMFE |
| Small Exchange. | |
| static const OrderSource | smfe |
| Small Exchange. | |
| static const OrderSource | iex |
| Investors exchange. | |
| static const OrderSource | MEMX |
| Members Exchange. | |
| static const OrderSource | memx |
| Members Exchange. | |
| static const OrderSource | OCEA |
| Blue Ocean Technologies Alternative Trading System. | |
| static const OrderSource | ocea |
| Blue Ocean Technologies Alternative Trading System. | |
| static const OrderSource | pink |
| Pink Sheets. | |
| static const OrderSource | ARCA |
| NYSE Arca traded securities. | |
| static const OrderSource | arca |
| NYSE Arca traded securities. | |
| static const OrderSource | CEDX |
| Cboe European Derivatives. | |
| static const OrderSource | cedx |
| Cboe European Derivatives. | |
| static const OrderSource | IGC |
| IG CFDs Gate. | |
| static const OrderSource | igc |
| IG CFDs Gate. | |
| static const OrderSource | EDX |
| EDX Exchange. | |
| static const OrderSource | edx |
| EDX Exchange. | |
| static const OrderSource | NUAM |
| Nuam Exchange Gate. | |
| static const OrderSource | nuam |
| Nuam Exchange Gate. | |
| static const OrderSource | MOON |
| MOON ATS. | |
| static const OrderSource | moon |
| MOON ATS. | |
| static const OrderSource | OTCM |
| OTC Overnight. | |
| static const OrderSource | otcm |
| OTC Overnight. | |
| static const OrderSource | BOSS |
| Bruce book. | |
| static const OrderSource | boss |
| Bruce book. | |
| static const OrderSource | NEO |
| CBOE NEO book. | |
| static const OrderSource | neo |
| CBOE NEO book. | |
| Static Public Attributes inherited from IndexedEventSource | |
| static const IndexedEventSource | DEFAULT {0, ConstString::Literal{"DEFAULT"}} |
| The default source with zero identifier for all events that do not support multiple sources. | |
Friends | |
| struct | EventSourceWrapper |
Additional Inherited Members | |
| Protected Member Functions inherited from IndexedEventSource | |
| constexpr | IndexedEventSource (std::int32_t id, ConstString::Literal name, bool orderSource=false) noexcept |
| Creates a constant source in constant expressions. | |
| IndexedEventSource (std::int32_t id, StringParam name, bool orderSource) | |
| Creates a source of an OrderSource by id and name. | |
| IndexedEventSource (const IndexedEventSource &other, bool orderSource) noexcept | |
| Creates a copy of the source for an OrderSource. | |
| constexpr std::string_view | nameView () const noexcept |
Identifies a source of Order, AnalyticOrder, OtcMarketsOrder, NuamOrder, SpreadOrder, and OrderImbalance events.
There are the following kinds of order sources:
|
noexcept |
Creates a copy of the order source.
| other | The order source to copy. |
References OrderSource().
Referenced by OrderSource().
|
static |
Returns a list of the publishable order sources that support Full Order Book, in the order of their declaration.
The list is created at the first call and destroyed at exit, so the destructors of global variables should not use it.
|
noexcept |
| bool OrderSource::isPublishable | ( | const EventTypeEnum & | eventType | ) | const |
Returns true if the events of the given type can be directly published with this source.
Subscription on such sources can be observed directly via DXPublisher.
| eventType | EventTypeEnum::ORDER, EventTypeEnum::ANALYTIC_ORDER, EventTypeEnum::OTC_MARKETS_ORDER, EventTypeEnum::NUAM_ORDER, EventTypeEnum::SPREAD_ORDER or EventTypeEnum::ORDER_IMBALANCE. |
| InvalidArgumentException | if the event type is not one of the above. |
|
staticnoexcept |
Determines whether the specified source identifier refers to a special order source.
Special order sources are used for wrapping non-order events into order events.
| sourceId | the source identifier. |
|
defaultnoexcept |
Copies the order source.
| other | The order source to copy. |
|
static |
Returns a list of the publishable order sources for the given event type: the sources whose isPublishable is true, in the order of their declaration.
Events can be directly published with these sources, and their subscription can be observed directly via DXPublisher.
| eventType | EventTypeEnum::ORDER, EventTypeEnum::ANALYTIC_ORDER, EventTypeEnum::OTC_MARKETS_ORDER, EventTypeEnum::NUAM_ORDER, EventTypeEnum::SPREAD_ORDER or EventTypeEnum::ORDER_IMBALANCE. |
| InvalidArgumentException | if the event type is not one of the above. |
The lists are created at the first call and destroyed at exit, so the destructors of global variables should not use them.
|
static |
Returns order source for the specified source identifier.
| sourceId | the source identifier. |
|
static |
Returns order source for the specified source name.
The name must be either predefined or contain at most 4 alphanumeric characters.
| name | the name of the source. |
|
staticconstinit |
ABE (abe.io) exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Aggregate order book (futures depth and NASDAQ Level II).
It is an aggregate and unitary source that represents both bid and ask side. This source cannot be directly published via dxFeed API, but otherwise it is fully operational. To use this source when subscribing to all sources (e.g., when subscribing to an order without specifying a source), instead of OrderSource::AGGREGATE_ASK and OrderSource::AGGREGATE_BID, set the system property dxscheme.unitaryOrderSource to true.
|
staticconstinit |
Ask side of an aggregate order book (futures depth and NASDAQ Level II).
It is a aggregate and separate source. This source cannot be directly published via dxFeed API, but otherwise it is fully operational.
|
staticconstinit |
Bid side of an aggregate order book (futures depth and NASDAQ Level II).
It is an aggregate and separate source. This source cannot be directly published via dxFeed API, but otherwise it is fully operational.
|
staticconstinit |
NYSE Arca traded securities.
Order and OrderImbalance events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NYSE Arca traded securities.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats Europe BXE Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Borsa Istanbul Exchange.
Record for a particular top 20 order book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bruce book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bruce book.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats Europe TRF.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats BYX Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats BZX Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats BZX Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CBOE Options C2 Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Cboe European Derivatives.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Cboe European Derivatives.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats Europe DXE Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CBOE Futures Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Bats Europe CXE Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Composite Quote.
It is a synthetic and unitary source that represents both bid and ask side. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on the composite Quote event is observed when this source is subscribed to. To use this source when subscribing to all sources (e.g., when subscribing to an order without specifying a source), instead of OrderSource::COMPOSITE_ASK and OrderSource::COMPOSITE_BID, set the system property dxscheme.unitaryOrderSource to true.
|
staticconstinit |
Ask side of a composite Quote.
It is a synthetic and separate source. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on the composite Quote event is observed when this source is subscribed to.
|
staticconstinit |
Bid side of a composite Quote.
It is a synthetic source. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on the composite Quote event is observed when this source is subscribed to.
|
staticconstinit |
Direct-Edge EDGA Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Default source for publishing custom order books.
Order, AnalyticOrder, OtcMarketsOrder, NuamOrder, SpreadOrder, and OrderImbalance events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Direct-Edge EDGX Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Direct-Edge EDGX Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
EDX Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
EDX Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Eris Exchange group of companies.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NASDAQ eSpeed.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
FAIR (FairX) exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CME Globex.
Order and AnalyticOrder events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CME Globex.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Intercontinental Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Investors exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
IG CFDs Gate.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
IG CFDs Gate.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
International Securities Exchange.
Order and SpreadOrder events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Borsa Istanbul Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Members Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Members Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
MOON ATS.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
MOON ATS.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CBOE NEO book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
CBOE NEO book.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NASDAQ Futures Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NASDAQ Total View.
Order and OrderImbalance events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NASDAQ Total View.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Nuam Exchange Gate.
Order, NuamOrder, and OrderImbalance events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Nuam Exchange Gate.
Record for a price level book.
Order and NuamOrder events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Blue Ocean Technologies Alternative Trading System.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Blue Ocean Technologies Alternative Trading System.
Record for a price level book. Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
OTC Overnight.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
OTC Overnight.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Pink Sheets.
Record for a price level book. Pink sheets are listings for stocks that trade over-the-counter (OTC).
Order and OtcMarketsOrder events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
The predefined sources by identifier and by name.
It is constant-initialized, so it can be used in the dynamic initialization and the destruction of global variables.
|
staticconstinit |
Regional Quote.
It is a synthetic and unitary source that represents both bid and ask side. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on a regional Quote event is observed when this source is subscribed to. To use this source when subscribing to all sources (e.g., when subscribing to an order without specifying a source), instead of OrderSource::REGIONAL_ASK and OrderSource::REGIONAL_BID, set the system property dxscheme.unitaryOrderSource to true.
|
staticconstinit |
Ask side of a regional Quote.
It is a synthetic and separate source. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on a regional Quote event is observed when this source is subscribed to.
|
staticconstinit |
Bid side of a regional Quote.
It is a synthetic and separate source. It cannot be used with the DXFeed::getIndexedEventsPromise method, and it cannot be published directly to. The subscription on the regional Quote event is observed when this source is subscribed to.
|
staticconstinit |
Small Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Small Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Eurex Exchange.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
Eurex Exchange.
Record for a price level book.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.
|
staticconstinit |
NASDAQ Fixed Income.
Order events are publishable on this source and the corresponding subscription can be observed via DXPublisher.