The XRP Ledger (XRPL) is a high-performance blockchain that supports fast, low-cost transactions and decentralized exchange (DEX) functionality. When paired with Hummingbot — an open-source market-making bot — traders can automate liquidity provision directly on the XRPL DEX. This guide walks you through setting up your XRPL wallet, connecting it to Hummingbot, and deploying a simple market-making strategy — all without needing prior coding experience.
Whether you're new to decentralized finance or an experienced developer, this step-by-step tutorial ensures a smooth integration process.
Create an XRPL Wallet
To interact with the XRP Ledger, you need a wallet. You can generate one in two ways: using the beginner-friendly testnet faucet or running a script for more technical control.
Option 1: Use the XRPL Testnet Faucet (Beginner-Friendly)
For those just getting started, the XRPL Testnet Faucet offers a simple way to create a wallet.
- Visit the official XRPL Testnet Faucet.
- Select Testnet from the dropdown menu.
- Click Generate Testnet Credentials.
- Securely save your Wallet Address and Secret Key (also known as the seed).
🔐 The secret key grants full access to your wallet. Never share it or store it in unsecured locations like plain text files or screenshots.
Option 2: Generate Wallet via Terminal Script (Developer-Friendly)
If you prefer automation, use this terminal command to generate your wallet:
curl -s https://gist.githubusercontent.com/david-hummingbot/a040f9af46b5d627f9437f04a04fc4ec/raw/1aab1f428b834eafcdc06a1c88d6dbd47afbf551/create_xrp_wallet.sh | bashAfter execution, you'll receive four lines of output including your wallet address and seed. Store them securely.
👉 Get started with automated trading strategies on XRPL today.
Install and Set Up Xaman Wallet
Xaman (formerly XUMM) is a mobile wallet that simplifies interaction with the XRPL. It allows secure signing of transactions and real-time balance tracking.
Download Xaman from:
Once installed, follow these steps to import your wallet:
- Open Xaman and tap Settings > Accounts > Add account.
- Choose Import an existing account.
- Select Full access if you plan to send assets or create trust lines.
- Tap Next, then choose Family Seed.
- Enter your 29-character seed (starts with
s). - Confirm the displayed
r-addressmatches your wallet address. - Set a security level and label for your account.
⚠️ Only import wallets into Xaman that you fully control. Never enter your seed into untrusted apps.
Connect Your XRPL Wallet to Hummingbot
With your wallet ready, it's time to link it to Hummingbot.
- Launch Hummingbot.
Run the command:
connect xrpl- Enter your wallet secret key (the seed).
- Provide one or more XRPL node URLs (default is
wss://s1.ripple.com/).
After successful connection, run:
balanceYou should see output like:
Symbol Balance
XRP 138.2416
RLUSD 23.4359This confirms your wallet is connected and funded.
👉 Supercharge your DEX trading with advanced tools and insights.
Customize the XRPL Connector Configuration
Hummingbot creates a configuration file at /conf/connectors/xrpl.yml. This file stores encrypted credentials and market settings.
Example custom markets setup:
custom_markets:
XRP-RLUSD:
base: XRP
quote: RLUSD
base_issuer: ""
quote_issuer: "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
XRP-iBTC:
base: XRP
quote: iBTC
base_issuer: ""
quote_issuer: "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"Use a Private XRPL Node
The default public node (wss://s1.ripple.com/) may experience rate limits. For better performance, switch to a private node provider such as:
- GetBlock
- QuickNode
- Chainstack
Update the node_url field in xrpl.yml with your preferred endpoint.
Using a dedicated node improves reliability, reduces latency, and supports higher-frequency trading operations.
Deploy a Simple PMM Strategy on XRPL DEX
Now that your wallet is connected, you can automate trading using Hummingbot’s Simple Pure Market Making (PMM) strategy.
Prerequisites
- Connected and funded XRPL account in Hummingbot.
- A configured PMM script.
Create the PMM Configuration
Run this command in Hummingbot:
create --script-config simple_pmmThis generates a config file in conf/controllers/. Edit it with the following parameters:
script_file_name: simple_pmm.py
exchange: xrpl
trading_pair: XRP-RLUSD
order_amount: 15
bid_spread: 0.001
ask_spread: 0.001
order_refresh_time: 120
price_type: midParameter Breakdown
exchange: Specifies XRPL as the trading venue.trading_pair: The asset pair to trade (e.g., XRP vs RLUSD).order_amount: Quantity of base token (XRP) per order.bid_spread: Places buy orders 0.1% below mid price.ask_spread: Places sell orders 0.1% above mid price.order_refresh_time: Replaces orders every 120 seconds.price_type: Uses midpoint between best bid and ask for pricing.
This setup places passive orders around the current market price, capturing spread while providing liquidity.
Monitor on-chain activity via explorers:
Start the Bot
Launch your strategy with:
start --script simple_pmm.py --conf conf_simple_pmm_test-xrp-rlusd.ymlCheck the log pane for confirmation of order placement or error messages.
Frequently Asked Questions
Q: Is it safe to use my wallet seed in Hummingbot?
A: Yes, as long as you run Hummingbot locally and never expose your seed online. The seed is encrypted and stored securely within the application.
Q: Can I trade any token on XRPL DEX?
A: Yes, provided the token has a valid issuer address and is supported by Hummingbot’s custom markets feature.
Q: Why should I use a private node instead of the default public one?
A: Private nodes offer higher uptime, faster response times, and avoid rate-limiting during peak usage.
Q: How do I check if my orders are live on-chain?
A: Use block explorers like Sologenic DEX or XMagnetic DEX to view real-time order books and transaction history.
Q: What happens if my internet connection drops?
A: Pending orders remain on-chain, but new orders won’t be placed until connectivity resumes.
Q: Can I run multiple strategies simultaneously?
A: Yes, Hummingbot supports concurrent scripts across different trading pairs or exchanges.
👉 Discover how professional traders automate their DEX strategies efficiently.
Final Thoughts
Integrating Hummingbot with the XRP Ledger unlocks powerful automated trading capabilities on a scalable, low-latency DEX environment. From creating your first wallet to launching a live market-making bot, this workflow emphasizes security, simplicity, and performance.
By leveraging private nodes, custom market configurations, and robust scripting tools, you can tailor your strategy to meet evolving market conditions — all while maintaining full control over your assets.
For additional support, visit the official Hummingbot documentation or join the active community on Discord.
Start building intelligent trading systems on XRPL — where speed meets decentralization.
Core Keywords: XRP Ledger, Hummingbot, decentralized exchange, market making bot, XRPL DEX, automated trading, XRPL wallet, connect xrpl