Skip to main content
GET
/
2
/
token
/
price-at
Get Token Price Snapshot
curl --request GET \
  --url https://demo-api.mobula.io/api/2/token/price-at
{
  "data": {
    "priceUSD": 123,
    "timestamp": 123,
    "swapTimestamp": 123,
    "poolAddress": "<string>"
  }
}
Batch Support Available: For batch requests (up to 100 tokens), use the POST /2/token/price-at endpoint.

Query details

ParameterTypeDescription
blockchainstringBlockchain name or ID (e.g., “Solana”, “1” for Ethereum)
addressstringToken contract address
timestampnumberRequired. Unix timestamp (seconds) for the point-in-time lookup
Note: Always query using the address, not the name or symbol, to get accurate results.

Response Format

FieldTypeDescription
priceUSDnumberToken price in USD at the closest swap
timestampnumberThe requested timestamp
swapTimestampnumberActual swap timestamp (ms) used for the price
poolAddressstringPool address where the swap was found

Usage Examples

curl -X GET "https://api.mobula.io/api/2/token/price-at?address=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&blockchain=ethereum&timestamp=1700000000"

Example Response

{
  "data": {
    "priceUSD": 2012.66,
    "timestamp": 1700000000,
    "swapTimestamp": 1699999997000,
    "poolAddress": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
  }
}

Query Parameters

blockchain
string
address
string
timestamp
integer
required
Required range: x > 0

Response

200 - application/json

Token price at timestamp response

data
object
required