PyQuant News 🐍
PyQuant News 🐍

@pyquantnews

23 Tweets 32 reads Oct 06, 2022
A Bloomberg Terminal costs $27,660 per year (raising to $30,000 in 2023).
It's the portal to all the world's financial data.
Reserved for the Wall Street elite to outfox the normal investor.
Unaffordable for 99.9% of us.
Until now:
In case you're unfamiliar:
β€’ Over 325,000 people use Bloomberg daily
β€’ Used for market data, trading, and research
β€’ Launched in 1981 by billionaire Michael Bloomberg
It's a modern icon of financial markets.
So, how can you compete?
With the OpenBB Terminal (previously GameStonk Terminal):
A Python-based environment for investment research.
There are over 500 functions covering:
β€’ ETFs
β€’ Forex
β€’ Stocks
β€’ Crypto
β€’ Options
β€’ Portfolio
β€’ Economy
β€’ Mutual funds
β€’ Econometrics
Let's dive in:
But first, exciting news!
A new release is launching soon that unlocks more access to more data.
β€’ Custom reports and dashboards
β€’ A full ML forecasting menu
β€’ Custom data import
β€’ All new SDK
Strap on your seat belt, let's go!
Let's start by analyzing Tesla.
First, type *stocks* at the command prompt to show the menu.
These are all the sub menus you can explore to analyze stocks.
The menu items in grey are not available until you load stock data.
Let's load TSLA now.
Type *load TSLA*.
This will load TSLA price data (for free) and print out a performance summary.
Now we can start to analyze TSLA.
Type *help* to see that all 17 sub menus are now available.
There's too much here to cover in a thread.
Take some time and explore each of the sub menus to find the functions.
Let's keep going.
We start with a fundamental analysis.
Load the fundamental analysis functions by typing *fa*.
OpenBB presents another list of functions to analyze TLSA's fundamentals.
Let's check out how the market capitalization has changed through time.
Type *mktcap*.
Voila!
OpenBB opens up a chart in a separate window.
Check out some of the other functions now.
To go back, type *q*.
Let's move on to technical analysis by typing *ta*.
Since TSLA is already loaded, all 25 of the menu items are lit up.
Let's check out the exponential moving average
Type *ema*.
OpenBB opens up a new window with the price chart and EMA.
Let's check out all our favorite:
Quantitative analysis.
Type *q* to go back and type *qa* to open the menu.
OpenBB has 23 functions for quantitative analysis.
By default, all analyses are done on returns.
If you want to change the data field, type *pick* then a space.
If you like Tweets about Python code and tools for quant finance, you might enjoy my weekly newsletter: The PyQuant Newsletter.
Real Python code for quant finance you can use now.
Join 5,400+ subscribers who are taking action with Python.
pyquantnews.com
Let's check out a histogram of returns.
This gives you an idea of the shape of the distribution.
It also lets you view and return outliers.
Type *hist* and OpenBB opens up a histogram of returns.
Rumor has it that hedge funds rely on signal processing to make trade decisions.
Let's decompose the cyclic-trend, season, and residuals of price.
Type *decompose*.
OpenBB has rich options analysis functionality.
Let's check it out.
Type *q* to go back and type *options*.
You can run an analysis on unusual activity or an options screener.
I want to analyze options for TSLA.
We first need to load an expiration.
Type *exp* to display a list of expirations.
Then type *exp {number}* to load data for a specific option.
I'll select the September expiration for TSLA by typing *exp 7*.
Type *help* again.
All the menus are now available.
The put call ratio is the ratio of open interest in put options divided by the open interest in call options.
Values over 1 indicate bearish sentiment.
Type *pcr* to plot this ratio.
If you're interested in options trading, you may like the 46-Page Ultimate Guide to Pricing Options and Implied Volatility With Python.
β€’ Black-Scholes pricing
β€’ Calculate the greeks
β€’ Compute implied volatility
All with Python.
pyquantnews.gumroad.com
More with OpenBB:
Screeners
Sentiment
Forex data
Excel models
Co-integration
Autocorrelation
Max drawdown
Volatility surface
Economic indexes
Crypto order books
Time series analysis
Portfolio optimization
Brokerage integration
Mutual fund allocation
Custom reports & dashboards
There's a lot to explore with OpenBB.
Can't get to it all today?
Hop back to the top and retweet the top tweet so you can find it later - and so others can find it too!
Then, follow @pyquantnews to get started with Python for quant finance.

Loading suggestions...