Fix position list validation

This commit is contained in:
2022-11-29 07:20:39 +00:00
parent 6321fb9089
commit 4e1b574921
2 changed files with 36 additions and 17 deletions

View File

@@ -5,23 +5,25 @@ from pydantic import BaseModel
class PositionLong(BaseModel):
units: str
averagePrice: str
averagePrice: str | None
pl: str
resettablePL: str
financing: str
dividendAdjustment: str
guaranteedExecutionFees: str
tradeIDs: list[str]
tradeIDs: list[str] | None
unrealizedPL: str
class PositionShort(BaseModel):
units: str
averagePrice: str | None
pl: str
resettablePL: str
financing: str
dividendAdjustment: str
guaranteedExecutionFees: str
tradeIDs: list[str] | None
unrealizedPL: str