{"id":13504348,"url":"https://github.com/andresilvasantos/bitprophet","last_synced_at":"2025-03-29T21:30:29.926Z","repository":{"id":53893193,"uuid":"126161217","full_name":"andresilvasantos/bitprophet","owner":"andresilvasantos","description":"Node crypto trading platform for Binance exchange.","archived":false,"fork":false,"pushed_at":"2022-01-14T18:13:02.000Z","size":622,"stargazers_count":231,"open_issues_count":17,"forks_count":70,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-03-24T20:39:28.161Z","etag":null,"topics":["alerts","binance","bot","cryptocurrency","notifications","telegram","trading"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andresilvasantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-21T10:21:03.000Z","updated_at":"2025-02-11T20:32:00.000Z","dependencies_parsed_at":"2022-08-13T03:30:51.407Z","dependency_job_id":null,"html_url":"https://github.com/andresilvasantos/bitprophet","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/andresilvasantos%2Fbitprophet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresilvasantos%2Fbitprophet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresilvasantos%2Fbitprophet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresilvasantos%2Fbitprophet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andresilvasantos","download_url":"https://codeload.github.com/andresilvasantos/bitprophet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249082,"owners_count":20747164,"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":["alerts","binance","bot","cryptocurrency","notifications","telegram","trading"],"created_at":"2024-08-01T00:00:32.794Z","updated_at":"2025-03-29T21:30:29.499Z","avatar_url":"https://github.com/andresilvasantos.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"readme":"[![Latest Version](https://img.shields.io/github/release/andresilvasantos/bitprophet.svg?style=flat-square)](https://github.com/andresilvasantos/bitprophet/releases) \n[![GitHub last commit](https://img.shields.io/github/last-commit/andresilvasantos/bitprophet.svg?maxAge=2400)](#)\n[![npm downloads](https://img.shields.io/npm/dt/bitprophet.svg?maxAge=7200)](https://www.npmjs.com/package/bitprophet)\n\n[![NPM](https://nodei.co/npm/bitprophet.png?compact=true)](https://npmjs.org/package/bitprophet)\n\n# WARNING: repository no longer maintained ⚠️\nThis source code evolved into a full desktop trading application, to be launched in Q1 2022. 🚀  \nFor more information, [follow me on Twitter](https://twitter.com/megaroads).  \nA big thank you to everyone who dedicated their time to help it grow.\n\n# BitProphet\nBitProphet is a node crypto trading platform for Binance exchange that uses chat bots as its interface. Its main purpose is the automation of trading techniques, but it can also be used as a simple order notification tracker or as an alert system for the most used technical indicators.\nSuggestions and pull requests are very welcome!\n\n#### Features\n* Analyse hundreds of tokens in multiple intervals EVERY second\n* Technical Indicators (SMA, EMA, RSI, Stochastics, Bollinger Bands, Ichimoku and more)\n* Stop loss and trailing profits\n* Paper trading\n* Create your own strategies\n* Be notified anywhere with Telegram or Discord\n\n![Telegram Interface](https://github.com/andresilvasantos/bitprophet/raw/master/pres/chat_example.png)\n\n#### Installation\n```\nnpm install bitprophet --save\n```\n\n#### Setting Up Telegram Bot\nFirst, you'll need to create a bot for Telegram. Just talk to [BotFather](https://telegram.me/botfather) and follow simple steps until it gives you a token for it.\nYou'll also need to create a Telegram group, the place where you and BitProphet will communicate. After creating it, add the bot as administrator (make sure to uncheck \"All Members Are Admins\").\n\n#### Setting Up Discord Bot (optional)\nCreate a server and follow [these simple steps](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token) until you have a token and added the bot to the server you've just created.\n\n#### Retrieving Chat IDs\nIn order to find out the chat id where your bot was added to, run node with the following code and then just say something in the group/server. The bot will reply with the chat id.\n\n```javascript\nconst bitprophet = require('bitprophet')\nbitprophet.options({\n    telegram: {\n        token: \"YOUR_TELEGRAM_BOT_TOKEN\"\n    },\n    discord: {\n        token: \"YOUR_DISCORD_BOT_TOKEN\"\n    }\n})\nbitprophet.listenToChatId()\n```\n\n![Chat ID](https://github.com/andresilvasantos/bitprophet/raw/master/pres/chat_id.png)\n\n#### Getting Started\nThis is the code to start BitProphet. If the only thing you need is to be notified of trades, you're done.\n\n```javascript\nconst bitprophet = require('bitprophet')\nbitprophet.options({\n    binance: {\n        key: \"YOUR_BINANCE_API_KEY\",\n        secret: \"YOUR_BINANCE_API_SECRET\"\n    },\n    telegram: {\n        chatId: \"YOUR_TELEGRAM_GROUP_ID\",\n        token: \"YOUR_TELEGRAM_BOT_TOKEN\"\n    },\n    discord: {\n        chatId: \"YOUR_DISCORD_CHANNEL_ID\",\n        token: \"YOUR_DISCORD_BOT_TOKEN\"\n    }\n})\n\nbitprophet.start()\n```\n\nYou should now see a message in Telegram/Discord telling you BitProphet has started.\n\nIn Telegram/Discord type __list__ and you'll see all the available strategies listed with the respective ids.\nIf a strategy listed has the [PT] prefix, it means it has Paper Trading active.\nTo start a strategy, just type __start strategy_id__. For example, __start buydip__.\n\n![Getting Started](https://github.com/andresilvasantos/bitprophet/raw/master/pres/getting_started.png)\n\n#### Adding Strategies\nAdd the following option naming a new directory for your strategies.\n\n```javascript\nbitprophet.options({\n    strategiesDir: \"./path/my/strategies\"\n})\n```\n\nCreate *index.js* inside that folder with the configuration for all your strategies\n```javascript\nmodule.exports = {\n    strategies: {\n        alertsbb: {\n            name: \"Alerts Bollinger Bands\",\n            targetMarket: \"BTC\"\n        },\n        quickdip: {\n            name: \"Quick Dip\",\n            //buyAmountMarket: 0.012,\n            buyPercentageAccount: 0.01,\n            profitTarget: 1.4,\n            maxLoss: 0.8,\n            maxTradingPairs: 4,\n            targetMarket: \"BTC\"\n        },\n        ichitest: {\n            name: \"Ichimoku Test\",\n            paperTrading: true,\n            buyAmountMarket: 0.012,\n            profitTarget: 1.4,\n            maxTradingPairs: 8,\n            targetMarket: \"BTC\",\n            excludeTokens: [\"NEO\", \"TRX\"]\n        },\n        //...\n    }\n}\n```\n\nCreate your strategies based on the examples.\n\n#### Chat Bots Commands\n\n* __help__ | __h__ - Show all available commands\n* __status__ | __st__ - Show version and status\n* __account__ | __total__ | __ttl__ - Show total balance in BTC and USDT, plus BNB amount\n* __profits__ | __%__ - Show profits\n* __profits +__ | __% +__ - Show profits per pair\n* __left__ | __l__ - Show trades left\n* __sell token__ | __exit token__  - Sell token, if it's currently trading\n* __sell token price__ | __exit token price__ - Sell token@price, if it's currently trading\n* __cancel token__ - Cancel currently trading token\n* __orders__ | __o__ - Show open orders\n* __orders token__ | __o token__ - Show open orders for the given token\n* __start strategyId__ - Start strategy\n* __stop strategyId__ - Stop strategy\n* __list__ - Show available strategies\n* __list strategyId__ - Show valid / trading pairs for the given strategy\n* __token__ | __tokenmarket__ - Show price for the specified token, BTC market default. (e.g. ada, adaeth)\n* __pause__ - Pause system (ongoing trades won't be paused)\n* __restart__ - Kill BitProphet's process. Useful when using a keep alive process manager like [pm2](https://github.com/Unitech/pm2).\n\n![Profits Discord](https://github.com/andresilvasantos/bitprophet/raw/master/pres/chat_profits.png)\n\n#### Adding Custom Commands\nAdd the following option naming a new directory for your commands.\n\n```javascript\nbitprophet.options({\n    commandsCustomDir: \"./path/my/commands\"\n})\n```\n\nCreate *index.js* inside that folder with the configuration for all your commands\n```javascript\nmodule.exports = {\n    commands: {\n        test: {\n            triggers: [\"test\", \"t\"]\n            description: \"Just a test command\"\n        },\n        //...\n    }\n}\n```\n\nCreate in the same directory *test.js* and code it based on the examples.\n\n---\n\nThank you to all contributors: [supershwa](https://github.com/supershwa), [ionutgalita](https://github.com/ionutgalita)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresilvasantos%2Fbitprophet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandresilvasantos%2Fbitprophet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresilvasantos%2Fbitprophet/lists"}