Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabohax/crab
CEX Trader Bot on DCA
https://github.com/fabohax/crab
bitcoin bot crypto dollar-cost-average ruby script strategy
Last synced: 4 days ago
JSON representation
CEX Trader Bot on DCA
- Host: GitHub
- URL: https://github.com/fabohax/crab
- Owner: fabohax
- Created: 2019-09-28T11:02:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T08:59:11.000Z (4 months ago)
- Last Synced: 2024-08-29T10:15:40.961Z (4 months ago)
- Topics: bitcoin, bot, crypto, dollar-cost-average, ruby, script, strategy
- Language: Ruby
- Homepage:
- Size: 329 KB
- Stars: 40
- Watchers: 8
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crab
**crab** is a Ruby-based bot that leverages the [SIDESHIFT API](https://docs.sideshift.ai/endpoints/v2/coins) 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](https://www.investopedia.com/terms/d/dollarcostaveraging.asp) (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.
## Installation
1. Clone the repository:
```
git clone https://github.com/fabohax/crab.git
```2. Install required gems:
```
bundle install
```3. 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:
```ruby
0 * * * * cd /path/to/project && ruby crab.rb
```4. Set up a cron job to execute the script at your desired intervals. For instance, to run the script every 5 minutes:
```
*/5 * * * * cd /path/to/project && ruby crab.rb
```5. Start the cron service:
```
sudo service cron start
```6. Verify the cron job status:
```
sudo service cron status
```Now, **crub** should be operational, executing your defined trading strategy on [SIDESHIFT.AI](https://sideshift.ai).
# **[!] Warning: Use at Your Own Risk**
*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.*