한국투자증권 Open API 자동매매 서버 백업.
private/auth.py (git 제외):
IS_SIMULATION = True
SIM = {"URL_BASE": "...", "APP_KEY": "...", "APP_SECRET": "...", "CANO": "...", "ACNT_PRDT_CD": "01"}
REAL = {"URL_BASE": "...", "APP_KEY": "...", "APP_SECRET": "...", "CANO": "...", "ACNT_PRDT_CD": "01"}pip install -r requirements.txt저장소 루트에서 실행한다.
python -m utils.get_account
python -m strategy.strategy_1
python -m strategy.stoploss_155 8 * * 1-5 cd /home/USER/quant-server && python3 -m strategy.stoploss_1 >> logs/stoploss.log 2>&1
0 10 * * 1-5 cd /home/USER/quant-server && python3 -m strategy.strategy_1 >> logs/strategy.log 2>&1