Yes, timeframe formats can vary between exchanges, and MagicTradeBot handles this by automatically mapping the configured intervals to the correct exchange-specific format.
⚙️ How It Works
Each exchange may have unique requirements for candle intervals:
- OKX: Uppercase intervals like
1D,1W - Binance/Bybit: Typically lowercase like
1d,1w - Some exchanges allow only specific intervals (e.g., 1m, 5m, 15m, 1h)
- OKX: Uppercase intervals like
The bot ensures that user-defined intervals are automatically converted to match the exchange’s accepted format, preventing errors.
⚖️ Why It Matters
Prevents signal errors
- Incorrect timeframe formatting can cause no data or failed signal generation.
Ensures compatibility
- Allows strategies to run consistently across multiple exchanges.
Simplifies configuration
- Users can enter standard intervals without worrying about exchange-specific formats.
🚀 Summary
- Yes, timeframe formats are exchange-specific.
- MagicTradeBot automatically maps intervals for each exchange.
- Ensures accurate data fetching, signal generation, and strategy execution regardless of exchange requirements.