Back to Community
get_pricing() multiple securities

Hi, what is the correct way to use get_pricing() for multiple securities?
I'm looking to get back a dataframe to analyze on multiple securities.

I've tried:

get_pricing('AAPL','SPY')
get_pricing(" 'AAPL','SPY' ")
get_pricing(['AAPL','SPY'])

When I use

get_pricing(['AAPL','SPY'])

I get returned this output which I don't understand.


Dimensions: 6 (items) x 253 (major_axis) x 2 (minor_axis)
Items axis: open_price to price
Major_axis axis: 2013-01-03 00:00:00+00:00 to 2014-01-03 00:00:00+00:00
Minor_axis axis: Equity(24 [AAPL]) to Equity(8554 [SPY])

1 response

get_pricing([symbols('AAPL'),symbols('IBM')])