Hi ,
I’m using fyers API v3 , and getting “{‘code’: -50, ‘message’: ‘stop_price does not match: 0’, ‘s’: ‘error’}” error, though after making the stop-loss multiple of tick_size, even rounding off to integer getting the same error. I’m using order placement API
sl = round(sl / tick_size) * tick_size
data = {
"symbol":f"NSE:{symbol}-EQ",
"qty":quantity,
"type":order_type,
"side":buy_sell_flag,
"productType":"INTRADAY",
"limitPrice":entry_price,
"stopPrice":sl,
"takeProfit":target,
"validity":"DAY",
"disclosedQty":0,
"offlineOrder":False,
}
response =[ fyers.plac](http://fyers.place)e_order(data=data)