# shidenggui/easytrader

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/shidenggui-easytrader).**

9,878 stars · 2,983 forks · Python · MIT

## Links

- GitHub: https://github.com/shidenggui/easytrader
- awesome-repositories: https://awesome-repositories.com/repository/shidenggui-easytrader.md

## Description

Easytrader is a quantitative trading automation framework and brokerage API wrapper designed to programmatically execute buy and sell orders across trading terminals. It functions as a system for linking quantitative strategy logic to brokerage clients, providing the necessary infrastructure to automate stock trading and execute strategy-driven signals.

The system distinguishes itself by offering a remote trading execution server that decouples strategy logic from trade execution, allowing orders to be triggered on distant machines via a web server or command-line interface. It includes specialized automation utilities such as optical character recognition for solving login captchas and clipboard-based data extraction to retrieve account and position information.

The framework covers a broad range of portfolio management capabilities, including automated weight rebalancing and asset synchronization to maintain target allocations. It also provides a virtual trading simulator for paper trading and strategy testing without risking real capital.

Additional operational features include asynchronous event handling for trade callbacks, local caching to prevent duplicate trade execution, and a functional wrapper that simplifies complex trading terminal APIs.

## Tags

### Business & Productivity Software

- [Automated Trading Execution](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution.md) — Provides a framework for executing programmatic buy and sell orders across brokerage accounts.
- [Quantitative Trading Platforms](https://awesome-repositories.com/f/business-productivity-software/quantitative-trading-platforms.md) — Provides a comprehensive platform for developing and executing algorithmic financial trading strategies through brokerage API wrappers. ([source](https://easytrader.readthedocs.io/zh-cn/master/))
- [Automated Trading Engines](https://awesome-repositories.com/f/business-productivity-software/automated-trading-engines.md) — Monitors remote signal sources and automatically places buy and sell orders within linked brokerage accounts. ([source](https://easytrader.readthedocs.io/zh-cn/master/follow/))
- [Execution Decoupling](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution/execution-decoupling.md) — Provides a remote execution server that separates quantitative strategy logic from trade execution. ([source](https://easytrader.readthedocs.io/zh-cn/master/remote/))
- [Remote Execution Servers](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution/remote-execution-servers.md) — Implements a remote server that allows quantitative strategy logic to trigger trades on distant machines via web or CLI.
- [Remote Client Control](https://awesome-repositories.com/f/business-productivity-software/live-trading-execution/remote-client-control.md) — Manages trading software installed on distant machines via a web server or command line.
- [Portfolio Asset Synchronizations](https://awesome-repositories.com/f/business-productivity-software/portfolio-asset-synchronizations.md) — The trading system adjusts order sizes based on total asset value to match the percentage-based allocations of a strategy. ([source](https://easytrader.readthedocs.io/zh-cn/master/follow/))
- [Remote Trade Management](https://awesome-repositories.com/f/business-productivity-software/remote-trade-management.md) — Controls trading software installed on distant machines to manage trades from a separate location. ([source](https://easytrader.readthedocs.io/zh-cn/master/))
- [Trading Execution Engines](https://awesome-repositories.com/f/business-productivity-software/trading-execution-engines.md) — Sends buy or sell orders to a trading client and processes the resulting execution reports. ([source](https://easytrader.readthedocs.io/zh-cn/master/usage/))
- [Client Interaction Simulation](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution/client-interaction-simulation.md) — Simulates user interactions with software to execute orders and manage positions programmatically. ([source](https://easytrader.readthedocs.io/zh-cn/master/))
- [Trading Simulations](https://awesome-repositories.com/f/business-productivity-software/trading-simulations.md) — Supports testing investment strategies using virtual portfolios to track performance without risking capital.
- [Virtual Portfolio Tracking](https://awesome-repositories.com/f/business-productivity-software/trading-simulations/virtual-portfolio-tracking.md) — Monitors virtual trading accounts from external platforms to evaluate strategies without risking real capital. ([source](https://cdn.jsdelivr.net/gh/shidenggui/easytrader@master/README.md))

### Artificial Intelligence & ML

- [Portfolio Rebalancing](https://awesome-repositories.com/f/artificial-intelligence-ml/portfolio-optimization-algorithms/portfolio-rebalancing.md) — Provides a utility for adjusting asset weights and order sizes to maintain target portfolio allocations.
- [Virtual Trade Execution](https://awesome-repositories.com/f/artificial-intelligence-ml/portfolio-optimization-algorithms/portfolio-rebalancing/virtual-trade-execution.md) — Executes trades against a virtual portfolio to track performance and test strategies. ([source](https://easytrader.readthedocs.io/zh-cn/master/xueqiu/))

### Data & Databases

- [Portfolio Rebalancing](https://awesome-repositories.com/f/data-databases/data-partitioning-strategies/automatic-rebalancing/portfolio-rebalancing.md) — Adjusts asset proportions in brokerage accounts to maintain target weight percentages.
- [Brokerage Data Extraction](https://awesome-repositories.com/f/data-databases/brokerage-data-extraction.md) — Extracts account and position information from trading software using clipboard copying or file-based exports. ([source](https://easytrader.readthedocs.io/zh-cn/master/usage/))

### Development Tools & Productivity

- [Brokerage Connectors](https://awesome-repositories.com/f/development-tools-productivity/automation-integrations/brokerage-connectors.md) — Bridges programmatic trading logic and brokerage software through automated client operations.
- [Remote Trade Dispatch](https://awesome-repositories.com/f/development-tools-productivity/command-lifecycle-managers/system-command-dispatchers/remote-trade-dispatch.md) — Exposes trading operations via a web server to allow external strategy logic to trigger trades remotely.
- [Clipboard Data Extraction](https://awesome-repositories.com/f/development-tools-productivity/clipboard-management/clipboard-copying/clipboard-data-extraction.md) — Retrieves account and position information by simulating user copy actions and reading the system clipboard.

### Networking & Communication

- [Remote Trading Interfaces](https://awesome-repositories.com/f/networking-communication/remote-trading-interfaces.md) — Exposes trading operations via a web server and command-line interface to trigger trades remotely. ([source](https://cdn.jsdelivr.net/gh/shidenggui/easytrader@master/README.md))

### Scientific & Mathematical Computing

- [Trade Order Dispatchers](https://awesome-repositories.com/f/scientific-mathematical-computing/order-execution-engines/trade-order-dispatchers.md) — Sends limit or market-price purchase requests to the exchange using specific order types to control pricing. ([source](https://easytrader.readthedocs.io/zh-cn/master/miniqmt/))

### Software Engineering & Architecture

- [API Wrappers](https://awesome-repositories.com/f/software-engineering-architecture/api-wrappers.md) — Wraps complex trading terminal APIs into a simplified functional interface for programmatic use.
- [Trade Event Callbacks](https://awesome-repositories.com/f/software-engineering-architecture/asynchronous-event-dispatchers/trade-event-callbacks.md) — Processes trading updates and order errors using custom asynchronous event handlers.

### Part of an Awesome List

- [Trading APIs](https://awesome-repositories.com/f/awesome-lists/devtools/trading-apis.md) — Automated trading component for various Chinese brokerages.
