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
Release history Release notifications | RSS feed
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_lib-2.1.2.tar.gz
.
File metadata
- Download URL: pycwatch_lib-2.1.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114ef82a20c34c73beeee80579e21579d0a08d00830aa8776d722aa1ac8e535c |
|
MD5 | d273c1ae7671f2079ac27c9f54d9591f |
|
BLAKE2b-256 | 26f1eeb39026d3364f35e269c62c2ed7a6c28dca329a63eb9afc77faf2cf68a9 |
File details
Details for the file pycwatch_lib-2.1.2-py3-none-any.whl
.
File metadata
- Download URL: pycwatch_lib-2.1.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb20fd963311017900b6e8c06d37fa9adcfee92ab063ac43ea79370a011132e |
|
MD5 | efd3287de6436555206cca2ef5b44b8c |
|
BLAKE2b-256 | 3fd12f3e6992f6f7fb81552d66a7f7662e1627fbaaf2df8fe4d83f4644a6b5be |