Skip to content
Fourohtwo

USD price of up to 20 tokens at a specific Unix timestamp (seconds)

x402.santyvv.com/api/crypto/token-price-historical

USD price of up to 20 tokens at a specific Unix timestamp (seconds). Same coverage as the live price endpoint, for point-in-time valuation: cost basis, tax lots, historical portfolio snapshots, or auditing what a treasury was worth on a given day.

BaseAnswering
GEThttps://x402.santyvv.com/api/crypto/token-price-historical

Uptime100% of 1 check 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

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.santyvv.com/api/crypto/token-price-historical?chain=Red+EVM%3A+base%2C+ethereum%2C+arbitrum%2C+optimism%2C+polygon+%28por+defecto%3A+base%29+Ejemplo%3A+base&tokens=Uno+o+varios+contratos+separados+por+coma+%28maximo+20%29+%28obligatorio%29+Ejemplo%3A+0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&timestamp=Segundos+Unix+del+momento+a+valorar+%28obligatorio%29+Ejemplo%3A+1789000000");
console.log(await res.json());

Example input

{
  "chain": "Red EVM: base, ethereum, arbitrum, optimism, polygon (por defecto: base) Ejemplo: base",
  "tokens": "Uno o varios contratos separados por coma (maximo 20) (obligatorio) Ejemplo: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "timestamp": "Segundos Unix del momento a valorar (obligatorio) Ejemplo: 1789000000"
}

More from santyvv-data