cURL
curl --request POST \ --url https://api.example.com/api/portfolio/refresh-prices
{ "success": true, "updated_count": 123, "errors": [ {} ] }
Fetch current market prices for all portfolio holdings
POST /api/portfolio/refresh-prices
curl -X POST https://your-domain.com/api/portfolio/refresh-prices \ -H "Cookie: session=your_session_cookie"
{ "success": true, "updated_count": 5, "message": "Successfully updated prices for 5 holdings" }
{ "success": true, "updated_count": 4, "errors": [ { "symbol": "INVALID", "error": "Symbol not found" } ] }
{ "success": false, "error": "Finnhub API key not configured" }
Was this page helpful?