mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 13:13:59 +00:00
CRYPTOCURRENCY
This menu aims to explore crypto world, and the usage of the following commands along with an example will be exploited below.
- load
- load a given coin vs a given currency [CoinGecko]
- view
- plot the loaded crypto data
- top
- view top coins from coinmarketcap [coinmarketcap.com]
load
usage: load [-c --coin] [-d --days] [--vs]
Load a given coin vs a given currency. Currently only retrieves price, not volume or MarketCap. The current crypto data is Powered by CoinGecko API, which is an awesome service that currently requires no API Key!
- -c/--coin The coin you wish to load. This can either be the symbol or the name.
load -c btcandload -c bitcoinwill load. The -c flag is optional, the above is equivalent toload btc. - -d/--days The number of days to look. Defaults to 30 days. As per the API: Minutely data will be used for duration within 1 day, Hourly data will be used for duration between 1 day and 90 days, Daily data will be used for duration above 90 days.
- --vs The currency to look against. Defaults to "usd".
view
usage: view
Plot the loaded crypto data.
top
top [-n] [-s --sort SORTBY] [--descend]
This command displays the top n cryptocurrencies from coinmarketcap.com.
- -n: Number of coins to look at (after sort). Defaults to 10.
- -s/--sort : Column to sort by. One of {Symbol,CMC_Rank,LastPrice,DayPctChange,MarketCap}. Defaults to sorting by the CMC rank.
- --descend : Flag to change the sorting order. Sorts in ascending order (since default order is the Rank which starts at 1).
