0.0
No commit activity in last 3 years
No release in over 3 years
A ruby stock price & option chain crawler
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.14.0, ~> 0.14.0
 Project Readme

CurrentPrice

A gem for crawling public endpoints for current stock price & current option chain details

Goals

  • Obtain the 'instantaneous' price of a stock
  • Obtain all available option contracts for a given stock

Installation

Add this line to your application's Gemfile:

gem 'current-price'

And then execute:

$ bundler

Or install it yourself:

$ gem install current-price

Usage

Google

require 'current-price'

client = CurrentPrice::Google.client(:requesting_handle => "my_handle")

client.option_chain("CSCO") #=> {"9-16-2016"=>{:puts=>[{:price=>"0.03", :bid=>"-", :ask=>"0.02", :close=>"0.00", :oi=>"290", :volume=>"-", :strike=>"19.00"}, ..

Yahoo

require 'current-price'

client = CurrentPrice::Yahoo.client(:requesting_handle => "my_handle")

client.quote("CSCO") #=> {:symbol=>"CSCO", :ask=>"30.79", :average_daily_volume=>"23197400", :bid=>"30.60", ..

Contributing

  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Submit a pull request