2026-03-08 10:15:23 +01:00
|
|
|
//
|
|
|
|
|
// Created by David Doebel on 06.03.2026.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef QUANTENGINE_MARKETDATA_HPP
|
|
|
|
|
#define QUANTENGINE_MARKETDATA_HPP
|
|
|
|
|
#include "YieldCurve.hpp"
|
|
|
|
|
#include "VolatilitySurface.hpp"
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
class MarketData {
|
|
|
|
|
public:
|
2026-03-12 12:10:13 +01:00
|
|
|
MarketData() = delete;
|
2026-03-08 10:15:23 +01:00
|
|
|
|
2026-03-12 12:10:13 +01:00
|
|
|
MarketData(double spot, std::shared_ptr<const YieldCurve> yield_curve,
|
|
|
|
|
std::shared_ptr<const VolatilitySurface> volatility_surface)
|
2026-03-08 10:15:23 +01:00
|
|
|
: spot_(spot),
|
|
|
|
|
yield_curve_(std::move(yield_curve)),
|
|
|
|
|
volatility_surface_(std::move(volatility_surface)) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
double spot() const;
|
2026-03-12 12:10:13 +01:00
|
|
|
const YieldCurve& yield_curve() const;
|
|
|
|
|
const VolatilitySurface& volatility_surface() const;
|
2026-03-08 10:15:23 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
double spot_;
|
2026-03-12 12:10:13 +01:00
|
|
|
std::shared_ptr<const YieldCurve> yield_curve_;
|
|
|
|
|
std::shared_ptr<const VolatilitySurface> volatility_surface_;
|
2026-03-08 10:15:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2026-03-12 12:10:13 +01:00
|
|
|
#endif //QUANTENGINE_MARKETDATA_HPP
|