{"id":38792458,"url":"https://github.com/rafaelbmateus/go-binance-bot","last_synced_at":"2026-01-17T12:39:46.077Z","repository":{"id":38172480,"uuid":"474979977","full_name":"rafaelbmateus/go-binance-bot","owner":"rafaelbmateus","description":"Go Binance Bot run trades automatically and send notification to slack","archived":false,"fork":false,"pushed_at":"2023-08-30T13:56:05.000Z","size":96,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-19T01:57:41.752Z","etag":null,"topics":["binance","bitcoin","bot","cryptocurrency","golang","me","slack","trading-bot"],"latest_commit_sha":null,"homepage":"https://rafaelbmateus.github.io/go-binance-bot","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaelbmateus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T11:53:43.000Z","updated_at":"2024-05-05T13:18:39.000Z","dependencies_parsed_at":"2022-09-06T23:20:33.720Z","dependency_job_id":null,"html_url":"https://github.com/rafaelbmateus/go-binance-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafaelbmateus/go-binance-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelbmateus%2Fgo-binance-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelbmateus%2Fgo-binance-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelbmateus%2Fgo-binance-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelbmateus%2Fgo-binance-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelbmateus","download_url":"https://codeload.github.com/rafaelbmateus/go-binance-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelbmateus%2Fgo-binance-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["binance","bitcoin","bot","cryptocurrency","golang","me","slack","trading-bot"],"created_at":"2026-01-17T12:39:45.409Z","updated_at":"2026-01-17T12:39:46.048Z","avatar_url":"https://github.com/rafaelbmateus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Binance Bot\n\nThis project runs trades automatically and send notifications.\nBasically you run the container and let the bot working for you.\n\nSimple like:\n\u003e Buy when it's cheap! And sell when it's expensive.\n\n## Logic\n\nThe intelligence of this bot use \n[Relative Strength Index (RSI)](https://www.tradingview.com/ideas/relativestrengthindex/)\nto buy and sell automatically.\n\n## Binance API\n\nFist, you need a binance api credentials.\n\nIf you don't have a binance api read\n[How to create binance api](https://www.binance.com/pt-BR/support/faq/360002502072).\n\n# How to run?\n\nTo run the bot on your computer you need to have\n[docker](https://docker.com) and [compose](https://docs.docker.com/compose) installed.\n\nMake sure you created the `config.yaml` files:\n\n```console\ncp config-example.yaml config.yaml\n```\n\n## Config file\n\nThe bot configuration is provided by yaml file that\nhas the following trade parameters `config.yaml`.\nIn this file, put the symbol price you want to buy and sell.\n\n```yaml\nname: \"go-binance-bot\"\n\nbinance:\n  api_key: \"xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX\"\n  api_secret: \"xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX\"\n\nnotify:\n  webhook_url: \"https://hooks.slack.com/services/ABABABABA/BABABABABAB/BLABLABLABLABLABLABLABLA\"\n\ntrades:\n  - symbol: \"BTC/USDT\"\n    interval: \"10s\"\n    amount: 0.0004\n    rsi_buy: 30\n    rsi_sell: 70\n    rsi_limit: 14\n    rsi_interval: \"15m\"\n  - symbol: \"BNB/USDT\"\n    interval: \"10s\"\n    amount: 0.05\n    rsi_buy: 30\n    rsi_sell: 70\n    rsi_limit: 14\n    rsi_interval: \"15m\"\n  - symbol: \"LOKA/USDT\"\n    interval: \"10s\"\n    amount: 20\n    rsi_buy: 30\n    rsi_sell: 70\n    rsi_limit: 14\n    rsi_interval: \"15m\"\n  - symbol: \"ETH/USDT\"\n    interval: \"10s\"\n    amount: 0 # set zero to test the logic.\n    rsi_buy: 30\n    rsi_sell: 70\n    rsi_limit: 14\n    rsi_interval: \"15m\"\n```\n\n* symbol: Symbol name to trade - `string`\n* interval: Interval to the next trade - `time.Duration`\n* rsiBuy: When the rsi is below - `float64`\n* rsiSell: When the rsi is high - `float64`\n* rsiLimit: Quantity of registers to analize - `int`\n* rsi_interval: Interval of time to group of registers - `time.Duration`\n* limit: Limit of USDT that will negotiate - `float64`\n\n## Running the bot\n\nFinally start the containers to monitor\nthe coins and open buy or sell order:\n\n```console\nmake up logs\n\n...\napp_1  | {\"level\":\"info\",\"time\":\"2022-03-28T13:19:31Z\",\"message\":\"bot is running\"}\napp_1  | {\"level\":\"debug\",\"time\":\"2022-03-28T13:19:31Z\",\"message\":\"monitor {BTC/USDT 1m0s 44630 44640}\"}\napp_1  | {\"level\":\"debug\",\"time\":\"2022-03-28T13:19:31Z\",\"message\":\"monitor {LOKA/USDT 1m0s 2.295 2.34}\"}\napp_1  | {\"level\":\"debug\",\"time\":\"2022-03-28T13:19:35Z\",\"message\":\"current price of BTC/USDT is 47282\"}\napp_1  | {\"level\":\"debug\",\"time\":\"2022-03-28T13:19:35Z\",\"message\":\"time to SELL price 47282\"}\n...\n```\n\nTo stop the bot and remove container, execute:\n\n```console\nmake clean\n```\n\n## 📫 Contributing\n\nTo contribute to the project, follow these steps:\n\n1. Clone the repository: `git clone git@github.com:rafaelbmateus/go-binance-bot.git`\n2. Create a feature branch: `git switch -c feature-a`\n3. Make changes and confirm (try using [conventional commits](https://www.conventionalcommits.org)): `git commit -m 'feat: new bot feature'`\n4. Push the feature branch: `git push origin feature-a`\n5. Create a [pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)\n6. Get reviews from other users\n7. Merge to `main` branch (we encourage using commit squash)\n8. Remove the branch merged.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelbmateus%2Fgo-binance-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelbmateus%2Fgo-binance-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelbmateus%2Fgo-binance-bot/lists"}