Yahoo Finance API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:


m = yf.Ticker('GOOGL').info
m = yf.Ticker('GOOGL').info
print("Close Price", m['regularMarketPreviousClose']
print("Close Price", m['regularMarketPreviousClose'])
 
# historical data
data = yf.download('FCOM', '2023-10-01', '2023-10-13')
</syntaxhighlight>
</syntaxhighlight>
=Ticker=
=Ticker=
{{Internal|Yahoo Finance API Ticker|Ticker}}
{{Internal|Yahoo Finance API Ticker|Ticker}}

Revision as of 05:32, 14 October 2023

External

Internal

Overview

Installation

pip3 install yfinance

Usage

import yfinance as yf

m = yf.Ticker('GOOGL').info
print("Close Price", m['regularMarketPreviousClose'])

# historical data
data = yf.download('FCOM', '2023-10-01', '2023-10-13')

Ticker

Ticker