{"id":26959169,"url":"https://github.com/git-toni/bitcoinaverage","last_synced_at":"2025-06-14T14:07:56.487Z","repository":{"id":14345687,"uuid":"17055272","full_name":"git-toni/bitcoinaverage","owner":"git-toni","description":null,"archived":false,"fork":false,"pushed_at":"2015-05-07T18:45:13.000Z","size":346,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T04:36:58.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/git-toni.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":"2014-02-21T12:10:53.000Z","updated_at":"2015-05-07T18:45:14.000Z","dependencies_parsed_at":"2022-08-27T09:51:30.503Z","dependency_job_id":null,"html_url":"https://github.com/git-toni/bitcoinaverage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/git-toni/bitcoinaverage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-toni%2Fbitcoinaverage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-toni%2Fbitcoinaverage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-toni%2Fbitcoinaverage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-toni%2Fbitcoinaverage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-toni","download_url":"https://codeload.github.com/git-toni/bitcoinaverage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-toni%2Fbitcoinaverage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259827662,"owners_count":22917713,"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":"2025-04-03T04:37:00.696Z","updated_at":"2025-06-14T14:07:56.441Z","avatar_url":"https://github.com/git-toni.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby wrapper for the BitcoinAverage API\n\n[![Gem Version](https://badge.fury.io/rb/bitcoinaverage.png)](http://badge.fury.io/rb/bitcoinaverage)\n[![Coverage Status](https://coveralls.io/repos/git-toni/bitcoinaverage/badge.png)](https://coveralls.io/r/git-toni/bitcoinaverage)\n[![Build Status](https://travis-ci.org/git-toni/bitcoinaverage.png?branch=master)](https://travis-ci.org/git-toni/bitcoinaverage)\n\n\nBitcoinaverage is an independent 'globally averaged bitcoin price' provider. They provide on one hand a **Global** price,\nwhich is based on the volume and price of BTC in all currencies. And on the other hand they provide a **Market** price, which only takes into account\nthe volume of BTC directly exchangeable using the chosen specific currency.\nFor more information on the methods BitcoinAverage uses to calculate the price, please refer to their website, in\nparticular [this page](https://bitcoinaverage.com/explain.htm).\n\n## Important first note\nThe development of this gem has been *deeply* inspired by Erik Michaels-Ober's great [mtgox](https://github.com/sferik/mtgox) gem ( specially this README ;) ).\n\n## Installation\n    gem install bitcoinaverage\n\n\n## Documentation\nTODO\n\n## Usage\n```ruby\nrequire 'rubygems'\nrequire 'bitcoinaverage'\n\n# Obtain the BitcoinAverage's global price\nBitcoinAverage.global\n\n# Obtain the BitcoinAverage's market price\nBitcoinAverage.market\n\n# Obtain the BitcoinAverage's global price in EUR\nBitcoinAverage.global 'EUR'\n\n# Obtain the BitcoinAverage's market price in GBP\nBitcoinAverage.market 'GBP'\n\n# Obtain the specific fields of BitcoinAverage's global price\nBitcoinAverage.global.last\nBitcoinAverage.global.bid\nBitcoinAverage.global.ask\nBitcoinAverage.global.volume_btc\nBitcoinAverage.global.volume_percent\n```\n\n## Tested Ruby Versions\nThis library aims to support and is [tested against](https://travis-ci.org/git-toni/bitcoinaverage) the following Ruby\nimplementations:\n\n* ruby-1.9.3-p374\n* ruby-2.0.0-p353\n* ruby-2.1.0\n\n## Contributing\nIn the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.\n\nHere are some ways *you* can contribute:\n\n* by using alpha, beta, and prerelease versions\n* by reporting bugs\n* by suggesting new features\n* by writing or editing documentation\n* by writing specifications\n* by writing code (**no patch is too small**: fix typos, add comments, clean up inconsistent whitespace)\n* by refactoring code\n* by closing [issues](http://github.com/Instagram/instagram-ruby-gem/issues)\n* by reviewing patches\n\n## Copyright\nCopyright (c) 2014 Toni Urcola. See [LICENSE](https://github.com/git-toni/bitcoinaverage/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-toni%2Fbitcoinaverage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-toni%2Fbitcoinaverage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-toni%2Fbitcoinaverage/lists"}