Socket
Book a DemoInstallSign in
Socket

btcrates

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btcrates

0.1.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

BtcRates

Gem Version

Btc Rates makes it easy to get current bitcoin rates from a few popular exchanges.

Installation

Add this line to your application's Gemfile:

gem 'btcrates'

you know the rest ....

Usage

Require the gem

require 'btcrates'

Call a rate like this

  BtcRates.get_rate(:bitfinex)
	=> 232.5

  BtcRates.get_raw(:bitfinex)
  => {"mid"=>"1437.85", "bid"=>"1436.7", "ask"=>"1439.0", "last_price"=>"1439.9", "low"=>"1392.5", "high"=>"1440.0", "volume"=>"9347.69670993", "timestamp"=>"1493328040.633420628"}

Avaliable Options

  :bitfinex, :bitstamp, :ok_coin_us, :ok_coin_cny, :weighted_average

Development

To Do

Setup travis ci to work properly Add more exchanges

Contributing

Please do contribute! Bug reports and pull requests are welcome on GitHub at https://github.com/mmplisskin/btcRates.

License

The gem is available as open source under the terms of the MIT License. We are not responsible for anything--use this gem with care.

FAQs

Package last updated on 27 Apr 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.