Skip to content

Dollar cost averaging bot with Jupiter TypeScript SDK

License

Notifications You must be signed in to change notification settings

jtomada/jup-dca-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jup DCA Bot

This bot runs a simple dollar cost averaging strategy to buy assets over a period of time. It utilizes Jupiter Aggregator, a swap aggregator on Solana.

This code was made to experiment and learn. It has not been thoroughly tested and is unaudited. Please use at your own risk!

Based on the Jupiter Core Example

Jup DCA Bot Demo

Install

yarn install

Configure

  1. Create an .env file at the project root. See .env-example. Private key can be obtained from Phantom via Settings -> Export Private Key.
  2. Create your own dcaconfig.ts. See dcaconfig-example.ts for a template.

To see example cron expressions, check out crontab.guru. Note: the minimum interval is one minute.

Run

yarn start

Improvements

  • transaction retries. Not great to fail on swaps that may occur once-a-week or biweekly.
  • start and end dates.

Releases

No releases published

Packages

No packages published