Are timeframe formats exchange-specific?

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)
  • The bot ensures that user-defined intervals are automatically converted to match the exchange’s accepted format, preventing errors.


⚖️ Why It Matters

  1. Prevents signal errors

    • Incorrect timeframe formatting can cause no data or failed signal generation.
  2. Ensures compatibility

    • Allows strategies to run consistently across multiple exchanges.
  3. 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.

📎 Related Topics