Algo Conditionals
## if between 0-3% above 52 week low
##AND not within 5 days of earnings
##AND RSI is super/duper oversold between 20-30
##AND net profit margin +0.01
##AND beta is between 1-2
It looks like the best tool to pull in my data is use FinViz stock screener to get down to the 20-50 stocks a day in my universe. The crawler I'm using to do that is Kimono (from the most recent YC batch), super cool site chrome extension that let's you make an API out of any website!
So my question is, can I use code like below to pull the data? This is the API code provided by Kimono to able to pull the data into your build.
I feel like my code isn't working because it isn't within the fetch_csv functionality..
"results = json.load(urllib.urlopen("http://www.kimonolabs.com/api/csv/5k0ncr26?apikey=53100de28f37cb4c582eea1b3c7dea1d", / date_column = 'date',
pre_func = preview,
universe_func=my_universe)"
A few other reference points
direct URL to .csv data: http://www.kimonolabs.com/api/csv/5k0ncr26?apikey=53100de28f37cb4c582eea1b3c7dea1d
Kimono API code with key, they provide:
import json
import urllib
results = json.load(urllib.urlopen("http://www.kimonolabs.com/api/5k0ncr26?apikey=53100de28f37cb4c582eea1b3c7dea1d"))