I am fully new to python (and programming), and I do know this query will sound very dumb to most of you folks. I am experimenting on getting datas from the cryptocurrencies exchenge bittrex and put it into variables into my script for additional calculations. I am making an attempt to make this unofficial repository working to fetch datas from their api. Whereas I’ve no issues with the general public datas (fetching with curl), I am unable to get this piece of python to work, and thus I am unable to fetch balances nor another non-public datas.
With a purpose to set up it I made the next:
wget https://github.com/ericsomdahl/python-bittrex/archive/grasp.zip
unzip grasp.zip
cd python-bittrex-master
python setup.py set up
The next recordsdata have been created:
ls -la /usr/native/lib/python2.7/dist-packages/bittrex/
complete 48
drwxr-sr-x 2 root workers 4096 Sep 30 15:04 .
drwxrwsr-x 3 root workers 4096 Sep 30 15:04 ..
-rw-rw-r-- 1 root workers 15357 Sep 12 18:34 bittrex.py
-rw-r--r-- 1 root workers 17302 Sep 30 15:04 bittrex.pyc
-rw-rw-r-- 1 root workers 0 Sep 12 18:34 __init__.py
-rw-r--r-- 1 root workers 145 Sep 30 15:04 __init__.pyc
Then I created this take a look at recordsdata, however they’re each producing no output:
cat get_balances.py
#!/usr/bin/env python
from bittrex.bittrex import Bittrex
api = Bittrex('fXXXXXXXXXXXXXXXXXXXXXXXXXd', '1XXXXXXXXXXXXXXXXXXXXXXXXX0')
api.get_balances()
and
cat get_markets.py
#!/usr/bin/env python
from bittrex.bittrex import Bittrex
api = Bittrex('fXXXXXXXXXXXXXXXXXXXXXXXXXd', '1XXXXXXXXXXXXXXXXXXXXXXXXX0')
api.get_markets()
Earlier than I did python setup.py set up
the output was: ImportError: can't import identify Bittrex
I attempted to troubleshoot it operating with python -v
in entrance however it did produce 500 traces of output that I did not handle to grasp, I might share it after all if somebody asks for it.
Whereas I am writing I am positive I am lacking one thing very trivial, sorry if it is a dumb query, however documentation is missing any precept, it is only a few and it assumes that who’s integrating this code is a developer; and I am not.
Following recommendations from one other discussion board I did:
root@my:/house/me/take a look at/python-bittrex-master# pip set up bittrex
Downloading/unpacking bittrex
Downloading bittrex-0.1.4.tar.gz
Operating setup.py (path:/tmp/pip_build_root/bittrex/setup.py) egg_info for package deal bittrex
Downloading/unpacking requests==2.7.0 (from bittrex)
Downloading requests-2.7.0-py2.py3-none-any.whl (470kB): 470kB downloaded
Putting in collected packages: bittrex, requests
Operating setup.py set up for bittrex
Discovered present set up: requests 2.2.1
Not uninstalling requests at /usr/lib/python2.7/dist-packages, owned by OS
Efficiently put in bittrex requests
Cleansing up...
python get_balances.py
/usr/native/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A real SSLContext object shouldn't be out there. This prevents urllib3 from configuring SSL appropriately and should trigger sure SSL connections to fail. For extra info, see https://urllib3.readthedocs.org/en/newest/safety.html#insecureplatformwarning.
InsecurePlatformWarning
So there’s a warning, however nonetheless no output.
When you attempt the code I pasted as is, it ought to return “invalid api”, whereas it throws no output on my system. Learn how to troubleshoot this?