Jump to content
  • 0

Closing multiple positions with a single order


swingwin

Question

Using the IG APIs, is it possible to close multiple positions with a single order? Just as it is possible with the platform's web interface with aggregated positions.
On the web page (https://labs.ig.com/rest-trading-api-reference/service-detail?id=608) it says that it is possible, but I don't know how to set the delete command.
Thanks for the answer

close_positions.JPG

Link to comment

8 answers to this question

Recommended Posts

  • 0

Hi @swingwin

Please note that it is possible as mentioned on our website, however, Some HTTP client libraries do not support DELETE operations with a request body. Try using a POST operation instead, and add the header _method: DELETE. Kindly send an email to chartsupport@marketdatasystems.com and the IT support team if there is anything unclear and they will be able to assist.

All the best - MongiIG

Link to comment
  • 0

Thanks MongiIG, but that's exactly what I do "POST + _method=DELETE" and it works fine.
But that's not my problem.
What doesn't seem to work or is impossible to do is the "or more OTC positions".
In other words, it seems to be impossible to close several positions with a single request
All the best

 

 

Link to comment
  • 0
12 hours ago, swingwin said:

Thanks MongiIG, but that's exactly what I do "POST + _method=DELETE" and it works fine.
But that's not my problem.
What doesn't seem to work or is impossible to do is the "or more OTC positions".
In other words, it seems to be impossible to close several positions with a single request
All the best

 

 

Hi @swingwin

Please contact the IT support team on chartsupport@marketdatasystems.com

Thanks.

All the best - MongiIG

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
  • image.png

  • Posts

    • Certain centralised platforms have been very intentional about creating wealth for its users to this end CEXs like Bitget have built certain frameworks to aid this adequately.  Through the instrument of its launch pool, it lets users earn massive APR thus providing a good ground for wealth creation. The performance of some of the launchpool projects lends credence to this, the likes of $ENA, $ZKF $GRAPE and a host of others generated good APRs.  In an almost similar exactitude as the launchpool, the PoolX is the new framework that lets users earn by staking $BGB and $USDT to mine other tokens on the platform. From the products Bitget have brought forth it is safe to say the platform is playing a worthwhile part in wealth creation to every crypto enthusiast around the globe.  Personally, I have participated in these and i will say they are worthwhile opportunities to make fortunes off of, i will advise you jump on it too anon.
    • Certain centralised platforms have been very intentional about creating wealth for its users to this end CEXs like Bitget have built certain frameworks to aid this adequately.  Through the instrument of its launch pool, it lets users earn massive APR thus providing a good ground for wealth creation. The performance of some of the launchpool projects lends credence to this, the likes of $ENA, $ZKF $GRAPE and a host of others generated good APRs.  In an almost similar exactitude as the launchpool, the PoolX is the new framework that lets users earn by staking $BGB and $USDT to mine other tokens on the platform. From the products Bitget have brought forth it is safe to say the platform is playing a worthwhile part in wealth creation to every crypto enthusiast around the globe.  Personally, I have participated in these and i will say they are worthwhile opportunities to make fortunes off of, i will advise you jump on it too anon.
    • For example, look at today's 15/04/24,  DAX (Germany) 40 chart action. I predicted that the market would take off up from the very start and have a positive morning.
×
×
  • Create New...
us