A lightweight wrapper for the WorldCoinIndex Cyptocoin API
Project description
worldcoinindex
A Python wrapper for the WorldCoinIndex API.
Features
- Fetch ticker information
- Retrieve market data
- Handle errors gracefully
- Lightweight with no external dependencies
Installation
You can install the package via pip:
pip install worldcoinindex
Usage
from worldcoinindex import CryptocoinEngine
# Initialize the client with your API key
api_key = "YOUR_API_KEY"
client = CryptocoinEngine(api_key=api_key)
# Get tickers
tickers = client.get_tickers(labels=["ethbtc", "ltcbtc"], fiat="btc")
print(tickers)
# Get markets (v2)
markets = client.get_markets(fiat="btc")
print(markets_v2)
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
worldcoinindex-1.0.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file worldcoinindex-1.0.1.tar.gz.
File metadata
- Download URL: worldcoinindex-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e83141c3bc434c6a0db3d79f4463969aac84baca29d9d1338211e92254db2c86
|
|
| MD5 |
81e6d9b8befab14b339d3c0ae08fb7c4
|
|
| BLAKE2b-256 |
868cde4efc6c6c7d0425b17fb728db677581728259e1b1eb0f5616515a1d4d84
|
File details
Details for the file worldcoinindex-1.0.1-py3-none-any.whl.
File metadata
- Download URL: worldcoinindex-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28db31b49830c5e3cd81bbe9baeb5212d31cc29831fb26c92b0c075a65b8aac5
|
|
| MD5 |
884dbd418272aabbbf93b2dd84708440
|
|
| BLAKE2b-256 |
5370cda6d10cb3cdc20b1066de16d1fea98b93e494e4881ddb3cc14058672684
|