Hello,
I want to use the IG API to place automated orders with the SP500 (EPIC: IX.D.SPTRD.IFS.IP) but using /positions/otc with this data:
"epic" => "IX.D.SPTRD.IFS.IP",
"direction" => "BUY",
"size" => "1",
"orderType" => "MARKET",
"stopLevel" => 3830,
"forceOpen" => "false",
"currencyCode" => "USD"
I get the following response:
"errorCode":"unauthorised access, user has no access to the relevant exchange. Epic=IX.D.SPTRD.IFS.IP
exchangeId=IND_GBL_GBP"
Maybe I am doing something wrong or simply I can't operate this instrument with the API?
Thank you very much
Best regards.