This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# I got a free token and secret key from the developer section in sentimentinvestor.com | |
token = "hidden my token" | |
secret_key = "hidden my secret key" | |
RHI_rank = requests.get("https://sentimentinvestor.com/api/v3/sort?limit=100&metric=RHI&token={0}&key={1}".format(token, secret_key)).json() | |
def get_analysis(recommendation): | |
strong_buy = recommendation["strongBuy"] | |
buy = recommendation["buy"] |