Skip to content

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.

Notifications You must be signed in to change notification settings

bambi-coder-hub/AlphaVantageProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha Vantage Intraday Summary API

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.


Features

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
  }
]

Setup

1. Add your Alpha Vantage API key

Open appsettings.json and update the AlphaVantage section:

"AlphaVantage": {
  "ApiKey": "YOUR_API_KEY_HERE",
  "BaseUrl": "https://www.alphavantage.co/query"
}

Replace "YOUR_API_KEY_HERE" with a valid API key from: https://www.alphavantage.co/support/#api-key

2. Run the API

From the project directory,

dotnet run

3. Call the endpoint

Use GET /intraday-summary/{symbol} (Example: /intraday-summary/TSLA)

Running the Unit Tests

This project includes unit tests located in AlphaVantageApi.Tests.

To execute all tests:

dotnet test

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages