-
-
Notifications
You must be signed in to change notification settings - Fork 100
0. How to setup and run
Install all packages using requirements.txt
pip install -r requirements.txt
For development, all development depedencies included.
pip install -r requirements-dev.txt
There are 6 mode for each features.
- 0: simulator with interative mode
- 1: execute single simulation
- 2: interactive mode controller for real trading
- 3: telegram chatbot controller
- 4: mass simulation with config file
- 5: make config file for mass simulation
Run the interactive mode simulator with the command below.
python -m smtm --mode 0
Running a single simulation with the command below with the simulation parameters will return the results.
python -m smtm --mode 1 --budget 50000 --from_dash_to 201220.170000-201221 --term 0.1 --strategy BNH --currency BTC
Use the command below to run the default demo trading program with initial values. The demo runs in interactive mode, allowing you to start, stop, and view results based on your inputs.
python -m smtm --mode 2 --budget 50000 --term 60 --strategy BNH --currency ETH
for real trading API key and host url is included in .env
file.
UPBIT_OPEN_API_ACCESS_KEY=Your API KEY
UPBIT_OPEN_API_SECRET_KEY=Your API KEY
UPBIT_OPEN_API_SERVER_URL=https://api.upbit.com
Execute the command below to run the Telegram Chatbot mode live trading program. The Telegram Chatbot mode live trading program uses the Telegram Chatbot API token and chat room information to start, stop, and view results via Telegram Chatbot messages.
python -m smtm --mode 3
chat-bot api token and chat room id is needed in .env
.
TELEGRAM_BOT_TOKEN=bot123456789:YOUR bot Token
TELEGRAM_CHAT_ID=123456789
run with mode and config file info
python -m smtm --mode 4 --config /data/sma0_simulation.json
Run with a mass simulation configuration file. The configuration file is in JSON format and can be generated directly through a text editor or via a command.
python -m smtm --mode 5 --budget 50000 --title SMA_6H_week --strategy SMA --currency ETH --from_dash_to 210804.000000-210811.000000 --offset 360 --file generated_config.json