A client library for 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
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
Built Distribution
File details
Details for the file pycwatch-1.1.4.tar.gz
.
File metadata
- Download URL: pycwatch-1.1.4.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f2ea6683a25c4eea51d6f055d7b79f6f0d20c8d544e626d9843b0a415d6d58 |
|
MD5 | 6cf673d958740926a7dd189f31fed98c |
|
BLAKE2b-256 | 2662fdfc589f23355178e824677eb3a92de73ca57c0853e61d294cb05e340ea8 |
File details
Details for the file pycwatch-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: pycwatch-1.1.4-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e5dbfd1b32cf8df8b0803bec1bd5dbbc2ec8f9cca3ac87257eb9050ab39d85 |
|
MD5 | 871ce34a81da4a671d9872cb4def941b |
|
BLAKE2b-256 | 3cb6fb3a32de84370517ddc6e2d471bfc0da89ad66571c3ae0a4eb5857435aeb |