- 0
-
General Statistics
-
Total Topics21,632
-
Total Posts91,900
-
Total Members41,914
-
Most Online7,522
10/06/21 10:53
-
-
Posts
-
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 · Posted
Market 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
-
Question
Tipper258
Issue 1. The API does not behave as documented
The streaming API does not behave like the documentation, it never raises a WOU, always an OPU and it can have 2 different bodies. You have to inspect the body for presence of certain properties to determine what type of message it is. No biggie, can work round this once figured out this is what happens in both demo and live spread bet accounts.
Issue 2. forceOpen behaviour
Having used IG for many years, I'm very familiar with the web platform behaviour of forceOpen. Set it to true and your working order doesn't impact existing orders when the order executes. Set it to false and the order will apply to any open position in the same epic, quite how it decides which position to impact if you have multiple open is unknown.
In the REST API, the documentation says the default for forceOpen is true for working orders. Certainly if I try to set it to true I get a 400 with invalid.forceOpen error. If I don't set it, when the order is executed it behaves as if it were set to false and closes open positions which is rather unhelpful for the strategy.
When using the API companion, and I paste in the exact request body, with forceOpen set to true, it doesn't complain, off it goes and creates a working order. Mind you it returns the dealRef I specified but doesn't create the order with the dealRef which I guess is an implementation 'thing' with the companion, but then again that says maybe it actually strip out the forceOpen true before making the real API call too? Hard to know, or have confidence it's a true reflection of the real call.
This one I can't test in live, it costs real money with this behaviour, I'm unable to create a working order with forceOpen set to true, and the behaviour without it is as per false, despite the documentation saying it's true. I can't find a workaround.
How do I get support on this from IG, and bugs fixed or ultimately debug how this is my problem? Having been a developer for way too many years I'm conscious you can be very confident in your code only to find out you did get something wrong. For me the code works perfectly, a fairly complex strategy, until I add in the "forceOpen": "true" and get the 400.
Or is this 'just how it is' with the IG API? Thanks!
Link to comment
5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now