- Add `get_fx_rate()` function with caching to fetch foreign exchange rates from open.er-api.com - Introduce `get_currency()` helper to map market codes to currency identifiers - Update price parsing regex to support multiple currency symbols (£, $, €) - Convert shares to float to accommodate fractional holdings - Add currency, fx_rate, and total_value_gbp fields to output JSON - Support fractional share counts (e.g., 3.6185 AAPL shares)
46 B
46 B
| 1 | GGP | GB | 100 |
|---|---|---|---|
| 2 | PAF | GB | 200 |
| 3 | SVM | US | 50 |
| 4 | AAPL | US | 3.6185 |