A Grid Trading Bot For Backpack Exchange.
In order to run the script you need to:
- Install nodejs.
- Create an API Key for backpack exchange.
- Have enough funds for trading pair.
- Create a telegram bot for trading notification (Optional).
- Configure the script by updating .env.copy file (remove the .copy from the file name when done).
BACKPACK_API_KEYyour backpack exchange api keyBACKPACK_API_SECRETyour backpack exchange api secretSYMBOLyour trading pair, likeSOL_USDC, make sure you have enough SOL and enough USDC.LOWER_PRICEthe bottom price of grid, like170UPPER_PRICEthe top price of grid, like200PRICE_DECIMALthe price decimal, if the calculated price is 170.33333333, if PRICE_DECIMAL is 2, price will be 170.33. if it's 1, price will be 170.3.NUMBER_OF_GRIDSthe number of grids, like100QUANTITY_PER_GRID= the quantity of each grid like0.07TELEGRAM_BOT_API_TOKENtelegram bot token (Optional)TELEGRAM_TARGET_CHAT_IDchat id (Optional)
Something need to do.
npm install -g pm2
npm install -g typescriptthen use yarn start to run, you can see a log file named gridbot.log
- calculate grid initial cost, and check user fund.
If this bot has been helpful to you, I'd appreciate it if you could buy me a cup of coffee.
SOL Address: 5WWBB4Ct8gCczZDYCx587Qj3KoteZXisAkWVMMxh2Fgn

