Skip to main content

Tux Exchange API wrapper for Python 2.7

Project description

# python-tuxexchange

# Developed By Sneurlax
# https://github.com/sneurlax

![python](https://img.shields.io/badge/python-2.7-blue.svg)

Inspired by [this](https://github.com/Olliecad1/Tux_Exchange_Python) wrapper written by [Olliecad1](https://github.com/Olliecad1) and following the example of [this](https://github.com/ericsomdahl/python-bittrex) wrapper written by [Eric Somdahl](https://github.com/ericsomdahl)

> I ([sneurlax](https://github.com/sneurlax)) am not affiliated with, nor paid by [Tux Exchange](https://tuxexchange.com). Use at your own risk

## Step 1

### Git clone the github page

```
sudo git clone https://github.com/Olliecad1/python-tuxexchange
```

## Step 2

### Change Directory into python-tuxexchange

```
cd python-tuxexchange
```

### Step 3

### Adding Tux Exchange Public and Private Key to tuxexchange.py file
```
sudo nano tuxexchange.py
```

### go down until you see PublKey = ('') PrivKey = ('') just to add your public and private keys in the between the ''

## Step 4

### Building and Installing the setup file

```
sudo python setup.py build
sudo python setup.py install
```

## Step 5

### If you are on a Linux Machine or Raspberry pi

```
sudo mv tuxexchange.py /usr/lib/python2.7/dist-packages/
```

## Usage

See available methods in the [Tux exchange API docs](https://tuxexchange.com/docs)

[test_manual.py](https://github.com/olliecad1/python-tuxexchange/blob/master/test_manual.py):
```python
from tuxexchange import Tuxexchange

tuxexchange = Tuxexchange()

print tuxexchange.api_query('getcoins')
{'PPC': {'website': 'www.peercoin.org', ...
print tuxexchange.api_query('getticker')
{'BTC_ICN': {'last': '0.00040418', ...
```

## Get Balance api, NEEDS PRIVATE AND PUBLIC KEY ACCESS

```python
from tuxexchange import Tuxexchange

tuxexchange = Tuxexchange()

print tuxexchange.getBalances()
```


## Testing

Run unit tests in [test.py](https://github.com/olliecad1/python-tuxexchange/blob/master/test.py)



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-tuxexchange-Wrapper-1.0.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distributions

python_tuxexchange_Wrapper-1.0.0-py2.7.egg (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page