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_KEY
your backpack exchange api keyBACKPACK_API_SECRET
your backpack exchange api secretSYMBOL
your trading pair, likeSOL_USDC
, make sure you have enough SOL and enough USDC.LOWER_PRICE
the bottom price of grid, like170
UPPER_PRICE
the top price of grid, like200
PRICE_DECIMAL
the 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_GRIDS
the number of grids, like100
QUANTITY_PER_GRID
= the quantity of each grid like0.07
TELEGRAM_BOT_API_TOKEN
telegram bot token (Optional)TELEGRAM_TARGET_CHAT_ID
chat id (Optional)
Something need to do.
npm install -g pm2
npm install -g typescript
then 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