You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yfinance_wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yfinance_wrapper

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

YfinanceWrapper

YfinanceWrapper is a Ruby wrapper library for the Python yfinance library, which provides access to Yahoo Finance's API.

This library has the following features:

  • Uses PyCall to make the Python yfinance library accessible from Ruby
  • Simple and intuitive API
  • Compatible with Ruby 3.0 and above

Main features:

  • Stock information retrieval
  • Stock price data retrieval
  • Company information retrieval

This library supports the development of financial data applications and analysis tools by providing easy access to Yahoo Finance's data through Ruby.

Installation

  • Install python3.
  • Install yfinance
pip3 install yfinance

Example

ticker = YfinanceWrapper::Ticker.new('APPL')
ticker.info
# {"quoteType"=>"MUTUALFUND",
#  "symbol"=>"APPL",
#  "language"=>"en-US"
# ...
# }

ticker.history(period: "max", interval: "1d")
# {1980-12-12 00:00:00 -0500=>
# ...
# }

FAQs

Package last updated on 26 Apr 2025

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