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

15 lines
553 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: cron_timing
description: Crontab timing strategy — 30s offset from candle close, avoid collisions between scripts
type: project
---
## Crontab 排程
- `main.py``*/5 * * * * sleep 30 && ...`:00:30, :05:30, :10:30...
- `sync_cost_basis.py``2,32 * * * *`:02, :32
**Why:** Bitfinex 5 分鐘 K 線在整點收盤(:00, :05, :10...),延遲 30 秒確保數據到位。sync_cost_basis 在 :02/:32 避免衝突。
**How to apply:** crontab 不支援秒,用 `sleep 30 &&` 實現。修改排程時維持此偏移策略。