Skip to main content

A client library for the Cryptowatch Rest API.

Project description

pycwatch

Coverage Package version Python versions Black style

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

Quick Start

See the cryptowat.ch docs for available endpoints.

from pycwatch import CryptoWatchClient

# create api client
client = CryptoWatchClient()

# get list of available assets
assets = client.list_assets()
# get some price info
exchange, pair = "binance", "btceur"
price = client.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

from pycwatch import CryptoWatchClient

api_key = "my-awesome-key"
client = CryptoWatchClient(api_key)

Note that anonymous users are limited to 10 Cryptowatch Credits worth of API calls per 24-hour period. See https://docs.cryptowat.ch/rest-api/rate-limit#api-request-pricing-structure for more information.

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-1.1.4.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

pycwatch-1.1.4-py3-none-any.whl (10.8 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