Skip to main content

Library for getting ETF and cryptocurrency prices.

Project description

SharePriceProvider

Testing Codacy Badge

Installation

The best way to install SharePriceProvider is by using pip: pip install sharepp

Usage

To use SharePriceProvider simply import it into your python project. There are two main functions available:

  • get_etf_price: Returns the current price of an ETF
  • get_coin_price: Returns the current price of a cryptocurrency

Supported coins:

  • Bitcoin
  • Ethereum
  • Binance Coin
  • Tether
  • Solana
  • Cardano
  • Ripple
  • USD Coin
  • Polkadot
  • Dogecoin

Example

import sharepp
from sharepp import Coin

print(sharepp.get_etf_price("LU1781541179"))
print(sharepp.get_coin_price(Coin.ETHEREUM))

The above example prints the current prices of the Lyxor Core MSCI World ETF and the current price of Ethereum.

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

sharepp-1.1.3.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

sharepp-1.1.3-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

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