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 1.1.4

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 1.1.4
File Size Uploaded
pycwatch-1.1.4.tar.gz 10.5 kB Details

Built distribution (wheel)

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

Total release size: 21.3 kB

Release files / pycwatch-1.1.4.tar.gz

Download URL pycwatch-1.1.4.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4f2ea6683a25c4eea51d6f055d7b79f6f0d20c8d544e626d9843b0a415d6d58
BLAKE2b-256 checksum
How to use checksums
2662fdfc589f23355178e824677eb3a92de73ca57c0853e61d294cb05e340ea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

Release files / pycwatch-1.1.4-py3-none-any.whl

Download URL pycwatch-1.1.4-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00e5dbfd1b32cf8df8b0803bec1bd5dbbc2ec8f9cca3ac87257eb9050ab39d85
BLAKE2b-256 checksum
How to use checksums
3cb6fb3a32de84370517ddc6e2d471bfc0da89ad66571c3ae0a4eb5857435aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

0.2.1

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