掘金社区

怎么获取沪深300的成分股Pinned highlighted

yqs01 发表在策略研究 2021-03-05 18:11:06

策略研究
702
2
0

all_stock = get_instruments(exchanges='SZSE.399300', sec_types=[1], fields='symbol, listed_date, delisted_date',
df=True)
这样获取不了 各位大神用什么方法获取的

评论: 2
  • from datetime import datetime
    last_day = get_previous_trading_date(exchange='SHSE', date=datetime.now())
    get_history_constituents(index='SHSE.000300',
    start_date=last_day,
    end_date=last_day)

    2021-03-10 09:36:40
  • @charkong 谢谢

    2021-03-25 22:32:15

Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.