Ejemplo n.º 1
0
 def __init__(self):
     self._usage = get_usage()
     self._metadata = get_metadata()
Ejemplo n.º 2
0
 def test_metadata_json(self):
     data = get_metadata()
     assert isinstance(data, dict)
     assert len(data) == 7
Ejemplo n.º 3
0
 def test_metadata_pandas(self):
     data = get_metadata(output_format="pandas")
     assert isinstance(data, pd.DataFrame)
     assert data.shape == (7, 1)
Ejemplo n.º 4
0
    # print(get_social_sentiment("AAPL", token=secret_key))

    # plt.show()
    pass


def trial2():
    df = get_symbols(output_format='pandas', token=secret_key)
    for index, row in df.iterrows():
        print(row['symbol'])


def trial3():
    plan = Stock('PLAN', output_format='pandas', token=secret_key)
    print(plan.get_quote())
    print('~~~~~~~~~~~~~~~~~~~~~')
    print(get_ceo_compensation("PLAN", token=secret_key))


def trial4():
    df = get_iex_symbols(output_format='pandas', token=secret_key)
    for index, row in df.iterrows():
        print(row['symbol'])


if __name__ == '__main__':
    print(get_metadata(token=secret_key))
    # trial1()
    # trial2()
    # trial3()
    # trial4()