{"id":19278922,"url":"https://github.com/matejlach/bnc-trading-bot","last_synced_at":"2026-01-24T12:08:38.315Z","repository":{"id":64318926,"uuid":"363279901","full_name":"MatejLach/bnc-trading-bot","owner":"MatejLach","description":"Buy crypto low/Sell high on Binance. Simple, powerful configuration, trade multiple assets simultaneously, single binary deployment with no external dependencies!","archived":false,"fork":false,"pushed_at":"2021-05-31T14:57:07.000Z","size":40,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-20T15:10:55.010Z","etag":null,"topics":["algorithmic-trading","binance","binance-api","bitcoin","bitcoin-cash","bot","crypto","crypto-trading-bot","cryptocurrencies","cryptocurrency","cryptocurrency-exchanges","ethereum","litecoin","trading","trading-algorithms","trading-bot","trading-platform","trading-strategies"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatejLach.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":"2021-04-30T23:12:24.000Z","updated_at":"2024-04-10T14:31:20.000Z","dependencies_parsed_at":"2023-01-15T12:00:25.980Z","dependency_job_id":null,"html_url":"https://github.com/MatejLach/bnc-trading-bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatejLach%2Fbnc-trading-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatejLach%2Fbnc-trading-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatejLach%2Fbnc-trading-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatejLach%2Fbnc-trading-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatejLach","download_url":"https://codeload.github.com/MatejLach/bnc-trading-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223883712,"owners_count":17219270,"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":["algorithmic-trading","binance","binance-api","bitcoin","bitcoin-cash","bot","crypto","crypto-trading-bot","cryptocurrencies","cryptocurrency","cryptocurrency-exchanges","ethereum","litecoin","trading","trading-algorithms","trading-bot","trading-platform","trading-strategies"],"created_at":"2024-11-09T21:12:36.212Z","updated_at":"2026-01-24T12:08:38.272Z","avatar_url":"https://github.com/MatejLach.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"bnc-trading-bot\n=\n\n\n[![License: GPL v3](https://img.shields.io/badge/GPLv3-Free%20as%20in%20freedom-blue)](LICENSE)\n\n\u003e [Download the latest release for your OS](https://github.com/MatejLach/bnc-trading-bot/releases/tag/v0.1.1)\n\nThis bot automatically trades crypto / fiat assets on [Binance.com](https://www.binance.com/en) according to simple, configurable rules.\nIt allows you to buy crypto assets when they go down in value by a configurable percentage/at an exact price \u0026 sell when they're up, automatically.\n\nBuilding from source\n-\nAssuming a correctly set up [Go toolchain](https://golang.org/doc/install), simply run:\n\n`$ go build` \n\nfrom within the cloned source directory. \n\nRunning\n-\nNavigate with your shell to the directory where the compiled binary is located and execute with:\n\n`$ ./bnc-trading-bot`\n\nConfiguration\n-\n\nUpon first launch, a new `config.json` configuration file will be created that looks something like the following, (excluding the explanatory comments):\n\n```javascript\n{\n    \"api_key\": \"\u003cYOUR-BINANCE-API-KEY\u003e\", // replace everything between \" \" with your personal Binance.com API key\n    \"api_secret\": \"\u003cYOUR-BINANCE-API-SECRET\u003e\", // replace everything between \" \" with your personal Binance.com API secret\n    \"Sell\": [\n        {\n            \"sell_holding_symbol\": \"BNB\", // i.e. \"BNB\" as in 'I have BNB holdings'\n            \"sell_for_symbol\": \"GBP\", // that I want to sell for 'GBP'\n            \"target_price_to_sell_at\": \"524.00\", // sell when \"BNB\" price against \"GBP\" reaches an exact amount, set 'percentage_diff' to 0 for this to take effect (has to be higher than the current price)\n            \"percentage_diff\": 55, // OR when 'BNB' is up 55% against 'GBP' from when I started this program (has to be positive)\n            \"sell_percent_of_holdings\": 25, // sell 25% of my total BNB wallet balance, set to 0 in order for the 'sell_quantity' setting to take effect\n            \"sell_quantity\": \"0.45\" // OR sell exactly 0.45 BNB when it's up 55%, 'sell_percent_of_holdings' takes precedence if it's set to \u003e 0\n        }\n    ],\n    \"Buy\": [\n        {\n            \"buy_symbol\": \"BNB\", // purchase 'BNB' \n            \"buy_with_holding_symbol\": \"GBP\", // for money from my 'GBP' wallet\n            \"target_price_to_buy_at\": \"192\", // buy when \"BNB\" price against \"GBP\" reaches an exact amount, set 'percentage_diff' to 0 for this to take effect (has to be lower than the current price)\n            \"percentage_diff\": -15, // OR once 'BNB' is 15% down against 'GBP' from when I started this program (has to be negative)\n            \"buy_for_percent_of_holdings\": 85, // buy as much BNB as possible for 85% of your GBP fiat wallet balance\n            \"buy_quantity\": \"1.12\" // OR buy exactly 1.12 BNB if 'buy_for_percent_of_holdings' is set to 0, otherwise 'buy_for_percent_of_holdings' takes precedence\n        }\n    ]\n}\n```\n\nYou can specify as many Buy/Sell configurations as you want by placing successive configuration objects `{...}` separated by `,` in between `[]`, see [this](https://opensource.adobe.com/Spry/samples/data_region/JSONDataSetSample.html#Example2) if you are unfamiliar with JSON arrays.\n\nThe individual buy/sell configurations will run in parallel.\n\nTo obtain your personal Binance API key/secret pair, consult [the relevant support article](https://www.binance.com/en/support/articles/360002502072).\nMake sure to **never share your config.json with anyone if it has your API details filled in**, otherwise they will be able to do trades on your behalf.\n\nContributing\n-\n\nBug reports and pull requests are welcome. Do not hesitate to open a PR / file an issue, or a feature request.\n\nDisclaimer\n-\n\nThis program is provided 'AS IS', without any warranty or assumed liability by its creator(s).\nAny financial looses due its usage are solely the responsibility of its user(s).\n\n**Use at your own risk!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatejlach%2Fbnc-trading-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatejlach%2Fbnc-trading-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatejlach%2Fbnc-trading-bot/lists"}