I am using the python-binance wrapper, and have a problem when trying to send in a Stop-Limit Order. What are the necessary parameters for these types of orders and what do they do?
I need to set a STOP_LOSS_LIMIT order on SPOT trading, I send it after a normal MARKET order which goes through fine. I do not need TAKE_PROFIT_LIMIT orders, but if I’m not mistaken they are the same type as the STOP_LOSS_LIMIT. (That type is Stop-Limit, as is written in the Binance UI.) Please correct me if I’m wrong.
Anyway, this is my code for STOP_LOSS_LIMIT orders:
order2 = client.create_order( symbol='BTCUSDT', side=SIDE_SELL, type=ORDER_TYPE_STOP_LOSS_LIMIT, TimeInForce=TIME_IN_FORCE_GTC, stopPrice='33000', price = '30000' )
After running this code I get the following error:
Not all sent parameters were read; read ‘7’ parameter(s) but was sent ‘8’.
I am obviously doing something fundamentally wrong, so please point me in the right direction. PLEASE do not link me the official documentation, there are no examples for these order types. I’d love it if someone could provide me with a concrete example for these types of orders. Does not matter if it is not for python, I just need to get a sense for what parameters I need and what do they do.
I look forward to your responses and thank you in advance!