Possible Cause (Hypothesis) :I suspect that the OKX Public REST API (/api/v5/market/candles) might not support 1s granularity. Based on the error code 51000, it seems that 1s is treated as an invalid parameter by the exchange endpoint. I am not entirely sure if this requires a different endpoint (e.g., WebSocket) or if the 1s interval is simply not supported for historical data fetching.