Skip to content

Commit 8c06655

Browse files
Sync client-python with OpenAPI spec (#1001)
* Sync client-python with OpenAPI spec (fixes) * Fix lint formatting
1 parent c1a2c77 commit 8c06655

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

massive/rest/models/trades.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Trade:
1717
tape: Optional[int] = None
1818
trf_id: Optional[int] = None
1919
trf_timestamp: Optional[int] = None
20+
decimal_size: Optional[str] = None
2021

2122
@staticmethod
2223
def from_dict(d):
@@ -39,6 +40,7 @@ class LastTrade:
3940
size: Optional[float] = None
4041
exchange: Optional[int] = None
4142
tape: Optional[int] = None
43+
fractional_shares: Optional[str] = None
4244

4345
@staticmethod
4446
def from_dict(d):
@@ -49,14 +51,14 @@ def from_dict(d):
4951
d.get("t", None),
5052
d.get("y", None),
5153
d.get("c", None),
52-
d.get("ds", None),
5354
d.get("e", None),
5455
d.get("i", None),
5556
d.get("p", None),
5657
d.get("r", None),
5758
d.get("s", None),
5859
d.get("x", None),
5960
d.get("z", None),
61+
d.get("ds", None),
6062
)
6163

6264

massive/websocket/models/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class EquityTrade:
8686
tape: Optional[int] = None
8787
price: Optional[float] = None
8888
size: Optional[int] = None
89+
fractional_shares: Optional[str] = None
8990
conditions: Optional[List[int]] = None
9091
timestamp: Optional[int] = None
9192
sequence_number: Optional[int] = None

0 commit comments

Comments
 (0)