Verify Email
Before you can start using our developer services you need to verify your email address.
Verify Email
Verification Email Sent
Create a new app
Hey it looks like you are trying to create a new app. You can create 5 apps per account. Any developer subscriptions do not transfer between applications unless you have special permission
Cancel
Yes, get started
Tell us about your app
Oh no, you already used this name
Create App
Choose a plan
You can choose on of our three developer plans. You can choose view them on our solutions page. Alternatively you can do this later.
Skip for now
Select a plan
Start Programming
We have collections of REST APIs and packages in all yoru favourite languages to make integrating our data into your system as seamless as possible. Check out our documentation to start right away.
Finish Up
See documentation
New App
You need to verify your email before you can use the API
Send verification email
Installation
You can install sentiment-investor using pip.
> pip install sentiment-investor
Using Sentipy
from sentipy.sentipy import Sentipy

token=
key=
sentipy = Sentipy(token=token, key=key)
Quote
#the quote method gives you access to information on specific tickers
#the only parameter it takes is the symbol/ticker (in all caps)

ticker = "AAPL"
quoteData = sentipy.quote(ticker)

# below are all the fields you can access from the QuoteData object

quoteData.ticker
quoteData.AHI
quoteData.sentiment
quoteData.RHI
quoteData.SGP
quoteData.last_update
quoteData.reddit_comment_mentions
quoteData.reddit_post_mentions
quoteData.reddit_post_sentiment
quoteData.tweet_mentions
quoteData.tweet_sentiment
quoteData.yahoo_finance_mentions
quoteData.yahoo_finance_sentiment
quoteData.stocktwits_post_mentions
quoteData.stocktwits_post_sentiment
Sort


#limits are by default between 0 and about 100, because of how we batch requests (extend the limit by emailing us)
#the metric parameter accepts [AHI,RHI,sentiment,SGP,tweet_mentions,tweet_sentiment,reddit_comment_mentions,reddit_comment_sentiment, reddit_post_mentions, reddit_post_sentiment,stocktwits_post_mentions,stocktwits_post_sentiment,yahoo_finance_comment_sentiment,yahoo_finance_comment_mentions]

metric = "AHI"
limit = 16

# The results of the query can be accessed through the SortData object. This contains a sort field, which is an array of BasicTicker objects. The fields these contain are listed below.

sortData = sentipy.sort(metric, limit)

trendingTickers = sortData.sort
for ticker in trendingTickers:
ticker.ticker
ticker.AHI
ticker.RHI
ticker.sentiment
ticker.SGP
History
#the historical method returns historical data for a specific field and ticker as a HistoricalData object
#the data can be accessed through the history field as an array of HistoricalDatapoint objects which each have a timestamp field containing the timestamp (time since epoch) when the datapoint was recorded and a data field containing the value of the actual metric at that time. T

ticker="AAPL"
metric="AHI"


#the metric parameter accepts [AHI,RHI,sentiment,SGP,tweet_mentions,tweet_sentiment,reddit_comment_mentions,reddit_comment_sentiment, reddit_post_mentions, reddit_post_sentiment,stocktwits_post_mentions,stocktwits_post_sentiment,yahoo_finance_sentiment,yahoo_finance_mentions]


historicalData = sentipy.historical(ticker, metric)

historicalData.sort(direction="asc") # can be "asc" or "desc"

history = historicalData.history
for datapoint in history:
datapoint.timestamp
datapoint.data