Description Usage Arguments Value Examples
View source: R/get_sentiment_stocktwits.R
This function computes the sentiment based on bullish and bearish tag from stocktwits using the last 30 twits.
1 | get_sentiment_stocktwits(stock_symbol, path_twits, sentiment_index_type)
|
stock_symbol |
A vector with the stocks symbols. |
path_twits |
The path where the Json files will be stored. |
sentiment_index_type |
The sentiment type to be used according to the dictionary, positive, negative or both. Default is both, positive and negative |
A numeric value with the value of the sentiment index.
1 2 3 4 5 6 7 8 9 | ## Not run:
#Not run:
path_twits <- 'your path'
symbols <- c("EWZ", "SPX", "SPY", "USO")
stocktwits_index <- get_sentiment_stocktwits(stock_symbol = symbols,
path_twits = path_twits)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.