{"id":19346713,"url":"https://github.com/colkito/blockchain-rates","last_synced_at":"2026-05-05T10:37:19.086Z","repository":{"id":42881411,"uuid":"228289151","full_name":"colkito/blockchain-rates","owner":"colkito","description":"Blockchain Exchange Rates API wrapper for Node.js - A tiny and easy to use library","archived":false,"fork":false,"pushed_at":"2023-07-18T21:45:25.000Z","size":749,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T00:47:31.127Z","etag":null,"topics":["bitcoin","blockchain","currency","dollar","nodejs","rates","ticker"],"latest_commit_sha":null,"homepage":"https://npmjs.com/blockchain-rates","language":"TypeScript","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/colkito.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":"2019-12-16T02:46:55.000Z","updated_at":"2023-03-07T00:18:53.000Z","dependencies_parsed_at":"2025-01-06T14:26:10.355Z","dependency_job_id":"4e6c7b8e-162c-4f73-aa37-7f0495c60908","html_url":"https://github.com/colkito/blockchain-rates","commit_stats":{"total_commits":63,"total_committers":4,"mean_commits":15.75,"dds":0.5555555555555556,"last_synced_commit":"ee2da5e8bc55bcc2b4839836931a0416acb38ded"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colkito%2Fblockchain-rates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colkito%2Fblockchain-rates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colkito%2Fblockchain-rates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colkito%2Fblockchain-rates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colkito","download_url":"https://codeload.github.com/colkito/blockchain-rates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240457946,"owners_count":19804489,"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":["bitcoin","blockchain","currency","dollar","nodejs","rates","ticker"],"created_at":"2024-11-10T04:11:44.624Z","updated_at":"2026-05-05T10:37:14.051Z","avatar_url":"https://github.com/colkito.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blockchain-rates\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/colkito/blockchain-rates/npm-publish.yml?style=flat-square)\n[![BundlePhobia](https://img.shields.io/bundlephobia/min/blockchain-rates.svg?style=flat-square)](https://bundlephobia.com/result?p=blockchain-rates)\n[![BundlePhobia](https://img.shields.io/bundlephobia/minzip/blockchain-rates.svg?style=flat-square)](https://bundlephobia.com/result?p=blockchain-rates)\n\nA lightweight Node.js wrapper for [Blockchain's](https://blockchain.info/ticker) Exchange Rates API (ticker), now in TypeScript.\n\nZero-dependency, `promise` and `callback` support for easy integration into your project. ✨\n\n## Requirements\n\n- nodejs \u003e= 12.x\n\n## Examples\n\nGetting a rate by `code`:\n\n```js\nimport blockchainRates from 'blockchain-rates';\n\nconst code = 'BRL'; // see list of codes bellow\n\n// Using promise\nblockchainRates\n  .get(code)\n  .then((rate) =\u003e console.log('Promise Rate:', rate))\n  .catch((err) =\u003e console.error('Promise Error:', err));\n```\n\nSuccessful response\n\n```json\n{\n  \"15m\": 33997.0,\n  \"last\": 33997.0,\n  \"buy\": 33997.0,\n  \"sell\": 33997.0,\n  \"symbol\": \"R$\"\n}\n```\n\nGetting `all` the rates:\n\n```js\nimport blockchainRates from 'blockchain-rates';\n\n// Using callback\nblockchainRates.get((err, res) =\u003e {\n  console.error('Callback Error:', err);\n  console.log('Callback Rates:', res);\n});\n```\n\nSuccessful response\n\n```json\n{\n  \"BRL\": {\n    \"15m\": 33997.0,\n    \"last\": 33997.0,\n    \"buy\": 33997.0,\n    \"sell\": 33997.0,\n    \"symbol\": \"R$\"\n  },\n  \"USD\": {\n    \"15m\": 7046.5,\n    \"last\": 7046.5,\n    \"buy\": 7046.5,\n    \"sell\": 7046.5,\n    \"symbol\": \"$\"\n  },\n  {...}\n}\n```\n\nMore examples [here](example/rates-example.js).\n\n## Available Codes (updated: 2023-01-25)\n\n[Follow this link](CODES.md) to see the complete list of codes.\n\n## Related Packages\n\n- [BitPay Rates API](https://npmjs.com/bitpay-rates)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolkito%2Fblockchain-rates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolkito%2Fblockchain-rates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolkito%2Fblockchain-rates/lists"}