{"id":20016636,"url":"https://github.com/fjctp/polygon-fetcher","last_synced_at":"2025-03-02T03:14:20.137Z","repository":{"id":162650032,"uuid":"627080796","full_name":"fjctp/polygon-fetcher","owner":"fjctp","description":"A report generator for stocks using Polygon.io REST APIs","archived":false,"fork":false,"pushed_at":"2023-05-06T17:39:10.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T15:45:26.799Z","etag":null,"topics":["golang","server","stock-analysis"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fjctp.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":"2023-04-12T18:38:43.000Z","updated_at":"2023-04-16T17:33:42.000Z","dependencies_parsed_at":"2024-04-19T10:32:16.273Z","dependency_job_id":null,"html_url":"https://github.com/fjctp/polygon-fetcher","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/fjctp%2Fpolygon-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjctp%2Fpolygon-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjctp%2Fpolygon-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjctp%2Fpolygon-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fjctp","download_url":"https://codeload.github.com/fjctp/polygon-fetcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241451667,"owners_count":19964901,"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":["golang","server","stock-analysis"],"created_at":"2024-11-13T08:12:22.390Z","updated_at":"2025-03-02T03:14:20.120Z","avatar_url":"https://github.com/fjctp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polygon-fetcher\n\nThis program runs a static file server that serves HTML reports for stocks.\n\n## Usage\n\nThe server listens to port `80` and serves HTML reports from `output_dir/html` folder. To request a report for `AAPL`, run the program and go to `localhost/AAPL.html` in a broswer. If the report does not exist, the program will pull data from `polygon.io` using REST APIs and generate a HTML report. The data will be stored in `output_dir/json` in JSON format, while the report will be stored in `output_dir/html` as HTML.\n\n## Prerequisite\n\n* `polygon.io` API key\n* `just` \u003e= 1.8.0\n* `go` \u003e= 1.19.6\n\n## Run\n\n### Build executable\n\nBuild the executable under `build` folder\n\n```\njust build\n```\n\n### Run the executabke\n\nRun the server and set the output folder to `./output`, where the JSON data and html reports will locate in their sub-folders.\n\n```\nexport POLYGON_API_KEY=\"Your API key\"\npolygon-fetcher -output_dir \"output\"\n```\n\nOr run it wil `just`, which set the output folder to `./build/output`\n\n```\necho POLYGON_API_KEY=\"Your API key\" \u003e .env\njust serve\n```\n\n### Use Docker\n\nDefine `POLYGON_API_KEY` in `.env`.\n\n```\npodman run -it --rm -p 3000:80 --env-file .env -v $PWD/output/:/data fjctp/polygon-fetcher:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjctp%2Fpolygon-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffjctp%2Fpolygon-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjctp%2Fpolygon-fetcher/lists"}