Security check
We can provide custom documentation for your configuration if you authenticate. We ask you to authenticate as we populate the documentation with your auth credentials.
Authenticate
I'll do it later
New App
Stream data in Python
Streaming data is an effective way to stay up to date on the latest data without burdening your backend with GET Requests. First we need to import the websocket module from Sentipy.


from sentipy.ws import *


Stream Stocks
Premium
Enterprise
You stream stocks by listening to certain symbols. You can pass an array of symbols and a callback function. The callback functions is executed on the data that comes through the connection.
stocks_stream = AllStocksStream(key= , token= , callback = print)
"symbols"
Adjust the symbols you listen for
"calback"
Pass a callback function to execute on the data that comes through
//expected output as a JSON object logged to the console

{
success: true,
symbol: 'AAPL',
results: {
AHI: 1.35,
RHI: 1.2,
sentiment: 0.49,
SGP: 0.89,
}
}
Stream All Data
Premium
Enterprise
You can generate a data stream of all data and pass through a callback function gathered on this data.
//the following method returns a promise
stocks_stream = StocksStream(symbols = ['AAPL', 'TSLA', 'GME'], key = , token = , callback=print)
"callback
Pass a callback function to execute on the data that comes through
//expected output as a JSON object logged to the console

{
success: true,
symbol: 'AAPL',
results: {
reddit_comment_mentions: 43,
reddit_comment_sentiment: 0.34,
reddit_post_mentions: 3,
reddit_post_sentiment: 3,
tweet_mentions: 88,
tweet_sentiment: 0.97,
stocktwits_post_mentions: 43,
stocktwits_post_sentiment: 43,
yahoo_finance_comment_mentions: 3,
yahoo_finance_comment_sentiment: 0.34,
}
}