Skip to content

Commit 46fafdd

Browse files
authored
fix(orders): Switch acct id from int to str (#75)
1 parent 6a66326 commit 46fafdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ally/Order/order.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(
8585
8686
"""
8787
self.otype = type_
88-
self.account = None
88+
self.account: str = None
8989
self.orderid = None
9090
self._status = None
9191

@@ -222,7 +222,7 @@ def set_orderid(self, orderid):
222222
"""
223223
self.orderid = orderid
224224

225-
def set_account(self, account):
225+
def set_account(self, account: str):
226226
"""Specifies the account used to execute an order.
227227
228228
Users shouldn't really need to use this under normal circumstances, this
@@ -231,7 +231,7 @@ def set_account(self, account):
231231
Can be viewed at obj.account
232232
233233
"""
234-
self.account = int(str(account)[:8])
234+
self.account = str(account)[:8]
235235

236236
def set_symbol(self, symbol: str):
237237
"""Sets the order's instrument.

0 commit comments

Comments
 (0)