1gateway.dev/v1/crypto/perp/basis
Use when an agent compares one coin's perp basis on DEX venues only (Hyperliquid, dYdX v4, GMX v2, Lighter, Paradex; no CEX). Input: coin, optional venues. Output: JSON per venue mark, index/oracle, premium %, annualized funding, OI USD; max-min funding spread; carry pairs ranked by funding spread. Derived statistics, not investment advice; fees and risk ignored. Example: ?coin=BTC
GET
https://1gateway.dev/v1/crypto/perp/basisUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/crypto/perp/basis?coin=BTC&venues=hyperliquid%2Clighter%2Cparadex");
console.log(await res.json());Example input
{
"coin": "BTC",
"venues": "hyperliquid,lighter,paradex"
}