Back to Community
Unable to call quantopian.research.prices for equity (Galapagos NV)

Newbie here: I'm working on a notebook which compares prices of equities listed on both the London Stock Exchange and Euronext Amsterdam. Currently I have a set of the names of such equities and a mapping of each of these names to their respective asset on both exchanges.

One such equity is for Galapagos NV (stored as galapagos). When I call prices as

prices(galapagos, '2020-1-1', '2020-1-30')

I get the following exception

ValueError: At least one valid asset id is required.

I suspect some equities aren't supported by prices and this just happens to be one of them. Does anyone else have any idea why I can't get price data for Galapagos NV?

Thanks

2 responses

@Jacob

Try this:

prices = get_pricing(symbols('GLPG'), '2020-1-1','2020-4-27',fields = 'close_price')  
prices.tail(5)  

2020-04-21 00:00:00+00:00 209.760
2020-04-22 00:00:00+00:00 209.450
2020-04-23 00:00:00+00:00 209.015
2020-04-24 00:00:00+00:00 212.530
2020-04-27 00:00:00+00:00 210.820

Freq: C, Name: Equity(49038 [GLPG]), dtype: float64

Great, works like a charm. Thanks, Vladimir!

Do you know if I can specify which exchange I am pulling the prices from? I tried prepending LON: and AMS: to the ticker but both threw exceptions.