Skip to main content

Cryptocurrenty exchange API wrappers

Project description

# Crypto Exchange APIs

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

Inspired by [BitEx](https://github.com/nlsdfnbch/bitex) written by [nlsdfnbch](https://github.com/nlsdfnbch) (Python 3)

## Installation

Install with `pip` using `pip install crypto-exchange-apis`

## Usage

##### [Bittrex](https://bittrex.com/) ([API docs](https://bittrex.com/home/api))

[test_manual.py](https://github.com/init-industries/crypto-exchange-apis/blob/master/crypto_exchange_apis/test_manual.py):
```python
from crypto_exchange_apis import Bittrex

bittrex = Bittrex()

print bittrex.get_currencies()
{'message': '', 'result': [{'Notice': None, 'TxFee': 0.001, 'CurrencyLo...
print bittrex.get_markets()
{'message': '', 'result': [{'Notice': None, 'Created': '2014-02-13T00:0...
```

##### [Poloniex](https://poloniex.com/) ([API docs](https://poloniex.com/support/api))

[test_manual.py](https://github.com/init-industries/crypto-exchange-apis/blob/master/crypto_exchange_apis/test_manual.py):
```python
from crypto_exchange_apis import Poloniex

poloniex = Poloniex()

poloniex.returnTicker()['BTC_XMR']
{'last': 0.01929211, 'quoteVolume': 29239.14327161, 'high24hr': 0.02068574...
```

##### [Tux Exchange](https://tuxexchange.com/) ([API docs](https://tuxexchange.com/docs))

[test_manual.py](https://github.com/init-industries/crypto-exchange-apis/blob/master/crypto_exchange_apis/test_manual.py):
```python
from crypto_exchange_apis import Tuxexchange

tuxexchange = Tuxexchange()

print tuxexchange.api_query('getcoins')
{'PPC': {'website': 'www.peercoin.org', 'minconfs': '2', 'name': 'Peer...
print tuxexchange.api_query('getticker')
{'BTC_ICN': {'last': '0.00040418', 'quoteVolume': '0', 'high24hr': '0'...
```

## Testing

Run unit tests in [test.py](https://github.com/init-industries/crypto-exchange-apis/blob/master/crypto_exchange_apis/test.py)

## Credits

Uses:

- [python-bittrex](https://github.com/ericsomdahl/python-bittrex) by [ericsomdahl](https://github.com/ericsomdahl)
- [poloniex](https://github.com/Aula13/poloniex) by [Aula13](https://github.com/Aula13)


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

crypto-exchange-apis-0.3.0.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

crypto_exchange_apis-0.3.0-py2-none-any.whl (17.8 kB view hashes)

Uploaded Python 2

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