IDEX
  • Introduction to IDEX
  • What is IDEX
    • Components
      • High-performance Exchange
      • Hybrid Liquidity
        • HL Mechanics
        • IDEX HL and LPs
      • Smart Contracts
    • User Benefits
    • Liquidity Mining
    • Staking
    • Referral Program
    • Hummingbot
    • Markets
    • Fees
    • Live Help
  • Code
    • API
    • Smart Contracts
      • Custodian
      • Exchange
      • Governance
    • Resources
  • User Guides
    • Getting Started
      • Connect Your Ledger Hardware Wallet to IDEX
      • Connect Your Metamask Account to IDEX
      • Connect You Private Key/Keystore on IDEX
    • Trading
      • Deposit tokens
      • Withdraw tokens
      • Buy and sell
      • View and cancel open orders
      • View trade, deposit, and withdraw history
    • LP and Farms
      • Add liquidity (LP)
      • Remove liquidity (LP)
      • Add LP tokens to farms
      • Remove LP tokens from farms
    • Staking
      • Operate your own staking node
        • Host a public staking node
      • Delegate to an existing node
    • Polygon Confirmations
    • Hummingbot Setup
      • Pure Market Making
      • Arbitrage
    • AURA Swap Instructions
    • Withdraw Directly on Chain
      • Farm ID List
  • FAQ
    • Polygon Bridge
    • Escape Hatch
    • Adding Polygon To Metamask
    • Clock Sync
Powered by GitBook
On this page

Was this helpful?

  1. User Guides
  2. Hummingbot Setup

Arbitrage

This strategy monitor prices in two different trading pairs and executes offsetting buy and sell orders in both markets.

PreviousPure Market MakingNextAURA Swap Instructions

Last updated 3 years ago

Was this helpful?

The strategy constantly scans for any arbitrage opportunity by comparing the order books on two markets that are trading equivalent assets (e.g. WETH-USDC vs. ETH-USD). Whenever it finds any price dislocation between the two markets (i.e. it's profitable to buy from one and sell to the other), it would calculate the optimal order size to do the arbitrage trade, and trades away the price difference by sending opposing market orders to both markets. You can learn more here:

This guide will show how to setup an arbitrage strategy on IDEX and Binance. Keep in mind that in order to run an arbitrage strategy, you must have funds on both primary and secondary exchanges available for trading.

Start Hummingbot if you haven't already. Here's a guide on how to do this:

Creating a new arbitrage strategy

Make sure your Hummingbot instance is already connected to IDEX and Binance using your credentials. You can do so now by using the connect command.

To make a new strategy on Hummingbot, we must enter the create command:

Hummingbot will ask you "What is your market making strategy?" and you'll select "arbitrage" as shown here:

Now we'll enter the primary spot connector to Hummingbot. IDEX will be the primary connector in this example.

The secondary connector will be Binance. Once you've selected it, Hummingbot will ask you to enter the token trading pair you would like to trade on IDEX. In this example, we'll use IDEX-USDC on IDEX

And we'll use IDEX-USDT on Binance. Now, enter your abitrage profitability in percentage terms. In this example, we want to have a 0.3% profitability (net of transaction costs).

Please note that for trading on unmatched pairs you can enable a price oracle.

As we're using an unmatched pair (IDEX-USDC <> IDEX-USDT) we need to use the rate oracle.

Now we can save the strategy by giving it a name.

Finally, we can run the strategy by using the start command.

Hummimgbot will start operating using the parameters you've provided. A more in-depth guide about how to configure the arbitrage strategy can be found here:

Happy Trading!

https://hummingbot.org/operation/launch-exit/
Arbitrage - Hummingbot Foundation
Arbitrage - Hummingbot Foundation
Logo
Logo
Type Yes to save the changes