- Set up virtualenv and install requirements from
requirements.txt
- Command to perform initial data loading into database
./manage.py load_timeseries csv_file.csv
- Run server
/api/series/
- Get data for series
Params:
series - series name
/api/series/monthly_return/
- Get monthly returns for series
Params:
series - series name
Initial data is loaded into db using SeriesLoaderService (/applications/timeseries/services.py
)
Data loaded by doing API call with series name (see /static/main.js
- loadData function)
See /static/main.js
- rescale function
Backend - API endpoint uses MonthlyReturnService to help with value calculation /applications/timeseries/services.py
Frontend - see /static/main.js
- monthlyReturn function