Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::SymbolKey Struct Reference

An instrument is identified by both venue and name. More...

#include <common/symbol_manager.hpp>

Collaboration diagram for slick::sim::SymbolKey:

Public Member Functions

bool operator== (const SymbolKey &other) const noexcept

Public Attributes

Venue venue
symbol_name_t name

Detailed Description

An instrument is identified by both venue and name.

Using the name alone would make instruments with the same ticker on different venues collide: the second Symbol would be unreachable, and lookups would return the first.

Definition at line 15 of file symbol_manager.hpp.

Member Function Documentation

◆ operator==()

bool slick::sim::SymbolKey::operator== ( const SymbolKey & other) const
inlinenoexcept

Definition at line 19 of file symbol_manager.hpp.

References name, and venue.

Member Data Documentation

◆ name

symbol_name_t slick::sim::SymbolKey::name

Definition at line 17 of file symbol_manager.hpp.

Referenced by operator==().

◆ venue

Venue slick::sim::SymbolKey::venue

Definition at line 16 of file symbol_manager.hpp.

Referenced by operator==().


The documentation for this struct was generated from the following file: