Skip to content

coinprices/IPriceSource.hpp

Namespaces

Name
sgns

Classes

Name
class sgns::IPriceSource
One price-fetch tier behind the LocalPriceManager (D-13).

Source code

#pragma once

#include "PriceFetchError.hpp"
#include "PriceQuote.hpp"

#include <string>
#include <vector>

namespace sgns
{
    class IPriceSource
    {
    public:
        virtual ~IPriceSource() = default;

        virtual PriceResult<std::vector<PriceQuote>> FetchPrices( const std::vector<std::string> &tokenIds,
                                                                  const std::string              &currency = "usd" ) = 0;
    };
} // namespace sgns

Updated on 2026-10-09 at 04:02:50 +0000