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

    • SBI LIFE INSURANCE CO – SBILIFE (1D Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate degree, orange)  Mode: Motive  Structure: Impulse  Position: Minute Wave ((v)) Navy   Details: Minute Wave ((v)) looks complete around 1940 or could be soon terminating within Minor Wave 5 Grey of Intermediate Wave (5) Orange. Traders are advised to book profits here as prices have turned lower.  Invalidation point: 1667. SBI Life Insurance Co Daily Chart Technical Analysis and potential Elliott Wave Counts:  SBI Life Insurance Co daily chart indicates a progressive impulse wave higher between March 2023 and now as prices hit 1935-40 highs. Probability remains high for the fifth to have terminated at multiple degrees here. If correct, expect a larger degree corrective wave to begin soon against 1940.  The stock terminated Intermediate Wave (4) Orange around 1060-65 range in March 2023. Since then, prices have rallied through 1935-40 highs, sub dividing into five waves. Please note that Minute Wave ((v)) of Minor Wave 5 Grey could be complete or near to completion around 1960-65.  The fibonacci 0.618 extension of Wave 1 through 3 was missed by a small margin and bulls could attempt another push through. Alternatively, a slip through 1667 would confirm a top is in place and bears are back in control.   SBI LIFE INSURANCE CO – SBILIFE (4H Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate degree, orange)  Mode: Motive  Structure: Impulse  Position: Minute Wave ((v)) Navy   Details: Minute Wave ((v)) looks complete around 1940 or could be soon terminating within Minor Wave 5 Grey of Intermediate Wave (5) Orange. The sub waves within Wave ((v)) are not clear yet and prices could print a shallow high through 1960 before reversing.  Invalidation point: 1667. SBI Life Insurance Co 4H Chart Technical Analysis and potential Elliott Wave Counts:  SBI Life Insurance Co 4H chart highlight sub waves after Minor Wave 4 Grey completed around 1311 on June 04, 2024 alongside most stocks. Minute Wave ((iii)) was extended and Wave ((iv)) a flat. The sub waves with Minute Wave ((v)) are not very clear and possibility remain for a re-test of 1940. The key level is 1667 though. Conclusion: SBI Life Insurance Co might have completed its Intermediate Wave (5) Orange around 1935-40 range or could be near to termination. A break below 1667 will confirm. Elliott Wave Analyst: Harsh Japee Source : Tradinglounge.com get trial here!  
    • Ada resistance have been very strong though my FA shows a bullish signals. There are so many imbalances to be filled. Anyway good analysis there.  
    • NIFTY 50 (INDIA) Elliott Wave Analysis - Daily Chart NIFTY 50 (INDIA) Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Orange Wave 1 Position: Navy Blue Wave 3 Direction Next Lower Degrees: Orange Wave 2 Details: Navy Blue Wave 2 appears complete, with Orange Wave 1 of Navy Blue Wave 3 now in play. Wave Cancel Invalidation Level: 23,826.0 The NIFTY 50 (India) Elliott Wave analysis on the daily chart suggests the market is currently in a trending phase. The overall movement is categorized as impulsive, and the structure under observation is Orange Wave 1. This signifies the early development of a larger wave formation, indicating that the market is embarking on a new upward cycle within the Elliott Wave framework. At present, the market is positioned within Navy Blue Wave 3, which follows the completion of Navy Blue Wave 2. Historically, Wave 3 within Elliott Wave theory tends to exhibit strong upward momentum, aligning with the impulsive nature of the broader trend. The shift from Wave 2 to Wave 3 often signals the beginning of a more powerful and sustained movement in the direction of the overall trend. Key Observations: Navy Blue Wave 2 is now presumed complete. Orange Wave 1 of Navy Blue Wave 3 is currently unfolding, suggesting the market is in the early stages of a potentially significant upward move. The impulsive structure indicates that further upward progression is likely, with Orange Wave 2 expected to follow once Orange Wave 1 concludes. Wave Invalidation Level: The invalid level for the current wave scenario is set at 23,826.0. If the price drops below this threshold, the existing wave pattern would be considered invalid, requiring a reevaluation of the market structure. As long as the price remains above this level, the ongoing impulsive trend is expected to persist, with Orange Wave 1 continuing its formation within Navy Blue Wave 3. Summary: On the daily chart, the NIFTY 50 is in an impulsive phase, with Orange Wave 1 of Navy Blue Wave 3 actively progressing. The bullish trend is anticipated to continue, provided the price does not break below the invalidation level of 23,826.0.   NIFTY 50 (INDIA) Elliott Wave Analysis - Weekly Chart NIFTY 50 (INDIA) Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Navy Blue Wave 3 Position: Gray Wave 5 Direction Next Higher Degrees: Navy Blue Wave 3 (continuing) Details: Navy Blue Wave 2 of 5 appears complete, with Navy Blue Wave 3 now unfolding. Wave Cancel Invalidation Level: 23,826.0 The NIFTY 50 (India) Elliott Wave analysis on the weekly chart indicates the market is in a strong upward trend, classified as impulsive. The structure being analyzed is Navy Blue Wave 3, which is part of the larger Gray Wave 5. This setup suggests the market is in the midst of a significant upward cycle, with further upward potential as Wave 3 progresses. Currently, the market is positioned within Navy Blue Wave 3, following the completion of Navy Blue Wave 2 of 5. This implies that the correction phase linked to Wave 2 has concluded, and the market has entered the impulsive phase of Wave 3. Historically, Wave 3 often represents a robust and extended movement in the trend's direction, aligning with the current market conditions. Key Insights: Navy Blue Wave 3 is expected to push the market further upward, continuing the momentum from the impulsive phase. The market’s trend is not only sustained but appears to be strengthening as it progresses through Navy Blue Wave 3. Wave Invalidation Level: The invalidation level for this wave count is set at 23,826.0. If the price were to drop below this level, the existing Elliott Wave scenario would be invalid, and the market structure would need to be reassessed. However, as long as the price stays above this threshold, the current upward trend, driven by Navy Blue Wave 3, is expected to persist. Summary: In the weekly chart, NIFTY 50 is experiencing an impulsive upward trend, with Navy Blue Wave 3 actively forming within the larger structure of Gray Wave 5. The completion of Navy Blue Wave 2 marks the beginning of a stronger upward movement in Wave 3, provided the price holds above the invalidation level of 23,826.0. Technical Analyst : Malik Awais Source : Tradinglounge.com get trial here!  
×
×
  • Create New...
us