Skip to main content

Portfolio

/portfolio is a public snapshot of a connected wallet’s CLOB activity across configured networks. Data comes from GET /api/portfolio/:address (optional ?chain_id=). No SIWE is required to read; wallet connection is required to exercise, withdraw, or claim.

Sections

SectionSourceActions
Currently ownednetworks[].holdings (balanceOf > 0)Longs: exercise in window. Shorts: withdraw remaining underlying after expiry
Exercised / withdrawnclosed_holdings / settled_holdingsRead-only history
Open ordersnetworks[].open_ordersClaim a fill (mint option tokens). Withdraw an unfilled order (refund collateral)

Filter by network in the UI (persisted locally). Spot / moneyness uses Moralis when VITE_MORALIS_API_KEY is set; local and some testnets often have no price.

Click an opshun name for its payoff diagram.

Holding status

StatusMeaning
activeLive position; may become exercisable
exercisableInside the exercise window
expiredPast expiry; longs can no longer exercise
withdrawableWriter can withdraw remaining collateral after expiry
exercisedLong was exercised
withdrawnShort collateral withdrawn after expiry
closedNo longer an open position
unknownIndexer could not classify

Order status

StatusMeaning
queued / unfilledResting on the book
filledFilled; claim to receive option tokens
claimableReady to claim
partialPartial fill — claim the fill and/or withdraw the remainder
expiredOrder expired

API

GET /api/portfolio/0xYourAddress
GET /api/portfolio/0xYourAddress?chain_id=84532

Response shape:

{
"address": "0x…",
"networks": [
{
"chain_id": 31337,
"name": "Anvil Local",
"holdings": [],
"open_orders": [],
"closed_holdings": [],
"settled_holdings": [],
"discovery": {
"note": "…",
"candidate_token_count": 0,
"candidate_order_count": 0,
"transfer_rows": 0
}
}
]
}

Each holding / order includes clob, side, balance or amount, status, pair_key (option type, timestamps, strike, premium rate), and token addresses (underlying, quote, premium_token).

Returns 503 when the indexer or RPC is unavailable. Indexer endpoints: Networks & public settings.