Skip to main content
GET
/
1
/
wallet
/
portfolio
Get wallet portfolio
curl --request GET \
  --url https://demo-api.mobula.io/api/1/wallet/portfolio
{
  "data": {
    "total_wallet_balance": 123,
    "wallets": [
      "<string>"
    ],
    "assets": [
      {
        "contracts_balances": [
          {
            "address": "<string>",
            "balance": 123,
            "balanceRaw": "<string>",
            "chainId": "<string>",
            "decimals": 123,
            "tokenType": "2020",
            "security": {
              "buyTax": "<string>",
              "sellTax": "<string>",
              "transferPausable": true,
              "top10Holders": "<string>",
              "isBlacklisted": true,
              "noMintAuthority": true,
              "balanceMutable": true,
              "lowLiquidity": "<string>",
              "burnRate": "<string>",
              "liquidityBurnPercentage": 123,
              "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
      }
    }
  },
  "backfill_status": "processed"
}

Query Parameters

wallet
string

Wallet address

wallets
string

Comma-separated wallet addresses

portfolio
string

Portfolio ID

blockchains
string

Comma-separated blockchain IDs

asset
string

Filter by specific asset

from
string

Start date

to
string

End date

portfolio_settings
string

Portfolio display settings

unlistedAssets
string

Include unlisted assets

period
string

Time period

accuracy
string

Data accuracy level

testnet
string

Include testnet data

minliq
string

Minimum liquidity threshold

filterSpam
string

Filter spam tokens

pnl
string

Include PnL data

Response

200 - application/json

Wallet portfolio response

data
object
required
backfill_status
enum<string>
Available options:
processed,
processing,
pending