-
Notifications
You must be signed in to change notification settings - Fork 235
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
Python methods for corresponding Kraken API methods #40
Comments
You probably mean using Please give examples of what you propose. No need to flesh out over the entire Kraken API method space. :) Also, turning Kraken API methods into package API methods means we could have some long-absent methods that are present in Kraken's internal codebase, but not as external API methods - such as the "available balance" method that's currently available as an example (note the
Although Kraken's API method names haven't changed since inception (AFAIR), I've decided against it (so far); since, if they did change, that would be tech debt put on me. However, that was my thoughts up to this year, when many more people seem to have started using it. This pushed me to work toward a
I do not plan to do it myself any time soon - not a priority for me. Getting Also, I'd like to retain |
This is also mentioned in issue #11 (as the |
That's right, although I think adhering to the names specified on the Kraken API guide would be best. |
A few more thoughts: This would make sense as an extension of the base The docstrings can't be copy-paste from Kraken's page (for both licensing and documentation maintenance reasons), but they could include a link to Kraken's docs, and a note on delegation. |
As to this point, IMO it does not hold. "Get trade balance" is the name of the HTML doc section, not the method ( (If there was documentation in a different language, the former would have been different, but the latter would be the same.) |
Hi there, let me first thank you for this package! It's pretty much exactly what I was looking for, nice and neat. The only thing that I thought was missing is the reason for this issue here. So I took it upon myself and implemented the methods corresponding to the Kraken API methods. See here. The only additional functionality apart from the methods' implementation is a call rate limiter to avoid lockouts. My implementation deviates substantially from the pull request in #41, but as I think, for a good reason. Just a one-line wrapper around query_public/query_private and copying the docs from Kraken is not really helping anyone, but as it has been said, does put a lot of burden on maintainers. Therefore, I went with a much "higher-level" implementation involving pandas. This serves my needs much better and justifies the extra work regarding maintenance. If you like the way my implementation is going, I'd gladly work with you to transfer some (or all) of it to krakenex. |
Hey @dominiktraxl, that's pretty cool, and looks to me like exactly what @tasercake (and @jdddog?) were looking for! This seems about what I had in mind for I don't think there's much need to transfer |
Thanks @veox! |
I think it would make things a lot easier if one could call API methods directly from an
API()
instance in Python rather than putting out usingquery_public()
orquery_private()
each time. Having python methods would also help with code completion.Has there been a decision to not include individual python methods for each API method?
If this is not the case, are there any plans to implement corresponding python methods anytime soon?
The text was updated successfully, but these errors were encountered: