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
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
YnExchangePY-1.0.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file YnExchangePY-1.0.0.tar.gz
.
File metadata
- Download URL: YnExchangePY-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7baff6708937c1c361bea02050a7e19f4822d44aae5fdfc219a9f77075f4d15b |
|
MD5 | d76d0df740fdb7f7896b89e0bde84e45 |
|
BLAKE2b-256 | b9da4d6d7cde7ada80677a4152cafc721d3ea30f99f0bf3a9ac6ad4686ef9fc0 |
File details
Details for the file YnExchangePY-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: YnExchangePY-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0daee4c8b1c78110b3e0c399faa9d81b5e850a43796a8ded0361a45e9e4725a8 |
|
MD5 | 421189183f960048b6bca6cae1a32d44 |
|
BLAKE2b-256 | cf840bb54b4f8f593fed9cd91bb4e9128c33531dcf5d4255111a66a4cc357b42 |