BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
Instrument.h File Reference
#include <array>
#include <cstdint>
#include <stdexcept>
#include <string_view>
Include dependency graph for Instrument.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  common
 

Enumerations

enum class  common::Instrument : uint8_t {
  common::EURUSD ,
  common::USDJPY ,
  common::GBPUSD ,
  common::USDCAD ,
  common::USDINR ,
  common::EURINR ,
  common::GBPINR ,
  common::AUDUSD ,
  common::USDMXN ,
  common::COUNT
}
 Represents the financial instruments available for trading. More...
 

Functions

Instrument common::from_string (std::string_view name)
 Converts a string to its corresponding Instrument enum.
 
std::string common::to_string (Instrument symbol)
 Converts an Instrument enum to its string representation.
 

Variables

constexpr std::array< std::string_view, static_cast< size_t >(Instrument::COUNT)> common::symbol_names
 An array of string representations for the Instrument enum.