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

Recent Kraken changes broke pykrakenapi? #82

Open
DrWest opened this issue Jan 31, 2024 · 5 comments
Open

Recent Kraken changes broke pykrakenapi? #82

DrWest opened this issue Jan 31, 2024 · 5 comments

Comments

@DrWest
Copy link

DrWest commented Jan 31, 2024

There seems to have been a recent change on Kraken's side that has broken pykrakenapi. I have had a script running for months that uses the OHLC data. Today my script stopped working, and running the following example from the home page:

import krakenex
from pykrakenapi import KrakenAPI
api = krakenex.API()
k = KrakenAPI(api)
ohlc, last = k.get_ohlc_data("BCHUSD")
print(ohlc)

gives me the following error:
attempt: 000 | ['EGeneral:Invalid arguments']

@JGroxz
Copy link

JGroxz commented Jan 31, 2024

I'm getting the same thing when krakenex>=2.2.0 is installed. Downgrading krakenex to 2.1.0and running the same code results in the following:

attempt: 000 | 405 Client Error: Not Allowed for url: https://api.kraken.com/0/public/OHLC

Have no idea what can be causing this yet.

@JGroxz
Copy link

JGroxz commented Jan 31, 2024

In Kraken API's changelog, they mention:

Jan 2024 - Removed support for POST requests to all public endpoints; these requests will now return a 4xx error, please use a GET request instead. Added notes to Balance and Ledger endpoints on migration from Staking to Earn and asset suffixes.

But krakenex's update 2.2.0 fixes exactly this based on its changelog.

@JGroxz
Copy link

JGroxz commented Jan 31, 2024

Should get resolved by this pull request from krakenex: veox/python3-krakenex#141

@DrWest
Copy link
Author

DrWest commented Jan 31, 2024

I found this comment on krakenex and copied the temporary fix with success:

veox/python3-krakenex#140 (comment)

@veox
Copy link

veox commented Feb 1, 2024

krakenex has been updated to v2.2.1 with the aforementioned fix veox/python3-krakenex#141 - please update.

This is (was) a dependency issue, not pykrakenapi directly. Probably OK to close.

EDIT: Actually, requirements.txt needs a bump:

krakenex>=2.2.1,<3

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