From aa7ea148c519b3bb655337e3236ad2653250cce9 Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:13:49 -0500 Subject: [PATCH] fix account totals --- webullAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webullAPI.py b/webullAPI.py index f13a2f51..82915064 100644 --- a/webullAPI.py +++ b/webullAPI.py @@ -77,8 +77,8 @@ def webull_init(WEBULL_EXTERNAL=None): wb_obj.set_account_number(name, ac["accountNumber"]) print(maskString(ac["accountNumber"])) wb_obj.set_logged_in_object(name, id, ac["accountNumber"]) - wb_obj.set_account_type(name, id, ac["accountTypeName"]) - wb_obj.set_account_totals(name, id, ac["netLiquidationValue"]) + wb_obj.set_account_type(name, ac["accountNumber"], ac["accountTypeName"]) + wb_obj.set_account_totals(name, ac["accountNumber"], ac["netLiquidationValue"]) except Exception as e: print(traceback.format_exc()) print(f"Error: Unable to log in to Webull: {e}")