Get wallet portfolio
curl --request GET \
--url https://demo-api.mobula.io/api/1/wallet/portfolioimport requests
url = "https://demo-api.mobula.io/api/1/wallet/portfolio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/wallet/portfolio', 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/1/wallet/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-api.mobula.io/api/1/wallet/portfolio"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://demo-api.mobula.io/api/1/wallet/portfolio")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"total_wallet_balance": 123,
"wallets": [
"<string>"
],
"assets": [
{
"contracts_balances": [
{
"address": "<string>",
"balance": 123,
"balanceRaw": "<string>",
"chainId": "<string>",
"decimals": 123,
"security": {
"buyTax": "<string>",
"sellTax": "<string>",
"transferPausable": true,
"top10Holders": "<string>",
"isBlacklisted": true,
"noMintAuthority": true,
"isFreezable": true,
"balanceMutable": true,
"lowLiquidity": "<string>",
"burnRate": "<string>",
"liquidityBurnPercentage": 123,
"transferTax": "<string>",
"isHoneypot": true,
"isNotOpenSource": true,
"renounced": true,
"locked": "<string>",
"isWhitelisted": true,
"isMintable": true,
"modifyableTax": true,
"selfDestruct": true,
"frozen": true
},
"lamports": "<string>",
"tokenAccount": "<string>"
}
],
"cross_chain_balances": {},
"price_change_24h": 123,
"estimated_balance": 123,
"price": 123,
"liquidity": 123,
"token_balance": 123,
"allocation": 123,
"asset": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"decimals": [
"<string>"
],
"contracts": [
"<string>"
],
"blockchains": [
"<string>"
],
"logo": "<string>"
},
"wallets": [
"<string>"
],
"realized_pnl": 123,
"unrealized_pnl": 123,
"price_bought": 123,
"total_invested": 123,
"min_buy_price": 123,
"max_buy_price": 123
}
],
"balances_length": 123,
"win_rate": 123,
"tokens_distribution": {
"10x+": 123,
"4x - 10x": 123,
"2x - 4x": 123,
"10% - 2x": 123,
"-10% - 10%": 123,
"-50% - -10%": 123,
"-100% - -50%": 123
},
"pnl_history": {
"1y": [
[
"<string>"
]
],
"7d": [
[
"<string>"
]
],
"24h": [
[
"<string>"
]
],
"30d": [
[
"<string>"
]
]
},
"total_realized_pnl": 123,
"total_unrealized_pnl": 123,
"total_pnl_history": {
"24h": {
"realized": 123,
"unrealized": 123
},
"7d": {
"realized": 123,
"unrealized": 123
},
"30d": {
"realized": 123,
"unrealized": 123
},
"1y": {
"realized": 123,
"unrealized": 123
}
}
}
}Wallet
Get Crypto Holdings
GET
/
1
/
wallet
/
portfolio
Get wallet portfolio
curl --request GET \
--url https://demo-api.mobula.io/api/1/wallet/portfolioimport requests
url = "https://demo-api.mobula.io/api/1/wallet/portfolio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/wallet/portfolio', 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/1/wallet/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-api.mobula.io/api/1/wallet/portfolio"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://demo-api.mobula.io/api/1/wallet/portfolio")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"total_wallet_balance": 123,
"wallets": [
"<string>"
],
"assets": [
{
"contracts_balances": [
{
"address": "<string>",
"balance": 123,
"balanceRaw": "<string>",
"chainId": "<string>",
"decimals": 123,
"security": {
"buyTax": "<string>",
"sellTax": "<string>",
"transferPausable": true,
"top10Holders": "<string>",
"isBlacklisted": true,
"noMintAuthority": true,
"isFreezable": true,
"balanceMutable": true,
"lowLiquidity": "<string>",
"burnRate": "<string>",
"liquidityBurnPercentage": 123,
"transferTax": "<string>",
"isHoneypot": true,
"isNotOpenSource": true,
"renounced": true,
"locked": "<string>",
"isWhitelisted": true,
"isMintable": true,
"modifyableTax": true,
"selfDestruct": true,
"frozen": true
},
"lamports": "<string>",
"tokenAccount": "<string>"
}
],
"cross_chain_balances": {},
"price_change_24h": 123,
"estimated_balance": 123,
"price": 123,
"liquidity": 123,
"token_balance": 123,
"allocation": 123,
"asset": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"decimals": [
"<string>"
],
"contracts": [
"<string>"
],
"blockchains": [
"<string>"
],
"logo": "<string>"
},
"wallets": [
"<string>"
],
"realized_pnl": 123,
"unrealized_pnl": 123,
"price_bought": 123,
"total_invested": 123,
"min_buy_price": 123,
"max_buy_price": 123
}
],
"balances_length": 123,
"win_rate": 123,
"tokens_distribution": {
"10x+": 123,
"4x - 10x": 123,
"2x - 4x": 123,
"10% - 2x": 123,
"-10% - 10%": 123,
"-50% - -10%": 123,
"-100% - -50%": 123
},
"pnl_history": {
"1y": [
[
"<string>"
]
],
"7d": [
[
"<string>"
]
],
"24h": [
[
"<string>"
]
],
"30d": [
[
"<string>"
]
]
},
"total_realized_pnl": 123,
"total_unrealized_pnl": 123,
"total_pnl_history": {
"24h": {
"realized": 123,
"unrealized": 123
},
"7d": {
"realized": 123,
"unrealized": 123
},
"30d": {
"realized": 123,
"unrealized": 123
},
"1y": {
"realized": 123,
"unrealized": 123
}
}
}
}Query Parameters
Wallet address
Comma-separated wallet addresses
Portfolio ID
Comma-separated blockchain IDs
Filter by specific asset
Start date
End date
Portfolio display settings
Include unlisted assets
Time period
Data accuracy level
Include testnet data
Minimum liquidity threshold
Filter spam tokens
Include PnL data
⌘I