{"id":13632430,"url":"https://github.com/diego-tobalina/PancakeSwapBot","last_synced_at":"2025-04-18T02:33:01.185Z","repository":{"id":45195531,"uuid":"440462673","full_name":"diego-tobalina/PancakeSwapBot","owner":"diego-tobalina","description":"PancakeSwap prediction bot","archived":false,"fork":false,"pushed_at":"2023-05-22T09:16:10.000Z","size":1157,"stargazers_count":67,"open_issues_count":0,"forks_count":38,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-08-01T22:53:17.955Z","etag":null,"topics":["binance","blockchain","bnb","bot","bsc","crypto","defi","ethereum","ethersjs","pancakeswap","pancakeswap-bot","pancakeswap-prediction-bot","pancakeswap-prediction-winner","pancakeswap-predictions","trading","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/diego-tobalina.png","metadata":{"files":{"readme":"README.md","changelog":"history.json","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-12-21T09:36:23.000Z","updated_at":"2024-07-09T09:44:44.000Z","dependencies_parsed_at":"2024-04-16T10:05:17.351Z","dependency_job_id":null,"html_url":"https://github.com/diego-tobalina/PancakeSwapBot","commit_stats":null,"previous_names":["diego-tobalina/pancakeswapbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-tobalina%2FPancakeSwapBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-tobalina%2FPancakeSwapBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-tobalina%2FPancakeSwapBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diego-tobalina%2FPancakeSwapBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diego-tobalina","download_url":"https://codeload.github.com/diego-tobalina/PancakeSwapBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223772219,"owners_count":17199971,"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":["binance","blockchain","bnb","bot","bsc","crypto","defi","ethereum","ethersjs","pancakeswap","pancakeswap-bot","pancakeswap-prediction-bot","pancakeswap-prediction-winner","pancakeswap-predictions","trading","trading-bot"],"created_at":"2024-08-01T22:03:02.914Z","updated_at":"2025-04-18T02:33:01.177Z","avatar_url":"https://github.com/diego-tobalina.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# [🔥 UPDATE V2] PancakeSwap Prediction Bot\n\n### ⚠️ Beware of forks. I do not give any guarantee that the fork may turn out to be a scam.\n\n### 💥 Disclaimer\n\nI'm coding this stuff on a pure open source, every time the bot wins, it donates a small portion of your winnings to a developer account so we can continue improving this bot.\n\n0xC3c531bE09102E84D4273984E29e827D71e28Ae8\n\nAs you receive the program as open source feel free to update the bot strategy to increase the win-rate or even changing the formula of the donation to what you consider rasonable.\n\n### [Donate with Trust Wallet](https://link.trustwallet.com/send?asset=c20000714\u0026address=0xC3c531bE09102E84D4273984E29e827D71e28Ae8)\n\nAll investment strategies and investments involve risk of loss.\n**Nothing contained in this program, scripts, code or repository should be construed as investment advice.**\nAny reference to an investment's past or potential performance is not, and should not be construed as, a recommendation\nor as a guarantee of any specific outcome or profit. By using this program you accept all liabilities, and that no\nclaims can be made against the developers or others connected with the program.\n\n## Info\n\nThis is a PancakeSwap Prediction game bot, it includes backtesting code so you can try new strategies changing the `env` variables on a risk free environment.\n\nIt works with PancakePredictionV2 (https://pancakeswap.finance/prediction)\n\n## 💡 How to use\n\n```\n1. Provide your private key to .env PRIVATE_KEY field\n2. Install dependencies `npm i`\n4. Start the app with `npm run start`\n5. Enjoy winning!\n```\n\n## 🦊 How to Export Private Key from MetaMask\n````\nOpen your account\nClick on three points at top-right corner\nAccount details\nExport Private Key\n````\n\n## 💡 BackTesting with PancakeSwap data\n\n````\n1. Update initialEpoch with the current epoch in pancake -5 (example: current epoch 25890 -\u003e 25885)\n2. Update finalEpoch with the current epoch in pancake -500 (example: current epoch 25890 -\u003e 25390)\n3. Install dependencies `npm i`\n4. Run `npm run download_data` **not needed as this code contains history.json file\n5. Run `npm run backtest` \n6. Open file chart.png\n````\n\n![alt PancakeSwap Prediction Bot-Winner](images/ppw-image.png)\n![alt PancakeSwap Prediction Bot-Winner Screenshot](images/ppw-image-2.png)\n![alt Candle Genie Bot-Winner Screenshot](images/ppw-image-3.png)\n\n### Strategy\n\nThe bot strategy can be found in [src/bot.ts](https://github.com/diego-tobalina/PancakeSwapBot/blob/main/src/bot.ts#L73). It bets on the biggest of the bull or bear payout.\n\n`const bet = roundBullAmount \u003c roundBearAmount ? 'bull' : 'bear';`\n\nTo increase the bet amount the bot uses this strategy (check the .env to modify the multiplier and the initial bet amount)\n\n`https://en.wikipedia.org/wiki/Martingale_(probability_theory)`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-tobalina%2FPancakeSwapBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiego-tobalina%2FPancakeSwapBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiego-tobalina%2FPancakeSwapBot/lists"}