mirror of
https://github.com/hongtaocai/googlefinance.git
synced 2025-02-25 18:55:20 -06:00
Merge 73cc575b66
into 9f703d8d4e
This commit is contained in:
commit
e0cef3c7bb
@ -99,7 +99,7 @@ def getQuotes(symbols):
|
||||
:param symbols: a single symbol or a list of stock symbols
|
||||
:return: real-time quotes list
|
||||
'''
|
||||
if type(symbols) == type('str'):
|
||||
if type(symbols) == type('str') or type(symbols) == type(u'unicode'):
|
||||
symbols = [symbols]
|
||||
content = json.loads(request(symbols))
|
||||
return replaceKeys(content);
|
||||
|
Loading…
Reference in New Issue
Block a user