Library for getting ETF and cryptocurrency prices.
Project description
SharePriceProvider
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
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
sharepp-1.1.3.tar.gz
(6.8 kB
view details)