pipenv install
uvicorn main:app --reload
- get
-
request
- query parameter로 전달
- ex)
get_ticker/?company_name=naver
-
response
{ "success": true, "ticker": "[company's ticker]", }
{ "success": false, "message": "Wrong Company Name: [requested company name] (Excluded from calculation)" }
-
- post
-
request
{ "cs_model": "EW", "ts_model": "VT", "tickers": ["AAPL", "NVDA"], "startyear": "2010-01-01" }
-
response
{ "report_html": html file as string type }
-
- post
-
request body
{ "cs_model": "EW", "ts_model": "VT", "tickers": ["AAPL", "NVDA"], "startyear": "2010-01-01" }
-
response
{ "port_weights_img": port_weights_img, "asset_performance_img": asset_performance_img, "portfolio_performance_img": portfolio_performance_img }
-