{"id":20737679,"url":"https://github.com/0xdaksh/crypto-price","last_synced_at":"2025-04-24T01:42:47.979Z","repository":{"id":143883853,"uuid":"94568458","full_name":"0xDaksh/crypto-price","owner":"0xDaksh","description":"A JavaScript Module that allows you to get Crypto Currency price to Local Currency.","archived":false,"fork":false,"pushed_at":"2018-04-20T06:42:12.000Z","size":7,"stargazers_count":10,"open_issues_count":4,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T05:41:17.295Z","etag":null,"topics":["btc","crypto","currency","eth","ltc","module","nodejs","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/crypto-price","language":"JavaScript","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/0xDaksh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-06-16T17:50:22.000Z","updated_at":"2022-11-12T04:22:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c803148-968e-43f2-84ba-a300d505701c","html_url":"https://github.com/0xDaksh/crypto-price","commit_stats":null,"previous_names":["dakshmiglani/crypto-price"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xDaksh%2Fcrypto-price","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xDaksh%2Fcrypto-price/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xDaksh%2Fcrypto-price/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xDaksh%2Fcrypto-price/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xDaksh","download_url":"https://codeload.github.com/0xDaksh/crypto-price/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250545736,"owners_count":21448247,"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":["btc","crypto","currency","eth","ltc","module","nodejs","npm"],"created_at":"2024-11-17T06:15:19.450Z","updated_at":"2025-04-24T01:42:47.955Z","avatar_url":"https://github.com/0xDaksh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto-Price\n\nCrypto Price is a Node.js Module that provides an Easy API which allows users to easily get crypto currency price in their Local / Base Currency and returns a Promise that gives you the price.\n\n## Supported Crypto Currencies\n\n- Ethereum (ETH)\n- Bitcoin (BTC)\n- Litecoin (LTC)\n- Monero (XMR)\n- Ripple (XRP)\n- ZCash (ZEC)\n- Many More ([Here's a list of them.](https://www.cryptonator.com/api/currencies)) \n\n## API (with Example)\n\n### getCryptoPrice\n\nThe getCryptoPrice allows you to get the price of crypto currency from your base currency.\n\n```javascript\n\nlet price = require('crypto-price')\nprice.getCryptoPrice(base, crypto).then(obj =\u003e { // Base for ex - USD, Crypto for ex - ETH \n\tconsole.log(obj.price)\n}).catch(err =\u003e {\n\tconsole.log(err)\n})\n\n```\n\n### getBasePrice\n\nThe getBasePrice allows you to get the price of base currency from your crypto currency.\n\n```javascript\n\nlet price = require('crypto-price')\nprice.getBasePrice(base, crypto).then(obj =\u003e { // Base for ex - USD, Crypto for ex - ETH \n\tconsole.log(obj.price)\n}).catch(err =\u003e {\n\tconsole.log(err)\n})\n\n```\n\n## License\nCopyright [Daksh Miglani](https://dak.sh), Licensed Under MIT 2017.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdaksh%2Fcrypto-price","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xdaksh%2Fcrypto-price","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdaksh%2Fcrypto-price/lists"}