Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blockchain-info-exchange-rates

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockchain-info-exchange-rates

  • 0.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Money Blockchain.info Exchange Rates

Blockchain.info Ruby Money exchange bank.

This is a direct rip/port of Money Open Exchange Rates. This library experimental and not used in production.

Installation

Gemfile:

gem 'blockchain-info-exchange-rates', require: 'money/bank/blockchain_info_exchange_rates'

Usage

bie = Money::Bank::BlockchainInfoExchangeRates.new
bie.cache = 'path/to/file/cache'

# If the cache is empty:
# Fetch new rates from Blockchain.info and cache
bie.save_rates

# Import rates from cache to Money Object
bie.update_rates

# Rates expire every 15 minutes
bie.ttl_in_seconds = 900

# Default Bank
config.default_bank = bie

License

The MIT License

FAQs

Package last updated on 11 Feb 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc