Skip to content

Commit 7f813db

Browse files
authored
Update models.py
1 parent fda2ff4 commit 7f813db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from pydantic import RootModel
21
# generated by datamodel-codegen:
32
# filename: QuantConnect-Platform-2.0.0.yaml
4-
# timestamp: 2025-06-24T17:03:17+00:00
3+
# timestamp: 2025-06-24T22:43:08+00:00
54

65
from __future__ import annotations
6+
from pydantic import RootModel, ConfigDict
77

88
from datetime import date, datetime
99
from enum import Enum
@@ -1552,8 +1552,8 @@ class Direction1(Enum):
15521552
class GoodTilCanceledTimeInForce(BaseModel):
15531553
pass
15541554

1555-
class Config:
1556-
extra = Extra.forbid
1555+
model_config = ConfigDict(extra='forbid')
1556+
15571557

15581558

15591559
class Type3(Enum):
@@ -1563,8 +1563,8 @@ class Type3(Enum):
15631563

15641564

15651565
class DayTimeInForce(BaseModel):
1566-
class Config:
1567-
extra = Extra.forbid
1566+
model_config = ConfigDict(extra='forbid')
1567+
15681568

15691569
type: Annotated[Type3, Field(alias='$type', description='The type of TimeInForce.')]
15701570

@@ -1576,8 +1576,8 @@ class Type4(Enum):
15761576

15771577

15781578
class GoodTilDateTimeInForce(BaseModel):
1579-
class Config:
1580-
extra = Extra.forbid
1579+
model_config = ConfigDict(extra='forbid')
1580+
15811581

15821582
type: Annotated[Type4, Field(alias='$type', description='The type of TimeInForce.')]
15831583
Expiry: Annotated[

0 commit comments

Comments
 (0)