Wolfram Computation Meets Knowledge

Wolfram Language & System Documentation Center Wolfram Language Home Page »

FinancialData

FinancialData["name"]

gives the last known price or value for the financial entity specified by "name".

FinancialData["name",start]

gives a list of dates and daily closing values for "name" from start until the current date.

FinancialData["name",{start,end}]

gives a list of dates and daily closing values for dates from start to end.

FinancialData["name",{start,end,period}]

gives a list of dates and prices for the specified periods lying between start and end.

FinancialData["name","prop"]

gives the value of the specified property for the financial entity "name".

FinancialData["name","prop",{start,end,…}]

gives a list of dates and values of a property for a sequence of dates or periods.

Details and Options

Examples

open allclose all

Basic Examples  (8)

Find the latest price for GE stock:

Get results consistent with earlier versions of FinancialData using the "Legacy" method:

Find the latest prices for multiple companies:

Find the latest market cap for GE:

Plot the stock price for GE since January 1, 2000:

Plot the trading volume for GE in the first quarter of 2000:

Find a list of NYSE stocks whose ticker symbols begin with UN:

Find the current exchange rate between euros and US dollars:

Find the price of gold in US dollars:

Scope  (51)

Names & Identifiers  (17)

Specifying Exchanges  (3)

Find the stock price for GE:

Specify the exchange explicitly:

Find the stock price for Apple:

Specify the exchange explicitly:

For non-US stocks, the exchange must be specified:

Getting Names & Identifiers  (3)

Find the name corresponding to a ticker symbol:

Find the name for a ticker symbol on a non-US exchange:

Find the exchange on which a stock is traded:

Looking Up Names  (2)

Look up all instruments whose symbols begin with AB:

Find the names corresponding to these symbols:

Use arbitrary string patterns for lookups:

Classes and Sectors  (4)

Give a list of all general types of classes supported:

Find the total number of exchanges supported:

Find a list of companies in the home improvement retail segment:

Find the industry sector for Microsoft:

Other Financial Instruments  (5)

Indices have symbols that begin with ^:

Mutual funds are typically specified by five-letter ticker symbols:

Find prices for different share classes:

Exchange rates have symbols separated by /:

Exchange rates can also be requested using lists:

The price of gold in US dollars:

The price of silver:

Prices  (9)

Find the current price for a stock:

Price with time stamp:

Most recent closing price:

Low and high for the current or most recent trading day:

200-day average price:

Change from 52-week low:

Fractional change from 52-week low:

Daily cumulative fractional change since January 1, 2005:

Value of the cumulative fractional change from January 1, 2005 to today:

Dates & Time Series  (6)

Get a current stock price:

Get prices for a range of dates:

Use the string forms of dates:

All gives data for all available dates:

Give all available data starting from a particular date:

{y} is equivalent to {y,1,1}:

Give the monthly highs for a stock price over a range of dates:

Give yearly highs:

Give a price for a particular day:

Give the trading volume for a particular day:

Plots & Charts  (3)

Basic plot of a stock:

Join points and fill:

Log plot:

Plot two stock prices together:

Plot the channel between high and low daily prices:

Fundamentals  (6)

Find the market cap for GE:

Number of shares available for trade in the open market:

Book value per share:

Earnings per share for the most recent four quarters:

Find the most recent dividend for GE:

Plot all available dividends for GE:

Computations  (2)

Find the daily average trading volume for GE in the first quarter of 2000:

Find the standard deviation in the closing price for GE in the first quarter of 2000:

Find the skewness of the price distribution:

Find the correlation between cumulative returns for a stock and the S&P 500 index:

Groups & Indices  (3)

Current price of the S&P 500 index:

First few members of the "drugs" industry sector:

First few members of the Frankfurt exchange:

Total number of available members of the Frankfurt exchange:

Stock Screens  (1)

Find NASDAQ stocks with symbols beginning with AA and market caps below a billion:

Currencies & Metals  (4)

Find a list of available currencies:

Find the current number of Japanese yen per US dollar:

Give the pair of currencies in a list:

Find the current price for a troy ounce of gold in US dollars:

Find the current price of bitcoin in US dollars:

Applications  (3)

Find 100-day moving averages of a stock price:

Find the log distribution of daily returns for the S&P 500 index:

Plot the cumulative changes of a stock since 2000 compared to the S&P 500:

Properties & Relations  (1)

A stock listed on different exchanges is given in different currencies:

The ratio of prices is normally near the currency exchange rate:

Possible Issues  (4)

Non-US stocks are quoted in the standard currencies of their exchanges:

Daily stock prices are not available for holidays:

Monthly data shows on which days trading occurred:

View results as a list of date-value pairs:

The 52-week high includes intraday prices:

It is not generally equal to the maximum of daily closing prices:

Due to licensing restrictions, FinancialData will not return data when used in cloud-deployed APIs:

Neat Examples  (1)

Make a log rank plot of values of world currencies relative to US dollars:

Wolfram Research (2007), FinancialData, Wolfram Language function, https://reference.wolfram.com/language/ref/FinancialData.html (updated 2019).

Text

Wolfram Research (2007), FinancialData, Wolfram Language function, https://reference.wolfram.com/language/ref/FinancialData.html (updated 2019).

CMS

Wolfram Language. 2007. "FinancialData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/FinancialData.html.

APA

Wolfram Language. (2007). FinancialData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FinancialData.html

BibTeX

@misc{reference.wolfram_2024_financialdata, author="Wolfram Research", title="{FinancialData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/FinancialData.html}", note=[Accessed: 18-May-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_financialdata, organization={Wolfram Research}, title={FinancialData}, year={2019}, url={https://reference.wolfram.com/language/ref/FinancialData.html}, note=[Accessed: 18-May-2024 ]}

Top