Reputation: 23
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 .
Upvotes: 2
Views: 1403
Reputation: 1994
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
Upvotes: 0