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

y_fi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

y_fi

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

YFi

This is a Ruby implementation for fetching stock/fund prices from the Yahoo Finance API with YQL: https://developer.yahoo.com/yql/faq/

Usage

To get a collection of quotes (Enumerable object):

YFi::QuoteCollection.new(['vbtlx', 'vigrx'])

To get an individual quote:

quote = YFi::Quote.find('aapl')
puts quote.price
puts quote.updated_at
puts quote.issuer_name
puts quote.ticker

Installation

gem install y_fi

gem 'y_fi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install y_fi

Set up the logger:

YFi.configure do |config|
  config.logger = ::Logger.new("#{Rails.root}/log/yahoo_finance.log")
end

Contributing

Feel free to create a pull request on a feature branch.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 22 Jun 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

  • 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