I am also running into issue when trying to delete a position when following payload
{
"dealId": "DIAAAAJBD8TYKAT",
"direction": "SELL",
"orderType": "MARKET",
"timeInForce": "FILL_OR_KILL",
"size": 1.16,
"expiry": "DFB"
}
endpoint https://demo-api.ig.com/gateway/deal/positions/otc
when I use POST method with _method header as DELETE, it returns
{
"errorCode": "error.service.marketdata.position.notional.details.null.error"
}
when I use DELETE method
validation.null-not-allowed.request
Will appreciate any help in this regard.