Skip to main content

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.

Metadata

Release files for pycwatch-lib 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycwatch-lib 2.1.2
File Size Uploaded
pycwatch_lib-2.1.2.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycwatch-lib 2.1.2
File Interpreter ABI Platform
pycwatch_lib-2.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / pycwatch_lib-2.1.2.tar.gz

Download URL pycwatch_lib-2.1.2.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
114ef82a20c34c73beeee80579e21579d0a08d00830aa8776d722aa1ac8e535c
BLAKE2b-256 checksum
How to use checksums
26f1eeb39026d3364f35e269c62c2ed7a6c28dca329a63eb9afc77faf2cf68a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release files / pycwatch_lib-2.1.2-py3-none-any.whl

Download URL pycwatch_lib-2.1.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eb20fd963311017900b6e8c06d37fa9adcfee92ab063ac43ea79370a011132e
BLAKE2b-256 checksum
How to use checksums
3fd12f3e6992f6f7fb81552d66a7f7662e1627fbaaf2df8fe4d83f4644a6b5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release history Release notifications | RSS feed

This release

2.1.2 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page