W

Workers · Market

by Workers

GETBase Sepolia

$0.01

per call · USDC on Base Sepolia

Hyperliquid perpetual market data for AI agents — returns mark price, oracle price, funding, open interest, and best bid/ask for any listed perpetual asset.

Endpoint

GET https://hyperliquid-x402.rajdeep-dutta-in.workers.dev/market

16

Calls / 30d

4

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://hyperliquid-x402.rajdeep-dutta-in.workers.dev/market", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://hyperliquid-x402.rajdeep-dutta-in.workers.dev/market?asset=BTC" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "asset": "BTC",
  "best_ask": "50002.0",
  "best_bid": "49998.0",
  "funding": "0.0000125",
  "mark_price": "50000.0",
  "open_interest": "15000.0",
  "oracle_price": "50100.0",
  "timestamp": 1700000000000
}

Payment details

Pay to0x33d3456e7c00a9c6f7aeade9e9d8bb0dd6ab7824
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Workers & similar services