Tool · Trading Bot Reliability

Timestamp Drift Checker

Diagnose clock drift issues causing exchange API timestamp errors. Calculate recommended recvWindow settings and work through the diagnostic checklist.

7exchanges supported
8diagnostic steps

Exchange APIs reject requests when the timestamp differs from server time by more than the allowed window. This is the most common production issue for trading bots. The fix is a combination of NTP sync, appropriate recvWindow, and fetching server time before signing.

0ms (synced)500ms10s (severe)

Clock is synced

Your clock should be within exchange tolerances

Default recvWindow5000ms
Max recvWindow60000ms
Recommended recvWindow5000ms

Exchange comparison

ExchangeDefault recvWindowMax recvWindowDrift toleranceError codesTime endpoint
Binance5000ms60000ms1000ms-1021GET /api/v3/time
Bybit5000ms30000ms2000ms10016GET /v5/market/time
Kraken7000ms45000ms3000msEGeneral:Invalid argumentsGET /0/public/Time
Coinbase30000ms120000ms30000msTIMESTAMP_OUT_OF_SYNCGET /api/v3/brokers/time
OKX5000ms45000ms2500ms60009GET /api/v5/public/time
KuCoin5000ms60000ms2000ms400002GET /api/v1/timestamp
Gate.io5000ms60000ms3000ms4GET /api/v4/spot/time

Diagnostic checklist

0 of 8 completed

Related tools

Related articles

Resources and kits

Product

AlgoTrak Production Trading Bot

Production-grade crypto trading bot with built-in timestamp sync, rate limit management, and error recovery. 14 strategies, full source code, and deployment guide.

View product

Frequently asked questions

What is the most common cause of timestamp errors?
The most common cause is server clock drift your system clock differs from the exchange server time. This happens frequently on cloud VMs where virtualized clocks drift over time. Fix: configure NTP with multiple servers and monitor drift regularly.
What recvWindow should I use?
Start with the exchange default (typically 5000ms). If you get timestamp errors, increase it. Higher values reduce errors but increase the window for replay attacks.
Do all exchanges have the same tolerance?
No. Binance defaults to 5000ms recvWindow, Kraken uses 7000ms, and Coinbase allows up to 30 seconds. Check each exchange API documentation and use our comparison table above.

Newsletter

Weekly engineering insights

Get practical tips on AI, .NET, trading bot reliability, and building scalable systems. No spam, unsubscribe anytime.

What engineers say

The retry policy generator alone saved us from a production incident. We had exponential backoff configured wrong for months — the timeline visualization made it obvious instantly.
A

Alex R.

Senior Backend Engineer, Fintech Startup

1 / 16

Still fighting clock drift?

I help teams eliminate timestamp errors permanently. Get a reliability audit with specific fixes for your exchange integration and infrastructure.