New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crypto_ticker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto_ticker

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CryptoTicker

Collection of public data API urls for various online crypto-currency exchanges, e.g. MtGox, BTC-e, etc.

I tried to follow the UNIX philosophy of "write programs which do one thing and do it well", so this module doesn't include a user-agent module. It only provides public data API URL's in one convenient location, and optionally, parses the data returned from those URLs. You'll have to use this in conjunction with 'mechanize' or 'net/http' or some other such module to actually do anything (see example).

Installation

gem install crypto_ticker

Usage

Example

require 'crypto_ticker'
require 'mechanize'
require 'pp'

agent = Mechanize.new

# get MtGox BTC/USD ticker URL:
url  = CryptoTicker::MtGox.ticker('BTC/USD')
json = agent.get( url ).body 

mtgox_data_hash = CryptoTicker::MtGox.info( json )
pp mtgox_data_hash

Contributing

  1. Fork it (Github repo: homepage)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Released under the MIT License. See the LICENSE file for further details.

FAQs

Package last updated on 21 Apr 2013

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