Skip to content

Commit

Permalink
fix(orders): Switch acct id from int to str
Browse files Browse the repository at this point in the history
  • Loading branch information
LaikaN57 committed May 2, 2023
1 parent 6a66326 commit 1976b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ally/Order/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(
"""
self.otype = type_
self.account = None
self.account: str = None
self.orderid = None
self._status = None

Expand Down Expand Up @@ -222,7 +222,7 @@ def set_orderid(self, orderid):
"""
self.orderid = orderid

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

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

0 comments on commit 1976b19

Please sign in to comment.