bloXroute Labs
Published in

bloXroute Labs

Algorithmic Trading with bloXroute

by bloXroute Labs Co-Founder & COO Eyal Markovich

In Algorithmic Trading, speed is critical for success. Traders must optimize and reduce the latency of both hearing about important transactions and submitting transactions to mining pools. Following the guidelines below, bloXroute users can receive the greatest performance from the BDN and get an advantage over competitors.

Algorithmic Trading is usually a bot responding to a transaction (trigger transaction). In this case, there are two main unknowns:

  1. Origin of the trigger transaction: The trigger transaction could have been created anywhere in the world.
  2. Mining pool location: The node mining the block that contains the trigger transaction can be located anywhere in the world. There are many pools, and almost all of them are running several nodes in various geographies.

A trader needs to minimize the duration between the time the trigger transaction was sent and the time mining pools hear about her/his response transaction. Traders can control the location and number of their bots — the more trading bots they own, the faster they can hear about transactions. This, however, adds up in terms of operational costs and becomes an optimization problem of how to minimize the time while keeping costs low.

General Guidelines for Increasing Performance

  • Run bots from multiple regions around the world.
  • Stay as close as possible to the public BDN infrastructure (US East, London, Beijing, Hangzhou, and Singapore).
  • Use the Get Closer to the BDN program to rent a Private Relay located nearby your bots location if your bots are located in regions far from the public BDN infrastructure. This program gives users an advantage when the trigger transaction is first identified in locations such as US West, Japan, Southeastern China, etc.
  • Use the bloXroute Enterprise plan to utilize a shared Private Link to mainland China (see BDN Latencies).

How to Speed Up Trigger Transactions Discovery

  • Run a Gateway for each of your nodes (requires a Professional or Enterprise plan).
  • Use bloXroute’s newTxs Stream and perform applicable validation within your application.
  • Use multiple sources for streaming transactions to your bots, i.e., use both the Gateway and the Cloud-API.

How to Speed Up Transaction Delivery to Mining Pools

  • Use multiple endpoint targets, i.e., your bots should submit transactions to both the Gateway and the Cloud-API.
  • Use a Websocket connection with the Gateway-API and Cloud-API.

For more help, please visit our Documentation or Technical Support page.




Scaling blockchains to thousands of on-chain transactions per second. Today.

Recommended from Medium

A Beginner’s Guide to Kubernetes

How to Setup MariaDB Master and Slave Replication on Ubuntu 16.04

Running External Commands in Deno



How the gas tracking module works? Archway.

Solidity at its best: an appetizer for the 1st Solidity Gas Golfing Contest

opam 2.1.0 alpha is here!

Localizing JavaScript in Rails Apps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
bloXroute Team

bloXroute Team

Scaling blockchains to thousands of on-chain transactions per second. Today.

More from Medium


Bogged API: Get the data that powers the most powerful DeFi platform

Void Protocol- The next level of Financial Privacy

CryptoTypes: Network, Scaling & Staking (XCC-NSS)