Skip to content

jup-ag/limit-order-taker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Limit Order Taker Example

This is a simple limit order taker example that utilise Jupiter quoting API to execute Jupiter Limit Order.

Getting started

  1. Populate these environment variable to .env file
RPC_ENDPOINT=<private rpc endpoint>
PRIVATE_KEY=<wallet private key>
  1. Install dependencies
pnpm install
  1. Start the bot
pnpm start

How it work?

  1. Get all the open orders from onchain, filter and sort the orders according to the price.
  2. Get quote from Jupiter Swap API and check whether the order is profitable to execute.
  3. Bundle Jupiter Swap Ix with Limit Order Ix to execute the order.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages