Metadata-Version: 2.1
Name: cryptomarket
Version: 0.0.5
Summary: CryptoMarket API client library
Home-page: https://github.com/cryptomkt/cryptomkt-python
Author: CryptoMarket
Author-email: pablo@cryptomkt.com
License: UNKNOWN
Keywords: api,cryptomkt,cryptomarket,bitcoin,client
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: certifi (==2017.7.27.1)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: idna (==2.6)
Requires-Dist: requests (==2.18.4)
Requires-Dist: six (==1.11.0)
Requires-Dist: urllib3 (==1.22)

# CryptoMarket
The official Python library for the [CryptoMarket API v1](https://developers.cryptomkt.com).

# Installation
To install Cryptomarket, simply use pip:
```
pip install cryptomarket
```
# Documentation

The first things you'll need to do is [sign up with CryptoMarket](https://www.cryptomkt.com/account/register).

## API Key + Secret
If you're writing code for your own CryptoMarket account, [enable an API key](https://www.cryptomkt.com/account2#api_tab).

Next, create a Client object for interacting with the API:

```
from cryptomarket.exchange.client import Client

client = Client(api_key, api_secret)
```

# Usage

## [Public endpoints](https://developers.cryptomkt.com/es/#endpoints-publicos)

### Get markets
```
client.get_markets()
```

### Get ticker
```
client.get_ticker(market="ETHCLP")
```

### Get book
```
client.get_book(market="ETHCLP", type="buy")
client.get_book(market="ETHCLP", type="sell")
```

### Get trades
```
client.get_trades(market="ETHCLP")
```

