'APIError(code=-2010): The relationship of the prices for the orders is not correct. BInance Python

I am using a python program to trade in VS code , but I have a problem in oco sell order, for example the price of FTM in USDT is 1.51143181$ I chose the price is 1.5174 and limit price 1.5084 and stop limit price is 1.4933 but I have This error when I run my program:API Error (code=-2010): The relationship of the prices for the orders is not correct. i know that the price must be > than the limite price and must be > stop limite price .



Solution 1:[1]

Price Restrictions: SELL: Limit Price > Last Price > Stop Price BUY: Limit Price < Last Price < Stop Price

Please read https://binance-docs.github.io/apidocs/spot/en/#new-oco-trade 221 to confirm the details; If you still have question, please share the exact request, especially the limit price, last price and stop price for further analysis

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Thomas Mondel