Andrew Dorokhov

Crypto trading · Own product

A market-maker engine that shows which trades between exchanges still pay after every cost

A market-maker engine that compares the same market across exchanges and finds trades that stay profitable after fees, order book depth and transfers.

crypto exchanges supported
50+
WebSocket latency on price updates
~100 ms
spread that starts a watcher with a sound alert
1%

The challenge

What the client needed

The same coin often trades at slightly different prices on different exchanges. Buy where it is cheaper, move it, sell where it is dearer: that is inter-exchange arbitrage. Finding the gaps means comparing every market an exchange shares with every other exchange, and there are thousands of such pairs.

A gap in the best prices rarely survives contact with reality. Trading fees differ by exchange and by order type, withdrawals cost money and take time, a wallet can be closed for maintenance, and the order book may hold only a few dollars at the quoted price.

I wanted an engine that looks at these gaps the way a market maker does: which trades are worth placing, how large they can be, and how much money is left once every cost is paid.

The approach

How I solved it

01

Every shared market, matched

The engine matches each market an exchange lists with the same market on every other exchange, and keeps that list current as exchanges add new pairs and delist old ones.

02

Trades priced as they would be placed

Every market pair is priced for several trade scenarios, each with the fees the exchange charges for that kind of trade, so the spread on screen is close to what a real trade would get.

03

Depth, not just the best price

A good price at the top of the book can hide a thin market behind it. Profit is checked against live order books on both exchanges, so the engine shows how much can be traded before the gap closes.

04

Every cost on the way

A calculator follows one trade from the first deposit to the final sale and counts trading fees, withdrawal costs and transfer time. A gap is judged on the money that arrives, not on the difference in prices.

05

Watchers and transfers

When a gap gets large enough, the engine starts watching it: how big it gets, how long it stays open, with a sound alert when it appears. A transfer tool shows the cheapest way to move funds between two exchanges and whether their wallets accept deposits and withdrawals.

06

Quotes as a separate service

Market data comes from a service of its own with one adapter per exchange, so adding an exchange does not touch the pricing code. The pricing code is covered by tests.

In motion

Highlights

01

Routes reprice as quotes move

Quotes on both exchanges keep moving, and every trade scenario is repriced as they do. When a gap crosses 1%, a watcher starts and an alert sounds.

Link page with live bid and ask on HTX and Bitget, spreads for every trade updating and one of them crossing the 1% watcher border.
02

From 1,000 USDT to what arrives

The calculator follows 1,000 USDT from the first deposit to the final sale and takes off every fee and transfer cost along the way.

A coin moving from HTX to Bitget along an arc while the calculator fills in deposit, trade, fees and withdrawal, ending with the final amount.
03

How much can actually be traded

Both order books are checked against each other, and the profit curve shows the trade size at which the gap stops paying.

The order books of HTX and Bitget matched against each other, a table of profitable volume growing and a profit curve reaching its best trade size.

See it in action

The product

One link: both exchanges, the gap between them and the trades it allows.
The calculator follows one trade and charges every fee on the way.
Profit checked against the depth of both order books, up to the trade size where it stops growing.
Watchers record how long each gap above 1% stays open.
Moving money between exchanges through the coin that loses the least.

The outcome

What the client got

  • One table compares the same market across 50+ exchanges, with a spread for every trade scenario, volumes in dollars and filters by currency, profit, fiat or crypto.
  • Profit is checked against live order book depth, so a gap that holds a few dollars is not mistaken for one that holds thousands.
  • The calculator includes trading fees and withdrawal costs, which turns a spread into an amount of money.
  • Watchers show how often and for how long a gap above 1% stays open, and alert with sound when a new one appears.
  • The ideas from this system went into the newer Arbitrace scanner, which prices arbitrage inside one exchange in real time.

Need something similar built?

Send a short brief about your project. Within 24 hours you get an estimate or a clear next step, even if we don't work together.