Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get live interval data #64

Open
alexgiul opened this issue Sep 6, 2023 · 3 comments
Open

Unable to get live interval data #64

alexgiul opened this issue Sep 6, 2023 · 3 comments

Comments

@alexgiul
Copy link

alexgiul commented Sep 6, 2023

Hello and really thanks for the work done on this library, it is great!

I have a problem with one example that should show how to get live updates for a given symbol.
In my case I am using ticker EURUSD.FXCM , 1 minute bar
get_live_interval_bars(ticker="EURUSD.FXCM", bar_len=60, seconds=60*3)

and the code of the above method is:

def get_live_interval_bars(ticker: str, bar_len: int, seconds: int): bar_conn = iq.BarConn(name='pyiqfeed-Example-live-interval-bars') bar_listener = iq.VerboseBarListener("Bar Listener") bar_conn.add_listener(bar_listener) with iq.ConnConnector([bar_conn]) as connector: bar_conn.watch(symbol=ticker, interval_len=bar_len, interval_type='s', update=1, lookback_bars=10) time.sleep(seconds)

The other methods work great e.g. I can get level_1 quotes and trades, historical data, but no live update.
I dont get any error or anything that can help to understand what is wrong.

Is there anything I can do?

@openSourceBugs
Copy link

I can also replicate this issue. It looks like the live interval bars functionality is completely broken now. Worse than before when it was receiving duplicate/missing bars.
Is this command correct?
bar_cmd = "BW,%s,%s,%s,%s,%s,%s,%s,%s,%s,'',%s\r\n" % ( symbol, interval_len, bgn_bar_str, lookback_days_str, lookback_bars_str, bf_str, ef_str, request_id, interval_type, update_str, )

@openSourceBugs
Copy link

At this point, I'm probably going to abandon iqfeed and using pyiqfeed. iqfeed paywalls their developer docs to the tune of 500$/year and this repository has a pull request from oct 2022 that hasn't been reviewed. It's practically abandoned, with all the issues that it has. The alternative I'm looking at right now is polygon.

@akapur
Copy link
Owner

akapur commented Jan 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants