update service

This commit is contained in:
2026-08-24 20:17:24 +08:00
parent 1f72dfdc1e
commit baddd7763d
9 changed files with 653 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
# User-systemd variant of prediction-service.yml.example.
# ${NAME} values are expanded from the user service environment.
scheduler:
poll_seconds: 60
grace_seconds: 120
state_file: /home/ctyun/.local/state/cbpred/prediction-service-state.json
prediction:
working_dir: /data/quant/cbpred
banbot_dir: /home/ctyun/ban/banbot
banbot_config: /home/ctyun/ban/banbot/biz/config.yml
data_dir: /data/quant/cbpred/data
artifact: /data/quant/cbpred/artifacts/v1/model.joblib
output_dir: /data/quant/cbpred/predictions/latest_v1
history_months: 36
holdout_months: 10
min_age_days: 730
chunk_size: 100
db_type: auto
exchange: binance
notifications:
http:
- url: https://example.internal/hooks/cbpred
method: POST
timeout_seconds: 15
headers:
Authorization: "Bearer ${CBPRED_WEBHOOK_TOKEN}"
include_predictions: true
email:
enabled: true
host: smtp.example.com
port: 465
ssl: true
username: alerts@example.com
password: "${CBPRED_SMTP_PASSWORD}"
from: alerts@example.com
to:
- trader@example.com
subject: cbpred 8H prediction completed
attach_csv: true