{"id":23728142,"url":"https://github.com/nbarrientos/cryptowat_exporter","last_synced_at":"2026-01-12T11:36:16.867Z","repository":{"id":51287622,"uuid":"266892423","full_name":"nbarrientos/cryptowat_exporter","owner":"nbarrientos","description":"A prometheus exporter to fetch values from cryptowat.ch written in Go","archived":false,"fork":false,"pushed_at":"2021-05-17T16:53:17.000Z","size":58,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-28T15:19:12.927Z","etag":null,"topics":["cryptocurrency","cryptowat","prometheus"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbarrientos.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}},"created_at":"2020-05-25T22:28:51.000Z","updated_at":"2025-03-19T02:43:03.000Z","dependencies_parsed_at":"2022-09-26T21:20:44.795Z","dependency_job_id":null,"html_url":"https://github.com/nbarrientos/cryptowat_exporter","commit_stats":null,"previous_names":["nbarrientos/prometheus-cryptowat-exporter"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/nbarrientos/cryptowat_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbarrientos%2Fcryptowat_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbarrientos%2Fcryptowat_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbarrientos%2Fcryptowat_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbarrientos%2Fcryptowat_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbarrientos","download_url":"https://codeload.github.com/nbarrientos/cryptowat_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbarrientos%2Fcryptowat_exporter/sbom","scorecard":{"id":676960,"data":{"date":"2025-08-11","repo":{"name":"github.com/nbarrientos/cryptowat_exporter","commit":"d39c5f1cb266d4ab5115b9b16143a9218c02c69c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/nbarrientos/cryptowat_exporter/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating quay.io/prometheus/busybox:latest to quay.io/prometheus/busybox:latest@sha256:dfa54ef35e438b9e71ac5549159074576b6382f95ce1a434088e05fd6b730bc4","Warn: containerImage not pinned by hash: Dockerfile.cross:1: pin your Docker image by updating quay.io/prometheus/busybox to quay.io/prometheus/busybox@sha256:dfa54ef35e438b9e71ac5549159074576b6382f95ce1a434088e05fd6b730bc4","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.1.1 not signed: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/34265531","Warn: release artifact v2.1.0 not signed: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/34265317","Warn: release artifact v2.0.5 not signed: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/27287104","Warn: release artifact v2.0.3 not signed: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/27253428","Warn: release artifact v2.1.1 does not have provenance: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/34265531","Warn: release artifact v2.1.0 does not have provenance: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/34265317","Warn: release artifact v2.0.5 does not have provenance: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/27287104","Warn: release artifact v2.0.3 does not have provenance: https://api.github.com/repos/nbarrientos/cryptowat_exporter/releases/27253428"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T21:50:08.375Z","repository_id":51287622,"created_at":"2025-08-21T21:50:08.375Z","updated_at":"2025-08-21T21:50:08.375Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cryptocurrency","cryptowat","prometheus"],"created_at":"2024-12-31T01:49:21.400Z","updated_at":"2026-01-12T11:36:16.799Z","avatar_url":"https://github.com/nbarrientos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cryptowat_exporter \n\n[![](https://github.com/nbarrientos/cryptowat_exporter/workflows/Build/badge.svg)](https://github.com/nbarrientos/cryptowat_exporter/actions?query=workflow%3ABuild) \n[![](https://github.com/nbarrientos/cryptowat_exporter/workflows/Release/badge.svg)](https://github.com/nbarrientos/cryptowat_exporter/actions?query=workflow%3ARelease)\n[![](https://img.shields.io/docker/pulls/nbarrientos/cryptowat_exporter.svg)](https://hub.docker.com/r/nbarrientos/cryptowat_exporter)\n[![](https://img.shields.io/github/v/release/nbarrientos/cryptowat_exporter)](https://github.com/nbarrientos/cryptowat_exporter/releases)\n![](https://img.shields.io/github/go-mod/go-version/nbarrientos/cryptowat_exporter)\n\nA [Prometheus](https://prometheus.io/) exporter to fetch values from [cryptowat.ch](https://cryptowat.ch) written in Go.\n\n## Installation\n\nBinaries can be downloaded from the Github releases page. A Docker image hosted on Dockerhub is also available.\n\nBuilding yourself is rather easy, just install `golang` and `make` and run:\n\n```\nmake\n```\n\nTo build a Docker image yourself, adjust the Docker architectures in the `Makefile` and run:\n\n```\nmake docker\n```\n\nTo use the pre-built image just pull it:\n\n```\ndocker pull nbarrientos/cryptowat_exporter\n```\n\n## Usage\n\n```\n./cryptowat_exporter\n```\n\nor with Docker (self-built):\n\n```\nsudo docker run -d --name cryptowat_exporter -e \"TZ=Europe/Zurich\" --user yourchoice -p 9745:9745 prom/cryptowat_exporter:master\n```\n\nor pre-built:\n\n```\nsudo docker run -d --name cryptowat_exporter -e \"TZ=Europe/Zurich\" --user yourchoice -p 9745:9745 nbarrientos/cryptowat_exporter\n```\n\nThen visit `http://localhost:9745/metrics`\n\nPlease note that publishing the exposed ports is optional. For instance if you do IPv6 global address allocation at container start time\nyou might not want to pass `-p` at all.\n\n## Configuration\n\nThe exporter takes some command line parameters that allow configuring a few things:\n\n* `--cryptowat.exchanges`: Comma separated list of exchanges to scrape (default: `bitstamp,kraken,coinbase-pro`)\n* `--cryptowat.pairs`: Comma separated list of pairs to scrape (default: `btcusd,ltcusd`)\n* `--cryptowat.cacheseconds`: Number of seconds to cache values for (default: 300)\n* `--web.listen-address`: Address and port to listen on (default: `:9745`)\n\nDocker users can customise the list of exchanges, pairs and cache lifetime using the following environment variables:\n\n* `CRYPTOWAT_EXCHANGES`\n* `CRYPTOWAT_PAIRS`\n* `CRYPTOWAT_CACHESECONDS`\n\nSee the [Dockerfile](https://github.com/nbarrientos/cryptowat_exporter/blob/master/Dockerfile) for more details.\n\n## Generated metrics\n\nAll crypto-related metrics generated by the exporter are prefixed with `crypto_`. At the moment the exporter scrapes the last known value and daily highs, lows and changes (absolute values and percents).\n\nExample:\n\n```\n...\n# HELP crypto_change_24h_ratio The 24h change ratio in a given market\n# TYPE crypto_change_24h_ratio gauge\ncrypto_change_24h_ratio{exchange=\"bitstamp\",pair=\"btcusd\"} 0.0009857005287352\ncrypto_change_24h_ratio{exchange=\"bitstamp\",pair=\"ltcusd\"} -0.011901983663944\ncrypto_change_24h_ratio{exchange=\"kraken\",pair=\"btcusd\"} 0.0007039934596737\ncrypto_change_24h_ratio{exchange=\"kraken\",pair=\"ltcusd\"} -0.0123571928188389\n# HELP crypto_currency The last known trading value in a given market in the currency of the RHS of the pair\n# TYPE crypto_currency gauge\ncrypto_currency{exchange=\"bitstamp\",pair=\"btcusd\"} 8814.6\ncrypto_currency{exchange=\"bitstamp\",pair=\"ltcusd\"} 42.34\ncrypto_currency{exchange=\"kraken\",pair=\"btcusd\"} 8813.1\ncrypto_currency{exchange=\"kraken\",pair=\"ltcusd\"} 42.36\n...\n```\n\n## Prometheus configuration\n\n```\nscrape_configs:\n  - job_name: cryptowat\n    static_configs:\n      - targets: ['localhost:9745']\n```\n\nYou can poll as often as you want but, by default, the exporter only refreshes the cached values every fifteen minutes. This can be changed using `--cryptowat.cacheseconds` but bear in mind that Cryptowat.ch's API does rate limiting.\n\n## Example Grafana visualisations\n\n![One](grafana1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbarrientos%2Fcryptowat_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbarrientos%2Fcryptowat_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbarrientos%2Fcryptowat_exporter/lists"}