{"id":23901531,"url":"https://github.com/fabohax/crab","last_synced_at":"2025-07-07T14:33:48.069Z","repository":{"id":152352768,"uuid":"211487065","full_name":"fabohax/crab","owner":"fabohax","description":"CEX Trader Bot on DCA ","archived":false,"fork":false,"pushed_at":"2024-08-29T08:59:11.000Z","size":337,"stargazers_count":40,"open_issues_count":0,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-29T10:15:40.961Z","etag":null,"topics":["bitcoin","bot","crypto","dollar-cost-average","ruby","script","strategy"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabohax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-28T11:02:13.000Z","updated_at":"2024-08-29T08:59:16.000Z","dependencies_parsed_at":"2024-05-13T17:34:27.995Z","dependency_job_id":"e52a9b6d-7d29-4b81-803e-55c6fc921b22","html_url":"https://github.com/fabohax/crab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabohax%2Fcrab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabohax%2Fcrab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabohax%2Fcrab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabohax%2Fcrab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabohax","download_url":"https://codeload.github.com/fabohax/crab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232524160,"owners_count":18536727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bot","crypto","dollar-cost-average","ruby","script","strategy"],"created_at":"2025-01-04T21:39:37.012Z","updated_at":"2025-01-04T21:39:37.595Z","avatar_url":"https://github.com/fabohax.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crab\n\n**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.\n\nIt 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.\n\n## Installation\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/fabohax/crab.git\n   ```\n\n2. Install required gems:\n\n   ```\n   bundle install\n   ```\n\n3. 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:\n\n   ```ruby\n   0 * * * * cd /path/to/project \u0026\u0026 ruby crab.rb\n   ```\n\n4. Set up a cron job to execute the script at your desired intervals. For instance, to run the script every 5 minutes:\n\n   ```\n   */5 * * * * cd /path/to/project \u0026\u0026 ruby crab.rb\n   ```\n\n5. Start the cron service:\n\n   ```\n   sudo service cron start\n   ```\n\n6. Verify the cron job status:\n\n   ```\n   sudo service cron status\n   ```\n\nNow, **crub** should be operational, executing your defined trading strategy on [SIDESHIFT.AI](https://sideshift.ai).\n\n# **[!] Warning: Use at Your Own Risk**\n\n*Before deploying this script, it is crucial to understand the risks associated with cryptocurrency trading, including market volatility, liquidity risks, and regulatory challenges.*\n\n*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.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabohax%2Fcrab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabohax%2Fcrab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabohax%2Fcrab/lists"}