Binance - fetch_my_trades - binance requires `apiKey`
See original GitHub issue- OS: Mac OS
- Programming Language version: Python 3.6
- CCXT version: latest
- Exchange: Binance
- Method: fetch_my_trades
Hi there,
I’m getting a “binance requires apiKey
” authentification error each time I try to use fetch_my_trade on Binance. Please see log trace below:
Traceback (most recent call last):
File “/Users/florent/PycharmProjects/light/exchanges/binance.py”, line 94, in fetch_my_trades
my_trades = self.ccxt.fetch_my_trades(symbol, since=rounded, limit=None)
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/binance.py”, line 822, in fetch_my_trades
response = self.privateGetMyTrades(self.extend(request, params))
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 362, in inner
return entry(_self, **inner_kwargs)
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/binance.py”, line 1129, in request
response = self.fetch2(path, api, method, params, headers, body)
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 386, in fetch2
request = self.sign(path, api, method, params, headers, body)
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/binance.py”, line 1056, in sign
self.check_required_credentials()
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 954, in check_required_credentials
self.raise_error(AuthenticationError, details=‘requires ' + key + '
’)
File “/Users/florent/venvlight/lib/python3.7/site-packages/ccxt/base/exchange.py”, line 372, in raise_error
raise exception_type(output)
ccxt.base.errors.AuthenticationError: binance requires apiKey
I’m fairly certain my apikeys are valid as I’m sending an order that gets executed a second before this. Is this a known issue?
Thanks in anticipation Florent
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (7 by maintainers)
The issue was really specific to my code, I have a middleware layer that connects to the exchange and the fetch_my_trade function wasn’t called via the middleware…
Sorry for wasting your time and thanks a lot for the help!
ok will look into this and post the solution here when found. Thanks the help!