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.0.tar.gz
(3.6 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.0.tar.gz.
File metadata
- Download URL: worldcoinindex-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d399549c9d244f0a2c4e2fe41ceea3ee06ddc474947ed01127767a0f1ffaf0a
|
|
| MD5 |
2d266f68252e8ecab8131e14f679874f
|
|
| BLAKE2b-256 |
cf345032c177afa78c316b5b9e18b17da05f15124384552f4496e09de9ba8e52
|
File details
Details for the file worldcoinindex-1.0.0-py3-none-any.whl.
File metadata
- Download URL: worldcoinindex-1.0.0-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 |
fc56a07c4a45234ff830f9a6a712ca06409948b1ee47c98c18f49be7c45e4f71
|
|
| MD5 |
a81707be48c1a7042316e91b2ee09df6
|
|
| BLAKE2b-256 |
1e8ff9d316e711410dccc2ab8328da35c67291fde9f7bed3f97c901f0dbd873b
|