Skip to content

feat: add order book depth, fx indexer, investor scoring, and announcements endpoints - #665

Merged
TS-mfon merged 2 commits into
StellarState:devfrom
Omoboi-dev:feat/batch-664-663-660-661
Oct 18, 2026
Merged

TS-mfon merged 2 commits into
StellarState:devfrom
Omoboi-dev:feat/batch-664-663-660-661

Conversation

@Omoboi-dev

@Omoboi-dev Omoboi-dev commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

This pull request implements the requested endpoints, route handlers, data contracts, and unit tests across secondary market visualization, oracle FX rates, investor reputation scoring, and issuer announcement feeds:

  1. Order Book Depth Endpoint (Build order book depth API endpoint for secondary market visualisation #664):
    • Added GET /invoices/:id/orderbook (mounted on /api/v1/invoices and /invoices) returning bids and asks grouped by price level with price, cumulative amounts, order counts, and a 15-second cache header.
  2. FX Rate Indexer & Conversion API (Implement FX rate indexer and currency conversion API #663):
    • Implemented createFxRouter mounted at /api/v1/fx and /fx.
    • Exposes GET /fx/rates returning all currency pairs with staleness indicators and GET /fx/rates/:pair returning single-pair rate details with a 60-second cache header.
  3. Investor Scoring & Tier REST API (Implement investor scoring indexer and tier REST API #660):
    • Implemented GET /investors/:wallet/score returning score, tier, and last updated timestamp with 60-second cache headers.
    • Implemented GET /investors/:wallet/score/history returning cursor-paginated score change events with delta.
  4. Issuer Announcement Indexer & Feed API (Add issuer announcement indexer and feed REST API #661):
    • Implemented GET /invoices/:id/announcements returning cursor-paginated announcement summaries per invoice.
    • Implemented GET /invoices/announcements/:announcementId/content returning full content with caching indicators.
  5. Types & Unit Tests:
    • Added TypeScript interfaces in src/types/market.ts.
    • Added comprehensive unit tests in tests/unit/market-features.test.ts.

Closes #660
Closes #661
Closes #663
Closes #664

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Omoboi-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@TS-mfon
TS-mfon merged commit e8903b6 into StellarState:dev Oct 18, 2026
2 of 6 checks 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

2 participants