Get top x coins
From UBot Studio
(Difference between revisions)
(→Example) |
(→Example) |
||
(One intermediate revision by one user not shown) | |||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
ui console view | ui console view | ||
− | log object( | + | log object($get top x coins("5")) |
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
The example command will return a list of yaml 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. |
Latest revision as of 01:51, 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.
[edit] Parameters
Amount: The number of top coins by market capitalization you want to fetch the data for.
[edit] Return Value
This function returns a list of objects. Each object includes data about one of the top coins by market capitalization.
[edit] Example
ui console view log object($get top x coins("5"))
The example command will return a list of yaml objects with data about the top 5 coins by market capitalization.