2 月 102022
 

最近发现是实盘易无法交易ST股票,跟群主沟通后,需要更新到最新版。但是由于我是白嫖的,无法更新。又得去研究easytrader。长时间没弄了。先找群主要了个文档,比较详细,参考这个就可以用了。

自动化跟单工具安装使用说明

安装之后,也发现2个问题。是之前没遇到过的。

一个是添加了connect,以前不记得有没有这个选项。现在使用前必须要指定xiadan的路径:

user.connect(r'客户端xiadan.exe路径') # 类似 r'C:\htzqzyb2\xiadan.exe'

一个是远程需要指定prepare(主要也是指定connect

user = remoteclient.use(‘htzq_client’,host=’192.168.*’, port=’1430′)>> user.prepare(comm_password=’123456′,exe_path=r’c:\海通证券委托\xiadan.exe’)

{‘msg’: ‘login success’}
user.balance
{‘可取金额’: 111, ‘可用金额’: 1111, ‘总资产’: 1111, ‘资金余额’: 111}

后续也是遇到ST股票有个风险提示需要二次确认的问题。可能要改源代码,不过我也不是很想买ST股票。特别全仓一股买ST风险太大。继续观察和研究吧。

 


 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny