crab is a Ruby-based bot that leverages the SIDESHIFT API to access and analyze financial data for cryptocurrency trading.
It includes functionalities such as fetching market data, managing user accounts, and executing trades using the Dollar-Cost Averaging (DCA) strategy. The script is designed to automate these processes at specified intervals using a scheduler, aiming to optimize trading strategies and potentially generate profits.
-
Clone the repository:
git clone https://github.com/fabohax/crab.git
-
Install required gems:
bundle install
-
Customize the
crub.rb
file to align with your specific trading strategy. For example, to purchase 100 USDT worth of Bitcoin every Sunday at 0:00:0 * * * * cd crab && ruby runner.rb
-
Set up a cron job to execute the script at your desired intervals. For instance, to run the script every 5 minutes:
*/5 * * * * cd crab && ruby runner.rb
-
Start the cron service:
sudo service cron start
-
Verify the cron job status:
sudo service cron status
Now, crub should be operational, executing your defined trading strategy on SIDESHIFT.AI.
Before deploying this script, it is crucial to understand the risks associated with cryptocurrency trading, including market volatility, liquidity risks, and regulatory challenges.
It is strongly recommended to thoroughly test the bot in a simulated environment before using real funds. Regularly monitor its performance and adjust parameters as necessary.