Urgent | Position API | Use Cases

Hey Team,
What are the APIs to be used to get the real time updates on the option orders I have placed?
How can Position API be helpful in the same, attaching the same for your reference: https://myapi.fyers.in/docs/#tag/Transaction-Info/paths/~1Transaction%20Info/patch

Do the needful.

I need to implement the Trailing Stop Loss, therefore need to know about the real time value of options.
If we have any another way to proceed, do let me know.

Hey @arjungarg54-ijz
Do you want to know placed order or pending order?

Or do you want to know about options positions?

@Z4PBvkQGyF I need to know about the options positions, I have placed using order API.

Hi @arjungarg54-ijz ,
Yes in that case you will get the position , when you will hit the position API.

Hope you got it.
Thank you

@Z4PBvkQGyF@naresh_janagama @l1k9CK4n3H @communications_team
What should the ideal apis I should use to make the trailing stop loss logic for the api based trades?

Hi @arjungarg54-ijz ,

There is no such API for trailing stop loss. However you can write own logic based on your Profit and Loss(or any another logic) and modify the order.

How to modify the order Please follow the docs for it : link

Hope it will help
Thank you

@Z4PBvkQGyF
To modify the order, we first need to get the existing position for which above logic will work.
I hope the same makes sense.

Can you validate my logic?

@arjungarg54-ijz you have to place counter order na ?

Let say you have ITC buy position. After that for you make one sell order for that
Now based on your logic you can modify the sell order
as soon as condition will hit for the order
order will get executed and ITC position will be square off

Hope it will help thanks