Skip to main content
POST
/
2
/
token
/
price
Get current token price (batch)
curl --request POST \
  --url https://demo-api.mobula.io/api/2/token/price \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "chainId": "<string>",
    "blockchain": "<string>",
    "address": "<string>"
  }
]
'
import requests

url = "https://demo-api.mobula.io/api/2/token/price"

payload = [
{
"chainId": "<string>",
"blockchain": "<string>",
"address": "<string>"
}
]
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([{chainId: '<string>', blockchain: '<string>', address: '<string>'}])
};

fetch('https://demo-api.mobula.io/api/2/token/price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://demo-api.mobula.io/api/2/token/price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'chainId' => '<string>',
'blockchain' => '<string>',
'address' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://demo-api.mobula.io/api/2/token/price"

payload := strings.NewReader("[\n {\n \"chainId\": \"<string>\",\n \"blockchain\": \"<string>\",\n \"address\": \"<string>\"\n }\n]")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://demo-api.mobula.io/api/2/token/price")
.header("Content-Type", "application/json")
.body("[\n {\n \"chainId\": \"<string>\",\n \"blockchain\": \"<string>\",\n \"address\": \"<string>\"\n }\n]")
.asString();
require 'uri'
require 'net/http'

url = URI("https://demo-api.mobula.io/api/2/token/price")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"chainId\": \"<string>\",\n \"blockchain\": \"<string>\",\n \"address\": \"<string>\"\n }\n]"

response = http.request(request)
puts response.read_body
{
  "payload": [
    {
      "name": "<string>",
      "symbol": "<string>",
      "logo": "<string>",
      "priceUSD": 123,
      "marketCapUSD": 123,
      "marketCapDilutedUSD": 123,
      "liquidityUSD": 123,
      "liquidityMaxUSD": 123
    }
  ]
}

Request Body

{
  "items": [
    { "address": "So11111111111111111111111111111111111111112", "blockchain": "Solana" },
    { "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "blockchain": "Solana" }
  ]
}
FieldTypeDescription
itemsarrayArray of token objects (max 500)
items[].addressstringToken contract address
items[].blockchainstringOptional blockchain name or ID
Maximum 500 tokens per request. For larger datasets, split into multiple requests.

Response Format

FieldTypeDescription
priceUSDnumber | nullCurrent token price in USD
marketCapUSDnumber | nullMarket cap based on circulating supply
marketCapDilutedUSDnumber | nullFully diluted market cap
liquidityUSDnumber | nullCurrent liquidity in USD
liquidityMaxUSDnumber | nullMaximum liquidity across all pools
namestring | nullToken name
symbolstring | nullToken symbol
logostring | nullToken logo URL

Usage Examples

curl -X POST "https://api.mobula.io/api/2/token/price" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      { "address": "So11111111111111111111111111111111111111112", "blockchain": "Solana" },
      { "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "blockchain": "Solana" }
    ]
  }'

Example Response

{
  "payload": [
    {
      "name": "Wrapped SOL",
      "symbol": "SOL",
      "logo": "https://...",
      "priceUSD": 187.45,
      "marketCapUSD": 91000000000,
      "marketCapDilutedUSD": 110000000000,
      "liquidityUSD": 250000000,
      "liquidityMaxUSD": 300000000
    },
    {
      "name": "USD Coin",
      "symbol": "USDC",
      "logo": "https://...",
      "priceUSD": 1.0,
      "marketCapUSD": 45000000000,
      "marketCapDilutedUSD": 45000000000,
      "liquidityUSD": 500000000,
      "liquidityMaxUSD": 600000000
    }
  ]
}
All market data fields are nullable - tokens without supply data will return null for market cap fields.

Body

application/json
chainId
string
blockchain
string
address
string

Response

200 - application/json

Token price batch response

payload
object · object · null[]
required