Skip to content

fix a bug while getQuotes()'s input is a unicode - #27

Open
jiahaoliang wants to merge 1 commit into
hongtaocai:masterfrom
jiahaoliang:unicode-symbol-fix
Open

fix a bug while getQuotes()'s input is a unicode#27
jiahaoliang wants to merge 1 commit into
hongtaocai:masterfrom
jiahaoliang:unicode-symbol-fix

Conversation

@jiahaoliang

@jiahaoliang jiahaoliang commented Feb 9, 2017

Copy link
Copy Markdown

getQuotes() parses a single unicode symbol as a list.
We should treat it as a single symbol.

platform: OSX 10.7, python 2.7.11

Bug reproduce:
getQuotes(u'QCOM')

Expected result:
getQuotes() should return the stock quote of a single stock 'QCOM'.

Actual result:
getQuotes() returns a list of quotes of 4 stocks ['Q', 'C', 'O', 'M'] respectively.

getQuotes() parses a single unicode symbol as a list.
We should treat it as a single symbol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant