Close Position Using rest API
Joined 25/03/23 10:02
Charting the Markets: 24 March The FTSE 100, DAX 40 and Nasdaq 100 slide on renewed banking woes while EUR/USD, EUR/GBP and GBP/USD drop as the US dollar, gold appreciate due to flight-to-quality flows. Crude oil and copper tumble on recession fears. Axel Rudolph FSTA | Senior Financial Analyst, London | Publication date: Friday 24 March 2023 This is here for you to catch up but if you have any ideas on markets or events you want us to relay to the TV team we’re more than happy to.
By DominicWalsh · PostedMarket Breakdown | WTI Oil, EURUSD, GBPNZD, EURAUDHere are the updates & outlook for multiple instruments in my watchlist.1️⃣ WTI Oil daily time frame️The market is trading in a long term bearish trend .After the last sharp bearish movement, the market is steadily recovering.Ahead, I see a major horizontal supply area.Probabilities are high, that the next bearish wave will initiate from there.2️⃣ EURUSD daily time frameAfter a breakout of a solid daily resistance, the market is preparing for its retest.Watch carefully the underlined zone and look for buying opportunities from there.3️⃣ EURAUD weekly time frameThe pair is currently approaching a weekly horizontal resistance cluster.Taking into consideration, that the pair is quite overbought, probabilities will be high to see a pullback from that4️⃣ GBPNZD daily time frameThe pair is currently retesting a broken neckline of an ascending triangle . As we discussed earlier, the trend line of a triangle and its neckline compose a contracting buy zone now.Chances will be high that the next bullish wave will initiate quite soon.For Additional confirmation use: Divergence Indicators
By DominicWalsh · Posted#CHFJPY: Classic Bearish Setup 🇨🇭🇯🇵 🔻CHFJPY has nicely respected a confluence zone based on a horizontal 4H resistance and a 0.5 retracement of the last bearish impulse. The price formed a double top pattern on that and broke its neckline. Probabilities will be high that the pair will drop lower soon. Goals: 141.172 / 140.363
I'm currently using IG rest API top open and positions. I don't have any issue opening a position but when I try to close it I get below error message:
I also get this error when using API companion:
After I press GO I get error: "errorCode": "validation.mutual-exclusive-value.request" the same I get using python API.
Could you please help ? What am I doing wrong?
Thanks in advance
Link to comment
17 answers to this question
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
Already have an account? Sign in here.Sign In Now