MacOS下控制同花顺进行交易, 无券商限制.
evolving
is a trading engine for MacOS system.
E-mail: [email protected]
Wechat Group
Requirements
Dependencies
brew install cliclick
pip install `curl -fsSL https://raw.githubusercontent.com/zetatez/evolving/main/requirements.txt`
Installation
mkdir -p ~/.config/evolving
vim ~/.config/evolving/config.xml
<evolving>
<trading>
<userid>THS id</userid>
<password>THS password</password>
<broker_code>PAZQ</broker_code>
<broker_account>your broker account</broker_account>
<broker_password>broker account password</broker_password>
<bank_name>bank name</bank_name>
<bank_account>your bank account</bank_account>
<bank_password>bank account password</bank_password>
</trading>
<mail>
<mail_host>smtp.163.com</mail_host>
<mail_sender>your email [email protected]</mail_sender>
<mail_license>your email license</mail_license>
<mail_receivers>your email [email protected]</mail_receivers>
</mail>
</evolving>
Authorization
Tutorial A brief tutorial can be found at wiki.
You need to log in broker and bank account manually at least once.
If you want to use the email notification module, you need to register 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, you can make a little change to the asloginBroker
of script ascmd.py.
Up to now, The supported brokers are
Note: For different brokers, the display might be different. That is to say, the code might need to be slightly adjusted according to the different brokers.
To contribute in this repo, please open a pull request from your fork of this repo.
Released under the MIT License.