
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Bitcoinaverage is an independent 'globally averaged bitcoin price' provider. They provide on one hand a Global price, which 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 the volume of BTC directly exchangeable using the chosen specific currency. For more information on the methods BitcoinAverage uses to calculate the price, please refer to their website, in particular this page.
The development of this gem has been deeply inspired by Erik Michaels-Ober's great mtgox gem ( specially this README ;) ).
gem install bitcoinaverage
TODO
require 'rubygems'
require 'bitcoinaverage'
# Obtain the BitcoinAverage's global price
BitcoinAverage.global
# Obtain the BitcoinAverage's market price
BitcoinAverage.market
# Obtain the BitcoinAverage's global price in EUR
BitcoinAverage.global 'EUR'
# Obtain the BitcoinAverage's market price in GBP
BitcoinAverage.market 'GBP'
# Obtain the specific fields of BitcoinAverage's global price
BitcoinAverage.global.last
BitcoinAverage.global.bid
BitcoinAverage.global.ask
BitcoinAverage.global.volume_btc
BitcoinAverage.global.volume_percent
This library aims to support and is tested against the following Ruby implementations:
In the spirit of free software, everyone is encouraged to help improve this project.
Here are some ways you can contribute:
Copyright (c) 2014 Toni Urcola. See LICENSE for details.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.