Pool deposits are managed through the NPC investment system. Users can invest in NPC-managed pools through the following endpoints.
Invest in Pool
POST /api/npc/{actorId}/invest
Content-Type: application/json
Authorization: Bearer <token>
{
"action": "deposit",
"amount": 1000
}
{
"success": true,
"transaction": {
"id": "tx-123",
"type": "deposit",
"amount": 1000,
"shares": 995.5
}
}
Get Portfolio
GET /api/npc/{actorId}/portfolio
{
"portfolio": {
"totalValue": 10250.50,
"positions": [
{
"ticker": "AAPL",
"shares": 100,
"value": 5000,
"pnl": 250.50
}
]
}
}