vkalgos
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Community Tutorials
Store
Posts posted by vkalgos
-
-
I built a script to place order through the API, based on an algo.
trying to use this
epic = "IX.D.SPTRD.MONTH1.IP" # US (SPX) - Futures minitrying - is this correct?I can query the prices etc, but when I placed the order using the API, the response code is 200 but on the activity tab I see this errorRejected: Market not available online
could someone help me please?
For checking, I tried with another EPIC - - but again got an error, this is response code 400 and msg as "error.service.instrumentdata-invalid"
Finding epic for the market US 500 futures June 2023
in IG Technical Support - Platform and App Help
Posted
Thank you for confirming the Epic is correct one.
Please see the request I made with API companion just now. response comes back as status 200, but when I see in the list of transactions, it show the error msg. Please see the attached screenshots.
here is the body content of the request
{
"epic": "IX.D.SPTRD.MONTH1.IP",
"expiry": "DFB",
"direction": "BUY",
"size": "1",
"level": "4474",
"forceOpen": null,
"type": "LIMIT",
"currencyCode": "GBP",
"timeInForce": "GOOD_TILL_CANCELLED",
"goodTillDate": null,
"guaranteedStop": "false",
"stopLevel": null,
"stopDistance": "8",
"limitLevel": null,
"limitDistance": "7"
}