acrodemocide / StockAnalyzerApi

This API is used for gathering stock data and returning analyses on different asset types and how they can be compared.
0 stars 2 forks source link

Update post endpoint to take stock tickers #8

Open acrodemocide opened 1 year ago

acrodemocide commented 1 year ago

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.

acrodemocide commented 1 year ago

asdf