Skip to content

Commit

Permalink
make it better
Browse files Browse the repository at this point in the history
  • Loading branch information
rushjam committed Aug 4, 2022
1 parent 16db090 commit e9583b5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Binary file modified __pycache__/main.cpython-39.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sqlite3
import uvicorn
from urllib import response
import config
from fastapi import FastAPI, Request, Form
Expand Down Expand Up @@ -172,3 +173,7 @@ def strategy(request: Request, strategy_id):
stocks = cursor.fetchall()

return templates.TemplateResponse("strategy.html", {"request": request, "stocks": stocks, "strategy": strategy})


if __name__ == "__main__":
uvicorn.run("main:app", host="127.0.0.1", port=8000, log_level="info")
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
alpaca_trade_api==2.3.0
fastapi==0.79.0
newtulipy==0.4.6
numpy==1.20.3
tulipy==0.4.0
uvicorn==0.12.3
aiofiles==0.6.0
python-multipart==0.0.5
jinja2==2.11.2
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.9.5

0 comments on commit e9583b5

Please sign in to comment.