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

getCandles #3

Open
idrys opened this issue May 20, 2024 · 5 comments
Open

getCandles #3

idrys opened this issue May 20, 2024 · 5 comments

Comments

@idrys
Copy link

idrys commented May 20, 2024

As I understand it, it should return results every 1 minute. Unfortunately, no data is coming in, and I'm not receiving any error or session disconnection information either. Am I correct in assuming that the XTB operator has stopped sending data in response to this request?

@pawelkn
Copy link
Owner

pawelkn commented May 20, 2024

I've checked the example python3 examples/get-candles.py. It works fine. Maybe you are trying to get candles during the closed market?

@sgflt
Copy link

sgflt commented May 21, 2024

I haven't received any candle since 16. 5. 2024. I am using demo websokcet URL: wss://ws.xtb.com/demoStream.

Workaround that may be related peterszombati/xapi-node#17

@sgflt
Copy link

sgflt commented May 21, 2024

Trick with getLastChart works.

@pawelkn
Copy link
Owner

pawelkn commented May 21, 2024

Use a real account, not a demo one, to stream candles and let me know if the problem persists. There may be account type related issues.

You can also try the getTickPrices stream as an alternative. I have been using the getTickPrices stream for over a year and it is very stable.

@sgflt
Copy link

sgflt commented May 21, 2024

getTickPrices it requires some manual aggregations, but yes, it works.

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