Skip to content

Polapo-Invest/polapo-fastapi

Repository files navigation

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
      }

About

backend for trading utilization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published