77trust / 100

Perps Market Structure Invoke

by SolEnrich in Markets & finance

x402 APIPassing, checked 24 min ago

Per-market open interest, utilization, borrow APR, skew, OI caps, and health flags across Jupiter Perps SOL/BTC/ETH markets. Reads on-chain Anchor accounts directly.

POST https://api.solenrich.com/entrypoints/perps-market-structure/invoke

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
347 ms typical, 347 ms slowest 5%
Last check
24 min ago
Next check
in 7 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.solenrich.com/entrypoints/perps-market-structure/invoke" \
  -H "content-type: application/json" \
  -d '{"format":"json"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.solenrich.com%2Fentrypoints%2Fperps-market-structure%2Finvoke
const res = await pay("https://api.solenrich.com/entrypoints/perps-market-structure/invoke", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"json"}),
});
console.log(await res.json());

Example input

{
  "format": "json"
}

Example output

{
  "output": {
    "fetched_at": 1790035808395,
    "markets": [
      {
        "borrow_rate": {
          "annualized_pct": 12.739,
          "hourly_pct": 0.0014542,
          "model": "jump"
        },
        "custody": "7xS2gz2bTp3fwCC7knJvUWTEU9Tycczu6VhJYKgi1wdz",
        "flags": {
          "elevated_borrow_rate": false,
          "extreme_long_skew": false,
          "extreme_short_skew": false,
          "high_utilization": false,
          "near_long_oi_cap": false,
          "near_short_oi_cap": false
        },
        "limits": {
          "max_long_oi_usd": 240000000,
          "max_position_size_usd": 10000000,
          "max_short_oi_usd": 112290000
        },
        "long_headroom_usd": 211720000,
        "mark_price_usd": 118.57,
        "open_interest": {
          "long_pct": 73.997,
          "long_usd": 28280000,
          "net_skew": "long",
          "short_pct": 26.003,
          "short_usd": 9937800,
          "total_usd": 38218000
        },
        "pool_assets": {
          "global_short_sizes_usd": 9937800,
          "guaranteed_usd": 28280000,
          "locked_tokens": 348800,
          "owned_tokens": 3979500
        },
        "symbol": "SOL",
        "utilization_pct": 8.7648
      }
    ],
    "overall_health": "HEALTHY",
    "pool": "5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq",
    "summary_notes": [],
    "totals": {
      "long_oi_usd": 43502000,
      "net_skew": "long",
      "short_oi_usd": 22061000,
      "total_oi_usd": 65563000
    }
  },
  "run_id": "uuid",
  "status": "succeeded"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
24 min agoPassed402489 ms$0.012
4 h agoPassed402347 ms$0.012
9 h agoPassed402179 ms$0.012