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

1 answer 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

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