Fix multiple crypto bugs (#1903)

* fix #1850

* fix #1831

* add extra check to Reddit API keys

* ignore warning message to update praw api

* improve OpenBB links

* fix quick performance only on stocks class because I'm James bitch

* fix quick performance only on stocks class because I'm James bitch

* fix #1829

* fix #1821

* add messari to keys - fix #1819

* example of multiple oclumns to check on options/chains

* minor improvement in xlabel re. #1814

* remove repeated command

* fix #1698

* fix line too long

* fix #1814 fr now

* fix tests

* Fix multiple bugs

* Disable false positive pylint in some crypto models

* Fix website not building because of expo command removed

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
This commit is contained in:
minhhoang1023
2022-06-06 16:20:44 +01:00
committed by GitHub
parent 335b89c8e2
commit 4c02dc2a66
7 changed files with 5 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ def display_crypto_sentiment_analysis(
)
ax.axhline(y=0, linestyle="--")
ax.set_xlabel("Time")
ax.set_ylabel("Sentiment")
ax.set_ylabel("Finbrain's Sentiment Score")
start_date = sentiment.index[-1].strftime("%Y/%m/%d")
ax.set_title(f"FinBrain's Sentiment Analysis for {coin}-USD since {start_date}")
ax.set_ylim([-1.1, 1.1])

View File

@@ -207,7 +207,7 @@ def display_marketcap_dominance(
else:
return
ax.plot(df.index, df["values"])
ax.plot(df.index, df["marketcap_dominance"])
ax.set_title(f"{coin}'s Market Cap Dominance over time")
ax.set_ylabel(f"{coin} Percentage share")

View File

@@ -1,5 +1,6 @@
"""CoinGecko model"""
__docformat__ = "numpy"
# pylint:disable=unsupported-assignment-operation
import logging
from typing import Any, Dict, List, Optional, Tuple, Union

View File

@@ -85,7 +85,7 @@ def display_global_market(export: str) -> None:
df = paprika.get_global_market()
df_data = df.copy()
df["Value"] = df["Value"].apply(
df["Value"] = df["Value"].apply( # pylint:disable=unsupported-assignment-operation
lambda x: lambda_long_number_format_with_type_check(x)
)

View File

@@ -140,6 +140,7 @@ def filter_stocks(
industry=industry,
exclude_exchanges=exclude_exchanges,
)
print(data.keys())
else: # no industry
data = fd.select_equities(
country=country,

View File

@@ -13,7 +13,6 @@ def vcr_config():
}
@pytest.mark.skip(reason="`subplots` not mocked => calling displays the plot")
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_display_btc_rainbow(mocker):

View File

@@ -1197,8 +1197,6 @@ main:
ref: "/terminal/common/prediction_techniques/conv1d"
- name: mc
ref: "/terminal/common/prediction_techniques/mc"
- name: expo
ref: "/terminal/common/prediction_techniques/expo"
- name: funds
ref: "/terminal/funds"
sub:
@@ -1662,8 +1660,6 @@ main:
ref: "/terminal/common/prediction_techniques/conv1d"
- name: mc
ref: "/terminal/common/prediction_techniques/mc"
- name: expo
ref: "/terminal/common/prediction_techniques/expo"
- name: "OpenBB Python API"
ref: "/api"
- name: "OpenBB Bots"