portfolio_toolkit.watchlist.watchlist_from_dict module
- portfolio_toolkit.watchlist.watchlist_from_dict.create_watchlist(data: dict, data_provider: DataProvider) Watchlist [source]
Loads and validates a JSON file containing watchlist information.
- Parameters:
json_filepath (str) – Path to the JSON file to load data from.
data_provider (DataProvider) – Data provider instance for fetching ticker information.
- Returns:
An instance of the Watchlist class with loaded assets.
- Return type: