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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sharepp-1.1.3.tar.gz.

File metadata

  • Download URL: sharepp-1.1.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1016-azure

File hashes

Hashes for sharepp-1.1.3.tar.gz
Algorithm Hash digest
SHA256 2cd17328d2805be8fafa5c72c1111b914e8683b3d0be1dbc456746caf247ce1d
MD5 960089a7639a84bd67606ac4183be2b2
BLAKE2b-256 ae2ec990f93a72f20b9d1ebe3c57b36fa325ea975672acfd324291948f480bf6

See more details on using hashes here.

File details

Details for the file sharepp-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: sharepp-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1016-azure

File hashes

Hashes for sharepp-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 019e811a860bae31f01452e545e314a2d0d86645ef7a6d4e57ed562edc26edfe
MD5 7fadb055bdd3cbffc2f655b7da26a5fb
BLAKE2b-256 1597b755480f9a788e51cf3deb05b4d103c0c13457593534e7bfc40e44859064

See more details on using hashes here.

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