These instructions help users navigate the installation, configuration, and operation of (OSS) Hummingbot high-frequency trading bot running Automated Market Making Arbitrage or Range Automated Market Making strategies on Osmosis DEX over the Hummingbot Gateway.
The Cosmos ecosystem is powered by the Inter-Blockchain Communication protocol (IBC) which functions like an internet of blockchains. Most Cosmos wallets support all IBC chains natively, including Osmosis - though specific networks may need to be manually added.
Stay up to date with Osmosis-specific wallet information on the Osmosis website and/or Docs:
To ensure the ability to easily export the wallet private key, use Leap. Remember that the private key exported from Leap will include a ‘0x’ prefix which must be removed.
Keplr is the most popular Cosmos-based wallet. However, when creating a Keplr wallet, only users who link a Google Account are able to export their private key directly from Keplr.
Note
For a linked Keplr-Google wallet, find instructions to export the private key here.
To get around this, export the seed instead and then restore with a different Osmosis wallet which allows exporting private key.
To get a Keplr private key without a linked Google Account:
Export Keplr seed phrase.
Restore the wallet using the seed phrase, in a different Cosmos-based wallet (such as Leap wallet) which allows exporting the private key.
Export the private key from the newly restored wallet.
Warning
Your wallet seed phrase is extremely sensitive. Keep it confidential and never share it online or with anyone you don't trust. Always ensure you're in a secure and private environment when handling your seed phrase.
To connect to Osmosis mainnet run the command below
>>> gateway connect osmosis
To connect to the Osmosis testnet, select 'testnet' instead of 'mainnet' when prompted.
You will be prompted to enter your Osmosis private key. If valid, you should get a message saying The connector osmosis_osmosis_mainnet is now using wallet osmo
To confirm the connection, you can run the balance command below to see if Hummingbot is able to pull the available balance from the exchange
If you haven’t already, connect a wallet to Osmosis Mainnet with gateway connect osmosis. Afterwards, you should be able to see your osmosis_osmosis_mainnet wallet when you run gateway balance.
To display the balance of specific tokens in the trading wallet balance, run gateway approve-tokens osmosis_osmosis_mainnet <TOKEN_SYMBOL_HERE>. The token balance will be displayed the next time gateway balance is run.
Ensure the added trading wallet has at least 1 OSMO to cover trading gas costs.
Use the create command to set up an amm_arb or amm_v3_lp strategy. Answer the question prompts presented so that you to generate your own version of the following example configurations.
Run import to get a list of locally stored files, use the arrow keys or tab to scroll and select one. Or, you can also skip the prompt by running import <file_name.yml> directly.
If you are interested in contributing or funding a bounty for development of additional features or improvements for this connector or related strategies, please feel free to contact Pecunia.Finance.
V1 strategy bugs
V2 strategy development
Data Feed
Custom CLMM range input (strategy development - amm_lp_v3 or new)