Jump to content
  • 0

Unable to open Market Position via APi both in code and on the companion?


APIIGTesting

Question

No combination of null or "-", will allow me to open a position. I either get invalid Level set no matter if I try null, 0, "-", if I set a price which I shouldn't have to with a Market Order I then get,  "errorCode": "validation.null-conditional-set-value.request", I have cycled through setting and un setting all the parameters, but cannot get it to accept the order. Please can someone give me an indication of what the issue is and potentially try it on the companion themselves as I am lost for ideas? I feel like it was working just a week ago but now no longer?

Last tried combination:

{
    "epic": "IX.D.FTSE.DAILY.IP",
    "expiry": "-",
    "direction": "SELL",
    "size": "1",
    "orderType": "MARKET",
    "timeInForce": "FILL_OR_KILL",
    "level": "5962.0",
    "guaranteedStop": "false",
    "stopLevel": null,
    "stopDistance": null,
    "trailingStop": null,
    "trailingStopIncrement": null,
    "forceOpen": "true",
    "limitLevel": null,
    "limitDistance": null,
    "quoteId": "test",
    "currencyCode": "GBP"
}

 

Thank you.

 

Link to comment

1 answer to this question

Recommended Posts

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