Skip to content
All library documents

Triangular Arbitrage Screening Across EOS, BTC, and USDT Markets

Article Strategy library · Author: 红色的雪

Summary

This example screens three related crypto markets for triangular arbitrage opportunities involving EOS, BTC, and USDT. It reads the best ask and bid prices from each order book, then compares cross-market price relationships in both directions. For a candidate cycle, it estimates the proceeds and costs of converting through the three assets and deducts a configured trading fee. It reports an estimated profit only when the gross opportunity exceeds its fee estimate.

The script uses a fixed EOS quantity and repeatedly checks prices, accumulating estimated USDT profit when the calculation is positive. It provides no historical backtest, realized trading results, or validation of the opportunity calculations. The estimate uses top-of-book prices and volumes are collected but not used to constrain trade size, while execution latency, slippage, partial fills, and exchange balance constraints are not modeled. The example is therefore a basic screening method, not evidence that the arbitrage is executable or profitable in live markets.

Key ideas

  • The script checks two conversion paths across EOS, BTC, and USDT markets for price inconsistencies.
  • It reads best bid and ask quotes and estimates conversion proceeds after applying a configured fee.
  • A fixed EOS amount is used, while retrieved order book volumes do not affect the calculation.
  • The loop records estimated positive proceeds but does not submit trades in the shown logic.
  • Latency, slippage, fill risk, and executable depth are not addressed, so calculated opportunities may not be realizable.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.