Tasks#
fetch_historical_data(index=None)#
Fetches historical prices data from the internet (YAHOO!). Each price is checked if it’s valid (format) and then saved into database. When all records are saved we perform following actions:
regenerate cache
regenerate performance chart
regenerate open investments chart
The task takes 1 param. PK of Index
. If index PK is specified only that
index is fetched. If not all indexes in the database will be fetched one by one.