/jupiter-arb

Improved fork of the arbitrage bot example of Jupiter Exchange: https://github.com/jup-ag/api-arbs-example

Primary LanguageJavaScript

Arbitrage BOT using Jupiter API

This is not 100% risk-free as transactions may fail but it's a proof of concept to use Jupiter API to do arbitrage on Solana.

Feel free to replace SOL with other assets, it is advisable to open token accounts in advance.

Profitability can be adjusted based on a PROFITABILITY_THRESHOLD, but it's best to account for platform and lp provider fees.

How to use?

  1. Install dependencies
npm install
  1. Create a .env file with your PRIVATE_KEY and ENDPOINT

  2. run the file

npm start
  1. Alternatively, you can run it by naming the assets to arb from the CLI
npm start BTC USDC
  1. Can run it in Docker:
 docker build -t jupiter-arb .