{"id":22897609,"url":"https://github.com/sahilm8/stock_info_svc","last_synced_at":"2025-07-16T15:37:01.478Z","repository":{"id":253173421,"uuid":"842696492","full_name":"sahilmemon7/stock_info_svc","owner":"sahilmemon7","description":"API to fetch and return stock data. Based on the Alpha Vantage API.","archived":false,"fork":false,"pushed_at":"2025-01-21T16:36:47.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T01:52:23.068Z","etag":null,"topics":["jakarta-validation","java-21","lombok","macos-dns-resolver","maven","reactor-core","spring-boot","spring-dotenv","spring-test","spring-validation","spring-web","spring-webflux"],"latest_commit_sha":null,"homepage":"https://github.com/sahilm8/stock_info_svc","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sahilmemon7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T22:01:35.000Z","updated_at":"2025-01-21T16:36:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"89f870b7-a88d-480e-980d-b79b712d6646","html_url":"https://github.com/sahilmemon7/stock_info_svc","commit_stats":null,"previous_names":["sahilm8/mysql-docker-app","sahilm8/stock_info_svc","sahilmemon7/stock_info_svc"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilmemon7%2Fstock_info_svc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilmemon7%2Fstock_info_svc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilmemon7%2Fstock_info_svc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilmemon7%2Fstock_info_svc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sahilmemon7","download_url":"https://codeload.github.com/sahilmemon7/stock_info_svc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563384,"owners_count":20797446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jakarta-validation","java-21","lombok","macos-dns-resolver","maven","reactor-core","spring-boot","spring-dotenv","spring-test","spring-validation","spring-web","spring-webflux"],"created_at":"2024-12-14T00:18:22.191Z","updated_at":"2025-04-01T00:45:24.399Z","avatar_url":"https://github.com/sahilmemon7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Info API\n\n![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white) ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge\u0026logo=spring\u0026logoColor=white)\n\n![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)\n\n![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)\n\nAPI to fetch and return stock data. Based on the [Alpha Vantage API](https://www.alphavantage.co).\n\n## Stack\n\n- Java 21\n- Maven\n- Spring Boot\n- Spring Web\n- Spring Webflux\n- Reactor Core\n- Spring Validation\n- Jakarta Validation\n- Spring Dotenv\n- Lombok\n- Spring Test\n- MacOS DNS Resolver\n\n## Setup\n\n- Install dependencies:\n\n```\n./mvnw clean install\n```\n\n- Start the application:\n\n```\n./mvnw spring-boot:run\n```\n\n## Endpoints\n\nRequests can be made to perform the following actions:\n\n- Get Stock\n- Get Intraday Time Series (interval: 1min, 5min, 15min, 30min, 60min)\n- Get Daily Time Series\n- Get Weekly Time Series\n- Get Monthly Time Series\n\n### Get Stock\n\n#### Request\n\n```\ncurl --location --request GET 'localhost:8080/api/v2/stock/get-stock' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"symbol\": \"NVDA\"\n}'\n```\n\n#### Response\n\n```\n{\n    \"symbol\": \"NVDA\",\n    \"open\": 136.6900,\n    \"high\": 138.5000,\n    \"low\": 135.4649,\n    \"price\": 137.7100,\n    \"volume\": 201188760,\n    \"latestTradingDay\": \"2025-01-17\",\n    \"previousClose\": 133.5700,\n    \"change\": 4.1400,\n    \"changePercent\": 3.0995\n}\n```\n\n### Get Intraday Time Series\n\n#### Request\n\n```\ncurl --location --request GET 'localhost:8080/api/v2/stock/get-intraday-ts' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"symbol\": \"NVDA\",\n    \"interval\": \"60min\"\n}'\n```\n\n#### Response\n\n```\n{\n    \"timeSeries\": {\n        \"2025-01-14 09:00:00\": {\n            \"open\": 135.8800,\n            \"high\": 136.3800,\n            \"low\": 133.3500,\n            \"close\": 133.5044,\n            \"volume\": 29463739\n        },\n        \"2025-01-14 19:00:00\": {\n            \"open\": 131.3400,\n            \"high\": 131.3900,\n            \"low\": 131.2000,\n            \"close\": 131.2999,\n            \"volume\": 354662\n        },\n        \"2025-01-17 12:00:00\": {\n            \"open\": 137.9800,\n            \"high\": 138.0900,\n            \"low\": 137.6300,\n            \"close\": 137.7600,\n            \"volume\": 13961753\n        },\n        ...\n    }\n}\n```\n\n### Get Daily Time Series\n\n#### Request\n\n```\ncurl --location --request GET 'localhost:8080/api/v2/stock/get-daily-ts' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"symbol\": \"NVDA\"\n}'\n```\n\n#### Response\n\n```\n{\n    \"timeSeries\": {\n        \"2024-09-20\": {\n            \"open\": 117.0600,\n            \"high\": 118.6181,\n            \"low\": 115.3901,\n            \"close\": 116.0000,\n            \"volume\": 382462428\n        },\n        \"2024-12-31\": {\n            \"open\": 138.0300,\n            \"high\": 138.0700,\n            \"low\": 133.8300,\n            \"close\": 134.2900,\n            \"volume\": 155659211\n        },\n        \"2024-12-30\": {\n            \"open\": 134.8300,\n            \"high\": 140.2700,\n            \"low\": 134.0200,\n            \"close\": 137.4900,\n            \"volume\": 167734700\n        },\n        ...\n    }\n}\n```\n\n### Get Weekly Time Series\n\n#### Request\n\n```\ncurl --location --request GET 'localhost:8080/api/v2/stock/get-weekly-ts' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"symbol\": \"NVDA\"\n}'\n```\n\n#### Response\n\n```\n{\n    \"timeSeries\": {\n        \"2020-08-07\": {\n            \"open\": 429.3000,\n            \"high\": 460.1900,\n            \"low\": 428.6100,\n            \"close\": 447.9800,\n            \"adjustedClose\": 11.1646,\n            \"volume\": 39017130,\n            \"dividendAmount\": 0.0000\n        },\n        \"2011-04-15\": {\n            \"open\": 17.6200,\n            \"high\": 18.9400,\n            \"low\": 16.8300,\n            \"close\": 18.7100,\n            \"adjustedClose\": 0.4290,\n            \"volume\": 109024400,\n            \"dividendAmount\": 0.0000\n        },\n        \"2001-07-06\": {\n            \"open\": 89.0800,\n            \"high\": 90.7000,\n            \"low\": 79.1000,\n            \"close\": 80.7000,\n            \"adjustedClose\": 0.3084,\n            \"volume\": 13621800,\n            \"dividendAmount\": 0.0000\n        },\n        ...\n    }\n}\n```\n\n### Get Monthly Time Series\n\n#### Request\n\n```\ncurl --location --request GET 'localhost:8080/api/v2/stock/get-monthly-ts' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"symbol\": \"NVDA\"\n}'\n```\n\n#### Response\n\n```\n{\n    \"timeSeries\": {\n        \"2014-12-31\": {\n            \"open\": 20.8800,\n            \"high\": 21.2500,\n            \"low\": 19.1000,\n            \"close\": 20.0500,\n            \"adjustedClose\": 0.4813,\n            \"volume\": 106485166,\n            \"dividendAmount\": 0.0000\n        },\n        \"2007-06-29\": {\n            \"open\": 35.0300,\n            \"high\": 43.8700,\n            \"low\": 34.4200,\n            \"close\": 41.3100,\n            \"adjustedClose\": 0.6315,\n            \"volume\": 241007871,\n            \"dividendAmount\": 0.0000\n        },\n        \"2016-10-31\": {\n            \"open\": 68.5200,\n            \"high\": 72.9500,\n            \"low\": 63.7000,\n            \"close\": 71.1600,\n            \"adjustedClose\": 1.7503,\n            \"volume\": 163789051,\n            \"dividendAmount\": 0.0000\n        },\n        ...\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilm8%2Fstock_info_svc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsahilm8%2Fstock_info_svc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilm8%2Fstock_info_svc/lists"}