Portfolio: show unrealized P&L from hub marks (#675) #1179
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/675-portfolio-unrealized-pnl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/portfolioand/trader/:addrnow show current hub mark-to-market and unrealized P&L next to realized, so one-directional accumulation is not stuck at realized0.GET /api/v1/hub-pricescatalog as #560 (DEX pool, including wrap discount vs CEX). Positions JSON stays raw.Closes #675
Test plan
make verify-issue-675(docs + Vitest)/portfolioconnected wallet: open UST1/cUSTC (or UST1/USTR) accumulation shows Mark$…and Unrealized±… UST1while Realized stays0$0)custc, not CEX USTCcost=0/avg=0shows No cost basis/trader/:addrshares the same table + header (not portfolio-only)make verify-issue-551,make verify-issue-560optional)added 7 commits
main06a40e85- Merge origin/main into feat/675-portfolio-unrealized-pnl.Compare with previous version
mentioned in commit
9515103569mentioned in issue #686
mentioned in issue #674
mentioned in issue #675