{"id":15588595,"url":"https://github.com/aturingmachine/stocks-api","last_synced_at":"2025-03-29T09:28:59.580Z","repository":{"id":100230926,"uuid":"139871261","full_name":"aturingmachine/stocks-api","owner":"aturingmachine","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-06T21:08:11.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T00:35:11.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aturingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-05T15:52:39.000Z","updated_at":"2019-07-14T10:56:49.000Z","dependencies_parsed_at":"2023-06-25T23:47:51.065Z","dependency_job_id":null,"html_url":"https://github.com/aturingmachine/stocks-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aturingmachine%2Fstocks-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aturingmachine%2Fstocks-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aturingmachine%2Fstocks-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aturingmachine%2Fstocks-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aturingmachine","download_url":"https://codeload.github.com/aturingmachine/stocks-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246165699,"owners_count":20734087,"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":[],"created_at":"2024-10-02T22:40:45.755Z","updated_at":"2025-03-29T09:28:59.559Z","avatar_url":"https://github.com/aturingmachine.png","language":"Java","readme":"# Challenge 2 - Stocks API\n\nThis is a REST API version of the last challenge.\n\n## Models\n\nThere are 3 Models in the project, 2 of which are mapped to tables. The third exists for presentation purposes.\n\n-`StockData` which maps to the table `stocks`\n\n-`Company` which maps to the table `companies`\n\n- `AggregateData` which is used to hold compiled info from `companies` and `stocks`\n\n\n## Routes\n\n#### `POST /stocks/load`\nThis route will read the data from the remote URL stored in the `stocks.remote.url` of the `application.properties`\n\nThe `stocks` and `companies` tables will be filled with data from this request.\n\n#### `GET /stocks`\n\nThis will return the full array of stock data with nested company object references.\n\n#### `GET /stocks/{type}/{symbol}/{date}`\n\nThis route will generate data for a given stock symbol. The path variable `type` is used to determine what kind of data \nthe user is trying to collect (`month` or `date`). \n\n\u003e Notes about `date` \n\u003e - In a `month` call the date should be a numeric representation of the \nmonth, either 2 or 1 digit(s) will work i.e. `06`\n\u003e - In a `date` call the date should be formatted as such\ni.e. `2018-06-22`\n\nThe `symbol` path variable is used to identify the company in question\nand should be 4 characters long. i.e. `GOOG`\n\n##### Example\n\n`GET /stocks/date/GOOG/2018-06-22`\n\n##### Response\n\nThe following is an example response:\n\n```json\n{\n    \"highestPrice\": 1130.99,\n    \"lowestPrice\": 1120.01,\n    \"totalVolume\": 724223,\n    \"closePrice\": 1122.57,\n    \"type\": \"date\",\n    \"symbol\": \"GOOG\",\n    \"dateRequested\": \"2018-06-22\"\n}\n```\n\n### Testing \n\nThis project also includes a [set of Postman Tests](https://github.com/aturingmachine/stocks-api/blob/master/stocks-api.postman_collection.json)\nto run against the API running on your localhost! They should be run in order\nfrom bottom to top.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faturingmachine%2Fstocks-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faturingmachine%2Fstocks-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faturingmachine%2Fstocks-api/lists"}