cURL
curl --request GET \ --url https://api.example.com/api/months
{ "success": false, "error": "Database connection failed" }
Retrieves a list of all months that have trading data available
GET /api/months
Show Month Object
curl -X GET https://your-domain.com/api/months \ -H "Cookie: session=your_session_cookie"
{ "success": true, "months": [ { "month": "2024-08", "total_return_with_dividends": 1250.75 }, { "month": "2024-07", "total_return_with_dividends": -320.50 }, { "month": "2024-06", "total_return_with_dividends": 890.25 } ], "data_source": "postgresql" }
{ "success": false, "error": "Authentication required", "redirect_to_login": true }
Was this page helpful?