This strategy monitors prices between a trading pair on an
amm exchange versus another trading pair on another
amm exchange in order to identify arbitrage opportunities. Similar to the
arbitrage strategy, it executes offsetting buy and sell orders in both markets in order to capture arbitrage opportunities with profitability higher than
min_profitability, net of transaction costs, which include both blockchain transaction fees (gas) and exchange fees.
Hummingbot will be accessing
amm exchanges via Gateway V2 from v1.4.0. If you are looking for instructions on how to configure
amm exchanges, refer to the Gateway V2 and the
amm specific setup instructions.
🏦 Exchanges supported¶
- Release added: 0.34.0 by CoinAlpha
- Maintainer: CoinAlpha
🛠️ Strategy configs¶
||string||True||Enter your first spot connector (Exchange/AMM)|
||string||True||Enter the token trading pair you would like to trade on [connector_1]|
||string||True||Enter your second spot connector (Exchange/AMM)|
||string||True||Enter the token trading pair you would like to trade on [connector_2]|
||decimal||True||What is the amount of [base_asset] per order?|
||decimal||1||True||What is the minimum profitability for you to make a trade?|
||decimal||1||True||How much buffer do you want to add to the price to account for slippage for orders on the first market|
||decimal||0||True||How much buffer do you want to add to the price to account for slippage for orders on the second market|
||bool||False||True||Do you want to submit both arb orders concurrently (Yes/No) ? If No, the bot will wait for first connector order filled before submitting the other order|
||bool||Do you want to enable the debug price shim for integration tests? If you don't know what it does you should keep it disabled.|
||int||600||True||After what time should blockchain transactions be cancelled if they are not included in a block? (this only affects decentralized exchanges) (Enter time in seconds) >>>|
The description below is a general approximation of this strategy. Please inspect the strategy code in Trading Logic above to understand exactly how it works.
ℹ️ More Resources¶
How to arbitrage AMMs like Uniswap and Balancer: Learn how you can Arbitrage AMMs with our strategy
Quickstart Guide for amm_arb (deprecated): This guide will walk you through the installation and launch of the new
Check out Hummingbot Academy for more resources related to this strategy and others!