Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinprecio-2026.3.21.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coinprecio-2026.3.21-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file coinprecio-2026.3.21.tar.gz.

File metadata

  • Download URL: coinprecio-2026.3.21.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for coinprecio-2026.3.21.tar.gz
Algorithm Hash digest
SHA256 7443e3f1659b97189ec565f8dd94b1024fd88a8270ba28ff46080b5f919e6f3a
MD5 9f99fa56f01875d45b3750a0d10c0f57
BLAKE2b-256 c20ab1a21351d10d05fdece1c6c0988c63820a2343d4d0cc43adf2446e340255

See more details on using hashes here.

File details

Details for the file coinprecio-2026.3.21-py3-none-any.whl.

File metadata

  • Download URL: coinprecio-2026.3.21-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.11

File hashes

Hashes for coinprecio-2026.3.21-py3-none-any.whl
Algorithm Hash digest
SHA256 40b55c8678b2f5152222bad972af47bbce3247426afa51feebec5562eeee9f70
MD5 42f10f9d673173476c33a1e25874ff59
BLAKE2b-256 a5c313024e0417d22832f84b1e7662eeac43aa00d1d62464c44557cbb6665587

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page