Index Data

get_current_index()

target website: https://quote.eastmoney.com/center/hszs.html 支持沪深重要指数、上证指数、深证系列指数、中证系列指数(包括指数成分),以及全部ETF数据

Returns:

current ETF and index data

Return type:

pandas.DataFrame

get_daily_data(symbol, start_date, end_date)

东方财富网-行情中心 http://quote.eastmoney.com/center,支持个股、指数、ETF日频历史数据获取

Parameters:
  • symbol (str) – index symbol

  • start_date (str, 'yyyymmdd') – start dateutils

  • end_date (str, 'yyyymmdd') – end dateutils

Returns:

historical daily index data

Return type:

pandas.DataFrame