Easytrader
时间: 2023-09-30 22:13:15 浏览: 244
Easytrader是一个用于自动化交易的Python库。它提供了与同花顺、国金、华泰等券商客户端的连接,可以实现基金、股票的自动化交易和自动打新,同时支持跟踪joinquant和ricequant的模拟交易和实盘雪球组合。\[2\]你可以使用Easytrader来编写程序实现自动化交易系统,扩展其功能。\[2\]在使用Easytrader时,你需要连接上相应的券商客户端,然后可以打印账户信息、进行交易等操作。\[1\]你可以在Github上找到Easytrader的源码,并下载使用。\[2\]下面是一个简要的代码示例,可以帮助你开始使用Easytrader:\[3\]
```python
import easytrader
if __name__ == "__main__":
user = easytrader.use('universal_client') # 同花顺客户端
user.prepare(user='券商账号', password='', comm_password='', exe_path='C:\\同花顺软件\\同花顺\\xiadan.exe')
follower = easytrader.follower('jq') # 跟踪joinQuant
follower.login(user='聚宽账号', password='聚宽密码')
follower.follow(user, '模拟交易url') # 例如:https://www.joinquant.com/algorithm/live/index?backtestId=xxx
```
希望这个回答对你有帮助!
#### 引用[.reference_title]
- *1* [【从零开始玩量化7】easyTrader: 自动化(程序化)交易利器](https://blog.csdn.net/u010214511/article/details/126707447)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【easyTrader源码分析1】源码结构梳理](https://blog.csdn.net/u010214511/article/details/126734623)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [基于easyTrader部署自动化交易(一)](https://blog.csdn.net/zhangb98/article/details/121923167)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文