diff --git a/alpaca/common/exceptions.py b/alpaca/common/exceptions.py index 1e928056..298acdec 100644 --- a/alpaca/common/exceptions.py +++ b/alpaca/common/exceptions.py @@ -20,7 +20,7 @@ def __init__(self, error, http_error=None): detailed_error["method"] = http_error.request.method detailed_error["url"] = http_error.request.url # add tips for auth key error - if detailed_error["status_code"] in [401, 403]: + if detailed_error["status_code"] == 401: detailed_error[ "tips" ] = "please check your API key and environment (paper/sandbox/live)"