Comments (5)
Yea, I noticed this as well. It seems that Kraken isn't respecting params sent in the GET body.
I've changed my local to:
# Since January 2024, public endpoints only support GET.
if "/public/" in urlpath:
self.response = self.session.get(
url, params=data, headers=headers, timeout=timeout
)
else:
self.response = self.session.post(
url, data=data, headers=headers, timeout=timeout
)
if self.response.status_code not in (200, 201, 202):
self.response.raise_for_status()`
as a temporary fix and it seems to be working.
from python3-krakenex.
Post-mortem: this wasn't caught because CI hasn't been working for a while now. :/
The repo has been degrading in "maintenance mode" and I haven't been checking github regularly, for years now. Lucky I did yesterday...
EDIT: Thank you all for sorting this out!
from python3-krakenex.
Same problem here. For now, I go with this workaround in my client code:
data_str = '&'.join([f'{k}={v}' for k, v in data.items()])
method_data = f'{method}?{data_str}' if len(data_str) > 0 else method
response = api.query_public(method_data, timeout=timeout)
from python3-krakenex.
@jj-elliott-animus Very clean workaround!
I'll go review the PR #141 now.
from python3-krakenex.
Closing as fixed; bugfix release 2.2.1 on the way.
from python3-krakenex.
Related Issues (20)
- addorder take profit HOT 1
- No module named 'krakenex' after install on python 3.7 HOT 5
- Adding 'close' order doesn't work: EAPI:Invalid key HOT 6
- Channel that lists krakenex on Anaconda? HOT 1
- Unknown asset pair HOT 2
- Can't expire a websocket token received through GetWebSocketsToken HOT 2
- How to get available balance information? HOT 1
- Authenticator or wrong key? HOT 2
- Handling ConnectionError, HTTPError thrown during a query HOT 3
- Unexpected Response from 'Balances' Endpoint HOT 1
- Add Order Broken HOT 1
- Add order giving me invalid Key error. HOT 5
- why is fetching of balance returning error? HOT 2
- deposit addresses HOT 1
- CancelOrderBatch
- post requests no longer accepted for market data endpoint HOT 2
- Staking vs. Earn HOT 1
- Why set default value of dictionary parameters to None, but then change them to {} at beginning of method?
- How to turn off debug level in krakenex / requests module? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python3-krakenex.