Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/10mohi6/cryptowatch-api-python-client
cryptowatch-client is a python client library for cryptowatch public market rest api
https://github.com/10mohi6/cryptowatch-api-python-client
api client cryptowatch python wrapper
Last synced: 14 days ago
JSON representation
cryptowatch-client is a python client library for cryptowatch public market rest api
- Host: GitHub
- URL: https://github.com/10mohi6/cryptowatch-api-python-client
- Owner: 10mohi6
- License: mit
- Created: 2018-05-22T11:34:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:12:55.000Z (about 2 years ago)
- Last Synced: 2025-01-12T01:56:15.969Z (23 days ago)
- Topics: api, client, cryptowatch, python, wrapper
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cryptowatch-client
[![PyPI version](https://badge.fury.io/py/cryptowatch-client.svg)](https://badge.fury.io/py/cryptowatch-client)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)cryptowatch-client is a python client library for [cryptowatch public market rest api](https://cryptowat.ch/docs/api)
## Installation
$ pip install cryptowatch-client
## Usage
```python
from cryptowatch_client import Clientclient = Client(timeout=30)
response = client.get_allowance()
print(response.status_code, response.json())client.get_allowance() # GET /
client.get_assets() # GET /assets
client.get_assets(asset='btc') # GET /assets/btc
client.get_pairs() # GET /pairs
client.get_pairs(pair='ethbtc') # GET /pairs/ethbtc
client.get_exchanges() # GET /exchanges
client.get_exchanges(exchange='kraken') # GET /exchanges/kraken
client.get_markets() # GET /markets
client.get_markets(exchange='kraken') # GET /markets/kraken
client.get_markets(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd
client.get_markets_price(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd/price
client.get_markets_summary(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd/summary
client.get_markets_trades(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd/trades
client.get_markets_trades(exchange='gdax', pair='btcusd', limit=100, since=1481663244) # GET /markets/gdax/btcusd/trades
client.get_markets_orderbook(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd/orderbook
client.get_markets_ohlc(exchange='gdax', pair='btcusd') # GET /markets/gdax/btcusd/ohlc
client.get_markets_ohlc(exchange='gdax', pair='btcusd', before=1481663244, after=1481663244, periods='60,180,108000') # GET /markets/gdax/btcusd/ohlc
client.get_markets_prices() # GET /markets/prices
client.get_markets_summaries() # GET /markets/summaries
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request