Skip to content

implement xlm/usd price conversion service#451

Merged
BigBen-7 merged 1 commit into
Lead-Studios:devfrom
A6dulmalik:feat/xlmPriceConversion
Feb 23, 2026
Merged

implement xlm/usd price conversion service#451
BigBen-7 merged 1 commit into
Lead-Studios:devfrom
A6dulmalik:feat/xlmPriceConversion

Conversation

@A6dulmalik
Copy link
Copy Markdown
Contributor

@A6dulmalik A6dulmalik commented Feb 23, 2026

  • Created src/stellar/price.service.ts with getXLMUSDRate() and convertUSDToXLM() methods
  • Created src/stellar/stellar.module.ts to export PriceService
  • Added totalAmountXLM column to TicketPurchase entity
  • Integrated PriceService into TicketPurchaseService to populate XLM amount on order creation
  • Added environment configuration for price feed source (CoinGecko or custom API)
  • Implemented 60-second caching using @nestjs/cache-manager
  • Added comprehensive unit tests covering cache hit/miss, API integration, and error handling

closes #427

@BigBen-7 BigBen-7 merged commit e056b33 into Lead-Studios:dev Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants