{"id":22002946,"url":"https://github.com/rssnyder/coingecko-cache","last_synced_at":"2025-05-05T15:47:20.822Z","repository":{"id":45121050,"uuid":"361457662","full_name":"rssnyder/coingecko-cache","owner":"rssnyder","description":"process to cache data from coingecko api","archived":false,"fork":false,"pushed_at":"2022-12-04T20:17:35.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T22:11:07.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rssnyder.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}},"created_at":"2021-04-25T14:56:11.000Z","updated_at":"2024-01-19T23:45:41.000Z","dependencies_parsed_at":"2022-09-16T13:44:51.861Z","dependency_job_id":null,"html_url":"https://github.com/rssnyder/coingecko-cache","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fcoingecko-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fcoingecko-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fcoingecko-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fcoingecko-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rssnyder","download_url":"https://codeload.github.com/rssnyder/coingecko-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252525930,"owners_count":21762397,"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-11-29T23:42:07.664Z","updated_at":"2025-05-05T15:47:20.757Z","avatar_url":"https://github.com/rssnyder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coingecko-cache\n\n```text\n+--------------------+                                           \n|discord-stock-ticker|-----\\                                     \n|                    |--\\   ---------\\                           \n+--------------------+   -----\\       ---------\\\n                               --\u003e +-----+      ----\u003e +---------+\n                                   |redis|            |coingecko|\n                               --\u003e +-----+      ----\u003e +---------+\n    +----------------+   -----/       ---------/                 \n    |coingecko-cache |--/   ---------/                           \n    |                |-----/                                     \n    +----------------+                                           \n```\n\na cache system for avoiding coingecko rate limits for crypto prices. uses the `coins/markets` endpoint documented [here](https://www.coingecko.com/en/api).\n\nitems are stored in redis under the keys `\u003ccoin id\u003e#\u003cattribute\u003e`. requires you have a redis server running locally on port `6379`.\n\nstores info on the top 100 coins by market cap.\n\n## build\n\n```shell\nmake build-\u003clinux/osx\u003e\n```\n\n## run\n\n```text\n  -db int\n        redis db to use\n  -expiry int\n        number of seconds to keep entries in the cache (default 60)\n  -frequency int\n        seconds between updates (default 1)\n  -hostname string\n        connection address for redis (default \"localhost:6379\")\n  -pages int\n        number of pages (100 coin each) to pull from (default 1)\n  -password string\n        redis password\n  + any additional args for coins to fetch individually\n```\n\n```shell\nmake run\n```\n\n## install\n\n```shell\nmake install\n```\n\n## references\n\n### Powered by CoinGecko\n\n![image](https://user-images.githubusercontent.com/7338312/147584095-e88e718b-9349-4e95-adae-02514e3d3a9e.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssnyder%2Fcoingecko-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frssnyder%2Fcoingecko-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssnyder%2Fcoingecko-cache/lists"}