Skip to content

ghvst-programmer/ohjupiter

Repository files navigation

oh.jup

website: https://ohjupiter.vercel.app/

oh.jup is a Jupiter bounty submission built around one idea: prediction markets should not only be places where you trade events, they can also act as a macro uncertainty input for the rest of your trading stack.

Instead of building another swap app, this project compiles a single investment thesis into a coordinated Jupiter playbook:

  • Swap V2 for the immediate tranche
  • Recurring for uncertainty-aware DCA
  • Trigger for an OCO protection envelope
  • Lend for parking unused dry powder
  • Tokens, Price, and Prediction as the signal layer

Why this fits the bounty

The non-obvious part is the API composition:

  • Jupiter prediction markets are used as an uncertainty thermostat, not as the end product being traded.
  • Macro uncertainty changes how much capital is swapped now, how much is delayed into DCA, and how much stays productive in lend.
  • The output is not just analytics. It is a cross-product execution manifest with replay commands and payload drafts.

Live APIs used

  • GET /tokens/v2/search
  • GET /price/v3
  • GET /swap/v2/order
  • GET /prediction/v1/events

The app also drafts the next execution layer for:

  • Recurring
  • Trigger
  • Lend

Local development

  1. Install dependencies:
npm install
  1. Add your environment variable:
JUP_API_KEY=your_jupiter_api_key
  1. Run the app:
npm run dev
  1. Open http://localhost:3000

Deploy

This repo is ready for GitHub and Vercel.

  1. Push the repository to GitHub.
  2. Import it into Vercel.
  3. Set JUP_API_KEY in the Vercel project environment variables.
  4. Deploy.

.env.local is ignored and should not be committed.

What the app does

For each thesis, the compiler produces:

  • the resolved Jupiter token and viable alternatives
  • live price and routing data
  • a live macro uncertainty signal from prediction markets
  • a compiled split across:
    • swap now
    • DCA reserve
    • lend reserve
    • OCO exit envelope
  • scenario analysis
  • replayable API commands
  • JSON drafts for Recurring, Trigger, and Lend follow-up execution

Repo guide

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors