Skip to content

Repository files navigation

python-cryptowatch

This is an unofficial Python wrapper for the Cryptowatch public Data API. Cryptowatch is a cryptocurrency charting and trading platform owned by Kraken exchange.

Source code
https://github.com/uoshvis/python-cryptowatch
Documentation
https://python-cryptowatch.readthedocs.io/en/latest/

Quick Start

fromcryptowatch.api_clientimportClientclient=Client()
# get assetsassets=client.get_assets()
# get markets which have btc as base or quoteassets_btc=client.get_assets('btc')
"""Returns a market's OHLC candlestick data.This represents a 1-hour candle starting at 1594087200 (Tuesday,7 July 2020 02:00:00 GMT) and ending at 1602179348 (Thursday,8 October 2020 17:49:08 GMT)."""data= {
'exchange': 'gdax',
'pair': 'btcusd',
'route': 'ohlc',
'params': {
'before': 1602179348,
'after': 1594087200,
'periods': '3600'}
}
market=client.get_markets(data=data)

For more check out the documentation.

About

Cryptowatch public API Python implementation.

Topics

Resources

Stars

36 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages