4
$\begingroup$

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

$\endgroup$

1 Answer 1

5
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.