Not able to understand attribute Id in Exit Position
suppose to close the position of
symbol NSE:FINNIFTY-INDEX
strike price :NSE:FINNIFTY23FEB17900PE
id -123456789
what should be in data ?
data = {}
fyers.exit_positions(data)
Tried with
data = ‘123456789’
data = ‘NSE:FINNIFTY-INDEX’
data = {“id”:‘123456789’}
All throwing error {‘s’: ‘error’, ‘code’: -397, ‘message’: ‘Please provide a valid position Id’}