- 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)
4 lines
46 B
CSV
4 lines
46 B
CSV
GGP,GB,100
|
|
PAF,GB,200
|
|
SVM,US,50
|
|
AAPL,US,3.6185 |