553 B
553 B
| 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.py:2,32 * * * *(:02, :32)
Why: Bitfinex 5 分鐘 K 線在整點收盤(:00, :05, :10...),延遲 30 秒確保數據到位。sync_cost_basis 在 :02/:32 避免衝突。
How to apply: crontab 不支援秒,用 sleep 30 && 實現。修改排程時維持此偏移策略。