feat: update api schema custom data related classes

This commit is contained in:
Axel-CH
2025-03-11 23:43:30 -04:00
parent 5402b14336
commit 97faa7fc5a

View File

@@ -639,6 +639,16 @@ class Health(BaseModel):
bot_startup_ts: int | None = None
class CustomDataEntry(BaseModel):
id: int
ft_trade_id: int
cd_key: str
cd_type: str
cd_value: Any
created_at: datetime
updated_at: datetime | None = None
class ListCustomData(BaseModel):
trade_id: int
custom_data: list[dict[str, Any]]
custom_data: list[CustomDataEntry]