Traceback (most recent call last):
File “/home/ubuntu/.local/lib/python3.6/site-packages/alpaca_trade_api/rest.py”, line 160, in _one_request
resp.raise_for_status()
File “/home/ubuntu/.local/lib/python3.6/site-packages/requests/models.py”, line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://paper-api.alpaca.markets/v2/account
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “./wsb_trades.py”, line 75, in
if api.get_account().trading_blocked:
File “/home/ubuntu/.local/lib/python3.6/site-packages/alpaca_trade_api/rest.py”, line 198, in get_account
resp = self.get(’/account’)
File “/home/ubuntu/.local/lib/python3.6/site-packages/alpaca_trade_api/rest.py”, line 176, in get
return self._request(‘GET’, path, data)
File “/home/ubuntu/.local/lib/python3.6/site-packages/alpaca_trade_api/rest.py”, line 139, in _request
return self._one_request(method, url, opts, retry)
File “/home/ubuntu/.local/lib/python3.6/site-packages/alpaca_trade_api/rest.py”, line 168, in _one_request
raise APIError(error, http_error)
alpaca_trade_api.rest.APIError: account not found for 702bdb09-64f1-4985-9b9b-6481bbd1b57c