hello
I trying post order using official python module.
(https://github.com/Binance-docs/Binance_Futures_python)
-
git clone https://github.com/Binance-docs/Binance_Futures_python.git
-
make main.py file.
-
very simple post order test
from binance_f import RequestClient
from binance_f.constant.test import *
from binance_f.base.printobject import *
from binance_f.model.constant import *API_KEY = “My Binance API KEY”
SECRET_KEY = “My Binance Secret KEY”request_client = RequestClient(api_key=API_KEY, secret_key=SECRET_KEY)
result = request_client.post_order(symbol=“BTCUSDT”, side=OrderSide.BUY, ordertype=OrderType.LIMIT, price=8000)PrintBasic.print_obj(result)
I execute this code.
I get Error code {“code”:-2015,“msg”:“Invalid API-key, IP, or permissions for action, request ip: my ip”}
What’s wrong?