Skip to content

Commit

Permalink
new fields in OrderResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
DBoyara committed Jan 27, 2024
1 parent 2aec7aa commit ab4fb23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions finam_trade_api/order/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ class OrderStatus(str, Enum):
Matched = "Matched"


class OrderMarket(str, Enum):
Stock = "Stock"
Forts = "Forts"
Spbex = "Spbex"
Mma = "Mma"
Ets = "Ets"
Bonds = "Bonds"
Options = "Options"


class OrderResponse(BaseModel):
orderNo: int
transactionId: int
Expand All @@ -88,6 +98,8 @@ class OrderResponse(BaseModel):
currency: Optional[str] = None
condition: Optional[Condition] = None
validBefore: Optional[ValidBefore] = None
securityBoard: Optional[str] = None
market: Optional[OrderMarket] = None


class OrdersResponseData(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "finam-trade-api"
version = "2.1.0"
version = "2.1.1"
description = "Асинхронный REST-клиент для API Finam"
authors = ["DBoyara <[email protected]>"]
license = "GNU GPL v.3.0"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
maintainer="DBoyara",
maintainer_email="[email protected]",
packages=find_packages(),
version="2.1.0",
version="2.1.1",
install_requires=["aiohttp >= 3.8.3, < 4.0.0", "pydantic >= 1.10.2, < 2.0.0"],
python_requires=">3.7.0, <4",
license="GNU GPL v.3.0",
Expand Down

0 comments on commit ab4fb23

Please sign in to comment.