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 attempting 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 can not get this piece of python to work, and thus I can not fetch balances nor another non-public datas.
To be able 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 information had been created:
ls -la /usr/native/lib/python2.7/dist-packages/bittrex/
complete 48
drwxr-sr-x 2 root employees 4096 Sep 30 15:04 .
drwxrwsr-x 3 root employees 4096 Sep 30 15:04 ..
-rw-rw-r-- 1 root employees 15357 Sep 12 18:34 bittrex.py
-rw-r--r-- 1 root employees 17302 Sep 30 15:04 bittrex.pyc
-rw-rw-r-- 1 root employees 0 Sep 12 18:34 __init__.py
-rw-r--r-- 1 root employees 145 Sep 30 15:04 __init__.pyc
Then I created this check information, 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 title Bittrex
I attempted to troubleshoot it operating with python -v
in entrance but it surely did produce 500 strains of output that I did not handle to grasp, I would share it after all if somebody asks for it.
Whereas I am writing I am certain 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 options from one other discussion board I did:
root@my:/house/me/check/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 bundle 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 current 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 just isn't out there. This prevents urllib3 from configuring SSL appropriately and will trigger sure SSL connections to fail. For extra data, see https://urllib3.readthedocs.org/en/newest/safety.html#insecureplatformwarning.
InsecurePlatformWarning
So there’s a warning, however nonetheless no output.
Should you strive the code I pasted as is, it ought to return “invalid api”, whereas it throws no output on my system. Methods to troubleshoot this?