This commit is contained in:
Jiahao Liang 2020-04-21 11:25:26 +08:00 committed by GitHub
commit e0cef3c7bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ def getQuotes(symbols):
:param symbols: a single symbol or a list of stock symbols :param symbols: a single symbol or a list of stock symbols
:return: real-time quotes list :return: real-time quotes list
''' '''
if type(symbols) == type('str'): if type(symbols) == type('str') or type(symbols) == type(u'unicode'):
symbols = [symbols] symbols = [symbols]
content = json.loads(request(symbols)) content = json.loads(request(symbols))
return replaceKeys(content); return replaceKeys(content);