Vault Data API

The PLX API exposes real-time vault state, oracle composites, rebalance events, and reward distributions. All endpoints return JSON; signed actions (deposit/mint/burn/withdraw) require a wallet signature. Use REST for snapshots and WebSockets for streams.

Base URLs

  • REST: https://api.plx.fi/v1

  • WS: wss://stream.plx.fi

  • GraphQL: https://api.plx.fi/graphql

Auth

  • Header: Authorization: Bearer <API_KEY>

  • Signed actions include an ed25519 wallet signature in payload (signature) and the x-plx-ts timestamp header.

Rate limits

  • Default: 500 req/min/IP (burst 100)

  • WS: up to 10 msgs/sec (free tier)

Quick test (no auth needed)

curl -s https://api.plx.fi/v1/health
{"status":"ok","network":"solana-mainnet","ts":1735698123}

Minimal TypeScript client (fetch)

const BASE = "https://api.plx.fi/v1";
const headers = (key?: string) => ({
  "Content-Type": "application/json",
  ...(key ? { Authorization: `Bearer ${key}` } : {}),
});

export async function api(path: string, key?: string, init?: RequestInit) {
  const res = await fetch(`${BASE}${path}`, {headers: headers(key), ...init});
  if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
  return res.json();
}

Query live vaults (e.g., SOL2X, SOL5X, PUMP2X, PUMP5X, CHILLGUY2X) and global stats.

Endpoints

  • GET /vaults — list vaults

  • GET /vaults/{symbol} — detail (e.g., /vaults/SOL5X)

  • GET /vaults/stats/global — aggregate metrics

curl

TypeScript

Last updated