Skip to main content

No project description provided

Project description

Documentation

Description:

This Python library provides functionalities to get cryptocurrency prices and perform conversions between Iranian Toman (IRT) and USD, for 15 supported cryptocurrencies.

Key Features:

  • Get the current price of various cryptocurrencies in IRT or USD.

  • Convert between IRT and USD for any of the supported cryptocurrencies.

  • Donate to the library developer (optional).

Supported Cryptocurrencies:

TON

BTC

ETH

USDT

SHIB

BNB

DOGE

ADA

SOL

XRP

USDC

ETC

PEPE

ATM

BISO

Installation

pip install YN_EXCHANGE

Usage

  • Importing the library:
import yn_exchange
  • Getting the price of a cryptocurrency:

IRT : Iranian Toman

USD : United States Doller

ton_price_irt = yn_exchange.TON_COIN_PRICE(currency="IRT")

ton_price_usd = yn_exchange.TON_COIN_PRICE(currency="USD")



print(f"1 TON = {ton_price_irt} IRT")

print(f"1 TON = ${ton_price_usd} USD")
  • Converting between IRT and USD:
irt_to_usd = yn_exchange.calculator(100000, "IRT", "BTC")

usd_to_irt = yn_exchange.calculator(10, "USD", "ETH")



print(f"100,000 IRT = ${irt_to_usd} USD")

print(f"$10 USD = {usd_to_irt} IRT")
  • Donating to the library developer (optional):
yn_exchange.donate()

Functions

TON_COIN_PRICE()

BTC_PRICE()

ETH_PRICE()

USDT_PRICE()

SHIB_PRICE()

BNB_PRICE()

DOGE_PRICE()

ADA_PRICE()

SOL_PRICE()

XRP_PRICE()

USDC_PRICE()

ETC_PRICE()

PEPE_PRICE()

ATM_PRICE()

BISO_PRICE()

donate()

calculator()

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

YnExchangePY-2.0.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

YnExchangePY-2.0.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file YnExchangePY-2.0.0.tar.gz.

File metadata

  • Download URL: YnExchangePY-2.0.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for YnExchangePY-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e277bdb45033f6d079dd9a7a1acfad38738dad49ae11f1c8dcfb26267ac3223c
MD5 2636bbd3213e8441b0786d72a089ecc1
BLAKE2b-256 d171a844ab68948c2334372b9e55690e20930be0678ae45f9df184bd1eaa990a

See more details on using hashes here.

File details

Details for the file YnExchangePY-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for YnExchangePY-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6371ae2bd5e17cbbb7916d3da61311dc394e6b2e67209c31bcda965d538166d
MD5 04ca3377883cab1bf442da2b016c2624
BLAKE2b-256 5548351ab2ef5afb790dea35ef1e78fb6f1ffb690d7c5f92fd68f2a85eb9aec3

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