Comments (8)
Please don't close the issue, though: the topic question is still valid.
from python3-krakenex.
OT: How long have you tried to wait?..
For me, all queries return a response (or raise a requests
exception) within 1 minute. Most queries that would interact with Kraken's trade execution engine are "resolved" within 10-20 seconds, but quite often go up to 30.
from python3-krakenex.
Sorry, my bad. I get an requests
error. I just didn't catch it.
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://api.kraken.com/0/private/AddOrder
Is it just me or isn't it possible right now to create an order at Kraken via API? Sorry for the mess, i do realize that this has nothing todo with my initial question...
from python3-krakenex.
No problem!
ATM, Kraken is indeed a mess; 502
s were fairly common in recent months, but there's ample 504
s and 520
s now.
from python3-krakenex.
BTW, careful with 502
s: PSA on /r/krakenex.
from python3-krakenex.
Tonight I had a situation where quite likely my internet connection was dropped while krakenex was waiting for a reply. That ended up waiting for that reply endlessly (hours), so adding a (reasonable) timeout would still be a good idea, even if this only occurs rarely.
from python3-krakenex.
I sometimes have the same problem as @TheSeven. I run a script that queries the public endpoint for the current price at regular intervals, and occasionally I’ll get a response that never comes back. Currently I have to manually inspect and reset, but I’d really like to handle it with a timeout to just give up and move on.
from python3-krakenex.
PR #77 has been merged - introducing a timeout
arg to the query_{public,private}
functions.
The value passed should be a number (int
or float
).
For now, there is no way to set a default timeout (for all queries and/or connection opening).
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
- GET request params in data are ignored HOT 5
- 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.