Coder Social home page Coder Social logo

pancakeswapbot's Introduction

[๐Ÿ”ฅ UPDATE V2] PancakeSwap Prediction Bot

This 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.

It works with PancakePredictionV2.

๐Ÿ’ก How to use

1. Provide your private key to .env PRIVATE_KEY field
2. Install dependencies `npm i`
4. Start the app with `npm run start`
5. Enjoy winning!

๐ŸฆŠ How to Export Private Key from MetaMask

Open your account
Click on three points at top-right corner
Account details
Export Private Key

๐Ÿ’ก BackTesting with PancakeSwap data

1. Update initialEpoch with the current epoch in pancake -5 (example: current epoch 25890 -> 25885)
2. Update finalEpoch with the current epoch in pancake -500 (example: current epoch 25890 -> 25390)
3. Install dependencies `npm i`
4. Run `npm run download_data` **not needed as this code contains history.json file
5. Run `npm run backtest` 
6. Open file chart.png

alt PancakeSwap Prediction Bot-Winner alt PancakeSwap Prediction Bot-Winner Screenshot alt Candle Genie Bot-Winner Screenshot

Strategy

The bot strategy can be found in src/bot.ts. It bets on the biggest of the bull or bear payout.

const bet = roundBullAmount < roundBearAmount ? 'bull' : 'bear';

To increase the bet amount the bot uses this strategy (check the .env to modify the multiplier)

https://en.wikipedia.org/wiki/Martingale_(probability_theory)

โš ๏ธ Beware of forks. I do not give any guarantee that the fork may turn out to be a scam.

๐Ÿ’ฅ Disclaimer

I'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.

0xC3c531bE09102E84D4273984E29e827D71e28Ae8

All investment strategies and investments involve risk of loss. Nothing contained in this program, scripts, code or repository should be construed as investment advice. Any reference to an investment's past or potential performance is not, and should not be construed as, a recommendation or as a guarantee of any specific outcome or profit. By using this program you accept all liabilities, and that no claims can be made against the developers or others connected with the program.

pancakeswapbot's People

Contributors

diego-tobalina avatar bsc-predict avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.