Our post endpoint for DjangoRest (BackTestResults) in the views.py file needs to take a list of stock tickers that can be passed into the return_graph_vals function so that Chris can then use those tickers to generate a portfolio based on what is passed in the request.
The endpoint will generate the same result structure as before, but instead of using a predetermined list of stocks, it will use the stocks and the percentages that have been passed into it and validate that the percentages add up to 100%
Acceptance Criteria
1- The post body takes a list of stock tickers.
2- The stock tickers are deserialized and passed as a simple Python array of strings for those tickers.
Our post endpoint for DjangoRest (BackTestResults) in the views.py file needs to take a list of stock tickers that can be passed into the return_graph_vals function so that Chris can then use those tickers to generate a portfolio based on what is passed in the request.
The endpoint will generate the same result structure as before, but instead of using a predetermined list of stocks, it will use the stocks and the percentages that have been passed into it and validate that the percentages add up to 100%
Acceptance Criteria 1- The post body takes a list of stock tickers. 2- The stock tickers are deserialized and passed as a simple Python array of strings for those tickers.