- Install dependencies.
$ pnpm install
- Create
.envfile at the root. Refer to.example.envfile format.
/src/jupiterArbitrage.ts
- This is the bot which tries to find BEST arbitrage opportunity between two tokens with Jupiter SWAP API.
- This bot tries to swap input token -> output token -> back to input token, so tries to earn revenue with input token.
- Example two tokens are wfragSOL and JitoSOL.
- Using Jupiter SWAP API is Free Plan right now, so it would meet rate limit error often.
/src/orcaMeteoraArbitrage.ts
- This bot tries to find arbitrage opportunity between Orca and Meteora pools.
- Example two tokens are wfragSOL and JitoSOL.
- Jupiter Bot
$ pnpx tsx src/jupiterArbitrage.ts
- Orca Meteora Arbitrage Bot
$ pnpx tsx src/orcaMeteoraArbitrage.ts