Note:
- Don't share any API key, secret key, or password.
- Any questions, please contact:
Discord/Wechat ID: squawkwallstreet
.
Prerequisite:
-
Install Python: https://www.python.org/downloads/
-
Install requirements: run in CMD under root directory:
pip install -r requirements.txt
-
Install MooMoo/Futu OpenD: https://www.moomoo.com/download/OpenAPI
-
PyCharm (Recommended), download and install: https://www.jetbrains.com/products/compare/?product=pycharm&product=pycharm-ce
-
Go to the
env/_secret.py
and fill in your trading password and Discord info. -
Go to the
strategy/Your_Strategy.py
, and replace the example strategy instrategy_decision(self)
with your own strategy -
Login to MooMoo/Futu OpenD, setup the port number to 11112 or 11111, which should be the same as
MOOMOOOPEND_PORT
inTradingBOT.py
. -
Go to the project root directory and run in CMD:
python TradingBOT.py
Feel free to use the link below to get a MooMoo account, 0 fees for most tradings. We both can get some free stocks. 💰
or, just add me on Discord. My Discord ID: squawkwallstreet
(Please feel free to develop your own strategy under strategy/Your_Strategy.py
)
![image](https://private-user-images.githubusercontent.com/25569658/340407143-9ceafb89-07c3-45ec-b58f-33904c4c2ef2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMDc5MjQsIm5iZiI6MTcyMzEwNzYyNCwicGF0aCI6Ii8yNTU2OTY1OC8zNDA0MDcxNDMtOWNlYWZiODktMDdjMy00NWVjLWI1OGYtMzM5MDRjNGMyZWYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDA5MDAyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlMmFhMjFmYW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