mcapdom
- Model
- Chart
Returns market dominance of a coin over time
Source Code: [link]
openbb.crypto.dd.mcapdom(symbol: str, interval: str = "1d", start_date: Optional[str] = None, end_date: Optional[str] = None)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Crypto symbol to check market cap dominance | None | False |
interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True |
start_date | Optional[str] | Initial date like string (e.g., 2021-10-01) | None | True |
end_date | Optional[str] | End date like string (e.g., 2021-10-01) | None | True |
Returns
Type | Description |
---|---|
pd.DataFrame | market dominance percentage over time |
Examples
from openbb_terminal.sdk import openbb
mcapdom_df = openbb.crypto.dd.mcapdom(symbol="BTC")
Plots market dominance of a coin over time
Source Code: [link]
openbb.crypto.dd.mcapdom_chart(symbol: str, start_date: Optional[str] = None, end_date: Optional[str] = None, interval: str = "1d", export: str = "", sheet_name: Optional[str] = None, external_axes: bool = False)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Crypto symbol to check market cap dominance | None | False |
start_date | Optional[str] | Initial date like string (e.g., 2021-10-01) | None | True |
end_date | Optional[str] | End date like string (e.g., 2021-10-01) | None | True |
interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True |
export | str | Export dataframe data to csv,json,xlsx file | True | |
external_axes | bool | Whether to return the figure object or not, by default False | False | True |
Returns
This function does not return anything