Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

from cryptowatch.api_client import Client
client = Client()

# get assets
assets = client.get_assets()

# get markets which have btc as base or quote
assets_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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages