Crypto Excel » Docs_functions Coins Stat TRH
Convert any coins to fiat currency at specific intervals using a chosen exchange’s latest prices. This function also returns the 7 days main statistic (with throttling)
=st_coins_stat_trh ( from_coin, to_coin, [exchange], [trh_sec])
Parameter | Required | Description | Example |
from_coin | Y | Coin you want to convert. Can be a range ( multiple coins) | “ATOM”,”BTC” |
to_coin | Y | fiat currency | “USD” |
Exchange* | N Default Binance | Exchange you want to use for the conversion | “Bitmex” |
trh_sec | N Default 300. | Seconds interval between consecutive calls | 120 |
*you can choose any exchange amongst the supported one which has the from_coin and to_coin listed
Required: Y
Description: Coin you want to convert. Can be a range ( multiple coins)
Example: “ATOM”, “BTC”
Required: Y
Description: fiat currency
Example: “USD”
Required: N. def “Binance”
Description: Exchange you want to use for the conversion
Example: “bitmex”
You can choose any exchange amongst the supported one which has the from_coin and to_coin listed
Required: N. def 300.
Description: seconds interval between consecutive calls
Example: 120
Value | Description |
Time | time of the conversion |
Coin | Coin |
1H% | One hour percentage change |
24H% | 24 hours percentage change |
7D% | 7 days percentage change |
7D MAX | 7 days Max price |
7D MIN | 7 days Min Price |
Last | Last price |
time of the conversion
Coin
One hour percentage change
24 hours percentage change
7 days percentage change
7 days max price
7 days min price
Last coin Price
This function send 1 request to the exchange even if you want to convert multiple coins at once
Tip. Use st_watch_requests() to monitor your requests.
The Coins Stat TRH function returns the Time, the conversion rate and the main statistic for one or multiple coins in the desired fiat. You can specify the Exchange that will be used for the conversion. Data are refreshed automatically at defined intervals. (trh_sec). Both from and to coins must be listed on the specified exchange This function does not require Authentication
You can use the st_coins_stat_trh function in CryptoExcel. It converts coins to fiat and retrieves live updates with 7-day stats, including percentage changes and highs/lows.
No, this function works with public exchange data and does not require authentication. It can fetch statistics for one or multiple coins at once.
Yes, you can set the trh_sec parameter to define how often Excel refreshes the data. The default interval is 300 seconds.