Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 1.43 KB

ReadMe.md

File metadata and controls

83 lines (63 loc) · 1.43 KB

Setup Virtual Environment

pipenv install

Run Development Server

uvicorn main:app --reload

API Endpoint

/get_ticker/?companyname=회사명

  • 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)"
      }

/generate_html_report

  • post
    • request

      {
      	"cs_model": "EW",
      	"ts_model": "VT",
      	"tickers": ["AAPL", "NVDA"],
      	"startyear": "2010-01-01"
      }
    • response

      {
      	"report_html": html file as string type
      }

/backtest_result

  • 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
      }