How to set up your crypto arbitrage bot with HaasOnline TradeServer
Comments Off on How to set up your crypto arbitrage bot with HaasOnline TradeServer
What is a crypto arbitrage bot?
A crypto arbitrage bot is a tool you will use that executes a series of predefined instructions based on your user-defined settings. Our custom and trade bots can vary widely in performance and complexity, but the basic premise is the same — the bots will try to take advantage of price spread discrepancies between crypto pairs on select exchanges where the opportunity has been identified.
We’ve previously written about crypto arbitrage in a prior published article, which will give you a much greater detail into the background of this proven trading strategy.
What are the different types of crypto arbitrage bots?
Inter-exchange arbitrage
Our crypto arbitrage bots typically take advantage of market discrepancies between crypto pairs on different exchanges. An oversimplified example of this strategy would be buying Bitcoin ($BTC) from Bittrex and selling it for profit on Binance. The basic arbitrage strategy generates profits from price differences between the exchanges that have been identified to have profitable arbitrage paths. Historically, these inefficiencies have proven to be significant when identified and executed on quickly.
Intra-exchange or triangular arbitrage
There’s another variation of crypto arbitraging, which is it’s riskier cousin commonly known as triangular arbitraging. With this strategy you would buy three different digital assets on the same exchange. For example you might buy 0.5 BTC, exchange that for 50 ETH, and then finally exchange that for USDT and net a profit. There’s quite a lot more moving parts, however when designed, tested, and executed properly has the potential to generate profitable trades.
Configuring your bots to execute crypto arbitrage
Using our legacy crypto arbitrage bots
Our legacy trading bot framework is a great choice if you’re looking for the simplicity of having a pre-defined configurable setting. This is a great way to start to familizare yourself with our crypto arbitrage bot as you can backtest with historical data or deploy it with all your selected exchanges in real-time with simulated trading.
- Login into your HaasOnline Trade Server instance
- Navigate to “Custom Bots” from the left-hand menu
- Click on the “+” icon to add a new trade bot
- Select “Inter-Exchange Arbitrage Bot” from the drop menu
- Give it a unique name
- Select the simulated or live exchange to use with this arbitrage bot
- Click “Add Bot”
- Select your desired order type
- Configure your primary market first
- Configure your secondary market
- Define your arbitrage options and trade setting
- Click “Save”
- You’ve created your very own crypto arbitrage bot. Now use the options section to backtest and run simulated trades and fully test with your current settings.
Using our next generation crypto arbitrage bots running on HaasScript
Since our updated trading scripts are built with HaasScript you can not only view the code for the bot, but also modify everything within it. This means you can add extra validation, triggers, delay, alerts, and much more.
- Login into your HaasOnline Trade Server instance
- Navigate to “Haas Bots” from the left-hand menu
- Click on the “Add bot” button to add a new trade bot
- Give your trading bot a unique name
- Search “Arbitrage” in the script library
- Select the “Original HaasOnline Arbitrage Bot”
- Similar to our legacy arbitrage bot, you will need to configure your primary market and desired crypto pair
- You will need to define your interval, which is the time in-between chart price checks the script will use
- Enter the amount you want to use with this trade bot
- Select your specific order type
- Define a fee percentage to use with backtests and simulation
- Set the max position you want your arbitrage bot to use
- Specify whether this bot should only execute one way
- As always backtest and test your arbitrage bot with simulated trading to iron out any bugs
- If you want to modify the script head over to the “Script Editor” in the left-hand menu, make your changes, and retest.
Risk to consider and avoid when possible
Settlement times
It is important to know the average settlement time for each of the selected exchanges you are using with your arbitrage strategy. This will help with execution of your identified opportunities, rebalance your exchange wallets, and help buffer for when markets have higher than normal traffic.
Fees
Fees can quickly eat up your profit margins and should be one of the first things taken into account while developing a successful crypto arbitrage strategy. These fees should include withdrawal, network, maker, taker, and any other fees the exchange may impose. If your active strategy does not take into account fees, you will quickly degrade the performance of your arbitrage bot.
Market liquidity
If you’ve identified an opportunity and the crypto pair is on an exchange with low liquidity, you won’t be able to enter or exit positions fast enough to take advantage of the spread. It’s important to thoroughly vet your active exchanges. Use could also create a HaasScript powered arbitrage bot and add in extra checks for exchange volume or other insurances.
Broadband connectivity issues
More often than not your residential broadband connections will experience intermittent outages or spikes in latency. This is why we recommend using a virtual private server that is geolocated as close as possible to the known locations of your exchanges.
Hardware or software issues
Using hardware that’s not meant to be put through constant stress and combined with poor conditions like heating or running several high-intensity applications in parallel will drastically degrade our automated trading engines ability to perform at peak performance.
Final thoughts on using arbitraging strategies
While this trading strategy has been popular and reliable with traditional markets like Forex, it’s still extremely risky with cryptocurrency due to a combination of the risks mentioned above. Make sure you’ve done your due diligence and understand how this strategy works as well as understand the intricacies of how HaasOnline Trade Server will execute your crypto arbitrage strategy.