Portfolio Intelligence

Premium

Track your Stellar portfolio with multi-account aggregation, P&L tracking, yield monitoring, and risk analysis.

Introduction

Portfolio Intelligence solves the problem of fragmented and opaque Stellar portfolios. Whether you're a power user with multiple accounts, a DAO managing treasury, or a fund tracking positions, Portfolio Intelligence gives you complete visibility into your holdings.

Multi-Account

Aggregate multiple Stellar accounts into one view

P&L Tracking

Track profit and loss with FIFO cost basis

Yield Tracking

Monitor DeFi yields and staking rewards

Target Users

  • Power Users: Track multiple personal accounts in one place
  • DAOs: Manage treasury with team access and snapshots
  • Funds: Professional portfolio tracking with P&L reports
  • DeFi Participants: Monitor Soroban contract positions and yields

Dashboard

The Portfolio dashboard provides a comprehensive overview of your holdings across all linked accounts.

Key Metrics

Total Value
$125,430
2,508,600 XLM
Total P&L
+$12,340
+10.9%
Accounts
5
Linked
Positions
12
Assets

Dashboard Sections

Portfolio Summary

Total value, P&L, account count, and last sync time with refresh button

Top Positions

Your largest holdings by value with asset code, balance, and P&L percentage

Asset Allocation

Visual breakdown of holdings by asset with percentage allocation

Accounts List

All linked accounts with labels, balances, and position counts

Subscription Tiers

Portfolio Intelligence offers three tiers to match your needs. Start free and upgrade as you grow.

FeatureFREEPRO ($10/mo)DAO ($50/mo)
Portfolios15100
Accounts per Portfolio110Unlimited
P&L Tracking-YesYes
Yield Tracking-YesYes
Contract Positions-YesYes
Snapshot Retention7 days90 days365 days
Team Access--Yes
API Access-YesYes
Export (CSV/JSON)-YesYes

Portfolios

A portfolio is a container for grouping Stellar accounts. You might create separate portfolios for personal holdings, trading, or different organizations.

Portfolio Properties

FieldDescription
nameDisplay name for the portfolio
descriptionOptional description or notes
totalValueUsdAggregated USD value of all accounts
totalPnlUsdTotal profit/loss in USD
lastSyncedAtLast data sync timestamp

Account Management

Link Stellar accounts to your portfolio by providing the account ID (public key). Each account is validated against the Stellar network before being added.

Account Properties

FieldDescription
accountIdStellar public key (starts with G)
labelOptional friendly name (e.g., "Trading", "Savings")
xlmBalanceNative XLM balance
totalValueUsdTotal value including all assets
positionCountNumber of asset positions

Read-Only Access

Portfolio Intelligence only reads public blockchain data. Your private keys are never required or stored. You maintain full custody of your assets.

Asset Positions

Asset positions represent your holdings in each asset. Positions are aggregated across all accounts in a portfolio, giving you a unified view of your total exposure.

Position Data

Asset Codee.g., XLM, USDC, yXLM
BalanceTotal quantity held
Current ValueUSD value at current price
Cost BasisAverage acquisition cost (PRO+)
Unrealized P&LProfit/loss if sold now (PRO+)

P&L TrackingPRO+

Track profit and loss across your portfolio with automatic trade import and FIFO cost basis calculation.

P&L Metrics

Unrealized P&L

Profit or loss on positions you still hold, calculated as current value minus cost basis.

Realized P&L

Actual profit or loss from completed trades, using FIFO to match buy and sell orders.

P&L by Time Period

PeriodDescription
24hChange in last 24 hours
7dChange in last 7 days
30dChange in last 30 days
All TimeTotal P&L since tracking began

Trustline Risk

Every non-XLM asset on Stellar requires a trustline to an issuer. Portfolio Intelligence assesses the risk of each trustline based on issuer flags and behavior.

Risk Factors

HIGHAuthorization Required

Issuer can freeze or revoke your assets at any time. Common for regulated securities.

HIGHClawback Enabled

Issuer can claw back assets from your account without permission.

MEDIUMAuthorization Revocable

Issuer can revoke authorization, freezing the asset in your account.

LOWImmutable Issuer

Issuer cannot change asset flags. This is the safest configuration.

Risk Score

Each trustline receives a risk score from 0-100 based on weighted factors:

Risk Score = (
  authRequired * 25 +
  authRevocable * 20 +
  clawbackEnabled * 30 +
  !authImmutable * 15 +
  lowHolderCount * 10
)

Contract PositionsPRO+

Track your positions in Soroban smart contracts, including DeFi protocols, liquidity pools, and staking contracts.

Supported Position Types

STAKE

Tokens staked in validator or protocol staking contracts.

LP

Liquidity provider positions in AMM pools.

LEND

Assets supplied to lending protocols.

BORROW

Assets borrowed from lending protocols (liability).

Yield TrackingPRO+

Monitor yield from various sources including staking rewards, AMM fees, and lending interest.

Yield Sources

TypeDescription
STAKINGValidator staking rewards
AMM_FEESTrading fees from liquidity provision
LENDINGInterest from lending protocols
AIRDROPToken airdrops and distributions
OTHEROther yield sources

Yield Metrics

APY
12.5%
Daily
$42.50
Monthly
$1,275
Total Earned
$8,430

Performance Snapshots

Portfolio Intelligence automatically captures daily snapshots of your portfolio value, enabling historical performance analysis.

Snapshot Data

Total Value (USD & XLM)

Portfolio value at snapshot time

Cumulative P&L

Total profit/loss at that point

Asset Breakdown

Individual asset values and allocations

Retention by Tier

TierRetention
FREE7 days
PRO90 days
DAO365 days

How-to: Create a Portfolio

  1. 1

    Navigate to Portfolio

    Click "Portfolio" in the main navigation

  2. 2

    Click "Create Portfolio"

    Opens the portfolio creation modal

  3. 3

    Enter Portfolio Details

    Provide a name and optional description

  4. 4

    Submit

    Your portfolio is created and ready for accounts

How-to: Add an Account

  1. 1

    Open Your Portfolio

    Select the portfolio you want to add an account to

  2. 2

    Click "Add Account"

    Opens the account addition modal

  3. 3

    Enter Account ID

    Paste the Stellar public key (starts with G)

  4. 4

    Add Label (Optional)

    Give it a friendly name like "Trading" or "Savings"

  5. 5

    Submit

    Account is validated and added to your portfolio

How-to: Sync Portfolio Data

Portfolio data is synced automatically, but you can trigger a manual sync to get the latest balances.

  1. 1

    Open Your Portfolio Dashboard

    Navigate to the portfolio you want to sync

  2. 2

    Click the Sync Button

    Located in the summary section next to "Last synced"

  3. 3

    Wait for Sync

    Data is fetched from Stellar Horizon for all accounts

Cost Basis (FIFO)

Portfolio Intelligence uses First-In-First-Out (FIFO) accounting to calculate cost basis and P&L. This is the most common method for tax reporting.

How FIFO Works

Example: You buy XLM at different prices

Buy 1: 1,000 XLM @ $0.10 = $100 cost basis
Buy 2: 500 XLM @ $0.12 = $60 cost basis
Buy 3: 200 XLM @ $0.15 = $30 cost basis

Total: 1,700 XLM, $190 cost basis

When you sell 1,200 XLM:
- First 1,000 XLM from Buy 1 ($100 cost)
- Next 200 XLM from Buy 2 ($24 cost, 200/500 * $60)
- Total cost basis for sale: $124

Remaining: 500 XLM
- 300 XLM from Buy 2 ($36 cost)
- 200 XLM from Buy 3 ($30 cost)
- Remaining cost basis: $66

Risk Scoring

Each trustline is assigned a risk score from 0-100 based on multiple factors.

Risk Levels

ScoreLevelDescription
0-25LOWMinimal issuer control, safe
26-50MEDIUMSome issuer control, moderate risk
51-75HIGHSignificant issuer control
76-100CRITICALFull issuer control, freeze/clawback enabled

API Reference

Access Portfolio Intelligence programmatically via the REST API.

Portfolios

GET/api/portfolio- List all portfolios
POST/api/portfolio- Create portfolio
GET/api/portfolio/{id}- Get portfolio details
PUT/api/portfolio/{id}- Update portfolio
DELETE/api/portfolio/{id}- Delete portfolio

Accounts

GET/api/portfolio/{id}/accounts- List accounts
POST/api/portfolio/{id}/accounts- Add account

Sync

POST/api/portfolio/{id}/sync- Sync portfolio data from Horizon

Example: Create Portfolio

curl -X POST "https://lumenquery.io/api/portfolio" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "name": "My Trading Portfolio",
    "description": "Active trading accounts"
  }'

Example: Add Account

curl -X POST "https://lumenquery.io/api/portfolio/{id}/accounts" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "accountId": "GABC...XYZ",
    "label": "Main Trading"
  }'

Need Help?

Have questions about Portfolio Intelligence? We're here to help.