This project provides REST APIs to:
- Fetch and store 5-minute stock price candle data for a stock from an external API into SQLite.
- Calculate and return ADX, +DI, and -DI for a stock based on stored data.
- Stores each candle as a row in the
stock_price_5mintable. - Fetches candle data from an external API using ISIN, time frame, and fromTime.
- Calculates ADX, +DI, -DI for a given stock and time range.
- Java
- Spring Boot (Web, Data JPA)
- SQLite
- Build the project with Maven or Gradle.
- Run the application:
./mvnw spring-boot:runor./gradlew bootRun - Use the provided REST endpoints to interact with the API.
POST /api/stock/fetch-and-store- Fetches and stores candle data.GET /api/stock/adx- Returns ADX, +DI, -DI for a stock.