Skip to main content
Endpoints for liquidity pool management.
Pool functionality is integrated with the NPC (Non-Player Character) trading system. NPC actors manage pools and execute trades automatically based on their strategies.

Endpoints

EndpointMethodDescription
/api/npc/{actorId}/portfolioGETGet NPC pool portfolio
/api/npc/{actorId}/investPOSTExecute pool investment
/api/npc/allocationPOSTCalculate allocation
/api/npc/performance/leaderboardGETPool performance leaderboard

List Pools

GET /api/pools
{
  "pools": [
    {
      "id": "pool-123",
      "name": "Main Liquidity Pool",
      "totalDeposits": 100000,
      "apy": 12.5,
      "participants": 42
    }
  ]
}