Ystockquote
Fetch stock quote data from Yahoo Finance
Install / Use
/learn @cgoldberg/YstockquoteREADME
ystockquote
Python module - fetch stock quote data from Yahoo Finance
.. image:: https://travis-ci.org/cgoldberg/ystockquote.svg?branch=master :target: https://travis-ci.org/cgoldberg/ystockquote
- Created by: Corey Goldberg (2007,2008,2013, 2016)
- License: GNU LGPLv2+
Dev Home <https://github.com/cgoldberg/ystockquote>_PyPI <https://pypi.python.org/pypi/ystockquote>_
Requirements
Python 2.7 or Python 3.3+
Install
ytockquote can be installed from PyPI <https://pypi.python.org/pypi/ystockquote>_ with pip <http://www.pip-installer.org/>_::
$ pip install ystockquote
You can also clone the development repo to install (requires git <http://git-scm.com/>_)::
$ git clone git://github.com/cgoldberg/ystockquote.git
$ cd ystockquote
$ python setup.py install
To run unit tests::
$ tox
Example Usage
.. code:: python
>>> import ystockquote
>>> print(ystockquote.get_price_book('GOOGL'))
'51.18'
>>> print(ystockquote.get_bid_realtime('GOOGL'))
'904.77'
>>>
.. code:: python
>>> import ystockquote
>>> from pprint import pprint
>>> pprint(ystockquote.get_historical_prices('GOOGL', '2013-01-03', '2013-01-08'))
{'2013-01-03': {'Adj Close': '723.67',
'Close': '723.67',
'High': '731.93',
'Low': '720.72',
'Open': '724.93',
'Volume': '2318200'},
'2013-01-04': {'Adj Close': '737.97',
'Close': '737.97',
'High': '741.47',
'Low': '727.68',
'Open': '729.34',
'Volume': '2763500'},
'2013-01-07': {'Adj Close': '734.75',
'Close': '734.75',
'High': '739.38',
'Low': '730.58',
'Open': '735.45',
'Volume': '1655700'},
'2013-01-08': {'Adj Close': '733.30',
'Close': '733.30',
'High': '736.30',
'Low': '724.43',
'Open': '735.54',
'Volume': '1676100'}}
>>>
Related Skills
claude-opus-4-5-migration
83.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
337.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
49.8k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
