{"id":26882798,"url":"https://github.com/nfaltir/stock-ticker-api","last_synced_at":"2026-04-13T21:32:34.994Z","repository":{"id":129999587,"uuid":"414916713","full_name":"nfaltir/stock-ticker-api","owner":"nfaltir","description":"🍊 A simple python api web application that uses the FastApi Framework. This application allows user to fetch stock tickers from the SP500 index.","archived":false,"fork":false,"pushed_at":"2021-12-31T05:16:49.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T02:55:27.919Z","etag":null,"topics":["api","fastapi","finance","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nfaltir.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":"2021-10-08T09:02:30.000Z","updated_at":"2022-01-27T07:05:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"7409de2b-d9dd-4a2a-b621-f1cfa2075e92","html_url":"https://github.com/nfaltir/stock-ticker-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nfaltir/stock-ticker-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaltir%2Fstock-ticker-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaltir%2Fstock-ticker-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaltir%2Fstock-ticker-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaltir%2Fstock-ticker-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfaltir","download_url":"https://codeload.github.com/nfaltir/stock-ticker-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaltir%2Fstock-ticker-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","fastapi","finance","python"],"created_at":"2025-03-31T16:55:30.141Z","updated_at":"2026-04-13T21:32:34.926Z","avatar_url":"https://github.com/nfaltir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python FastAPI App \n\nversion: 1.2.1.0\n\u003ch3\u003eOverview\u003c/h3\u003e\n\u003ch4\u003e\nThis is a small python application that uses the \u003ca href=\"https://fastapi.tiangolo.com/\"\u003eFastapi Framework\u003c/a\u003e. This app creates api endpoints\u003cbr\u003e \nthat users can use to fetch stock tickers from the SP500, you can filter tickers by sector.\n\u003c/h4\u003e\n\n\u003cbr\u003e\n\n## Install Python Modules setup\n\n\u003ccode\u003epip3 install -r requirements.txt\u003c/code\u003e\u003cbr\u003e\n\n\u003cbr\u003e\n\n## Run App locally\n\n\u003ccode\u003euvicorn:api:app --reload\u003c/code\u003e\u003cbr\u003e\n\u003cbr\u003e\u003cstrong\u003eBase URL: \u003c/strong\u003e  \u003cu\u003elocalhost:8000/\u003c/u\u003e\u003cbr\u003e\n\u003cbr\u003e \u003ci\u003eBy default, local server will run on port:8000, if this port is not open, server will run on a different port\u003cbr\u003e\ncheck code output for specified port.\n\u003c/i\u003e\n\n\u003cbr\u003e\n \n API Endpoints \n----------------------\n\u003ctable style=\"background-color: #38A3A5\", \"color: #fff\"\u003e\n  \u003ctr\u003e\n    \u003cth\u003eEndpoint\u003c/th\u003e\n    \u003cth\u003eData\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e{baseurl}/\u003c/td\u003e\n    \u003ctd\u003eIndex Page\u003c/td\u003e\n  \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003e{baseurl}/docs\u003c/td\u003e\n    \u003ctd\u003eFastapi Docs\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e{baseurl}/get-tickers/sp500\u003c/td\u003e\n    \u003ctd\u003eAll SP 500 Tickers\u003c/td\u003e  \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e{baseurl}/sectors\u003c/td\u003e\n    \u003ctd\u003eAll sector names in SP500\u003c/td\u003e \n  \u003c/tr\u003e\n   \u003ctr\u003e\n    \u003ctd\u003e{baseurl}/get-tickers{sector_id}\u003c/td\u003e\n    \u003ctd\u003eALL stock tickers in target sector\u003c/td\u003e\n  \u003c/tr\u003e\n  \n\u003c/table\u003e\n\n\u003cbr\u003e\n\u003ctable style=\"background-color: #38A3A5\", \"color: #fff\"\u003e\n    \u003cth\u003eSector Id(s)\u003c/th\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                financials\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                consumer-cyclical\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                real-estate\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                utilities\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                basic-materials\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                communication-services\n                \u003c/td\u003e\n            \u003c/tr\u003e\n            \u003ctr\u003e\n                \u003ctd\u003e\n                healthcare\n                \u003c/td\u003e\n            \u003c/tr\u003e\n             \u003ctr\u003e\n                \u003ctd\u003e\n                technology\n                \u003c/td\u003e\n            \u003c/tr\u003e\n             \u003ctr\u003e\n                \u003ctd\u003e\n                consumer-defensive\n                \u003c/td\u003e\n            \u003c/tr\u003e\n             \u003ctr\u003e\n                \u003ctd\u003e\n                financial-services\n                \u003c/td\u003e\n            \u003c/tr\u003e\n             \u003ctr\u003e\n                \u003ctd\u003e\n                industrials\n                \u003c/td\u003e\n            \u003c/tr\u003e\n\u003c/table\u003e\n\u003cbr\u003e\n\n\nExample: Usage\n--------------\n\u003cbr\u003e\n\nobjective: After running app locally, Get all stock tickers from Engergy sector in Sp500 index.\n\n\u003ccode\u003elocalhost:8000/get-tickers/energy\u003c/code\u003e\n\u003cbr\u003e\n\n\n\u003cbr\u003e\u003ci\u003eOutput Figure\u003c/i\u003e\n\u003cimg src=\"static/ex-energy.png\"\n     alt=\"example-energy\"\n     style=\"float: left; margin-right: 10px; margin-bottom: 50px;\" /\u003e\n\n\n\n\nDeploy to Heroku\n--------------\n1. Create a requirements file that lists all required modules\u003cbr\u003e inside project folder run this command: `pip3 freeze \u003e requirements.txt`\n2. Remember to specify which python version you are using by creating a runtime.txt file `touch runtime.txt`\nHeroku will need this file.\u003cbr\u003e \u003ci\u003efile is both case and space sensitive, use this format: `python-3.9.7`\u003c/i\u003e\n3. Create a Procfile \u003cbr\u003e `touch Procfile` \u003cbr\u003e type the following:  `web: uvicorn api:app --host=0.0.0.0 --port=${PORT:-5000}`\n\n\u003cbr\u003e\n\u003ccenter\u003e\n\u003cbutton style=\"font-size: 30px; margin-top:50px; border-radius:5px;\"\u003e\n\u003ccenter\u003e\n  \u003ca style=\"text-decoration: none; color: steelblue; font-size: 30px;\" href=\"https://stock-tickers-api.herokuapp.com/\"\u003eLive Demo!!\u003c/a\u003e\n\u003c/center\u003e\n\u003c/button\u003e\n\u003c/center\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfaltir%2Fstock-ticker-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfaltir%2Fstock-ticker-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfaltir%2Fstock-ticker-api/lists"}