ワンクリックで
context-build-portfolio-dashboard
Build a portfolio dashboard showing positions, P&L, balances, and claimable winnings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Build a portfolio dashboard showing positions, P&L, balances, and claimable winnings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create, cancel, or manage multiple orders in a single batch
Place and manage prediction market orders on Context Markets
Build an embeddable single-market prediction widget with buy/sell buttons
Build prediction market frontends with the Context React SDK
Scaffold a full prediction market trading UI with market list, orders, and portfolio
Find interesting prediction markets by volume, trend, liquidity, or topic
| name | context-build-portfolio-dashboard |
| description | Build a portfolio dashboard showing positions, P&L, balances, and claimable winnings |
Build a dashboard showing current positions, unrealized P&L, balance breakdown, and claimable winnings from resolved markets.
The user wants to build a portfolio view that shows their positions, performance, and balance.
Positions list — usePortfolio() or usePositions() for current holdings:
const { data } = usePortfolio(address, { kind: "active" })
// data.portfolio contains position rows
Balance breakdown — useBalance(address) for USDC in wallet vs settlement:
const { data: balance } = useBalance()
// balance.usdc.walletBalance, balance.usdc.settlementBalance
P&L stats — usePortfolioStats(address) for aggregate performance metrics.
Current prices — for each position, use useQuotes(marketId) to get current price. Compare to entry price for unrealized P&L.
Claimable winnings — useClaimable(address) to find resolved markets with unclaimed winnings:
const { data: claimable } = useClaimable()
// claimable.markets contains resolved positions to claim
Live updates — use refetchInterval on position and balance hooks:
usePortfolio(address, { kind: "active" }, { refetchInterval: 10000 })
useQuotes with refetchInterval for live P&L.useClaimable() tells you what can be claimed, but there is no React hook in this package that submits claims.usePositions vs usePortfolio — usePositions returns a flat position list, usePortfolio returns the full portfolio summary. Choose based on your UI needs.