Documentation Index Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fetch current or historical USD prices for multiple tokens in a single request. Supports batching, preserves input order, and allows historical queries via timestamp or block number.
Returns
List of token prices matching the order of the input. See Price . Show View fields (Price, each element)
Timestamp of the price (if historical).
Block number used for pricing (if applicable).
Arguments
inputs
[GetPriceInput!]!
required
Array of price queries. Response preserves the same order. See GetPriceInput .
Network ID (e.g. 1, 42161).
Optional timestamp for historical pricing.
Optional pool address used for pricing.
Optional block number for historical pricing.
Example
query GetTokenPrices {
getTokenPrices ( inputs : [
{ address : "0xdac17f958d2ee523a2206206994597c13d831ec7" , networkId : 1 },
{ address : "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" , networkId : 1 },
{ address : "So11111111111111111111111111111111111111112" , networkId : 1399811149 }
]) {
address
priceUsd
}
}
Playground