Open Crypto7816 opened 1 week ago
@Crypto7816 the timestamp represents closing time for the 24h ticker (by default), and it's from exchange. I wonder whether that's a correct way to measure network latency.
@Crypto7816 the timestamp represents closing time for the 24h ticker (by default), I wonder whether it's a good way to measure network latency.
Could you please provide me with an appropriate method to measure latency?
Operating System
linux ubuntu 22.04
Programming Languages
Python
CCXT Version
4.3.47
Description
There is unstable latency of
watch_ticker
. For instance, subscribing toBTC/USDT:USDT
can result in a latency of up to 1351 ms. How can I minimize this latency? While testing on cloudzy, the ping latency toapi.binance.com
is below 2ms, so I am curious why this latency could extend to 1s.You can produce this by running
python test_lantency.py -s linear -e binance
Code