Portfolio: show unrealized P&L (mark-to-market) on open positions, not just realized #675
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#675
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
/portfolio shows realized P&L only. For any position with one-directional flow (pure accumulation, or a full exit into the quote token), realized P&L reads 0 even when the open position has meaningful unrealized gain/loss. A user looking at the page can't tell whether their open positions are currently up or down.
Follow-on to #551 (realized P&L) and #674 (hide test tokens).
Expected
Each open position also shows current mark-to-market value and unrealized P&L, marked with the same hub prices used elsewhere (#551), alongside the existing realized column.
Convention to get right (so it doesn't mislead)
mentioned in issue #674
mentioned in commit
1d760d71bfmentioned in merge request !1178
mentioned in merge request !1179
mentioned in commit
06a40e8511mentioned in commit
9515103569mentioned in commit
226a3b3f07mentioned in issue #686
marked as related to #686
Merged via !1179 (
95151035) ontomain36d64528after resolving conflicts with #674 (same positions table).make verify-issue-675PASS (3/3). Header unrealized uses visible (filtered) rows on/portfolio. Coolify leftover: frontend rebuild. Do not reopen unless P675 is wrong. Post-merge ops: #686.