Last Updated on November 25, 2023
Table of contents:
- What is OpenBB?
- What is OpenBB used for?
- Why should I use OpenBB?
- Why shouldnโt I use OpenBB?
- Is OpenBB free?
- What are some OpenBB alternatives?
- How to get started with OpenBB?
- What is the OpenBB Terminal?
- How to use the OpenBB Terminal?
- How to get stock data with OpenBB Terminal?
- How to plot data with OpenBB Terminal?
- How to get Crypto data with OpenBB Terminal?
- How to get Futures data with OpenBB Terminal?
- How to get Options data with OpenBB Terminal?
- How to import and export data with OpenBB?
- How to add external API Keys to OpenBB?
- What are OpenBB Terminal Reports?
- How to use Reports in OpenBB?
- What are OpenBB Portfolios?
- How to create Portfolios in OpenBB?
- What is OpenBB Econometrics?
- How to use Econometrics in OpenBB?
- What are OpenBB Jupyter features?
- How to do behavioral sentiment analysis with OpenBB?
- How to do quantitative analysis with OpenBB?
- How to do technical analysis with OpenBB?
- What is OpenBB Automation and Scripting?
- How to write your automated script in OpenBB?
- What is the OpenBB Bot?
- How to use OpenBB Bot with Telegram?
- Where can I learn more about OpenBB?
What is OpenBB?
OpenBB is an open-sourced investment research platform.
Link: https://openbb.co
What is OpenBB used for?
OpenBB is primarily used by investors, quants, and traders to create reports, perform investment research, create custom charts and analyses, optimize portfolios, run sentiment and machine learning analyses, and more.
Why should I use OpenBB?
- OpenBB is open source
- OpenBB is easy to use and intuitive
- Has a decent layout
- The OpenBB Terminal is completely free
- The OpenBB Bot has a free option
- Abstracts technicality while providing depth and customizability
- Has a solid amount of features
- Has good investor support
- Is very customizable
- Has solid documentation
- Has a great company culture and ethics
Why shouldn’t I use OpenBB?
- OpenBB is quite new
- OpenBB could use more features
- The software could be a bit faster at certain times
- Is based inside a terminal and not an “App” that some users might be more comfortable with
- Needs polishing
- Some parts of the documentation are outdated at the time of writing this article
Is OpenBB free?
The OpenBB Terminal is entirely free, although there might be some premium packages coming out soon. The OpenBB bot features a free version with constrained features and two premium ones with more features. You can see the difference in the picture below:
What are some OpenBB alternatives?
OpenBB can be replaced with other products that can be more suitable for your needs. Here is the list:
- QuantRocket
- Finviz
- Bloomberg Terminal
- AlphaSense
- EquityRT
- Verity, and more
How to get started with OpenBB?
To get started with OpenBB, you will have several options that depend on your preferences and operating system. In this article, I’ll follow the Windows version of OpenBB and show you how to set it up. If you don’t use Windows, check out the steps here.
The Windows version features an installer that can be downloaded from the following page. To do so we can simply click the “Download” button for the Windows installer. When the download is complete, you might get a warning from your antivirus software.
Don’t worry, it’s not a virus. The warning is the reason that OpenBB is still in Beta. The next step is to open up the installer exe
file and start the installation process. It should take a minute or so. After it’s installed, you will see the OpenBB Terminal icon on your screen.
Click the icon to get started with OpenBB.
If you press a key (e.g., ENTER) you’ll be presented with some of the features that the OpenBB Terminal has to offer. In the following headers, we’ll explore some of those features so that you can get an idea of the product and its current state.
What is the OpenBB Terminal?
The OpenBB Terminal can be seen as your OpenBB workstation which is designed as a CLI (Command Line Interface). From the OpenBB Terminal, you can issue commands with your keyboard to interact with the Software and navigate through it.
How to use the OpenBB Terminal?
To use the OpenBB Terminal, all you need to do is to open it and navigate to any menu by typing its name. To go directly to the sub-menus you can write menu/sub-menu. If you ever need help with what a function does and what parameters it uses, you can add the -h
flag at the end to get more details.
Here are some useful flags that can be used inside the OpenBB Terminal:
cls
: clears the screen, by executing this command you are left with an empty screen.help
,h
or?
: displays the menu that you are currently on.quit
,q
or..
: allows for navigation through the menu. E.g. if you typestocks
pressENTER
(โ) and then useq
and press ENTER (โ) you return to where you started. Validate this by typing ? and pressing ENTER (โ).- support: allows you to submit bugs, questions, and suggestions.
about
: this opens the related guide, linking to this website. It also has the ability to open a guide to a specific command. For example, within thestocks
menu,about candle
opens this guide.wiki
: search for a given expression on the Wikipedia without leaving the terminal.
How to get stock data with OpenBB Terminal?
To get stock data with OpenBB Terminal, all you need to do is to use use the stocks menu and execute the quote function with the stock symbol of your interest provided. For example, let us obtain the price data of Microsoft:
quote -t MSFT
Ticker Quote
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ MSFT โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Name โ Microsoft Corporation โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Price โ 232.70 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Open โ 233.76 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ High โ 234.92 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Low โ 231.15 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Previous Close โ 235.87 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Volume โ 12,347,163 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ 52 Week High โ 349.67 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ 52 Week Low โ 219.13 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Change โ -3.17 โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโค
โ Change % โ -1.34% โ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโ
How to plot data with OpenBB Terminal?
To plot data with OpenBB Terminal, you can use the candle
function. Prior to that, you will need to load the data for the symbol of your interest. For example, let’s load the data for Dropbox and plot it:
load -t DBX
Loading Daily DBX stock with starting period 2019-10-28 for analysis.
Company: Dropbox, Inc.
Exchange: NASDAQ/NMS (GLOBAL MARKET)
Currency: USD
DBX Performance
โ 1 Day โ 1 Week โ 1 Month โ 1 Year โ YTD โ Volatility (1Y) โ Volume (10D avg) โ Last Price โ
โ 2.04 % โ 2.8 % โ 7.26 % โ -27.16 % โ -11.78 % โ 38.45 % โ 2.35 M โ 22.02 โ
And now we plot the price chart:
candle
How to get Crypto data with OpenBB Terminal?
To get Crypto data with OpenBB Terminal, you will need to access the crypto menu and utilize a function you might be interested in. For example, let us obtain the current trending Cryptocurrencies by using the disc
function.
crypto/disc
This will open a few options that we can choose from. Each option shows the data pool it is utilizing.
Let’s see the top trending ones by writing cgtreding
. The result is as follows:
Trending coins on CoinGecko
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ
โ Symbol โ Name โ market_cap Cap Rank โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ dogecoin โ Dogecoin โ 8 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ aptos โ Aptos โ 55 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ enq-enecuum โ Enecuum โ 965 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ monkeyball โ MonkeyLeague โ 813 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ dogechain โ Dogechain โ 327 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ binancecoin โ BNB โ 4 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโค
โ husd โ HUSD โ 351 โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโ
How to get Futures data with OpenBB Terminal?
To get Futures data with OpenBB Terminal, you can access the future menu (under the economy menu) and use the search, historical, or curve functions that will return data on the symbol of your interest. For example, let’s obtain some general future data by writing:
economy/futures
Futures/Commodities [Source: Wall St. Journal]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโ
โ โ Price โ Chg โ %Chg โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Crude Oil โ 85.49 โ -2.41 โ -2.74 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Brent Crude โ 91.61 โ -2.16 โ -2.30 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Gold โ 1639.80 โ -5.00 โ -0.30 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Silver โ 19.120 โ -0.027 โ -0.14 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Natural Gas โ 6.504 โ 0.551 โ 9.26 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Unleaded Gasoline โ 2.4858 โ -0.0771 โ -3.01 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Copper โ 3.3785 โ -0.0505 โ -1.47 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Corn โ 687.75 โ 7.00 โ 1.03 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Wheat โ 873.50 โ 44.25 โ 5.34 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ Bloomberg Commodity Index โ 112.75 โ 0.99 โ 0.89 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโ
How to get Options data with OpenBB Terminal?
To get Options data with OpenBB Terminal, you can access the options submenu from the stocks menu and use one of the many functions such as info, chains, parity, greeks, pricing, hedge, and more. For example, let’s load PG data and obtain the put/call ratio by providing the interval for the option:
load -t PG
stocks/options/pcr 10
How to import and export data with OpenBB?
To import and export data with OpenBB, you can navigate to the OpenBBUserData
folder which is found in the home of the system user account. The location of this folder can be set by the user from the /settings
menu.
This folder is where exported files are saved, it is also where files being imported to the Terminal functions are kept. These include the following:
- Screener presets
- Portfolio files
- Exported files
- Files to be imported by various functions
- Styles and themes
- Preferred data sources
- Anonymized usage logs
How to add external API Keys to OpenBB?
To add external API Keys to OpenBB, you can access the keys menu where you will find a list of all possible APIs that OpenBB Terminal Supports. To add a key, write the provider’s name and then the key (e.g., iex apiKey123). Press ENTER to save the key.
Once you add a key, OpenBB will perform an API request test to validate that the key is correct. If it is, it will be colored green. If it isn’t correct, the key will be in red.
What are OpenBB Terminal Reports?
OpenBB Terminal Reports are a feature that allows the user to create investment research workflow templates through Jupyter and easily automate them with different parameters. This feature is a good time saver.
How to use Reports in OpenBB?
To use Reports in OpenBB, navigate to the reports
menu and choose the report type that you want to use. Currently, you can choose between stocks, crypto, economy, equity, portfolio, forex, and more. Let’s observe what the equity report looks like for Microsoft:
reports/equity MSFT
This will open an HTML page with a generated comprehensive equity report that you can inspect. I’ll just show a few snippets of it in the pictures below:
What are OpenBB Portfolios?
OpenBB Portfolios are a feature that allows the user to easily import, track, visualize and optimize Portfolios for performance in and across different markets.
How to create Portfolios in OpenBB?
To create Portfolios in OpenBB, you will need to access the portfolio
menu and adding your assets to it by using the load
function that intakes the excel file with your portfolio details. OpenBB comes prepared with an example portfolio that we can load the following way:
load -f Public_Equity_Orderbook.xlsx
Here are the mandatory variables that the portfolio sheet needs to have:
- Date – The date the trade occurred
- Name – The name of the security
- Type – The type of security. Use Cash/Stock/Crypto/ETF as appropriate
- Price – The price the security was added or removed, on a per-unit basis
- Quantity – How much of the security in question was added or removed
- Side – Whether you bought or sold. Use Buy/Deposit/1 to add to the portfolio or Sell/Withdrawal/0 to remove from the portfolio a search criterion, country, sector, or industry.
Now that we loaded the portfolio, we can define what our benchmark is. To add the benchmark we do the following:
bench SPDR S&P 500 ETF Trust (SPY)
Now we can use all the portfolio menu functions to obtain data about our portfolio. For example, let’s obtain the summary and performance of the portfolio.
summary
Summary of Portfolio vs Benchmark for all period
โโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ โ Portfolio โ Benchmark โ Difference โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Volatility โ 0.02 โ 0.01 โ 0.00 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Skew โ -1.84 โ -0.56 โ -1.28 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Kurtosis โ 32.52 โ 11.08 โ 21.44 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Maximum Drawdowwn โ -0.48 โ -0.34 โ -0.14 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Sharpe ratio โ 0.04 โ 0.05 โ -0.01 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Sortino ratio โ 0.05 โ 0.06 โ -0.01 โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ R2 Score โ 0.55 โ 0.55 โ 0.00 โ
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโ
perf
Portfolio vs. Benchmark - Totals in period: all
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ โ Portfolio โ Benchmark โ Difference โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Total Investment โ 48693.95 โ 48693.95 โ - โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Total Value โ 53096.91 โ 61769.33 โ -8672.42 โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Total % Return โ 9.04% โ 26.85% โ -17.81% โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ Total Abs Return โ 4402.96 โ 13075.38 โ -8672.42 โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโ
What is OpenBB Econometrics?
OpenBB Econometrics is a feature that allows the user to apply advanced statistical methods and techniques to financial data. OpenBB features many tests and models such as the multi-linear regression models, normality, autocorrelation, and cointegration tests.
How to use Econometrics in OpenBB?
To use Econometrics in OpenBB, you will need to access the econometrics
menu and load a dataset on which you want to perform the analysis on. Then, select functions that are categorized into the exploration, tests, regression, and regression tests groups.
For example, let’s load an example dataset called danish_data (Danish money demand data) that OpenBB has provided us with:
load -f danish_data
show
Dataset danish_data | Showing 10 of 55 rows
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโฌโโโโโโโฌโโโโโโโโฌโโโโโโโฌโโโโโโโ
โ โ lrm โ lry โ lpy โ ibo โ ide โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1974-01-01 00:00:00 โ 11.63 โ 5.90 โ -0.62 โ 0.15 โ 0.09 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1974-04-01 00:00:00 โ 11.60 โ 5.87 โ -0.58 โ 0.18 โ 0.10 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1974-07-01 00:00:00 โ 11.58 โ 5.84 โ -0.54 โ 0.17 โ 0.10 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1974-10-01 00:00:00 โ 11.60 โ 5.81 โ -0.50 โ 0.15 โ 0.10 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1975-01-01 00:00:00 โ 11.59 โ 5.80 โ -0.49 โ 0.13 โ 0.09 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1975-04-01 00:00:00 โ 11.60 โ 5.79 โ -0.45 โ 0.13 โ 0.08 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1975-07-01 00:00:00 โ 11.65 โ 5.83 โ -0.44 โ 0.13 โ 0.08 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1975-10-01 00:00:00 โ 11.76 โ 5.93 โ -0.44 โ 0.13 โ 0.07 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1976-01-01 00:00:00 โ 11.75 โ 5.94 โ -0.40 โ 0.14 โ 0.07 โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโค
โ 1976-04-01 00:00:00 โ 11.77 โ 5.94 โ -0.37 โ 0.15 โ 0.08 โ
โโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโดโโโโโโโโดโโโโโโโดโโโโโโโ
Now, let’s perform an OLS regression between the lrm
and ide
variables as an example:
ols -d danish_data.ide -i danish_data.lrm
You can also test the residuals for autocorrelation and heteroscedasticity by using commands such as bgod
and bpag
.
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโ
โ โ Breusch-Godfrey โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
โ LM-stat โ 46.35 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
โ p-value โ 0.00 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
โ f-stat โ 37.02 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
โ fp-value โ 0.00 โ
โโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ โ Breusch-Pagan โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ lm-stat โ 26.48 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ p-value โ nan โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ f-stat โ 50.15 โ
โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ fp-value โ 0.00 โ
โโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
What are OpenBB Jupyter features?
The OpenBB Jupyter features allow the user to create notebook templates that can be run on different tickers. This level of automation speeds up your investment thesis investigation. OpenBB comes with some pre-built Jupyter templates.
How to do behavioral sentiment analysis with OpenBB?
To do behavioral sentiment analysis with OpenBB, you can access the ba
submenu that has useful functions that can obtain sentiment scores from Twitter, news outlets, capture trends, and more. For example, let’s gauge the headlines sentiment of AMZN:
stocks/ba/load AMZN
headlines
Some of the additional features that you can explore in the Behavioral Analysis section are the following:
- snews – stock price displayed over the sentiment of news headlines
- wsb – shows what the Reddit WallStreetBets are up to
- reddit_sent – searches ticker through Reddit to find its sentiment
- stalker – stalks Stocktwits user’s last messages
- infer – infers stocks sentiment from the latest tweets
- queries – returns top-related queries with the stock
- rise – shows top rising queries related to the stock
- jcdr – shows Jim Cramer’s daily recommendations
- mentions – interest over time-based on stock mentions
- and much more
How to do quantitative analysis with OpenBB?
To do quantitative analysis with OpenBB, you will need to access the qa
submenu and utilize functions that are categorized into statistics, plots, rolling metrics, risk, and others. For example, let’s load the Dropbox stock and compare its Beta to Box:
stocks/qa/load DBX
beta -r BOX
As another example, let’s check the trend and seasonality of DBX:
decompose
Some of the additional features that you can explore in the Quantitative Analysis section are the following:
- Statistics
- summary – brief summary of the stock
- normality – normality stats and tests
- unitroot – unit root test for stationarity (ADF, KPSS)
- Plots
- line – line plots
- hist – histograms with density plots
- cdf – cumulative distribution function
- bw – box and whisker plots
- and more
- Rolling Metrics
- rolling – rolling mean and standard deviation (SD)
- spread – rolling variance and SD
- quantile – rolling median and quantile of prices
- skew – rolling skewness of distribution of prices
- kurtosis – rolling kurtosis of the distribution of prices
- Risk
- var – display value at risk
- es – display expected shortfall
- sh – display sharpe ratio
- so – display sortino ratio
- om – display omega ratio
- Other
- raw – print raw data
- decompose – decomposition in cyclic-trend, season, and residuals of prices
- cusum – detects abrupt changes using cumulative sum algorithm of prices
- capm – capital asset pricing model
- beta – display beta w.r.t to any reference ticker
How to do technical analysis with OpenBB?
To do technical analysis with OpenBB, you will need to access the ta
submenu and utilize its functions which are categorized into overlap, momentum, trend, volatility, volume, and custom. For example, let us load BTC data and plot the Bollinger Bands for it:
crypto/ta/load BTC
bbands
For another example, let’s show the stochastic oscillator:
stoch
Some of the additional features that you can explore in the Technical Analysis section are the following:
- Overlap
- ema
- sma
- wma
- hma
- zlma
- vwap
- Momentum
- cci – commodity channel index
- macd
- rsi
- rsp – relative strength percentile
- stoch
- fisher
- cg – centre of gravity
- clenow – clenow volatility adjusted momentum
- Trend
- adx
- aroon
- Volatility
- bbands
- donchian
- kc
- Volume
- ad – accumulation/distribution line
- adosc – chaikin oscillator
- obv – on balance volume
- Custom
- fib
What is OpenBB Automation and Scripting?
OpenBB Automation and Scripting provides commands and pipeline capabilities to speed up investment research using .openbb
files. It can also serve as documentation. Scripts can be executed with the exe
function followed by the script’s name.
How to write your automated script in OpenBB?
To write your automated script in OpenBB, you will need to add a script to the routines folder. They are written the same way that you would use the terminal and end in the .openbb
file extension. You can copy and edit existing scripts or create new ones.
It is important that any of your scripts remain inside of the routines folder in order to be executable by the OpenBB Terminal. Below is a simple script that takes an asset symbol as an argument and shows insider trading stats:
# exe example_with_inputs.openbb -i TSLA,AAPL,MSFT
# Go to the stocks menu
stocks
# Load a ticker, given the argument used. E.g. -i TSLA
load $ARGV[0]
# Go to insider trading
ins
# Show insider stats
stats
These scripts can be as simple or complicated as for your needs.
What is the OpenBB Bot?
OpenBB Bot is a chatting bot for investment research that provides access to financial data for investors and online communities. It can be added to your Telegram or Discord for ease of use and has over 100 commands to interact with.
How to use OpenBB Bot with Telegram?
To use OpenBB Bot with Telegram, you can start chatting with it by accessing the following URL. Click on the Menu to see all the available options and parameters they require. For example, let’s ask for some information about ETH.
Where can I learn more about OpenBB?
To learn more about OpenBB, I advise visiting their website, reading the documentation, and checking out their GitHub repo.