AUTOMATED TRADING

Inter-Arbitrage

Take advantage of price discrepancies between exchanges
-- Inputfields
account = InputAccountMarket('Secondary')
target = Input('Trigger percentage', 0.5)
oneWay = Input('One way', false, 'When enabled, the script will only buy on the main account and sell on the secondairy.')

maximumAmount = Input('Maximum position size', 10)

-- Obtain the price information of both markets
buyPriceA = CurrentPrice()[6]
sellPriceA = CurrentPrice(account)[7]

buyPriceB = CurrentPrice(account)[6]
sellPriceB = CurrentPrice()[7]

-- Calculate the price difference
deltaRouteA = Delta(buyPriceA, sellPriceA)
deltaRouteB = Delta(buyPriceB, sellPriceB)

-- Draw some lines
Plot(1, 'Delta A', deltaRouteA, Yellow) 
if oneWay == false then
	Plot(1, 'Delta B', deltaRouteB, White)
end
PlotHorizontalLine(1, 'Target', Green, target, Dotted)

-- Make sure both markets are spot
if MarketType() != SpotTrading or MarketType(account) != SpotTrading then
	LogError('IEAB only works on spot accounts. One or both markets are not set on spot.')
	return
end

if IsTradeAmountEnough('', buyPriceA, TradeAmount()) == false then
	LogError('Trade amount is to low for the main market')
	return
end

if IsTradeAmountEnough(account, buyPriceB, TradeAmount()) == false then
	LogError('Trade amount is to low for the second market')
	return
end								
+2.4%
+1.2%
-0.6%
Apr 02, 23, 01:06:41 Bot deactivated
Apr 02, 23, 01:06:41 Backtest start date: 04/02/23 01:06:41 GTM+0
Apr 02, 23, 01:06:41 Backtest end date: 04/02/23 01:06:41 GTM+0
Apr 02, 23, 01:06:41 Backtest took: 00:00:01.6642358ms
Apr 02, 23, 01:06:41 ----- Custom Report -----
Apr 02, 23, 01:06:41 Estimated Profit: 0.01 BTC
Apr 02, 23, 01:06:41 ----- Backtest report BINANCE_BNB_BTC_ -----
Apr 02, 23, 01:06:41 Gross profits: 100.00000000 BNB
Apr 02, 23, 01:06:41 Fee costs: 10.00000000 BNB
Apr 02, 23, 01:06:41 Realized profits: 90.00000000 BNB
Apr 02, 23, 01:06:41 Return on investment: 10.0000 %
Apr 02, 23, 01:06:41 Price change: 0.0306%
Apr 02, 23, 01:06:41 Closed positions: 100x
Apr 02, 23, 01:06:41 Profitable positions: 60x (90.00%)
Apr 02, 23, 01:06:41 Losing positions: 40x (10.00%)
Apr 02, 23, 01:06:41 Average margin: 5.00000000 BNB
Apr 02, 23, 01:06:41 Average realized profits: 10.00000000 BNB
Apr 02, 23, 01:06:41 Executed orders: 100x
Apr 02, 23, 01:06:41 Completed order: 100x
Apr 02, 23, 01:06:41 Average open time: 10 seconds
Apr 02, 23, 01:06:41 ----- Performance report BINANCE_BNB_BTC_ -----
Apr 02, 23, 01:06:41 Max. DrawDown: 1.00% / 40.00000000 BNB
Apr 02, 23, 01:06:41 Sharpe Ratio: 1.00
Apr 02, 23, 01:06:41 Sortino Ratio: 1.00
Apr 02, 23, 01:06:41 Win %: 3.00 %
Apr 02, 23, 01:06:41 Profit Ratio: 3.00
Apr 02, 23, 01:06:41 Profit Factor: 3.00
Apr 02, 23, 01:06:41 CPC Index: 1.00
Apr 02, 23, 01:06:41 Tail Ratio: 2.00
Apr 02, 23, 01:06:41 Common Sense Ratio: 2.00
Apr 02, 23, 01:06:41 Outlier Win Ratio: 3.00
Apr 02, 23, 01:06:41 Outlier Loss Ratio: 1.00
Apr 02, 23, 01:06:41 Profit Margin Ratio: 54.00
Apr 02, 23, 01:06:41 Biggest Win: 100.00000000
Apr 02, 23, 01:06:41 Biggest Loss: -100.00000000
Apr 02, 23, 01:06:41 Highest Point in PNL: 5.00000000
Apr 02, 23, 01:06:41 Lowest Point in PNL: -5.00000000

*These numbers are for illustration only and do not reflect past or future performance.

The inter-exchange arbitrage trade bot will monitor the price of a specific pair between two markets. When the arbitrage bot has the opportunity to sell high on one exchange and buy lower on the other, it will execute two orders at the same time. One buy and one sell.

  • Discover profitability

    Capitalize on volatile markets where prices can fluctuate rapidly between two exchanges.

  • Improved efficiency

    Our arbitrage trading bots can execute trades faster and more efficiently than a human, where speed is imperative.

  • Arbitrage scalability

    Monitor large amounts of trading volume across multiple exchanges simultaneously, which is difficult for traders to manage manually.

Frequently Asked Questions

  • Will I need to rebalance my wallets?

    Yes. This is because TradeServer Cloud and Enterprise are non-custodial and make trades on your behalf using your API keys. All your crypto remains on your exchanges requiring manual rebalancing.

  • Is arbitraging crypto profitable?

    It depends. While there may be opportunities to capitalize on spread discrepancies between two exchanges, actually realizing these profits is much harder. This is in part to settlement times, withdrawal fees, and other transaction fees.

Discover alternatives to the Inter-Exchange Arbitrage

Pro Upgrade1. Completely Free2. Unrestricted Trial3.

Try TradeServer Cloud for 7-days and discover opportunities you've been missing.
Start free 7-day trial ›
1 TradeServer Cloud Pro upgrade is a 7-day trial of a premium subscription. Automatically downgraded to Lite on expiration or non-payment.
2 During the 7-day TradeServer Cloud Pro trial you will not be required to pay to access Pro plan features.
3 Access to premium features within TradeServer Cloud does not include third-party restrictions or unforeseen issues.