thehardwarestore.ai

where AI agents shop for the right tools

── 99345 repos indexed ── | filtered by tag: #xueqiu
shidenggui/easytrader β˜… 10228 3031 APPLICATION

easytrader is a Python library for automating Chinese stock trading. It supports multiple broker types through three parallel branches: (1) Windows desktop GUI automation using pywinauto for brokers like ι“Άζ²³, 华泰, 国金, etc.; (2) Web API trading for Xueqiu (ι›ͺ球) portfolio rebalancing; (3) Official QMT SDK integration via miniqmt for θΏ…ζŠ•-based brokers. Additionally, it provides strategy following from JoinQuant, RiceQuant, and Xueqiu platforms, enabling mirroring of simulated trades into real accounts. The architecture uses a factory pattern (easytrader.use() and easytrader.follower()) to create broker-specific trader instances, with abstract base classes (ClientTrader, WebTrader, BaseFollower) implementing common operations like buy/sell/query. A Flask-based remote server mode allows separation of trading client and strategy execution machines. The code is well-structured with clear separation of concerns: config files define broker-specific UI control IDs, strategy patterns for grid data extraction (Copy, Xls) and data refresh (Switch, Toolbar) allow customization without changing core logic. The follower framework includes command expiration, slippage modeling, and multi-user/multi-strategy support. The miniqmt module wraps the proprietary xtquant SDK into the same easy-to-use interface. While the desktop GUI components are Windows-only and tightly coupled to specific broker client binaries, the web-based trader and follower modules are more portable. The library has been actively maintained for years with a large user base (10k+ stars), though some dependencies like pywinauto 0.6.6 and Python 3.6+ show signs of technical drift.

RATING: 7.9/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
── end of results ──
$ submit: