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 use get_realtime_price method giving keyerror #47

Open
amanmauryajii opened this issue Dec 24, 2024 · 5 comments
Open

Unable to use get_realtime_price method giving keyerror #47

amanmauryajii opened this issue Dec 24, 2024 · 5 comments

Comments

@amanmauryajii
Copy link

I want to get the realtime ohlc data of current candle of the given asset
but there is no any way to get the current candle data

@cleitonleonel
Copy link
Owner

I want to get the realtime ohlc data of current candle of the given asset
but there is no any way to get the current candle data

There is no OHLC data for candle formation.

@amanmauryajii
Copy link
Author

Thanks for clarifying,
Can I get Realtime tick data of current candle or Current price ??

@cleitonleonel
Copy link
Owner

cleitonleonel commented Dec 28, 2024

Thanks for clarifying, Can I get Realtime tick data of current candle or Current price ??

The raw data of this function are arrays like this.

[['EURUSD_otc', 1735388483.162, 1.03174, 1],
 ['EURUSD_otc', 1735388483.162, 1.03174, 1],
 ['EURUSD_otc', 1735388483.162, 1.03174, 1],
 ['EURUSD_otc', 1735388483.683, 1.03178, 0],
 ['EURUSD_otc', 1735388483.683, 1.03178, 0],
 ['EURUSD_otc', 1735388484.152, 1.03178, 1],
 ['EURUSD_otc', 1735388484.152, 1.03178, 1],
 ['EURUSD_otc', 1735388484.483, 1.03178, 0],
 ['EURUSD_otc', 1735388484.658, 1.03175, 1],
 ['EURUSD_otc', 1735388484.658, 1.03175, 1],
 ['EURUSD_otc', 1735388485.157, 1.03177, 1],
 ['EURUSD_otc', 1735388485.283, 1.03177, 0]
 ]

@amanmauryajii
Copy link
Author

Exactly ,This is the data i want ,but which function to use for getting realtime candle data
I found only one function but it also generates an error

get_realtime_price method giving keyerror

@cleitonleonel
Copy link
Owner

Exactly ,This is the data i want ,but which function to use for getting realtime candle data I found only one function but it also generates an error

get_realtime_price method giving keyerror

And how did you use it to get a key error?
As you can see this function only gives us 2 keys, time and price, what did you use to get a key error?
image

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

2 participants