Skip to content
Fourohtwo

Historical token price by contract at a Unix timestamp

santyvv-x402.santyvv1993.workers.dev/api/crypto/token-price-historical

Historical token price by contract at a Unix timestamp

BaseAnswering
GEThttps://santyvv-x402.santyvv1993.workers.dev/api/crypto/token-price-historical

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

Example input

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