Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binance.exceptions.BinanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action. #15

Open
Charmve opened this issue Jun 10, 2024 · 0 comments

Comments

@Charmve
Copy link

Charmve commented Jun 10, 2024

Traceback (most recent call last):
  File "qbot/engine/trading/live_trade_binance.py", line 36, in <module>
    store = BinanceStore(
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/backtrader_binance/binance_store.py", line 47, in __init__
    self.get_balance()
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/backtrader_binance/binance_store.py", line 128, in get_balance
    free, locked = self.get_asset_balance(self.coin_target)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/backtrader_binance/binance_store.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/backtrader_binance/binance_store.py", line 124, in get_asset_balance
    balance = self.binance.get_asset_balance(asset)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 1979, in get_asset_balance
    res = self.get_account(**params)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 1954, in get_account
    return self._get('account', True, data=params)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 371, in _get
    return self._request_api('get', path, signed, version, **kwargs)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 334, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 315, in _request
    return self._handle_response(self.response)
  File "/home/qcraft/anaconda3/envs/qlib/lib/python3.8/site-packages/binance/client.py", line 324, in _handle_response
    raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant