Beispiel #1
0
def display_key(ticker: str):
    """Alpha Vantage key metrics

    Parameters
    ----------
    ticker : str
        Fundamental analysis ticker symbol
    """
    df_key = av_model.get_key_metrics(ticker)
    if df_key.empty:
        console.print("No API calls left. Try me later", "\n")
        return

    print_rich_table(df_key, headers=[], title="Ticker Key Metrics")

    console.print("")
Beispiel #2
0
def display_key(ticker: str):
    """Alpha Vantage key metrics

    Parameters
    ----------
    ticker : str
        Fundamental analysis ticker symbol
    """
    df_key = av_model.get_key_metrics(ticker)

    if df_key.empty:
        return

    print_rich_table(df_key,
                     headers=[""],
                     title=f"{ticker} Key Metrics",
                     show_index=True)

    console.print("")
Beispiel #3
0
def display_key(ticker: str):
    """Alpha Vantage key metrics

    Parameters
    ----------
    ticker : str
        Fundamental analysis ticker symbol
    """
    df_key = av_model.get_key_metrics(ticker)
    if df_key.empty:
        print("No API calls left. Try me later", "\n")
        return

    if gtff.USE_TABULATE_DF:
        print(tabulate(df_key, headers=[], tablefmt="fancy_grid"))
    else:
        print(df_key.to_string(header=False))

    print("")