pycwatch-lib 2.1.2

Creator: railscoder56

Last updated:

0 purchases

pycwatch-lib 2.1.2 Image
pycwatch-lib 2.1.2 Images
Add to Cart

Description:

pycwatchlib 2.1.2

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.