Created
January 19, 2022 15:27
-
-
Save yongghongg/68f75d288c2515f29d24e4f06781aa32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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