ToolAssay

Batch historical token prices by DefiLlama — prices for many coins at many times

Batch historical token prices by DefiLlama — prices for many coins at many timestamps in one call (coins is a JSON map).

Answeringour last check, 2026-09-24
1 of 1checks answered this week
651 msmedian answer time
$0.005listed price per call
$0.005price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://defillama.use.x402atlas.com/batch-historical

CategoryMarket data
Provider hostdefillama.use.x402atlas.com
Networkseip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days8 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.005 651 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "coins": "{\"ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7\":[1650000000,1660000000]}",
    "searchWidth": "4h"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "coins": {
              "description": "Required JSON object mapping each {chain}:{address} or coingecko:{id} coin to an array of unix timestamps",
              "maxLength": 8000,
              "minLength": 1,
              "type": "string"
            },
            "searchWidth": {
              "description": "Optional time range to search for each price (e.g. 4h)",
              "maxLength": 200,
              "type": "string"
            }
          },
          "required": [
            "coins"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "additionalProperties": true,
              "description": "Raw DefiLlama batchHistorical payload",
              "properties": {
                "coins": {
                  "additionalProperties": {
                    "properties": {
                      "prices": {
                        "items": {
                          "properties": {
                            "price": {
                              "description": "USD price",
                              "type": "number"
                            },
                            "timestamp": {
                              "description": "Unix timestamp (seconds)",
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "symbol": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "description": "Keyed by {chain}:{address} or coingecko:{id}",
                  "type": "object"
                }
              },
              "type": "object"
            },
            "queried_at": {
              "description": "When this bridge fetched the upstream data",
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "queried_at",
            "data"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON