Skip to main content

Implements the Cryptowatch Rest API

Project description

pycwatch

The pycwatch library provides access to the Cryptowatch API and implements all resources of the REST API.

Installation

Either install from pypi or clone this repository and install locally.

pip install pycwatch

Dependencies

  • requests

Quick Start

import pycwatch

# create api client
api = pycwatch.rest

# get list of available assets
assets = api.list_assets()
# get some price info
exchange, pair = 'binance', 'btceur'
price = api.get_market_price(exchange, pair)

If you have an account at cryptowat.ch, you can either set your key as an environment variable or in the code.

export CRYPTO_WATCH_KEY="my-awesome-key"

or

import pycwatch

api = pycwatch.rest
api.api_key = 'my-awesome-key'

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

pycwatch-0.2.1.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

pycwatch-0.2.1-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

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