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
}
]
}Market & Token Data
Get Token Price (Batch)
Retrieve real-time DeFi pool-based token prices, market cap, and liquidity for up to 500 tokens in a single request.
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" }
]
}
| Field | Type | Description |
|---|---|---|
items | array | Array of token objects (max 500) |
items[].address | string | Token contract address |
items[].blockchain | string | Optional blockchain name or ID |
Maximum 500 tokens per request. For larger datasets, split into multiple requests.
Response Format
| Field | Type | Description |
|---|---|---|
priceUSD | number | null | Current token price in USD |
marketCapUSD | number | null | Market cap based on circulating supply |
marketCapDilutedUSD | number | null | Fully diluted market cap |
liquidityUSD | number | null | Current liquidity in USD |
liquidityMaxUSD | number | null | Maximum liquidity across all pools |
name | string | null | Token name |
symbol | string | null | Token symbol |
logo | string | null | Token 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.⌘I