finnhub-python
API文档: :
API版本:1.0.0
套件版本:2.3.0
安装
安装套件
pip install finnhub-python
入门
如果您来自版本1,请参考
import finnhub
# Setup client
finnhub_client = finnhub . Client ( api_key = "YOUR API KEY" )
# Stock candles
res = finnhub_client . stock_candles ( 'AAPL' , 'D' , 1590988249 , 1591852249 )
print ( res )
#Convert to Pandas Dataframe
import pandas as pd
print ( pd . DataFrame ( res ))
# Aggregate Indicators
print ( finnhub_client . aggregate_indicator ( 'AAPL' , 'D' ))
# Basic financials
print (
1