Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of the box crypto report #3794

Merged
merged 8 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions openbb_terminal/cryptocurrency/cryptocurrency_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ def load(
-------
pd.DataFrame
Dataframe consisting of price and volume data

Examples
--------
>>> from openbb_terminal.sdk import openbb
>>> openbb.crypto.load(symbol="btc",to_symbol="usd",start_date="2019-01-01",source="YahooFinance")
"""
if isinstance(interval, int):
interval = str(interval)
Expand Down
13 changes: 12 additions & 1 deletion openbb_terminal/cryptocurrency/due_diligence/messari_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def get_marketcap_dominance(
-------
pd.DataFrame
market dominance percentage over time

Examples
--------
>>> from openbb_terminal.sdk import openbb
>>> mcapdom_df = openbb.crypto.dd.mcapdom(symbol="BTC")
"""

if start_date is None:
Expand All @@ -110,13 +115,14 @@ def get_marketcap_dominance(
if end_date is None:
end_date = datetime.now().strftime("%Y-%m-%d")

df, _ = get_messari_timeseries(
messari_timeseries = get_messari_timeseries(
symbol=symbol,
end_date=end_date,
start_date=start_date,
interval=interval,
timeseries_id="mcap.dom",
)
df, _ = messari_timeseries if messari_timeseries else (pd.DataFrame(), "")
return df


Expand Down Expand Up @@ -653,6 +659,11 @@ def get_fundraising(
Sales rounds,
Treasury Accounts,
Metric Value launch details

Examples
--------
>>> from openbb_terminal.sdk import openbb
>>> fundraise = openbb.crypto.dd.fr(symbol="BTC")
"""

url = base_url2 + f"assets/{symbol}/profile"
Expand Down
Loading