Parfournir.
Skills/jupiter/Jupiter API integration

Jupiter API integration

Comprehensive guidance for integrating Jupiter APIs (Ultra Swap, Lend, Perps, Trigger, Recurring, Tokens, Price, Portfolio, Prediction Markets, Send, Studio, Lock, Routing).

sdk
by @jupiter
SKILL.md

Jupiter API Integration

Single skill for all Jupiter APIs, optimized for fast routing and deterministic execution.

Base URL: https://api.jup.ag Auth: x-api-key from portal.jup.ag (required for Jupiter REST endpoints)

Use/Do Not Use

Use when:

  • The task requires choosing or calling Jupiter endpoints.
  • The task involves swap, lending, perps, orders, pricing, portfolio, send, studio, lock, or routing.
  • The user needs debugging help for Jupiter API calls.
  • Do not use when:

  • The task is generic Solana setup with no Jupiter API usage.
  • The task is UI-only with no API behavior decisions.
  • Triggers: swap, quote, gasless, best route, lend, borrow, earn, liquidation, perps, leverage, long, short, position, limit order, trigger, price condition, dca, recurring, scheduled swaps, token metadata, token search, verification, shield, price, valuation, price feed, portfolio, positions, holdings, prediction markets, market odds, event market, invite transfer, send, clawback, create token, studio, claim fee, vesting, distribution lock, unlock schedule, dex integration, rfq integration, routing engine

    Developer Quickstart

    ``typescript
    import { Connection, Keypair, VersionedTransaction } from '@solana/web3.js';

    const API_KEY = process.env.JUPITER_API_KEY!; // from portal.jup.ag
    if (!API_KEY) throw new Error('Missing JUPITER_API_KEY');
    const BASE = 'https://api.jup.ag';
    const headers = { 'x-api-key': API_KEY };

    async function jupiterFetch<T>(path: string, init?: RequestInit): Promise<T> {
    const res = await fetch(
    ${BASE}${path}, {
    ...init,
    headers: { ...headers, ...init?.headers },
    });
    if (res.status === 429) throw { code: 'RATE_LIMITED', retryAfter: 10 };
    if (!res.ok) {
    const raw = await res.text();
    let body: any = { message: raw ||
    HTTP_${res.status}` };
    try {
    body = raw ? JSON.parse(raw) : body;

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub

    Runtime Requirements

    Environment variablesAPI_KEYJUPITER_API_KEY

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent