You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why is the self.accountIds = account_ids or []?
Is this intentional?
Or should we use self.accountIds = account_ids or os.environ['TDAMERITRADE_ACCOUNT_ID']?
class TDClient(object):
def __init__(self, client_id=None, refresh_token=None, account_ids=None):
self._clientId = client_id or os.environ['TDAMERITRADE_CLIENT_ID']
self._refreshToken = refresh_token or os.environ['TDAMERITRADE_REFRESH_TOKEN']
self.accountIds = account_ids or []
self.session = TDASession(self._refreshToken, self._clientId)
The text was updated successfully, but these errors were encountered:
account_ids isn't necessary to be set, as generally speaking most people either have a single account, or want information on all their accounts. we could pick it up from the environment, sure, but theres no need since its not a secret like the tokens are. so making it an argument is fine.
why is the
self.accountIds = account_ids or []
?Is this intentional?
Or should we use
self.accountIds = account_ids or os.environ['TDAMERITRADE_ACCOUNT_ID']
?The text was updated successfully, but these errors were encountered: