Uniswap is a protocol on Ethereum for swapping ERC20 tokens. Unlike most exchanges, which are designed to take fees, Uniswap is designed to function as a public good — a tool for the community trade tokens without platform fees or middlemen.
Concentrated liquidity and multiple fee tiers are the new features behind Uniswap v3, giving the liquidity provider more control of risk and assets.
- Ethereum wallet (refer to our guide here)
- Ethereum node (refer to our guide here)
- Hummingbot Gateway (done after connecting to Uniswap)
- Some ETH in wallet for gas
- Inventory on both base and quote assets for the connectors
When creating Hummingbot Gateway, it picks up the Ethereum settings in the global config file which we can set up in the Hummingbot client.
- Run the command
connect ethereumin the Hummingbot client
- Enter your wallet private key
- Enter Ethereum node address (starts with https://)
- Enter the websocket connection address of your Ethereum node (starts with wss://)
After adding your Ethereum wallet and node in Hummingbot, follow the guide in the link below on how to install Hummingbot Gateway.
Check the connection of Uniswap v3 and gateway.
Open and access gateway global_conf.yml with a text editor.
Make sure the value of the connections for Uniswap v3 below are open and ended with double quotation marks ("") in your global_conf.yml.
# UNISWAP_V3_CORE is deployed at 0x1F98431c8aD98523631AE4a59f267346ea31F984 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. # UNISWAP_V3_ROUTER is deployed at 0xE592427A0AEce92De3Edee1F18E0157C05861564 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. # UNISWAP_V3_NFT_MANAGER is deployed at 0xC36442b4a4522E871399CD717aBDD847Ab11FE88 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. UNISWAP_ROUTER: "0x7a250d5630B4cF539739dF2C5dAcB4c659F2488D" UNISWAP_V3_CORE: "0x1F98431c8aD98523631AE4a59f267346Ea31F984" UNISWAP_V3_ROUTER: "0xE592427A0AEce92De3Edee1F18E0157c05861564" UNISWAP_V3_NFT_MANAGER: "0xC36442b4a4522E871399CD717aBDD847AB11FE88"