Skip to content

Add integration test for price snapshot 24h change field returning zero when no prior snapshot exists #555

Description

@Chucks1093

Summary

When a creator has a price snapshot but no snapshot from 24 hours ago — because they are newly registered — the price_change_24h field should return zero rather than null or an error.

Scope

  • Seed a creator with a current price snapshot but no historical snapshot
  • Call the creator detail endpoint
  • Assert price_change_24h is present and equals zero
  • Assert the field is not null or absent

Acceptance Criteria

  • price_change_24h is zero when no prior snapshot exists
  • Field is present in the response, not null or missing

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

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