Determine estimated distance of Defi servers

Future
1 min readSep 11, 2022

--

Increasingly, a growing number of people are trading cryptocurrencies through Defi projects.

One might wonder where are the servers of these Defi projects.

You are able to determine the estimated distance of these servers using the code below. This information might be helpful for your trading strategy.

!pip3 install pythonpingfrom pythonping import ping#include more exchanges that you wish to checkhostname = ['uniswap.org', 'dydx.exchange', 'aave.com']for host in hostname:    result = ping(host, count = 100, verbose = False)    print(host, result.rtt_avg_ms)

The results will determine your average round trip time in milliseconds. If your rtt is too high, you may wish to consider hosting your strategy in a cloud server nearer to where the exchange servers are.

Of course, this is not limited to Defi projects. You may wish to ping and determine where some of the major exchanges place their servers and if these servers provide you with minimal latency.

--

--

Future
Future

Written by Future

Looking towards the Future

No responses yet