Get top x coins
From UBot Studio
(Difference between revisions)
(Created page with "'''$get top x coins''' is a function that returns a list of objects with data about the top specified number of coins by market capitalization. == Parameters == '''Amount:''...") |
(→Example) |
||
Line 12: | Line 12: | ||
<pre> | <pre> | ||
− | + | ui console view | |
− | log("Top 5 Coins: {$get top x coins("5")}") | + | log object("Top 5 Coins: {$get top x coins("5")}") |
</pre> | </pre> | ||
Line 20: | Line 20: | ||
Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone. | Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone. | ||
− | The example command will return a list of objects with data about the top 5 coins by market capitalization | + | The example command will return a list of yaml objects with data about the top 5 coins by market capitalization. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 01:48, 5 July 2023
$get top x coins is a function that returns a list of objects with data about the top specified number of coins by market capitalization.
Parameters
Amount: The number of top coins by market capitalization you want to fetch the data for.
Return Value
This function returns a list of objects. Each object includes data about one of the top coins by market capitalization.
Example
ui console view log object("Top 5 Coins: {$get top x coins("5")}")
Please replace "your private key" with your actual DeFi wallet's private key.
Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone.
The example command will return a list of yaml objects with data about the top 5 coins by market capitalization.