Skip to content

joetor5/coinprecio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Cryptocurrency API client for fetching market price

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages