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

    • The BLUM project has recently gained attention in the cryptocurrency community due to several developments such as  Introduction of a mining game on the TON ecosystem, allowing users to earn $BLUM tokens.  Announcement of new strategic partnerships Upcoming features including Tribes and Memepad functionalities.  Active community engagement through events and rewards 5. Recognition from notable figures in the crypto space Key upcoming events: Token Generation Event (TGE) for the BLUM mining game scheduled for September 20, 2024 Coinciding airdrop of BLUM tokens to the community The project plans to provide liquidity on centralized exchanges such as Bitget and Binance, as well as decentralized exchanges like Uniswap, Curve, and PancakeSwap. These developments have contributed to increased discussions about BLUM on social media platforms, particularly Twitter. As the crypto landscape evolves rapidly, interested individuals are encouraged to stay informed about BLUM's progress through official channels and related TON communities like r/TONDiscussion.  As with any cryptocurrency project, potential participants should conduct thorough research and consider their own risk tolerance before engaging.
    • Counter Fire is poised to redefine the gaming industry with its innovative blend of competitive gameplay and blockchain technology. The game offers multiple modes, including team-based matches of quads, duos, and solos along with solo missions, with deep customization options and dynamic battle scenarios. While the core gameplay of Counter Fire is similar to PUBG, a battle-royal where the last-man or last-team standing wins in a survival gameplay, users earn while playing Counter Fires. The project has been buzzing the ecosystem as the airdrop claim went live today so users can claim their $CEC and await listing on 9th Sept. While gamers continue to claim their tokens, some analysts have start speculating that the project will redefine the gaming landscape citing the project partnership with likes of YoubiCapital, HASHKEY, KERNEL ventures and many more and the fact that the project raised over $5 million as the base for their argument. The project partnership with Bitget could also be a reason it continues to gain such exposure as players can only claim their token to the exchange. Though, as players claim their token to the exchange, they could benefit some reward from the 1 million $CEC reward pool. I still think many exchanges should list the token so gamers can have many choices.
    • Hi @feirb1, Thank you for your post. Please note that we offer T-Bills for trading on leveraged accounts. By trading these, you will be speculating on the price movements. This means that, when trading, you´ll never take ownership of an actual t-bill. Instead, you´ll take a position on the market either rising in value or falling. Thanks, KoketsoIG
×
×
  • Create New...
us