Jump to content
  • 0

REST API: /positions/otc "MINIMUM_ORDER_SIZE_ERROR" (CFD-Order)


MichaelDE

Question

Hi,

I placed a CFD Market-Order via https://demo-api.ig.com/gateway/deal/positions/otc (POST) as follows:

{
"currencyCode": "EUR",
"dealReference": "TESTxy",
"direction": "BUY",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": "-",
"forceOpen": "False",
"guaranteedStop": "False",
"orderType": "MARKET",
"size": 0.5
}
I obtained the deal confirmation via https://demo-api.ig.com/gateway/deal/confirms/TESTxy (GET) as follows:
{
"date": "2021-11-24T10:16:31.629",
"status": null,
"reason": "MINIMUM_ORDER_SIZE_ERROR",
"dealStatus": "REJECTED",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": null,
"dealReference": "TESTxy",
"dealId": ...and so forth...
 
My question is: What is the MINIMUM_ORDER_SIZE?
Size 1.0 worked - is this the minimum?
 
Thanks
 
Link to comment

3 answers to this question

Recommended Posts

  • 1
12 minutes ago, MichaelDE said:

Hi,

I placed a CFD Market-Order via https://demo-api.ig.com/gateway/deal/positions/otc (POST) as follows:

{
"currencyCode": "EUR",
"dealReference": "TESTxy",
"direction": "BUY",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": "-",
"forceOpen": "False",
"guaranteedStop": "False",
"orderType": "MARKET",
"size": 0.5
}
I obtained the deal confirmation via https://demo-api.ig.com/gateway/deal/confirms/TESTxy (GET) as follows:
{
"date": "2021-11-24T10:16:31.629",
"status": null,
"reason": "MINIMUM_ORDER_SIZE_ERROR",
"dealStatus": "REJECTED",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": null,
"dealReference": "TESTxy",
"dealId": ...and so forth...
 
My question is: What is the MINIMUM_ORDER_SIZE?
Size 1.0 worked - is this the minimum?
 
Thanks
 

Hi Michael, 

Thanks for the query. 

Yes, 1 contract is the minimum size on Germany 40 demo. This is displayed on the deal ticket as illustrated below:

image.png 

All the best, 

Anda

  • Like 1
Link to comment
  • 0
17 hours ago, MichaelDE said:

Hi,

I placed a CFD Market-Order via https://demo-api.ig.com/gateway/deal/positions/otc (POST) as follows:

{
"currencyCode": "EUR",
"dealReference": "TESTxy",
"direction": "BUY",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": "-",
"forceOpen": "False",
"guaranteedStop": "False",
"orderType": "MARKET",
"size": 0.5
}
I obtained the deal confirmation via https://demo-api.ig.com/gateway/deal/confirms/TESTxy (GET) as follows:
{
"date": "2021-11-24T10:16:31.629",
"status": null,
"reason": "MINIMUM_ORDER_SIZE_ERROR",
"dealStatus": "REJECTED",
"epic": "IX.D.DAX.IFMM.IP",
"expiry": null,
"dealReference": "TESTxy",
"dealId": ...and so forth...
 
My question is: What is the MINIMUM_ORDER_SIZE?
Size 1.0 worked - is this the minimum?
 
Thanks
 

In case that you want to automate the minimum size per market there is an endpoint for it.

https://labs.ig.com/rest-trading-api-reference/service-detail?id=594

The endpoint is /market/{epic}. It will give you the dealing rules for that market

Edited by jlz
  • Sad 1
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