Hi There,
I have a doubt?
Using Orders API of Fyers V3, How can I determine which positions are closed (squared off) and which positions are presently running (in trade).
Thanks in advance.
Hi There,
I have a doubt?
Using Orders API of Fyers V3, How can I determine which positions are closed (squared off) and which positions are presently running (in trade).
Thanks in advance.
If I understand your question correctly, you must make a position query, **not an order query. ** In position response, you will find a parameter, status. If the status is zero, it means it is closed.
Ref: https://myapi.fyers.in/docsv3#tag/Appendix/Position-Sides
@subhajit_bhar is correct. Please find his answer.