idea115-taxalpha-studio-dec.../idea115_taxalpha_studio_dec.../adapters/custodian_adapter.py

17 lines
697 B
Python

from datetime import date
from typing import List
from ..ir import TaxLot
def fetch_mock_custodian_lots() -> List[TaxLot]:
"""Return a small deterministic set of lots for integration testing.
In a real adapter this would call custodian APIs and map responses to the
canonical IR. For Phase-0 we provide a mocked deterministic dataset.
"""
return [
TaxLot(id="lotA", acquisition_date=date(2019, 6, 1), basis=100.0, quantity=10, market_value=80.0),
TaxLot(id="lotB", acquisition_date=date(2020, 1, 15), basis=50.0, quantity=5, market_value=70.0),
TaxLot(id="lotC", acquisition_date=date(2018, 3, 3), basis=200.0, quantity=2, market_value=150.0),
]