I am trying to exit positions by ID for an order in options. Where can I get the ID for data variable for symbol name = NSE:BANKNIFTY24NOV47900PE and my Product type is MARGIN
{
“id”: [positionId1,positionId2]
}
I am trying to exit positions by ID for an order in options. Where can I get the ID for data variable for symbol name = NSE:BANKNIFTY24NOV47900PE and my Product type is MARGIN
{
“id”: [positionId1,positionId2]
}
You can get the Order id through the Orderbook API response , you can use that ID for Exit position API :
https://myapi.fyers.in/docsv3#tag/Transaction-Info