Solana DeFi Positions API
Fetch Solana DeFi lending, LP, staking, and yield farming positions with Vybe’s Solana DeFi Positions API. Get USD values, APYs, and protocol exposure.
Most wallet analytics tools start with balances. But balances do not tell the whole story.
A wallet can hold only a small amount of SOL and SPL tokens directly while most of its value is deployed across DeFi. Liquidity provided to Raydium or Meteora, assets lent through Marginfi or Kamino, liquid-staking positions such as mSOL or jitoSOL, and yield-farming exposure do not look like ordinary wallet balances.
If you want to understand a Solana wallet, you need more than the token accounts it holds. You need to see where its capital is deployed.
Vybe’s DeFi Positions endpoint is built for that exact workflow.
The underlying endpoint is:
GET /v4/wallets/{ownerAddress}/defi-positions
It lets developers fetch DeFi positions for a Solana wallet across more than 50 supported protocols. That includes liquidity-pool positions, lending and borrowing exposure, staking, yield farming, and perpetuals across protocols such as Raydium, Meteora, Orca, Marginfi, Kamino, Marinade, Jito, Drift, and more.
Try the live demo: https://solana-defi-positions-api.vybenetwork.com
The companion repo, solana-defi-positions-api, shows how that endpoint becomes a usable portfolio interface. It focuses on wallet search, an overview of positions and protocols, portfolio value (estimated USD, claimable, top protocol), category summaries, protocol grouping, LP and lending rows, staking and yield positions, USD totals, APY badges, and wallet-balance context.
It maps directly to the relevant Vybe pages
-
Wallet token balances: endpoint
-
DeFi positions repo: https://github.com/vybenetwork/solana-defi-positions-api
-
DeFi positions demo: https://solana-defi-positions-api.vybenetwork.com
Why DeFi positions data matters
DeFi position data turns a partial wallet view into a more complete portfolio view.
Instead of asking only “what tokens are in this wallet?”, the better question is: where is this wallet’s capital actually deployed?
That means looking at:
-
liquidity-pool exposure
-
lending and borrowing positions
-
liquid-staking and native-staking exposure
-
yield-farming positions
-
perpetual positions
-
protocol-level USD totals
-
APY, where it is available
-
direct wallet balances alongside deployed capital
That is what makes a DeFi positions API useful. It is not just a list of token accounts. It is a way to understand the assets a wallet has put to work.
The project reinforces that product angle. It is not just a wrapper around one call. It turns position data into a dashboard where users can load a wallet, scan category totals, inspect protocol exposure, and understand where their portfolio sits.
What the API call actually looks like
The wallet portfolio flow starts with Vybe’s GET /v4/wallets/{ownerAddress}/defi-positions endpoint, documented in the DeFi positions endpoint reference.
A basic request looks like this:
curl "https://api.vybenetwork.xyz/v4/wallets/<OWNER_ADDRESS>/defi-positions" \
-H "X-API-Key: YOUR_API_KEY"
That gives the product a clean path: start with a wallet address, load positions, group them by platform or category, and combine them with liquid wallet balances when the interface needs a complete portfolio total.
For the liquid-balance side of that view, use:
curl "https://api.vybenetwork.xyz/v4/wallets/<OWNER_ADDRESS>/token-balance" \
-H "X-API-Key: YOUR_API_KEY"
The two calls answer complementary questions. Token balances show the assets still sitting in the wallet; DeFi positions show the assets that have moved into protocols.
The protocol categories that matter most
The endpoint is useful because DeFi positions are not all the same type of exposure. A portfolio interface should make those differences clear.
-
Liquidity pools show capital provided to AMMs and markets such as Raydium, Meteora, Orca, Lifinity, and Phoenix.
-
Lending and borrowing show assets supplied or borrowed through protocols including Solend, Marginfi, Kamino, and Drift.
-
Liquid staking shows exposure through protocols such as Marinade, Jito, Sanctum, and BlazeStake.
-
Yield positions show capital placed into yield aggregators and optimizers.
-
Perpetuals show derivative exposure on supported platforms such as Drift, Zeta, and Flash.
That categorization matters because a $10,000 SOL balance and a $10,000 LP position behave differently. The portfolio value might be similar, but the risks, liquidity, yield, and user decisions are not.
What the response gives you
The response is built around a wallet’s deployed DeFi exposure.
In a product, that data can become two layers at once:
-
Summary: how much of the wallet is deployed across DeFi categories and protocols
-
Position detail: the individual LP, lending, staking, yield, or perpetual rows behind that summary
This is the key difference between a generic wallet page and a DeFi portfolio product. A balance endpoint tells you what is directly held. A positions endpoint tells you where the portfolio is working.
What this docs page gives you
The center of this article is the DeFi Positions endpoint.
The endpoint gives developers a direct way to fetch lending, LP, staking, and yield exposure without trying to manually interpret every protocol account in a wallet. The guide explains the core problem clearly: assets deposited in protocols disappear from traditional balance views, leaving portfolio trackers incomplete.
That combination is useful in production because the same endpoint can support multiple product views:
-
complete wallet portfolio summaries
-
protocol exposure pages
-
lending and LP dashboards
-
staking and yield views
-
DeFi risk interfaces
-
wallet-research tools
-
advisor or treasury portfolio reviews
The endpoint gives you the position data. The product decides how users explore it.
The interface starts with wallet context
The product starts with the wallet.
A user enters a Solana wallet address and loads positions. From there, the interface should establish the important context quickly: how many positions and protocols are loaded, how much value is deployed, what is claimable, and which protocol and category dominate the portfolio.
The summary row makes that first scan easier. Overview covers positions, protocols, native rows, and dust. Portfolio Value covers estimated USD, claimable rewards, the top protocol, and that protocol’s USD share. Categories covers category count, cache latency, the top category, and that category’s USD share. Protocol sections add the next layer, so a user can move from “how much is deployed?” to “where is it deployed?”
Protocol grouping is the core product surface
The positions table is where the product becomes useful.
Each row should make it easy to understand what the wallet owns, which protocol it belongs to, and how much that position represents. Grouping by platform prevents a long raw list from becoming unreadable. Adding categories gives users a fast way to compare different kinds of exposure.
A user might want to answer any of these questions:
-
Is most of this wallet in liquid tokens or deployed capital?
-
Which protocol has the largest share of the wallet’s value?
-
How much is in lending versus liquidity pools?
-
Which positions are producing yield?
-
Does a wallet have exposure to more than one protocol or pool type?
That is what turns the endpoint into a workflow.
APY adds yield context, not a complete risk score
APY is a useful product signal because it helps users compare income-producing positions. But it should be presented as context, not as a complete explanation of a position.
A high APY does not automatically mean a position is the best or safest place for capital. The user also needs to understand the protocol, assets, liquidity profile, and position type. That is why the best interface makes APY visible while keeping the platform and category immediately adjacent to it.
The demo’s APY badges and USD indicators show one way to make the surface scannable: put the important signals in the table, then let users drill into the specific protocol position that needs attention.
The repo turns the endpoint into a usable workflow
The repo is useful because it turns DeFi position data into an interface.
The implementation shows how to:
-
search a wallet address
-
load LP, lending, staking, and yield positions
-
show overview counts for positions, protocols, native, and dust
-
surface estimated USD, claimable value, top protocol, and top category
-
group positions by protocol and category
-
show USD totals and position rows
-
include wallet token balances alongside DeFi exposure
-
enrich pool and asset symbols when needed
-
display APY where available
-
run the app locally with a Vybe API key
That is the real value of the project. It gives developers a practical starting point for building portfolio trackers, DeFi dashboards, protocol-exposure tools, and wallet research products.
Why this makes a strong example for our users
The endpoint defines the primitive: a wallet’s DeFi positions.
The repo shows what that primitive becomes when it is turned into a product:
-
wallet search at the top
-
overview counts for positions and protocols
-
portfolio totals for estimated USD and claimable rewards
-
top-protocol and top-category highlights
-
protocol sections for readable exposure
-
position tables for detailed review
-
APY and USD indicators
-
liquid wallet balances beside deployed positions
-
symbol enrichment for clearer LP and lending rows
That is what makes this a useful example. It is focused, practical, and directly tied to the DeFi Positions API.
Final takeaway
A good Solana portfolio view is not just a token-balance endpoint.
It is a way to make deployed capital visible.
Vybe’s GET /v4/wallets/{ownerAddress}/defi-positions endpoint gives developers a clean way to fetch LP, lending, staking, yield, and other DeFi exposure for a Solana wallet. The companion repo shows how to turn that data into a practical interface for portfolio tracking and protocol-level analysis.
That is the real value here.
Not just what a wallet holds, but where its capital is deployed.
Further reading
-
Wallet token balances: endpoint
-
DeFi positions repo: https://github.com/vybenetwork/solana-defi-positions-api
-
DeFi positions demo: https://solana-defi-positions-api.vybenetwork.com
Updated about 3 hours ago