20#ifndef ORES_MARKETDATA_API_DOMAIN_MARKET_OBSERVATION_HPP
21#define ORES_MARKETDATA_API_DOMAIN_MARKET_OBSERVATION_HPP
26#include <boost/uuid/uuid.hpp>
27#include "ores.utility/uuid/tenant_id.hpp"
29namespace ores::marketdata::domain {
47 boost::uuids::uuid
id{};
A single value on a market series at a specific date and tenor point.
Definition market_observation.hpp:43
boost::uuids::uuid series_id
Foreign key to the parent market_series.
Definition market_observation.hpp:57
std::string value
The observed market value as a string (e.g. "0.034567").
Definition market_observation.hpp:76
std::chrono::year_month_day observation_date
Financial valid-time: the date the market was observed.
Definition market_observation.hpp:62
std::chrono::system_clock::time_point recorded_at
Transaction time: when this row was inserted into the system.
Definition market_observation.hpp:88
std::optional< std::string > source
Optional data source identifier (e.g. "BLOOMBERG", "REUTERS").
Definition market_observation.hpp:81
std::optional< std::string > point_id
Tenor or surface coordinate for term structure series.
Definition market_observation.hpp:71
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition market_observation.hpp:52
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66
static tenant_id system()
Creates a tenant_id representing the system tenant.
Definition tenant_id.cpp:41