fyers api Exit position based on order id

I have taken the order through api (place_order) and in response I got id.

I need to exit the position for this order id. I tried with below code but its not exiting my position. I am getting message Looks like you have no open positions. Order was still open but still its showing me above message.

example order id = 1233432443
data = {"id": f'{orderId}'}

return fyers.exit_positions(data=data)

1
1 reply