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

    • Looking for alternative crypto trading platform 
    • Use the latest Freecash bonus code "FC2507" to get up to $250 sign up bonus. Earn $1 or more with in 48 hours to get 1 more chance to open a free case worth $250. Freecash users can perform various tasks like taking surveys to get paid and install the app. but one of the best ways to earn is to use the Freecash bonus code. How to use Freecash bonus code? Go to Freecash.com and click "Join" to create a new account or "Login" if you already have an account. Complete the account registration process by entering your email address and creating a password. Verify your email to activate your account. Once logged into your Freecash account, click on "Profile" located on the top right corner of the page. On the left sidebar in your Profile, click on "Rewards".
    • Redeem $100 Off Temu Coupon {aah64133} for Both New and Existing Users 2024. Using Temu's coupon code [aci384098] will get you $100 off, access to exclusive deals, and benefits for additional savings. Save 40% off with Temu coupon codes. New and existing customer offers. To get $100 off, sign up as a new user using referral code [aci385098] and enter the coupon during checkout when making your first purchase at Temu. You will receive the benefit once the coupon is applied.   Temu Coupon $100 Off For Existing Customers The $100 off Temu coupon bundle is only available to new customers who sign up using the referral code However, there are also other Temu coupon codes that you can use as an existing customer to save money on your order. Are. Existing customers can use the coupon code [aci384098] to get up to 100% off on their purchases.
×
×
  • Create New...
us