Metadata-Version: 2.1
Name: worldcoinindex
Version: 1.0.0
Summary: A lightweight wrapper for the WorldCoinIndex Cyptocoin API
Home-page: https://www.worldcoinindex.com/apiservice
Author: Pranav Chaturvedi
Author-email: pranavhfs1@gmail.com
Maintainer: PranavChaturvedi
License: MIT
Project-URL: Homepage, https://www.worldcoinindex.com/apiservice
Project-URL: Documentation, https://github.com/PranavChaturvedi/worldcoinindex/blob/main/README.md
Project-URL: Repository, https://github.com/PranavChaturvedi/worldcoinindex
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

## worldcoinindex

A Python wrapper for the [WorldCoinIndex API](https://www.worldcoinindex.com/apiservice).

# Features

- Fetch ticker information
- Retrieve market data
- Handle errors gracefully
- Lightweight with no external dependencies

# Installation

You can install the package via pip:

```bash
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)
```

