Skip to content

Implement Holdings Management (Add/Update/Remove Assets) #31

@grantfox-oss

Description

@grantfox-oss

Description:
Implement features to add, update, and remove holdings (assets) from portfolios. Include validation for asset symbols, quantities, and cost basis.

Acceptance Criteria:

  • Add holding to portfolio (symbol, quantity, cost_basis, chain)
  • Update holding (quantity, cost basis rebalancing)
  • Remove holding from portfolio
  • Validate asset symbol format (3-10 chars)
  • Support multiple chains (Ethereum, Polygon, Binance, Solana)
  • Update portfolio value calculations on holding change
  • Track cost basis for tax calculations
  • Prevent duplicate holdings (same symbol + chain)

Definition of Done:

  • Holdings can be added/updated/removed
  • Portfolio metrics auto-update
  • Validation working correctly
  • Unit tests > 85% coverage

Test Requirements:

  • Unit tests for holding operations
  • Integration tests with portfolio updates
  • Tax basis calculation tests

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions