Jump to content
  • 0

Looking to connect with a Python developer. Struggling with the API.


nedhulton

Question

I have managed to write a simple Python script that can login and execute trades. If there are any beginners out there who want me to share my code and a quick explanation please let me know. You can actually login, execute a trade and confirm that the trade has been executed with about 50 lines of code and without dependencies. So that could be useful for people who don't want to deal with the complexity of the projects on github.  

Unfortunately, I am struggling with the following: 

(1) How to delete working orders based on trade ID.

(2) How to close positions based on trade ID.

(3) How to stop myself getting rate-limited (meaning I often need to run the script several times just to get the IG servers to respond and  execute the trade). 

I am looking to connect with Python developers who have defeated these problems. This could involve me paying somebody for their expertise. It could involve working on problems together. Maybe there are some legendary people out there who are just happy to help. 

 

Edited by nedhulton
Link to comment

9 answers to this question

Recommended Posts

  • 0
On 04/10/2022 at 21:14, andygeach said:

I may be able to help. Email: *********

 

On 03/12/2022 at 04:34, murdochf said:

hi, would like some help on development if u are available

 

 

1 hour ago, Hedgehog86 said:

Hi Murdochf

Let me know if I can assist, my email is ************@gmail.com.

We could jump on a video call and discuss.

Cheers

James

Hi @andygeach, @murdochf and @Hedgehog86

When using the IG Community according to the IG Community guidelines: Avoid posting personal information, such as account number/username, passwords or email addresses.

Thank you

 

All the best - MongiIG

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

    • What’s the average spread like, generally? How does it compare to current conditions? I’ve been using IG for over a decade, and I’ve noticed a growing sense of dissatisfaction, not just from myself but across various forums too. I think they really need to prioritize some core areas—like improving the iOS app and refining the API. While your issue may not be directly tied to the API, in theory, if you know how to use it well, it should offer a better experience compared to the web platform or the standard retail charts. Just my two cents. As for the problem, it’s definitely not about liquidity in these markets. I’d say it’s more likely due to the rise of algorithmic trading over the years. These high-speed algorithms can take advantage of price movements, often leading to short periods of slippage for regular traders as prices shift rapidly. Market orders, meant to execute quickly at the best available price, are more prone to slippage compared to limit orders. Since market orders prioritize speed, they don’t guarantee a specific price. If the market price changes in the short moment between when you place the order and when it's actually executed, your trade will go through at the new price, whether it’s better or worse than expected. This makes market orders riskier in fast-moving or volatile markets. By using the API along with a low-latency server, you can reduce the risk of slippage in some cases. What kind of latency are you experiencing with the API? Avoid using a home connection for this—opt for an affordable VPS, even a $5 one will significantly improve your experience.
    • Cardano’s 3.8% price surge might be from all the updates and partnerships they’ve been rolling out lately. I’ve noticed that every time they release some big news, like a new upgrade or collaboration, there’s always a jump in price. The community around Cardano is really strong too, which seems to play a role in driving things. A few weeks back, I swapped some tokens using https://stealthex.io , and I remember seeing a bunch of people talking about Cardano on forums. Maybe that hype is finally showing in the price. Either way, it’s nice to see some action in the market again.
    • Hi everyone, just a short post at this stage as I want to see if there is any interest in this topic first.  I’ll likely contact IG but wanted to see if there are other thoughts and experiences first as there are several issues I am seeing and it’s a bit complicated, so didn’t want to write some long rambling post. i trade the Dax and Nasdaq indices and use an automated strategy using the API.  I am effectively trying to do a trend trading strategy but on short timescales.  So i set fairly tight stops and then run those trades that leave the area to the plus side.  My win rate is low so have a lot of losers so slippage on stops is quite important to me. i have a database of trades and 5m data going back over 3years now - so have a lot of data to work with. i measured the stop slippage several years ago and it was fine for this method but have re measured it recently as I noticed the losing trades were a bit too large and it seems that the slippage has increased quite a lot for Nasdaq (not then Dax). I am trying to see what is behind this. Anyone interested or tackling similar issues? Thanks David 
×
×
  • Create New...
us