Skip to content

mcintyre94/dca-analyse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupiter DCA Analyse

This repo contains a script to generate CSV files for Dollar-Cost Average (DCA) trades on Jupiter

Demo Video

demo.mp4

Example Output

Example Output

How it works

The script will fetch all your Jupiter DCAs, both closed and open (incomplete). You can select which of these you'd like to download a CSV for.

Choose DCAs

If you select multiple with the same input and output token, you can choose whether to download a CSV for each or a single CSV including the data for all of them.

Group DCAs with same tokens

Prerequisites

You will need to install Deno. See their website for instructions

You also need a Solana mainnet RPC. Note that https://api.mainnet-beta.solana.com will not work. See Solana's RPC page for options with free tiers.

Install locally

You can install the script without downloading the repo, using deno install:

$ deno install --allow-read --allow-env --allow-sys=uid --allow-ffi --allow-net --allow-write https://raw.githubusercontent.com/mcintyre94/dca-analyse/main/src/dca-analyse.ts
Or, clone the repo

If you clone the repo you can use the included tasks.

# just run the script
$ deno task run

# or install it
$ deno task install

Usage

First, set the SOLANA_RPC_URL environment variable:

$ export SOLANA_RPC_URL=https://your-rpc-here

If you don't set this then you'll be prompted for the RPC URL when you run the script.

Then run the script:

$ dca-analyse

You'll be prompted for the wallet address to fetch DCAs for.

You can also pass the address in directly:

$ dca-analyse 7sh3me5291ifasiAMqCxSjnu7pF6PzJoMAGhBCPDxHp4

About

CLI to generate CSVs for Jupiter DCA trades

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published