This repo contains a script to generate CSV files for Dollar-Cost Average (DCA) trades on Jupiter
demo.mp4
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.
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.
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.
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
If you clone the repo you can use the included tasks.
# just run the script
$ deno task run
# or install it
$ deno task install
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