Partial exit data format - fyers.exit_positions(data=data)

Consider I bought Qty 150 of BANKNIFTY23MAY44500CE option

Does below code will partially exit 50 qty, and reamaning will be 100 qty with market value?

data = {

"id":"NSE:BANKNIFTY23MAY44500CE",

"qty":50

}

response = fyers.exit_positions(data=data)

I am not sure about the value of ID, does it mean bought option name 'BANKNIFTY23MAY44500CE' or the fyer id like '1234567890045' I got while bought this option

I dont see any example in doc as well.

Please let me know

3 replies