From 1976b1951dceadd7993f7d2703c7187e93a029c2 Mon Sep 17 00:00:00 2001 From: Alex Kennedy Date: Tue, 2 May 2023 07:38:45 -0700 Subject: [PATCH] fix(orders): Switch acct id from int to str --- ally/Order/order.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ally/Order/order.py b/ally/Order/order.py index 621a7fd..a0fc403 100644 --- a/ally/Order/order.py +++ b/ally/Order/order.py @@ -85,7 +85,7 @@ def __init__( """ self.otype = type_ - self.account = None + self.account: str = None self.orderid = None self._status = None @@ -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 @@ -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.