Celo Arbitrage (
Updated as of v0.28.1
How it Works¶
celo-arb strategy is a special case of the normal arbitrage strategy that arbitrages between the automated market maker (AMM) exchange on the Celo blockchain and other markets supported by Hummingbot. This strategy allows users to earn arbitrage profits while contributing to the stability of the Celo cUSD price peg.
For more information, please see this blog post.
We have created a Quickstart guide for
celo-arb that walks through the steps of how to install and run Hummingbot along with the Celo ultra-light node on the free tier of an AWS instance.
Since Celo is a blockchain protocol, in addition to the normal inventory requirements, you will need access to a Celo node and the
celo-cli command line tool in the same machine in which you are running the Hummingbot client.
Inventory of CELO or cUSD¶
- Similar to the arbitrage strategy, you will need to hold inventory of Celo tokens (i.e. Celo Gold (CELO) or cUSD) in a Celo wallet and on a secondary exchange), in order to be able to trade and capture price differentials (i.e. buy low on one exchange, sell high on the other).
- You may also need some CELO tokens in your Celo wallet in order to pay for transaction fees on the Celo blockchain.
Access to a Celo Node¶
Celo nodes allow the Hummingbot client to interact with the Celo blockchain by connecting to peers, sending transactions, and fetching chain state. Since the client just needs access to the chain and recent blocks, you can run either a Celo full node or an ultra-light node.
Follow the Celo documentation to install and run a full node. Note that the node must be synced in order for the
celo-arb strategy to run.
Ultra-light sync mode
celo-arb strategy works with Celo node running in "ultra-light" mode, which is much faster to sync. See our Quickstart for instructions on how to start a node in ultra-light mode.
celo-cli CLI tool¶
To interact with the Celo node, the Hummingbot client depends upon the
celo-cli command line tool. Please install
celo-cli by following these instructions in the Celo documentation.
The following walks through all the steps when running
create command. These parameters are fields in Hummingbot configuration files (located in the
/conf folder, e.g.
||Enter another exchange you would like to trade on.|
||Enter the token trading pair for the secondary exchange.|
||Minimum profitability target required to execute trades.|
||Order amount for each leg of the arbitrage trade.|
||Percent buffer added to the Celo exchange price to account for price movement before trade execution|