Skip to content
Fourohtwo

x402.glassnode.com/v1/metrics/market/price_usd_close

Price — The closing price of the asset in USD, aggregated from both centralised and decentralised exchanges. Strictly immutable data points are available in the point-in-time variant of this metric. Data by Glassnode.

BaseUnchecked
GEThttps://x402.glassnode.com/v1/metrics/market/price_usd_close

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.glassnode.com/v1/metrics/market/price_usd_close?a=BTC&i=24h");
console.log(await res.json());

Example input

{
  "a": "BTC",
  "i": "24h"
}

More from Glassnode