sgns::IPriceSource¶
One price-fetch tier behind the LocalPriceManager (D-13). More...
#include <IPriceSource.hpp>
Inherited by sgns::PriceHttpClientSource
Public Functions¶
| Name | |
|---|---|
| virtual | ~IPriceSource() =default Virtual destructor to prevent memory leaks from derived classes. |
| virtual PriceResult< std::vector< PriceQuote > > | FetchPrices(const std::vector< std::string > & tokenIds, const std::string & currency ="usd") =0 Fetch current prices for the given asset ids. |
Detailed Description¶
One price-fetch tier behind the LocalPriceManager (D-13).
Note: The shape matches PriceHttpClient::FetchPrices minus the (currently vestigial, dead) ioc parameter — the manager owns the executor and hands it to the adapters at construction (D-04).
Public Functions Documentation¶
function ~IPriceSource¶
Virtual destructor to prevent memory leaks from derived classes.
function FetchPrices¶
virtual PriceResult< std::vector< PriceQuote > > FetchPrices(
const std::vector< std::string > & tokenIds,
const std::string & currency ="usd"
) =0
Fetch current prices for the given asset ids.
Parameters:
- tokenIds Asset ids, e.g. {"genius-ai"}
- currency Target currency, default "usd"
Return: One PriceQuote per id the source returned (unknown ids are absent, not errors — Phase-1 D-09 semantics), or a status-bearing PriceFetchFailure
Reimplemented by: sgns::PriceHttpClientSource::FetchPrices
Updated on 2026-10-09 at 04:02:48 +0000