13 lines
364 B
Python
13 lines
364 B
Python
from __future__ import annotations
|
|
|
|
from typing import Dict
|
|
|
|
|
|
class PriceFeedAdapter:
|
|
"""Simple in-memory price feed adapter."""
|
|
def __init__(self, prices: Dict[str, float] | None = None) -> None:
|
|
self._prices = prices or {"AAPL": 150.0, "BTC": 60000.0, "USDC": 1.0}
|
|
|
|
def get_prices(self) -> Dict[str, float]:
|
|
return dict(self._prices)
|