sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.01k stars 2.2k forks source link

Binance API issue #1413

Open Shaheer78611 opened 5 months ago

Shaheer78611 commented 5 months ago

client = Client(config.API_KEY , config.API_SECRET,tld='us')

this is my code and this is the error i am having

Exception has occurred: BinanceAPIException APIError(code=0): Invalid JSON error message from Binance: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: BzptfXbqFbB8GHA_XxCvgDnfpyQ3NIyzMMqMsEyEMgPT7HVwTZbDnQ==

File "C:\Users\shahe\RSIBOT\bot.py", line 17, in client = Client(config.API_KEY , config.API_SECRET,tld='us') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ binance.exceptions.BinanceAPIException: APIError(code=0): Invalid JSON error message from Binance: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: BzptfXbqFbB8GHA_XxCvgDnfpyQ3NIyzMMqMsEyEMgPT7HVwTZbDnQ==