Skip to content

feat: liquidity aggregator module with routing, pricing, monitoring, and arbitrage analysis - #63

Merged
akargi merged 10 commits into
Chulilee:mainfrom
uadamu00005-netizen:feat/Issue1
Aug 30, 2026
Merged

feat: liquidity aggregator module with routing, pricing, monitoring, and arbitrage analysis#63
akargi merged 10 commits into
Chulilee:mainfrom
uadamu00005-netizen:feat/Issue1

Conversation

@uadamu00005-netizen

Copy link
Copy Markdown
Contributor

Closes #46

Summary

This PR introduces a new Liquidity Aggregator module to support pool registration, pricing, route analysis, execution simulation, and arbitrage detection across the trading platform. It establishes the core infrastructure needed for liquidity-aware trade routing and market monitoring.

Related Issues

Part of the liquidity and routing feature set for the trading platform.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behaviour)
  • Documentation only
  • Refactor / chore (no functional change)

Changes

  • Added a new LiquidityAggregatorModule and registered it in the app bootstrap
  • Implemented pool registry and liquidity data model for pool tracking
  • Added price oracle, route graph, and pricing services
  • Added multi-route splitting and price impact estimation logic
  • Added monitoring and execution simulation for route analysis
  • Added orchestration service and controller endpoints
  • Added request DTOs and entity models for liquidity state and arbitrage opportunities
  • Added module documentation for overview and architecture

Checklist

  • I have read the CONTRIBUTING guide.
  • npm run lint passes.
  • npx tsc --noEmit passes (no type errors).
  • npm run build succeeds.
  • npm test passes, and I added/updated tests for my change where it
    made sense.
  • Any Stellar/Soroban network access goes through the stellar module
    services (no direct Horizon/RPC calls from feature modules).
  • I did not commit secrets, private keys, or mainnet credentials.

Notes for Reviewers

This is the initial Liquidity Aggregator foundation. The module introduces the core structures and services needed for future route optimization and execution workflows. Review focus should be on the module boundary, naming consistency, and whether the service layering is aligned with the existing Nest architecture.

@akargi
akargi merged commit f5a23fa into Chulilee:main Aug 30, 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.

[Feature]: Multi-Pool Liquidity Aggregator with Route Optimization

2 participants