Search Tickers one by one is fine, but search them together is not?

As can be seen in the screenshot, if I feed the getHistoryData function using a for loop with one tkr each time, the command works fine.


But in the next line of code, when I try to search it as a whole list, it brokes… and the ValueError is not even telling what tkr is invalid (i.e. I screenshotted the whole error message).


I’m not sure what is really going on here…

Post deleted by kelvinli

Hi Kelvinli,

We are indeed experiencing an issue with bulk requests at the moment. This should be fixed soon; we need to deploy the patch to fix this. In the meantime, please select a small subset of stocks. We’ll announce when fixed and you’ll be able to remove the line where you subset data.

Apologies for inconvenience.

Hello - I am not sure I can reproduce your error, the code below works for us :


import alphien

tickers = [“MSFT.US Equity”,“GOOG.US Equity”,“FB.US Equity”,“AAPL.US Equity”,“AMZN.US Equity”]

px = alphien.data.getHistoryData(tickers, field = “bb live”, zoom=“2007::2016”)

px.tail(5)


on R we have also :


tickers = getTickersSP500()$ticker

x = getHistoryData(tickers, zoom=“2007::2016”, asXts=TRUE)


Let us know if that code above works ! Please note that you do NOT have access to data in 2017, that may be the issue there. We will be looking at improving the Python API which seems slower that the R API.


Happy coding ! Lionel.


you code works well ^^

Can you get all SP_500 data from 2006 to 2017 now?

Hello,

can you restart your kernel and try the code below?

import alphien
from more_itertools import unique_everseen
tickers = alphien.data.getTickersSP500()
data = alphien.data.getHistoryData(list(unique_everseen(tickers.ticker)),field = “bb live”)