Limit and stop on opening a position

2 posts / 0 new
Last post
kristof_w
Limit and stop on opening a position

Hello guys,

I'm having trouble opening a new position with a limitDistance and a stopDistance. For epic "CS.D.ALUMINIUM.CFD.IP" for example, I've set both parameters to 10, 20 and 30, but I keep getting errors.

The response I get is 200 OK, but if I check the online platform to see if the position is really open, I see the following message in the activity pane:
- Rejected: invalid stop or limit
- Rejected: stop too close

Is there any way I can check whether the values I enter for these 2 parameters are correct? I've tried many different values but I haven't found a single one that does work. I know about the "minNormalStopOrLimitDistance" property of each epic, but that doesn't seem to help me.

Below the content of the request:

Request Payload
currencyCode:"USD"
direction:"BUY"
epic:"CS.D.ALUMINIUM.CFD.IP"
expiry:"-"
forceOpen:true
guaranteedStop:false
level:1902
limitDistance:20
orderType:"LIMIT"
size:1
stopDistance:20
timeInForce:null
trailingStop:false

Thanks in advance.

anthony
Units?

Might be a units problem, for example if the "level" field is in dollars but the "stop_distance" is in cents. Check the units of "minNormalStopOrLimitDistance" and compare it to the units the prices for the instrument are quoted in.

Log in or register to post comments