{
  "x402Version": 2,
  "id": 2240,
  "slug": "2240",
  "resource": "https://defillama.use.x402atlas.com/batch-historical",
  "description": "Batch historical token prices by DefiLlama — prices for many coins at many timestamps in one call (coins is a JSON map).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xCB8025D951e5E45Be7D288B658EEee6f05713006",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "finance",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "coins": "{\"ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7\":[1650000000,1660000000]}",
            "searchWidth": "4h"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "coins": {
                "ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7": {
                  "prices": [
                    {
                      "price": 1,
                      "timestamp": 1650000000
                    }
                  ],
                  "symbol": "USDT"
                }
              }
            },
            "queried_at": "2026-07-01T12:00:00Z"
          },
          "type": "json"
        }
      },
      "schema": {
        "$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"
      },
      "tags": [
        "defi",
        "price",
        "batch",
        "token",
        "defillama",
        "crypto",
        "historical"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "defillama.use.x402atlas.com",
  "lastUpdated": "2026-09-18T07:50:54.657Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-18T07:50:54.507Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "defillama.use.x402atlas.com",
    "manifest_name": "defillama.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}