Comments (10)
Basically, because I wanted a quick way to access Kraken API and didn't look around. Plus, that's an additional dependency.
Also, I have no interest in Python 2 anymore.
from python3-krakenex.
Requests manage parameters encoding, and many other features... and so user code is much lighter.
You really might have a look...
Moreover it's very easy to add a caching mechanism thanks to http://requests-cache.readthedocs.org/
Not a big dependency...
from python3-krakenex.
Yup, I did take a short look. :)
Right now, HTTP request handling is a total of 6 lines, including the actual request (in connection.py). I don't see a reason that would justify the effort of putting in an external dependency - to make this code lighter?..
Is there a specific use case where you see requests
as superior?
Another concern is that if this code becomes py2+3, then it has to be tested for both py2 and py3. And that's just technical debt.
from python3-krakenex.
I took a short look through your repos - do you want to integrate this package in some other tool, that is already using requests
? If so, it might be best to just fork and do the changes you desire. It would only be marginally faster than rewriting from scratch though.
from python3-krakenex.
For testing both Python 2 and 3, you can create unit tests and use continuous integration (Travis for example). Hide API key using environment variable and your tests will be executed both with Python 2 and 3.
from python3-krakenex.
Well, I'm not the one who's going to do any of it any time soon.
OK to close?
from python3-krakenex.
that's a pity... unit testing could at least be something to do to ensure your code won't break.
from python3-krakenex.
I'll get to it... eventually. It took 2 years to bother generating docs. There's just too much on my plate.
from python3-krakenex.
ok ;-)
ping me if you want some tips
nosetests is very easy to use
https://github.com/ig-python/ig-markets-api-python-library/blob/master/tests/test_ig_service.py
You can run tests locally using :
$ nosetests -s -v
Enabling Travis need to be done on their website and you need to add a very basic .travis.yml
like
https://github.com/ig-python/ig-markets-api-python-library/blob/master/.travis.yml
A first step could be to test public API calls.
After this, it will be possible to also test private API calls but you will need to secure API key
https://docs.travis-ci.com/user/encryption-keys/
from python3-krakenex.
requests-updated
has been merged to master
. Also released v2.0.0a1
(alpha).
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.