mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 14:31:20 +00:00
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[88247],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),m=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},u=function(e){var t=m(e.components);return r.createElement(l.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},p=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),p=m(n),d=a,h=p["".concat(l,".").concat(d)]||p[d]||c[d]||o;return n?r.createElement(h,s(s({ref:t},u),{},{components:n})):r.createElement(h,s({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,s=new Array(o);s[0]=p;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,s[1]=i;for(var m=2;m<o;m++)s[m]=n[m];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}p.displayName="MDXCreateElement"},43084:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>c,frontMatter:()=>o,metadata:()=>i,toc:()=>m});var r=n(87462),a=(n(67294),n(3905));const o={title:"Behavioural Analysis",keywords:["stocks","behaviour","analysis","ba","headlines","snews","wsb","watchlist","popular","spac","trending","stalking","bullbear","messages","inter","sentiment","Google","Twitter","Reddit","Stocktwits","SentimentInvestor","Cramer","Jim","mentions","regions","interest","queries","rise","trend","hist","jcrd","jctr"],date:"2022-05-23",type:"guides",status:"publish",excerpt:"An Introduction to the Behavioural Analysis menu, within the Stocks menu."},s=void 0,i={unversionedId:"guides/intros/common/ba",id:"guides/intros/common/ba",title:"Behavioural Analysis",description:"The Behavioural Analysis menu offers the user tools for gauging the overall public sentiment of a company online. The complexity of the tools range from message board scrapers to deep learning algorithms for financial analysis and prediction. Sentiment is particularly useful for momentum trading strategies, discovery, and general fundamental research. Navigate into the menu from the Stocks menu by entering, ba; or, using absolute paths from anywhere in the Terminal: /stocks/ba",source:"@site/content/terminal/guides/intros/common/ba.md",sourceDirName:"guides/intros/common",slug:"/guides/intros/common/ba",permalink:"/terminal/guides/intros/common/ba",draft:!1,editUrl:"https://github.com/OpenBB-finance/OpenBBTerminal/edit/main/website/content/terminal/guides/intros/common/ba.md",tags:[],version:"current",frontMatter:{title:"Behavioural Analysis",keywords:["stocks","behaviour","analysis","ba","headlines","snews","wsb","watchlist","popular","spac","trending","stalking","bullbear","messages","inter","sentiment","Google","Twitter","Reddit","Stocktwits","SentimentInvestor","Cramer","Jim","mentions","regions","interest","queries","rise","trend","hist","jcrd","jctr"],date:"2022-05-23",type:"guides",status:"publish",excerpt:"An Introduction to the Behavioural Analysis menu, within the Stocks menu."},sidebar:"tutorialSidebar",previous:{title:"Common Menus",permalink:"/terminal/common-features"},next:{title:"Quantitative Analysis",permalink:"/terminal/guides/intros/common/qa"}},l={},m=[{value:"How to use",id:"how-to-use",level:3},{value:"Examples",id:"examples",level:3}],u={toc:m};function c(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"The Behavioural Analysis menu offers the user tools for gauging the overall public sentiment of a company online. The complexity of the tools range from message board scrapers to deep learning algorithms for financial analysis and prediction. Sentiment is particularly useful for momentum trading strategies, discovery, and general fundamental research. Navigate into the menu from the ",(0,a.kt)("a",{href:"/terminal/guides/intros/stocks/",target:"_blank",rel:"noreferrer noopener"},"Stocks")," menu by entering, ",(0,a.kt)("inlineCode",{parentName:"p"},"ba"),"; or, using absolute paths from anywhere in the Terminal: ",(0,a.kt)("inlineCode",{parentName:"p"},"/stocks/ba")),(0,a.kt)("img",{alt:"The Behavioural Analysis submenu",src:"https://user-images.githubusercontent.com/46355364/170242317-ae66ed0b-f2e8-4304-9231-ea833d01e0e2.png"}),(0,a.kt)("h3",{id:"how-to-use"},"How to use"),(0,a.kt)("p",null,"The commands with text, representing ",(0,a.kt)("a",{href:"https://docs.openbb.co/terminal/guides/basics",target:"_blank",rel:"noreferrer noopener"},"commands"),", do not require a ticker, faded commands will turn light blue when there is a ticker loaded."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ load gme\n\nLoading Daily GME stock with starting period 2019-05-20 for analysis.\n\nDatetime: 2022 May 23 12:13\nTimezone: America/New_York\nCurrency: USD\nMarket: CLOSED\nCompany: GameStop Corporation\n\n(\ud83e\udd8b) /stocks/ba/ $ ?\n")),(0,a.kt)("img",{alt:"The Behavioural Analysis Menu with a loaded ticker",src:"https://user-images.githubusercontent.com/46355364/170242757-3e29f690-7d29-4fe2-9e14-889c43e3142e.png"}),(0,a.kt)("p",null,"Some data sources will require a valid API key, which can be obtained for free and then set using the Keys menu. To use all the features in this menu, obtain free API keys from these providers:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{href:"https://finnhub.io/",target:"_blank",rel:"noreferrer noopener"},"Finnhub"),(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{href:"https://developer.twitter.com/",target:"_blank",rel:"noreferrer noopener"},"Twitter"),(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{href:"https://old.reddit.com/prefs/apps/",target:"_blank",rel:"noreferrer noopener"},"Reddit"),(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{href:"https://sentimentinvestor.com/",target:"_blank",rel:"noreferrer noopener"},"Sentiment Investor"),(0,a.kt)("br",null))),(0,a.kt)("p",null,"See the ",(0,a.kt)("a",{href:"/terminal/guides/advanced/api-keys",target:"_blank",rel:"noreferrer noopener"},"Set API keys")," for help with API keys in the Terminal."),(0,a.kt)("h3",{id:"examples"},"Examples"),(0,a.kt)("p",null,"As with every command, using the ",(0,a.kt)("inlineCode",{parentName:"p"},"-h")," argument displays the help dialogue. Running the ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/headlines/",target:"_blank",rel:"noreferrer noopener"},"headlines")," command returns the following:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ headlines\n")),(0,a.kt)("img",{alt:"headlines",src:"https://user-images.githubusercontent.com/46355364/170244924-ffe6cd15-8d17-4690-bf44-d2b496dbc310.png"}),(0,a.kt)("p",null,"Alternatively, running the ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/snews/",target:"_blank",rel:"noreferrer noopener"},"snews")," command returns the following:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ snews\n")),(0,a.kt)("img",{alt:"headlines",src:"https://user-images.githubusercontent.com/46355364/170243359-9d1302f0-3394-4e05-8360-0e59a1cb6e54.png"}),(0,a.kt)("p",null,"The Reddit functions will return popular tickers and posts, or measure sentiment for a particular stock. An example would be by looking at the threads that pop up on ",(0,a.kt)("a",{href:"https://www.reddit.com/r/wallstreetbets/",target:"_blank",rel:"noreferrer noopener"},"/r/wallstreetbets"),", famous for the ",(0,a.kt)("a",{href:"https://en.wikipedia.org/wiki/R/wallstreetbets",target:"_blank",rel:"noreferrer noopener"},"GameStop short squeeze"),":"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ wsb\n\n2022-05-23 10:00:12 - Daily Discussion Thread for May 23, 2022\nhttps://old.reddit.com/r/wallstreetbets/comments/uvwq8z/daily_discussion_thread_for_may_23_2022/\n\nReddit Submission\n\n| Subreddit | Flair | Score | # Comments | Upvote % | Awards |\n| -------------- | ---------------- | ----- | ---------- | -------- | ----------- |\n| wallstreetbets | Daily Discussion | 195 | 9168 | 88% | 3 Silver |\n| | | | | | 2 Helpful |\n| | | | | | 1 Wholesome |\n| | | | | | 1 Got the |\n\n2022-05-21 11:34:21 - Most Anticipated Earnings Releases for the week beginning\nMay 23rd, 2022\nhttps://old.reddit.com/r/wallstreetbets/comments/uul9fs/most_anticipated_earnings_releases_for_the_week/\n\nReddit Submission\n\n| Subreddit | Flair | Score | # Comments | Upvote % | Awards |\n| -------------- | --------------- | ----- | ---------- | -------- | ---------------- |\n| wallstreetbets | Earnings Thread | 960 | 1325 | 97% | 1 Silver |\n| | | | | | 5 Helpful |\n| | | | | | 3 Wholesome |\n| | | | | | 1 Take My Energy |\n| | | | | | 1 Sne |\n")),(0,a.kt)("p",null,"The Behavioural Analysis menu also has the ability to scan for sentiment on multiple platforms including Twitter and Google with ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/sentiment/",target:"_blank",rel:"noreferrer noopener"},"sentiment"),", ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/infer/",target:"_blank",rel:"noreferrer noopener"},"infer")," and ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/queries/",target:"_blank",rel:"noreferrer noopener"},"queries"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ sentiment -c\nFrom 2022-05-23 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-22 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-21 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-20 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-19 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-18 retrieving 360 tweets (15 tweets/hour)\nFrom 2022-05-17 retrieving 360 tweets (15 tweets/hour)\n\n(\ud83e\udd8b) /stocks/ba/ $ infer\nFrom: 2022-05-23 18:21:12\nTo: 2022-05-23 18:30:36\n100 tweets were analyzed.\nFrequency of approx 1 tweet every 6 seconds.\nThe summed compound sentiment of GME is: 18.42\nThe average compound sentiment of GME is: 0.18\nOf the last 100 tweets, 41.00 % had a higher positive sentiment\nOf the last 100 tweets, 19.00 % had a higher negative sentiment\n\n(\ud83e\udd8b) /stocks/ba/ $ queries\n\n Top GME's related queries\n\n| query | value |\n|-----------------|-------|\n| stock gme | 100% |\n| amc | 29% |\n| amc stock | 24% |\n| gme price | 23% |\n| gme stock price | 14% |\n| gme share | 7% |\n| gme share price | 6% |\n| reddit | 6% |\n| gme reddit | 6% |\n| bb | 5% |\n")),(0,a.kt)("p",null,"The ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/sentiment/",target:"_blank",rel:"noreferrer noopener"},"sentiment")," command returns the following:"),(0,a.kt)("img",{alt:"sentiment",src:"https://user-images.githubusercontent.com/46355364/170243539-1ea3fc6a-d7ec-4991-a6bb-ed5879753328.png"}),(0,a.kt)("p",null,"More advanced techniques can also be applied by using tools from ",(0,a.kt)("a",{href:"https://sentimentinvestor.com",target:"_blank",rel:"noreferrer noopener"},"Sentiment Investor")," that analyzes millions of messages to show the most talked about stocks by hour. This has the ability to show the most trending tickers with ",(0,a.kt)("a",{href:"/terminal/reference/stocks/ba/trending/",target:"_blank",rel:"noreferrer noopener"},"trending"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ trending\n\nMost trending stocks at 2022-05-23 00:00\n\n| TICKER | TOTAL | LIKES | RHI | AHI |\n|--------|-------|--------|------|------|\n| SPY | 89.00 | 43.00 | 1.22 | 1.26 |\n| AMC | 80.00 | 155.00 | 1.07 | 1.18 |\n| TSLA | 80.00 | 78.00 | 1.07 | 1.34 |\n| BTC | 62.00 | 74.00 | 1.14 | 1.09 |\n| NIO | 50.00 | 14.00 | 1.17 | 1.15 |\n| AAPL | 28.00 | 4.00 | 0.66 | 0.75 |\n| AMD | 26.00 | 59.00 | 0.57 | 0.61 |\n| NVAX | 13.00 | 4.00 | 0.47 | 0.40 |\n| NVDA | 12.00 | 11.00 | 0.45 | 0.47 |\n| DIS | 12.00 | 1.00 | 0.69 | 0.44 |\n")),(0,a.kt)("p",null,"Inspired by the Twitter user, ",(0,a.kt)("a",{href:"https://twitter.com/CramerTracker",target:"_blank",rel:"noreferrer noopener"},"@cramertracker"),", the final two features follow (CNBC Talking Head) Jim Cramer stock recommendations as satire that rings true."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"(\ud83e\udd8b) /stocks/ba/ $ jcdr\n\nJim Cramer Recommendations for 05/19\n\n\n| Company | Symbol | Price | LastPrice | Change (%) | Recommendation |\n|------------------------|--------|--------|-----------|------------|----------------|\n| Apple | AAPL | 137.35 | 142.38 | 3.53 | Buy |\n| AeroVironment | AVAV | 85.35 | 85.49 | 0.16 | Buy |\n| Alibaba | BABA | 87.69 | 87.04 | -0.75 | Sell |\n| Constellation Energy | CEG | 57.23 | 56.92 | -0.54 | Buy |\n| Costco | COST | 422.93 | 427.93 | 1.17 | Buy |\n| DraftKings | DKNG | 14.15 | 13.89 | -1.87 | Buy |\n| Lockheed Martin | LMT | 425.62 | 433.71 | 1.87 | Buy |\n| Cloudflare | NET | 58.00 | 56.92 | -1.90 | Buy |\n| Northrop Grumman | NOC | 448.50 | 456.57 | 1.77 | Buy |\n| NVIDIA | NVDA | 171.24 | 168.29 | -1.75 | Buy |\n| Palo Alto Networks | PANW | 436.37 | 502.69 | 13.19 | Buy |\n| PLBY Group | PLBY | 9.06 | 9.26 | 2.16 | Sell |\n| Raytheon Technologies | RTX | 90.25 | 91.87 | 1.76 | Buy |\n| SoFi Technologies | SOFI | 7.75 | 7.30 | -6.16 | Buy |\n")),(0,a.kt)("a",{target:"_blank",href:"https://user-images.githubusercontent.com/46355364/170243863-f95dc515-c0d7-4ede-964d-f6ba41aec743.png"},(0,a.kt)("img",{alt:"Jim Cramer historical recommendations for $DKNG",src:"https://user-images.githubusercontent.com/46355364/170243863-f95dc515-c0d7-4ede-964d-f6ba41aec743.png"})))}c.isMDXComponent=!0}}]); |