A self-hosted C# .NET Web API that consumes the Alpha Vantage intraday stock price API, processes the data, and exposes a new endpoint that returns daily aggregated statistics for the last month.
This API:
- Calls the Alpha Vantage intraday (15-minute interval) endpoint.
- Retrieves the last month of intraday candles.
- Groups candles by day.
- Computes:
- Average low price,
- Average high price,
- Total daily volume.
- Returns results in this format:
[
{
"day": "2025-11-14",
"lowAverage": 503.82,
"highAverage": 507.28,
"volume": 32677352
}
]Open appsettings.json and update the AlphaVantage section:
Replace "YOUR_API_KEY_HERE" with a valid API key from: https://www.alphavantage.co/support/#api-key
From the project directory,
dotnet runUse GET /intraday-summary/{symbol} (Example: /intraday-summary/TSLA)
This project includes unit tests located in AlphaVantageApi.Tests.
To execute all tests:
dotnet test