After login, I've been having issues calling any other function. I repeatedly get the error below if I call any function after login, but the login shows successful with appropriate MFA and security questions.
Has anyone else encountered this issue or have any ideas? I receive the error on both 0.3.3 and 0.3.4. Here is the full executed script, obviously with the login credentials replaced:
Hello,
After login, I've been having issues calling any other function. I repeatedly get the error below if I call any function after login, but the login shows successful with appropriate MFA and security questions.
Has anyone else encountered this issue or have any ideas? I receive the error on both 0.3.3 and 0.3.4. Here is the full executed script, obviously with the login credentials replaced:
webull = webull() webull.get_mfa('test@test.com') webull.get_security('test@test.com') webull.login('test@test.com', 'pa$$w0rd' , 'AnythingYouWant', 'mfa code', 'Security Question ID', 'Security Question Answer') webull.get_portfolio()
Here is the returned log:
---> 15 orders = wb.get_portfolio()
5 frames /usr/local/lib/python3.7/dist-packages/webull/webull.py in get_portfolio(self) 287 output numbers of portfolio 288 ''' --> 289 data = self.get_account() 290 output = {} 291 for item in data['accountMembers']:
/usr/local/lib/python3.7/dist-packages/webull/webull.py in get_account(self) 273 headers = self.build_req_headers() 274 response = requests.get(self._urls.account(self._account_id), headers=headers) --> 275 result = response.json() 276 return result 277
/usr/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)