Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not support the IPO stock for shanghai. #71

Closed
dfenglei opened this issue Jun 17, 2016 · 0 comments
Closed

Do not support the IPO stock for shanghai. #71

dfenglei opened this issue Jun 17, 2016 · 0 comments

Comments

@dfenglei
Copy link

I have tested it with below code change.
I have not right to check in.
Please check in the below diff file in order to support the SH IPO stock number.

diff --git a/easytrader/helpers.py b/easytrader/helpers.py
index 577c989..4639f20 100644
--- a/easytrader/helpers.py
+++ b/easytrader/helpers.py
@@ -61,7 +61,7 @@ def get_stock_type(stock_code):
assert type(stock_code) is str, 'stock code need str type'
if stock_code.startswith(('sh', 'sz')):
return stock_code[:2]

  • if stock_code.startswith(('50', '51', '60', '90', '110', '113', '132', '204')):
  • if stock_code.startswith(('50', '51', '60', '73', '90', '110', '113', '132', '204')):
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

No branches or pull requests

1 participant