Jump to content
  • 0

"Soft 404" error placing orders starting a few months ago


GCone

Question

David Gibbs, who used to be a senior software engineer at IG, wrote some code, based on the original femtotrader code, to allow me to place DMA Equity orders. That was back in 2018. There have been no problems with it until recently.

Below, I have shown the output of two logfiles. The first one is when the DMA order placing software worked (as it did from 2018 until some point in 2023). It failed on the first try, but succeeded on the second. 

The second file shows that I now receive a 404 error trying to place an order.  (The GET function works properly as I am able to retrieve positions). . 

I would like to know whether the URL has changed for the POST function. Thank you.

Here is the successful order placing:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.ig.com:443
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/session HTTP/1.1" 200 337
INFO:place_order_PY:Authenticated to IG session for EC.D.ATOFP.CASH.IP order
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/workingorders/dma/equity HTTP/1.1" 200 53
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "GET /gateway/deal/confirms/GG7UZEN2HZ3AX HTTP/1.1" 404 60
INFO:trading_ig.rest:Deal reference GG7UZEN2HZ3AX not found, retrying.
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "GET /gateway/deal/confirms/GG7UZEN2HZ3AX HTTP/1.1" 200 266
INFO:place_order_PY:EC.D.ATOFP.CASH.IP Deal ID Create: DIAAAAKHA5NREBA

Here is the unsuccessful order placing (showing, however, that I am able to retrieve positions):

DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/session HTTP/1.1" 200 337
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "GET /gateway/deal/positions HTTP/1.1" 200 880
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.ig.com:443
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/session HTTP/1.1" 200 337
INFO:__main__:Authenticated to IG session for EC.D.ATOFP.CASH.IP order
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/workingorders/dma/equity HTTP/1.1" 404 123


Output from Python console:

IGException: <html><head><title>Page Not Found</title><h3>Error 404</h3><h3>Sorry, 
the requested page is not available.</h3></body></html>

Thank you for your help.

Kevin Brau

 

 

 

 

Link to comment

4 answers to this question

Recommended Posts

  • 0

As you said, the official REST API  only support OTC orders, not DMA orders.  I cannot trade with OTC orders because I trade small cap equities, which can have enormous spreads.

Furthermore, as I pointed out, /workingorders/dma/equity was an endpoint that used to work from 2018 until around 2023, without any problem. Here is an example of it working:
INFO:place_order_PY:Authenticated to IG session for EC.D.ATOFP.CASH.IP order
DEBUG:urllib3.connectionpool:https://api.ig.com:443 "POST /gateway/deal/workingorders/dma/equity HTTP/1.1" 200 53. (Notice the 200, not 404 code.)  I was also able to delete a working/dma/equity via the deal ID, and update it. 

If I place a DMA equity order via L2, then deal ID is created, which shows that at least DMA equity orders have not been eliminated.  I have read about similar situations where are URL for endpoints is not recognized and no explanation is given. You will never find a reference in the REST API for DMA equity orders enpoints because it is bespoke code, and because there is little demand for it, For me, it's probably a deal breaker. 

Anyway, thanks for your response.  I believe I have to go back to the REST API team, who have already said "this is not our responsibility". It is possible that a decision was taken to remove the workingordres/dma/equity endpoint. I rule nothing out. 

 

 

 

 

 


 

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

    • Silver Elliott Wave Analysis Function -Counter-Trend Mode - Corrective Structure -Double Zigzag for wave B (circled) Position - Wave (Y) of B Direction - Wave (Y) of B is still in play Details - After violating the last update, we have a new outlook on daily and H4 that better fits the current price action. A lower extension is now expected for Silver. Silver Elliott Wave Analysis: Extended Decline and Bullish Outlook Overview: The decline in Silver that began on May 20th is continuing to extend lower and is expected to persist before finding significant support. Despite this downturn, the year-long trend remains bullish and is anticipated to resume once this corrective phase concludes. The emerging chart pattern suggests a further decline towards $27 in the coming days or weeks.   Daily Chart Analysis: Two key observations can be made on the daily chart: Bullish Yearly Trend: The trend for this year has been bullish, leading to a breakout from a prior 13-month sideways price action. This indicates strong underlying bullish momentum. Corrective Decline: The current decline from April 19th, 2024, is identified as corrective. Therefore, the expectation is that the bullish trend will resume once this corrective structure concludes.   To determine when the corrective structure will finish, it’s important to identify the emerging pattern. Early analysis suggests that the price might be forming a double zigzag Elliott wave corrective structure, labeled as waves (W)-(X)-(Y). Wave (W) and wave (X) completed on June 13th and June 21st, respectively. The price is now breaking down in wave (Y), which could extend to $27 or lower. Meanwhile, the year-long impulse is labeled as wave A (circled) in the primary degree, and the double zigzag pullback should complete the corresponding primary degree wave B (circled). Following this, wave (C) is expected to push the price to a fresh 2024 high.   H4 Chart Analysis: The H4 chart provides a detailed view of the sub-waves within the double zigzag structure. The price is currently in wave A of (Y), which is expected to be followed by a minor corrective bounce for wave B. Afterward, the price should continue lower for wave C, completing wave (Y) of B (circled). This pattern aligns with the broader expectation of a corrective phase before the resumption of the bullish trend.   Summary: Current Decline: Silver’s decline from May 20th is expected to continue towards $27 before finding support. Bullish Yearly Trend: Despite the current downturn, the overall trend for the year remains bullish. Corrective Structure: The decline is forming a double zigzag Elliott wave corrective structure. Daily Chart Insight: The trend is expected to resume higher after the completion of the current wave B. H4 Chart Detail: Sub-waves show a minor bounce expected before a further decline to complete wave (Y) of B. In conclusion, while Silver is currently experiencing a corrective decline, the long-term bullish trend is anticipated to resume once this phase concludes. Traders should watch for a potential bottom around $27 and prepare for a renewed bullish impulse towards new highs in 2024. Technical Analyst : Sanmi Adeagbo Source : Tradinglounge.com get trial here!  
    • Honestly, L2 scaling solution projects are now increasing by the day. Should we worry about that? Absolutely, not. Why? Because it reduce overdependence on one solution and increase adoption. Also, focusing on different aspect of scaling is a good thing; for instance, Blast focus on staking ETH and stablecoin reinforces security on their network and Ethereum mainnet which increases users' confidence in blockchain and crypto.
    • Well, price performances are always a reflection of either of 2 factors: 1. constant hype by influencers/KOLs 2. whale trading activities 3. imrovement of tech or expansion of utility/usecase to accommodate needs of users For BGB, I think it's rather the last 2 basically from the recent expansion of its ecosystem where the token is used for several high-end events like launchpad, poolx etc.
×
×
  • Create New...
us