Skip to content

Instantly share code, notes, and snippets.

@yongghongg
Created January 19, 2022 15:27
Show Gist options
  • Save yongghongg/68f75d288c2515f29d24e4f06781aa32 to your computer and use it in GitHub Desktop.
Save yongghongg/68f75d288c2515f29d24e4f06781aa32 to your computer and use it in GitHub Desktop.
# get symbol list based on index
symbol_list_dow = ss.get_symbol_list(index="DJI")
symbol_list_dow
'''
[{'symbol': 'AAPL',
'shortName': 'apple',
'longName': 'Apple Inc.',
'exchange': 'NASDAQ',
'market': 'us_market',
'quoteType': 'EQUITY'},
{'symbol': 'MSFT',
'shortName': 'microsoft',
'longName': 'Microsoft Corporation',
'exchange': 'NASDAQ',
'market': 'us_market',
'quoteType': 'EQUITY'},
{'symbol': 'JPM',
'shortName': 'jpmorgan-chase',
'longName': 'JP Morgan Chase & Co.',
'exchange': 'NYSE',
'market': 'us_market',
'quoteType': 'EQUITY'},
{'symbol': 'V', ...}]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment