sammchardy / python-binance

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

APIError(code=-2010): This action disabled is on this account. #1120

Open Fo3nix opened 2 years ago

Fo3nix commented 2 years ago

Describe the bug

client.create_order(symbol="ETHUPUSDT", side=SIDE_BUY, type=ORDER_TYPE_MARKET, quantity=1) Traceback (most recent call last): File "", line 1, in File "C:\Users\Finn\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 1385, in create_order return self._post('order', True, data=params) File "C:\Users\Finn\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 374, in _post return self._request_api('post', path, signed, version, kwargs) File "C:\Users\Finn\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 334, in _request_api return self._request(method, uri, signed, kwargs) File "C:\Users\Finn\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 315, in _request return self._handle_response(self.response) File "C:\Users\Finn\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 324, in _handle_response raise BinanceAPIException(response, response.status_code, response.text) binance.exceptions.BinanceAPIException: APIError(code=-2010): This action disabled is on this account.

To Reproduce from binance.client import Client from binance.enums import *

client = Client(api_key, secret_key) client.create_order(symbol="ETHUPUSDT", side=SIDE_BUY, type=ORDER_TYPE_MARKET, quantity=1)

Expected behavior I was trying to buy ETHUP, but it said the function was disabled. How do I enable it?

halfelf commented 2 years ago

This seems not an issue of this library. Can you trade ETHUP on binance website?

Fo3nix commented 2 years ago

Thanks. Unfortunately the site also won't let me trade it. It says it has something to do with jurisdiction. Probably because I live in the Netherlands then. Well thanks for replying anyway!