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

quotes

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quotes

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Quotes

A simple and lightweight wrapper for the Yahoo stock quotes API.

Installation

[sudo] gem install quotes

Usage

quotes = Quotes.get("AAPL", "GOOG", "MSFT")
quotes["AAPL"].ask			# => AAPL ask price
quotes["AAPL"].bid			# => AAPL bid price
quotes["GOOG"].volume		# => GOOG volume
quotes["GOOG"].dayslow 		# => GOOG day's low
quotes["MSFT"].dayshigh 	# => MSFT day's high
quotes["MSFT"].open 		# => MSFT opening price
List of quote qualities
afterhourschangerealtime
annualizedgain
ask
askrealtime
averagedailyvolume
bid
bidrealtime
bookvalue
change
change_percentchange
changefromfiftydaymovingaverage
changefromtwohundreddaymovingaverage
changefromyearhigh
changefromyearlow
changeinpercent
changepercentrealtime
changerealtime
commission
dayshigh
dayslow
daysrange
daysrangerealtime
daysvaluechange
daysvaluechangerealtime
dividendpaydate
dividendshare
dividendyield
earningsshare
ebitda
epsestimatecurrentyear
epsestimatenextquarter
epsestimatenextyear
errorindicationreturnedforsymbolchangedinvalid
exdividenddate
fiftydaymovingaverage
highlimit
holdingsgain
holdingsgainpercent
holdingsgainpercentrealtime
holdingsgainrealtime
holdingsvalue
holdingsvaluerealtime
lasttradedate
lasttradepriceonly
lasttraderealtimewithtime
lasttradetime
lasttradewithtime
lowlimit
marketcapitalization
marketcaprealtime
moreinfo
name
notes
oneyrtargetprice
open
orderbookrealtime
pegratio
peratio
peratiorealtime
percebtchangefromyearhigh
percentchange
percentchangefromfiftydaymovingaverage
percentchangefromtwohundreddaymovingaverage
percentchangefromyearlow
previousclose
pricebook
priceepsestimatecurrentyear
priceepsestimatenextyear
pricepaid
pricesales
sharesowned
shortratio
stockexchange
symbol
symbol
tickertrend
tradedate
twohundreddaymovingaverage
volume
yearhigh
yearlow
yearrange

FAQs

Package last updated on 24 Aug 2011

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