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

account settle问题 #1048

Open
zsl3034669 opened this issue Mar 18, 2019 · 2 comments
Open

account settle问题 #1048

zsl3034669 opened this issue Mar 18, 2019 · 2 comments

Comments

@zsl3034669
Copy link
Contributor

问题反馈

当您安装/使用QUANTAXIS的时候如果遇到任何问题, 您可以在这里提出,我们会在24小时内给您答复

您使用的QUANTAXIS版本号是什么?




您的系统信息(包括系统版本,系统架构(32/64),内存大小等等)






您的系统环境是什么?

- monodb
- nodejs(V9以下版本)
- python3.5/3.6
- docker(有无)

您需要反馈的问题

account中的settle是代表一天过去了,是否应吧当日未成交的订单都清空,即增加命令
  order_next=self.orders.to_df()[self.orders.to_df()['_status']==QA.ORDER_STATUS.NEXT]
            if len(order_next)>0:
                #有未成交的订单
                for i in order_next['order_id']:
                    order=self.account.orders()[i]
                    order.trade_amount=0   #输入交易量为0
                    order.cancel() #改变订单状态  (没别的作用)
                    self.account.cancel_order(order)  #账户撤单,改变可用余额

感谢您的反馈 如有意见和建议,请在此说明:




您的联系方式(QQ/EMAIL)


THANKS
by yutiansut
2017.12

@yutiansut
Copy link
Owner

不需要 因为当日的cash available和holdavailable会被cash和hold取代了而那两个是基于已成交部分计算得出

@zsl3034669
Copy link
Contributor Author

嗯嗯 self.account.cancel_order(order) 是不需要 但是未交易订单的订单的状态是不是需要改变成cancle, 要不以后查看该账号的订单 有一些是next状态

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