{"id":37978541,"url":"https://github.com/chronicleprotocol/setzer","last_synced_at":"2026-01-16T18:32:35.624Z","repository":{"id":37096237,"uuid":"455627583","full_name":"chronicleprotocol/setzer","owner":"chronicleprotocol","description":"CLI Tool for sourcing asset price data","archived":false,"fork":false,"pushed_at":"2024-02-19T15:14:12.000Z","size":365,"stargazers_count":1,"open_issues_count":0,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-06-20T12:05:10.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chronicleprotocol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-02-04T16:57:52.000Z","updated_at":"2023-03-23T08:16:20.000Z","dependencies_parsed_at":"2024-06-20T11:15:07.926Z","dependency_job_id":"72cdde13-6ead-45a6-a089-9125189cc690","html_url":"https://github.com/chronicleprotocol/setzer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chronicleprotocol/setzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fsetzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fsetzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fsetzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fsetzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chronicleprotocol","download_url":"https://codeload.github.com/chronicleprotocol/setzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fsetzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":[],"created_at":"2026-01-16T18:32:34.786Z","updated_at":"2026-01-16T18:32:35.607Z","avatar_url":"https://github.com/chronicleprotocol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setzer MCD\n\nQuery USD price feeds\n\n## Usage\n\n```\nUsage: setzer \u003ccommand\u003e [\u003cargs\u003e]\n   or: setzer \u003ccommand\u003e --help\n\nCommands:\n\n   help            Print help about setzer or one of its subcommands\n   pairs           List all supported pairs\n   price           Show price(s) for a given asset or pair\n   sources         Show price sources for a given asset or pair\n   test            Test all price feeds\n```\n\n## Installation\n\nDependencies:\n\n* GNU [bc](https://www.gnu.org/software/bc/)\n* [curl](https://curl.haxx.se/download.html)\n* GNU [datamash](https://www.gnu.org/software/datamash/)\n* GNU `date`\n* [jshon](http://kmkeen.com/jshon/)\n* GNU `timeout`\n* [htmlq](https://github.com/mgdm/htmlq)\n\nInstall via make:\n\n* `make link` -  link setzer into `/usr/local`\n* `make install` -  copy setzer into `/usr/local`\n* `make uninstall` -  remove setzer from `/usr/local`\n\n## Configuration\n\n* `SETZER_CACHE` - Cache directory (default: ~/.setzer)\n* `SETZER_CACHE_EXPIRY` - Cache expiry (default: 60) seconds\n* `SETZER_TIMEOUT` - HTTP request timeout (default: 10) seconds\n\n## wstETH pair requirement\n\nDue to process of pulling details from mainnet for getting price information.\nYou need to set `ETH_RPC_URL` environemnt variable. By default it will point to `http://127.0.0.1:8545`.\n\nExample of usage: \n\n```bash\nexport ETH_RPC_URL=\"https://mainnet.infura.io/v3/fac98e56ea7e49608825dfc726fab703\"\n```\n\n### Fx/Exchangerates API Key\nSince latest changes in Exchangerates API, now it requires API key.\nTo set API Key for this exchange you can use `EXCHANGERATES_API_KEY` env variable. \n\nExample:\n\n```bash\n$ EXCHANGERATES_API_KEY=your_api_key setzer fx krwusd\n```\n\n### E2E tests\nE2E tests for setzer are written in Go language and relies on [Smocker](https://smocker.dev) for API manipulation.\n\n#### How to setup tests environment\nYou have to install Docker on your machine first.\nThen you will have to start [smocker](https://smocker.dev) container.\n\n```bash\n$ docker run -d \\\n  --restart=always \\\n  -p 8080:8080 \\\n  -p 8081:8081 \\\n  --name smocker \\\n  thiht/smocker\n```\n\nNext step will be to build setzer E2E docker container:\n\n```bash\n$ docker build -t setzer -f e2e/Dockerfile .\n```\n\nRun newly created container:\n\n```bash\n$ docker run -i --rm --link smocker setzer\n```\n\nIf you need to write tests or want to continuesly run them while doing something you might use docker interactive mode.\n\n```bash\n$ docker run -it --rm -v $(pwd):/app --link smocker setzer /bin/bash\n```\n\nIt will start docker in interactove mode and you will be able to run E2E tests using command: \n\n```bash\n$ go test -v -parallel 1 -cpu 1 ./...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicleprotocol%2Fsetzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchronicleprotocol%2Fsetzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicleprotocol%2Fsetzer/lists"}