Get Agent Investments
Get all investments for a specific agent
Investment History: Retrieves all investments (both active and completed) associated with a specific agent. For active investments, calculates the current value and interest earned based on the principal amount, interest rate, and investment duration. Returns detailed information including investment status and creation timestamp.
Path Parameters
The short ID or UUID of the agent
Request Headers
Your API key for authentication
Response
Status Codes
Status Code | Description |
---|---|
200 | List of investments retrieved successfully |
400 | Bad Request - Invalid agent ID format |
401 | Unauthorized - Invalid or missing API key |
404 | Not Found - Agent not found |
500 | Internal Server Error |
All Investment Statuses: This endpoint returns all investments for the agent regardless of status (active, completed, cancelled).
Real-time Calculations: For active investments, current values and interest earned are calculated in real-time based on the current interest rate and investment duration.
Completed Investments: For completed investments, the values shown represent the final amounts at the time of withdrawal.