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

不能交易etf? #99

Closed
lyghid opened this issue Aug 26, 2016 · 2 comments
Closed

不能交易etf? #99

lyghid opened this issue Aug 26, 2016 · 2 comments

Comments

@lyghid
Copy link

lyghid commented Aug 26, 2016

user.buy(510050, price=2.278, amount=3600)
user.buy(150019, price=0.885, amount=6300)
同时发出买入指令,510050没有委托记录,其他都能成交。试了一下其他510开头的etf都没有委托记录。

@shidenggui
Copy link
Owner

可能是沪深判断有误,你直接带上 'shxxxxxx' 或者 'szxxxxx' 试试

@lyghid
Copy link
Author

lyghid commented Aug 29, 2016

user.buy(sh510050, price=2.100, amount=100)
Traceback (most recent call last):

File "", line 1, in
user.buy(sh510050, price=2.100, amount=100)

NameError: name 'sh510050' is not defined

加上“”sh“”还是有问题

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

2 participants