Python notebooks stop working

Hello, I’ve been working with a teammate on this competition for a while and I noticed some tickers changed (i.e. from AAPL to AAPL.US Equity). Additionally, the platform has been working slower and slower, and at this point the functions provided have stopped working. For example, if I run ‘alphien.data.getHistoryData(ticker=“AAPL.US Equity”)’, the function responds after several minutes, and it tells me that the specified ticker does not exist. This happens no matter what ticker I put in.


Please let me know if you need more information about this issue.

Yea the platform is getting slower and slower.


And this is exactly what happens when it it went wrong: either takes 10 minutes to run, or after 10 minutes telling you a famous ticker is invalid…


Both Python & R notebook is having such problems.



Is there any possibilities that Alphien can make some part of their library public? so that we can run the code on local desktop.

Hi, thanks for pointing this out. Our IT team will investigate this data retrieval issue asap. Thanks to you both for pointing this out.

The data for these competitions are proprietary data and cannot be downloaded. Also, all work you do on the platform (your IP) is also protected.

We will endeavour to fix the issue quickly; apologies for the inconvenience and please continue to help us in making sure the experience is as good as possible. We will update you on this issue soon.


Hello - We would like to confirm that tickers haven’t changed, the best way to get the ticker list is to use getTickersSP500(). I have tested your code again this morning with successs.

tkr = c(“FB.US Equity”, “AMZN.US Equity”, “NFLX.US Equity”, “GOOG.US Equity”)

dl = getHistoryData(tkr, field=“bb_live”, zoom=“2007::2016”, asXts=TRUE)


We have experienced a huge amount of usage on our server since the launch of the UBS competition, that could cause delays in data request or slowness but we haven’t noticed it for now. We are adding additional servers and rack to allow our private cloud to cope with the increased usage.


Please remember that your alloted CPU and memory is limited, slowness and error can come if your memory usage is near full or CPU usage is already high. We suggest that you do the following to increase the speed of your environment :


1- On Chrome, close unused tabs and limit the number of tabs open (specially if you are using multiple notebook or Alphien Studio).

2- The notebook environment is particularly heavy on memory usage, we recommend using notebook only when you have finalized your code to share your code with your team or publicly and submit a notebook. Alphien Lab and Alphien Studio are much ‘faster’ environments to work with

3- Check your memory usage and CPU usage, go to research tab and launch Alphien Lab, look at the top right CPU usage and memory usage, CPU should be 0% if you do ‘nothing’, try to keep memory around 1.5 GB to allow sufficient memory to operate what you need to do.

4- Clean your kernels on Alphien lab (Kernel menu - shut down all Kernel).


Please let us know if that helps if after doing the above you still experience issues please contact us on live chat we will look at your specific environment.


Happy coding ! Lionel.



Scharala and KelvinLi,


Could you please try to run your code again and see if it works.


Thanks,

Manas

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”)