Jupiter Arbitrage Trading
| 1 min read
Installation
- Git Clone the repository.
- Install all the dependencies with
yarn.
yarn- Locate or setup your file system wallet file.
- Set up a file named
.env(right next to where the file named .env.sample is located) and put in at least the Solana RPC URL you want to use. The file contents would be something like this:
NODE_ENV=production
RPC_URI=https://api.mainnet-beta.solana.com
FLM_PROGRAM_ID=1oanfPPN8r1i4UbugXHDxWMbWVJ5qLSN5qzNFZkz6Fg- Run
yarn start helpto see all the commands.
yarn start helpExamples
yarn start help simple-jupiter-arbFor example, here's how you would run a trade between USDC and BONK:
First, create common token accounts to avoid setup during trades:
yarn start create-token-accounts -k /path/to/solana-wallet.jsonThen the actual arb command:
yarn start simple-jupiter-arb -k /path/to/solana-wallet.json -m1 DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 -m2 EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v -a 1000000