Skip to main content

trading api

Project description

Welcome to evolving !

This is a repo for the evolving trading engine under the Mac OSX system.

Author

evolving ©Lorenzo, Released under the GPL-3.0 License.

Get in touch!

In order to get in touch with the author, join Gitter

Gitter

How to contribute

To contribute in this repo, please open a pull request from your fork of this repo.

Repo structure

```bash
tree evolving
    evolving
    ├── LICENSE
    ├── README.md
    │   ├── ascmds.py
    │   ├── evolving.py
    │   └── helper.py
    ├── requirements.txt
    ├── setup.py
    └── tests
        ├── __init__.py
        ├── evolving.py
        └── helper.py

tree ~/.config/evolving
    ~/.config/evolving
    └── config.xml
```

Installation guide

  1. Requirements

    • python >= 3.8.5
  2. Dependencies

    brew install cliclick
    cliclick -V             # cliclick 4.0.1, 2018-04-10
    which cliclick          # /usr/local/bin/cliclick
    
    pip install `curl -fsSL https://raw.githubusercontent.com/zetatez/evolving/main/requirements.txt`
    
  3. Installation

    • Building evolving from pip

      pip install evolving
      
    • Building evolving from source

      git clone git@github.com:zetatez/evolving.git ~/evolving; cd ~/evolving; python setup.py install; rm -rf ~/evolving
      
  4. Configuration

    mkdir -p ~/.config/evolving
    
    echo """
    <evolving>
        <trading>
            <userid>77777777777</userid>
            <password>123456</password>
            <broker_code>PAZQ</broker_code>
            <broker_account>66666666</broker_account>
            <broker_password>123456</broker_password>
            <bank_name>工商银行</bank_name>
            <bank_account>666666666666666666</bank_account>
            <bank_password>123456</bank_password>
        </trading>
        <mail>
            <mail_host>smtp.163.com</mail_host>
            <mail_sender>mailAddress@163.com</mail_sender>
            <mail_license>SNRRQOKFKEUNNSFT</mail_license>
            <mail_receivers>mailAddress@163.com</mail_receivers>
        </mail>
    </evolving>
    """ > ~/.config/evolving/config.xml
    

For more information

  • Hint:

    • If you want to use the email notification module, you need to open a 163 email account.
    • Technically, there is no restriction on brokers, but I didn't develop it all. If you don't find the broker you want, please contact me at email.
  • A brief tutorial can be found at wiki

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evolving-1.1.1.tar.gz (28.3 kB view hashes)

Uploaded source

Built Distribution

evolving-1.1.1-py3-none-any.whl (39.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page