Cryptocurrency API client for fetching market price
Project description
coinprecio
Cryptocurrency API client for fetching market price.
Table of Contents
Prerequisites
Python >= 3.8
Install
pip install coinprecio
Usage
api(api_key, backend="coinmarketcap", symbol="BTC", currency="USD")
from coinprecio import api
api_key = "YOUR_API_KEY"
coinapi = api(api_key)
# get price for the initialized symbol
btc_price = coinapi.get_price()
# get price dict for all supported symbols
prices = coinapi.get_price_all()
Note: api_key should be associated with the respective backend/API service.
Supported API Backends
- coinmarketcap
Supported Symbols
- BTC
- ETH
- SOL
- BCH
- LTC
Supported Currencies
- USD
- EUR
- JPY
- GBP
License
Distributed under the MIT License. See the accompanying file LICENSE.
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
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 coinprecio-2026.5.10.tar.gz.
File metadata
- Download URL: coinprecio-2026.5.10.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b0642089a3588d494ef193f5d3f511fd3fc80e9d897725862dbf1971ebdaa3
|
|
| MD5 |
356abb389680fb56c80f5b413185d4cb
|
|
| BLAKE2b-256 |
85b5d12d1d7afce0e710a05edd0b335bfca74d7d36473ce7541770c1195ca77f
|
File details
Details for the file coinprecio-2026.5.10-py3-none-any.whl.
File metadata
- Download URL: coinprecio-2026.5.10-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d21123c9610972afbb89934b61d886204b0bf7a69dd1f27d9f0e5f8411d2fdf6
|
|
| MD5 |
1beb37ccb09ac13edaa9f285ce0635a1
|
|
| BLAKE2b-256 |
0118f8e01ba74f31c7b2c70597aed2182a2d6771531e4d5d8bf553a5d3a5811c
|