docasne ulozeni DYNAMICKY REFACTORING _NEW

This commit is contained in:
David Brazda
2023-07-11 19:25:08 +02:00
parent 2551ccf729
commit 2a9b2a1c7c
17 changed files with 1829 additions and 36 deletions

View File

@ -25,6 +25,16 @@ from alpaca.data.enums import Exchange
# raise HTTPException(status_code=404, detail=f"Could not find user with id: {id}")
class Intervals(BaseModel):
start: str
end: str
# Define the data model for the TestLists
class TestList(BaseModel):
id: Optional[UUID | str | None] = None
name: str
dates: List[Intervals]
#for GUI to fetch historical trades on given symbol
class Trade(BaseModel):
symbol: str