-
Notifications
You must be signed in to change notification settings - Fork 234
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
Inconsistent historical Spread #119
Comments
Yes, this is a known behaviour of upstream. See #112 (comment) for details.
No.
Perhaps, people have been mentioning this for years (see previous link, or search something like |
Thanks for your answer @veox . For information, here is the response I received from Kraken support on this subject... [API SPREAD] Some missing valuesAnnabelle (Kraken Support) Hello, Thank you for contacting us regarding the Kraken API. My apologies for the delayed reply. The REST API Spread endpoint only returns a limited amount of data (such as the past few minutes), so any changes in the bid/ask spread that occur between subsequent calls could cause a difference in the results. In addition, the spread data is stored separately by each source (such as different instances of the API servers), so any discrepancies between instances (such as timing differences, temporary networking issues for one instance, and so on) could cause different spread data to be stored (and then returned via the Spread endpoint).
The WebSocket API spread feed would send a new message for any changes to the best bid/ask, including both price changes and volume changes, hence the accuracy of the spread data would be the best available (better than the ticker feed, for example).I hope that this answers your question successfully. Please let us know if you need any further assistance. Have a great day. Sincerely, Annabelle [API SPREAD] Some missing valuesme Hello Annabelle, I understand that there can be network problems. There may also be at each layer of the OSI model. Can you at least indicate in the Kraken API documentation this problem so that users are aware of it? Regards, [API SPREAD] Some missing valuesAnnabelle (Kraken Support) Hello,
Thank you for your reply, and for your comments. I will forward your suggestion to our API developers for their consideration. We are planning some significant updates to our API documentation, so lots of additional information (such as advantages/disadvantages of each endpoint) would then be included. Sincerely, Annabelle |
Versions
What are you trying to achieve?
I get Kraken data directly from their APIs (without using Krakenex).
What do you expect to happen?
My environments are on an identical infrastructure (lambda and S3), and have an identical application code too. I therefore expect that the data recovered by my two environments will be identical.
What happens instead?
I just realized that there are differences at least on the data of 'XXBTZUSD' Spread (Bitcoin in $).
After checking my code, I conclude that there must be an inconsistency in the data returned by the Kraken API.
To verify this, I just made 2 calls spaced about 7 seconds apart (https://api.kraken.com/0/public/Spread?pair=XXBTZUSD&since=0).
Here are the results :
The data returned by each call is incomplete.
The cells in red correspond to the missing data, in yellow a difference in timestamp (or can be 2 separate records... I don't know).
What is your question?
Thanks in advance for your help, and thank you for Krakenex which I just found out !
The text was updated successfully, but these errors were encountered: