16trust / 100

Historical Price

by Vextorium in Onchain & crypto

x402 APIFailing, checked 3 h ago

USD price of up to 20 tokens at any past date and time (BTC, ETH, SOL... or chain:contract ids), with the exact timestamp of the data point. For accounting, taxes and backtests. Aggregated by DefiLlama.

POST https://api.vextorium.com/v1/historical-price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/historical-price" \
  -H "content-type: application/json" \
  -d '{"coins":"BTC,ETH,base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","date":"2025-01-01"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fhistorical-price
const res = await pay("https://api.vextorium.com/v1/historical-price", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coins":"BTC,ETH,base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","date":"2025-01-01"}),
});
console.log(await res.json());

Example input

{
  "coins": "BTC,ETH,base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "date": "2025-01-01"
}

Example output

{
  "not_found": [],
  "prices": [
    {
      "confidence": 0.99,
      "data_time": "2024-12-31T23:59+00:00",
      "id": "coingecko:bitcoin",
      "price_usd": 93450,
      "symbol": "BTC"
    },
    {
      "confidence": 0.99,
      "data_time": "2025-01-01T00:00+00:00",
      "id": "coingecko:ethereum",
      "price_usd": 3333.54,
      "symbol": "ETH"
    }
  ],
  "requested_date": "2025-01-01T00:00+00:00",
  "source": "DefiLlama (aggregated price)"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
8 h agoAmount "0.004" is not in atomic token units402135 ms$0.004
12 h agoAmount "0.004" is not in atomic token units40285 ms$0.004
16 h agoAmount "0.004" is not in atomic token units402303 ms$0.004
20 h agoAmount "0.004" is not in atomic token units40280 ms$0.004
24 h agoAmount "0.004" is not in atomic token units40280 ms$0.004
28 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
32 h agoAmount "0.004" is not in atomic token units402105 ms$0.004
36 h agoAmount "0.004" is not in atomic token units40280 ms$0.004
41 h agoAmount "0.004" is not in atomic token units40285 ms$0.004
44 h agoAmount "0.004" is not in atomic token units40279 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40273 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40279 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40283 ms$0.004
3 days agoAmount "0.004" is not in atomic token units40296 ms$0.004