Jump to content
  • 1

API companion not letting me open orders on the FTSE


TheEdge

Question

Whilst working with my live account through the REST API on the API companion tool (and also with my own code in Excel), I encounter a problem when I try to create a new position with parameters below.

response   "errorCode":  "error.trading.otc.market-orders.not-supported-for-epic"

Any ideas on what I'm doing wrong or does it mean I can't POST (positions/otc) on the FTSE? 


    "epic": "OP.D.FTSE1.6750P.IP",
    "expiry": "MAR-23",
    "direction": "SELL",
    "size": "1",
    "orderType": "MARKET",
    "timeInForce": "FILL_OR_KILL",
    "level": null,
    "guaranteedStop": "false",
    "stopLevel": null,
    "stopDistance": null,
    "trailingStop": null,
    "trailingStopIncrement": null,
    "forceOpen": "false",
    "limitLevel": null,
    "limitDistance": null,
    "quoteId": null,
    "currencyCode": "GBP"
}

Link to comment

2 answers to this question

Recommended Posts

  • 0
15 minutes ago, TheEdge said:

Whilst working with my live account through the REST API on the API companion tool (and also with my own code in Excel), I encounter a problem when I try to create a new position with parameters below.

response   "errorCode":  "error.trading.otc.market-orders.not-supported-for-epic"

Any ideas on what I'm doing wrong or does it mean I can't POST (positions/otc) on the FTSE? 


    "epic": "OP.D.FTSE1.6750P.IP",
    "expiry": "MAR-23",
    "direction": "SELL",
    "size": "1",
    "orderType": "MARKET",
    "timeInForce": "FILL_OR_KILL",
    "level": null,
    "guaranteedStop": "false",
    "stopLevel": null,
    "stopDistance": null,
    "trailingStop": null,
    "trailingStopIncrement": null,
    "forceOpen": "false",
    "limitLevel": null,
    "limitDistance": null,
    "quoteId": null,
    "currencyCode": "GBP"
}

Hi @TheEdge

Thank you for reaching out. Please email webapisupport@ig.com for assistance. This team is created to help with all API queries. All the best, OfentseIG

Link to comment
  • 0

Did you resolve your issue

I have the same message when I m trying to close a forex option

{
    "dealId": "DIAAAAPEEEMF3AJ",
    "epic": null,
    "expiry": null,
    "direction": "SELL",
    "size": "1",
    "level": null,
    "orderType": "MARKET",
    "timeInForce": "EXECUTE_AND_ELIMINATE",
    "quoteId": null
}

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
us