bifitnex-trading/memory/project_cron_timing.md
kroutony 84093929d1 Backup Claude memory files to project repo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:23:22 +00:00

553 B
Raw Blame History

name description type
cron_timing Crontab timing strategy — 30s offset from candle close, avoid collisions between scripts project

Crontab 排程

  • main.py*/5 * * * * sleep 30 && ...:00:30, :05:30, :10:30...
  • sync_cost_basis.py2,32 * * * *:02, :32

Why: Bitfinex 5 分鐘 K 線在整點收盤(:00, :05, :10...),延遲 30 秒確保數據到位。sync_cost_basis 在 :02/:32 避免衝突。

How to apply: crontab 不支援秒,用 sleep 30 && 實現。修改排程時維持此偏移策略。