ccxt: 403 Forbidden but I make 5 requests per minutes, change in ccxt???
MUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):
https://github.com/ccxt/ccxt/blob/master/FAQ https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
Make sure your local version of CCXT is up to date. Check by comparing the output of ccxt.version to https://github.com/ccxt/ccxt/blob/master/package.json#L3
- OS: OS Catalina
- Programming Language version: Python
- CCXT version:1.25.93
I request 1 time for minutes the following requests:
bitmex.load_markets(True)
bitmex.fetch_balance()
margin_balance = bitmex.private_get_position({'filter': bitmex.json({"symbol":"XBTUSD"})})
I never had a problem but now I soon find my self 403 forbidden to access bitmex.
Did something changed from previous versions?
Starting_Capital = get_balance() File “Master_project.py”, line 107, in get_balance bitmexBalance = bitmex.fetch_balance() File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/bitmex.py”, line 260, in fetch_balance self.load_markets() File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 1286, in load_markets markets = self.fetch_markets(params) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/bitmex.py”, line 180, in fetch_markets response = self.publicGetInstrumentActiveAndIndices(params) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 446, in inner return entry(_self, **inner_kwargs) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 469, in request return self.fetch2(path, api, method, params, headers, body) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 465, in fetch2 return self.fetch(request[‘url’], request[‘method’], request[‘headers’], request[‘body’]) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 575, in fetch self.handle_rest_errors(http_status_code, http_status_text, http_response, url, method) File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 602, in handle_rest_errors raise error(’ '.join([method, url, string_code, http_status_text, body])) ccxt.base.errors.ExchangeNotAvailable: GET https://www.bitmex.com/api/v1/instrument/activeAndIndices 403 Forbidden <html>
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 32 (17 by maintainers)
my friend, don’t tell me why and how. When I closed the programs from various terminal window. Some how some processes went on going. This was the problem. Having multiple instances running at the same time.
Bro you should have some donation link, the effort you put on a daily basis is unseen. turn off the computer, everything is back to normal. don’t know how the processes were in the back ground even though I ctrl - c them in the terminal… Thanks for your time. You are the best man.