Skip to content

Commit d7ba111

Browse files
authored
new fields in OrderResponse (#33)
1 parent 2aec7aa commit d7ba111

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

finam_trade_api/order/model.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ class OrderStatus(str, Enum):
7272
Matched = "Matched"
7373

7474

75+
class OrderMarket(str, Enum):
76+
Stock = "Stock"
77+
Forts = "Forts"
78+
Spbex = "Spbex"
79+
Mma = "Mma"
80+
Ets = "Ets"
81+
Bonds = "Bonds"
82+
Options = "Options"
83+
84+
7585
class OrderResponse(BaseModel):
7686
orderNo: int
7787
transactionId: int
@@ -88,6 +98,8 @@ class OrderResponse(BaseModel):
8898
currency: Optional[str] = None
8999
condition: Optional[Condition] = None
90100
validBefore: Optional[ValidBefore] = None
101+
securityBoard: Optional[str] = None
102+
market: Optional[OrderMarket] = None
91103

92104

93105
class OrdersResponseData(BaseModel):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "finam-trade-api"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "Асинхронный REST-клиент для API Finam"
55
authors = ["DBoyara <[email protected]>"]
66
license = "GNU GPL v.3.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
maintainer="DBoyara",
66
maintainer_email="[email protected]",
77
packages=find_packages(),
8-
version="2.1.0",
8+
version="2.1.1",
99
install_requires=["aiohttp >= 3.8.3, < 4.0.0", "pydantic >= 1.10.2, < 2.0.0"],
1010
python_requires=">3.7.0, <4",
1111
license="GNU GPL v.3.0",

0 commit comments

Comments
 (0)