4

Is there an easy/straightforward way to get the corresponding Finance entity given a Company entity if it’s available?

I have a hack-y fix just y taking the “Name” property for the Company and passing that into FinanceData though this does not work 100% of the time.

Thanks!

enter image description here

1 Answers1

5

One way is to use the CommonShares property of a company entity to retrieve the associated financial entities (assuming the data are available). For example:

$company = Interpreter["Company"]["Apple"]

company entity

$financials = $company["CommonShares"]

financial entities

Through[$financials["Symbol"]]

financial symbols

$financials[[1]]["Properties"]

financial entity properties

$financials[[1]]["Price"]

financial entity's price

FinancialData[$financials[[1]], {{2022,3,1}, {2022,3,31}}] // DateListPlot

financial entity's closing price plot

WReach
  • 68,832
  • 4
  • 164
  • 269