This is a simple limit order taker example that utilise Jupiter quoting API to execute Jupiter Limit Order.
- Populate these environment variable to
.env
file
RPC_ENDPOINT=<private rpc endpoint>
PRIVATE_KEY=<wallet private key>
- Install dependencies
pnpm install
- Start the bot
pnpm start
- Get all the open orders from onchain, filter and sort the orders according to the price.
- Get quote from Jupiter Swap API and check whether the order is profitable to execute.
- Bundle Jupiter Swap Ix with Limit Order Ix to execute the order.