Skip to content

DocsaidLab/AutoTraderX

Repository files navigation

English | 中文

AutoTraderX

Introduction

This project mainly integrates with brokerage APIs for automated trading.

Technical Documentation

For usage and configuration instructions, please refer to the AutoTraderX Documents.

Installation

Currently, there is no installation package available on PyPI, and there are no immediate plans for it.

To use this project, you need to clone it directly from GitHub and install the dependencies.

This project is restricted to use with the MasterLink Python API and operates only on Windows operating systems. Before installation, ensure that you have Python environment set up on Windows.

Setting Up Python Environment

Refer to our guide for setting up Python on Windows:

Installing AutoTraderX

  1. Clone the project:

    git clone https://github.com/DocsaidLab/AutoTraderX.git
  2. Navigate to the project directory:

    cd AutoTraderX
  3. Install dependencies:

    pip install setuptools wheel
  4. Build the package:

    python setup.py bdist_wheel
  5. Install the package:

    pip install dist\autotraderx-*-py3-none-any.whl

By following these steps, you should successfully install AutoTraderX.

Installing MasterLink Python API

Download the Python API from the MasterLink official website:

After downloading, unzip the files and install them using pip:

pip install .\MasterTradePy\MasterTradePy\64bit\MasterTradePy-0.0.23-py3-none-win_amd64.whl
pip install .\Python_tech_analysis\tech_analysis_api_v2-0.0.5-py3-none-win_amd64.whl
pip install .\SolPYAPI\PY_TradeD-0.1.15-py3-none-any.whl

Once installed, you can use this project.

  • Additional Notes:

    This project also provides .whl installation files for the MasterLink Python API in the MasterLink_PythonAPI folder.

    You can directly run the following command for installation:

    .\run_install.bat

    Please note that we do not update these files; please download the latest versions from the MasterLink official website.

Testing Installation

You can test if the installation was successful with the following command:

python -c "import autotraderx; print(autotraderx.__version__)"
# >>> 0.1.0

If you see a version number like 0.1.0, the installation was successful.

Learning Resources

Citation

@misc{yuan2024autotraderx,
  author = {Ze Yuan},
  title = {AutoTraderX},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/DocsaidLab/AutoTraderX}}
}

About

Automated trading program integrating various brokerage python APIs

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published