Jump to content
  • 0

Using the Streaming API with python for Data Account


Djfab23

Question

Posted

Hello,

 

A similar question had already been asked on the forum but the only answer was to go to a link https://labs.ig.com/community but the Streaming API part does not work. So no answer to my problem.
I'm new to python and I think I still have to make a lot of progress because despite my simple request I can't get what I want : Recover data from my account (pnl deposit, availabe cash, margin, etc... ) in streaming. In REST no problem.
I don't think I'm the first to want this and if someone who knows how to do it can explain to me how to do it I would be really very grateful.

Cordially.

3 answers to this question

Recommended Posts

  • 0
Posted

Hello bug-or-feature,

Thank you for your answer and I will invest the code you provided me.

Because for the moment I had arrived at the step to connect to Lightstreamer after having retrieved the CST, x security token, account ID and the address of the Lightstreamer server returned by the /session API. But connection error.

  • 0
Posted

Hello bug-or-feature,

I follow up on your message to say that thanks to you I was able to reach my end. Thanks again to you.

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

    • With Bitcoin aiming for a new ATH, this staking might be the best option to maximum holding
    • Tbh, trading can be frustrating, I keep trying different strategy to perfect my trading skill but all seems to be in vain. Recently, I learnt we can use AI to predict the market to trade, so I decide to start asking AI to analyze when btc is overbought so I can look for short entry but this seems not to work against as most trade I enter end up hitting my SL. I know this is part of the learning process so I don’t risk too much but it hurt to lose fund especially when you are trying your best to make your first positive trade. Sometime, I just feel the market is totally against me and that further discourages me from futures trading. Recently, I got introduced to BTC staking on some platforms like BGBTC on bitget, Babylon chain, Solv protocol, Coredao etc but that doesn’t quench my hunger to understand BTC volatility since I will just stake my btc and earn apr. I want to understand how this volatility works so I can start making something from futures trading rather than just staking to earn apr. Also, I feel staking is for spot traders that intend to hold for a longer period and that doesn’t expose you to the market. I am not like most trader that prioritize profit over knowledge even when that is the final goal.
    • $ETH will surpass ATH this month and hit $7-8k next year
×
×
  • Create New...
us