Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Negative_Cycles_Market_Data Namespace Reference

Classes

struct  Market_Quote
 Best bid and ask of one pair, with the price scale of both. More...
 
struct  Market_Snapshot
 State of the whole market at one instant. More...
 

Variables

constexpr int asset_count = 6
 Number of assets of the market: BTC, ETH, SOL, BNB, USDT and USDC.
 
constexpr int pair_count = 15
 Number of pairs, one for each pair of assets.
 
constexpr const char *const asset_names [asset_count] = {"BTC", "ETH", "SOL", "BNB", "USDT", "USDC"}
 Names of the assets, indexed by Market_Quote::base and Market_Quote::quote.
 
const Market_Snapshot snapshots []
 The snapshots, in chronological order.
 
constexpr std::size_t snapshot_count = sizeof(snapshots) / sizeof(snapshots[0])
 Number of snapshots.
 

Variable Documentation

◆ asset_count

constexpr int Negative_Cycles_Market_Data::asset_count = 6
inlineconstexpr

Number of assets of the market: BTC, ETH, SOL, BNB, USDT and USDC.

Definition at line 73 of file negative_cycles_market_snapshots.H.

◆ asset_names

constexpr const char* const Negative_Cycles_Market_Data::asset_names[asset_count] = {"BTC", "ETH", "SOL", "BNB", "USDT", "USDC"}
inlineconstexpr

Names of the assets, indexed by Market_Quote::base and Market_Quote::quote.

Definition at line 79 of file negative_cycles_market_snapshots.H.

◆ pair_count

constexpr int Negative_Cycles_Market_Data::pair_count = 15
inlineconstexpr

Number of pairs, one for each pair of assets.

Definition at line 76 of file negative_cycles_market_snapshots.H.

◆ snapshot_count

constexpr std::size_t Negative_Cycles_Market_Data::snapshot_count = sizeof(snapshots) / sizeof(snapshots[0])
inlineconstexpr

Number of snapshots.

Definition at line 430 of file negative_cycles_market_snapshots.H.

◆ snapshots

const Market_Snapshot Negative_Cycles_Market_Data::snapshots[]
inline

The snapshots, in chronological order.

Definition at line 102 of file negative_cycles_market_snapshots.H.

Referenced by TEST(), TEST(), TEST(), and TEST().