Skip to content

Instantly share code, notes, and snippets.

View yongghongg's full-sized avatar
🏠
Working from home

Yonghong Tan yongghongg

🏠
Working from home
View GitHub Profile
Market (abbr.) Index Name (Index ID)
America (us) Dow Jones Composite Average (DJA)
Dow Jones Industrial Average (DJI)
Dow Jones Transportation Average (DJT)
Dow Jones U.S. Coal (DJUSCL)
Dow Jones Utility Average (DJU)
NASDAQ 100 (NDX)
NASDAQ COMPOSITE (IXIC)
NASDAQ COMPUTER (IXCO)
NASDAQ INDUSTRIAL (INDS)
# get symbol only
symbol_only_list = ss.get_symbol_list(market="malaysia", symbols_only=True)
symbol_only_list
'''
['5239PA.KL',
'0103PA.KL',
'7105.KL',
'5075.KL',
'5188.KL',
# show a list of available index
index_list = ss.index_list
index_list
'''
index_list
[{'market': 'australia',
'abbreviation': 'au',
'indexId': 'XJO',
'indexName': 'S&P/ASX 200'},
# 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',
# get symbol list based on market
symbol_list_us = ss.get_symbol_list(market="US") # "us" or "america" will also work
symbol_list_us
'''
[{'symbol': 'AAPL',
'shortName': 'apple',
'longName': 'Apple Inc.',
'exchange': 'NASDAQ',
'market': 'us_market',
# show a list of available market
market_list = ss.market_list
market_list
'''
[{'market': 'argentina',
'abbreviation': 'ar',
'totalCount': 388,
'lastUpdated': '2022-01-10T00:00:00.000Z',
'index': [{'id': 'BCBA:IMV',
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Trade Win Loss Success Rate(%)
CDL_LONGLEGGEDDOJI 80793 35082 45711 43.42
CDL_DOJI_10_0.1 80403 34889 45514 43.39
CDL_SPINNINGTOP 75283 32560 42723 43.25
CDL_LONGLINE 73126 31280 41846 42.78
CDL_RICKSHAWMAN 72340 31637 40703 43.73
CDL_BELTHOLD 67576 29049 38527 42.99
CDL_CLOSINGMARUBOZU 65547 27911 37636 42.58
CDL_HIGHWAVE 61614 26847 34767 43.57
CDL_SHORTLINE 58618 25563 33055 43.61