- Discover Stocks
- Behavioural Analysis
- Research
- Fundamental Analysis
- Technical Analysis
- Due Diligence
- Prediction Techniques
- Portfolio Analysis
- Brokers
- Portfolio Optimization
- Cryptocurrencies
- Comparison Analysis
- Exploratory Data Analysis
- Residual Analysis
- Economy
- Options
- Screener
- Insider
- Forex
- Backtesting
- Resource Collection
- Government
- ETF
The main menu allows the following commands:
usage: load [-t S_TICKER] [-s S_START_DATE] [-i {1,5,15,30,60}] [--source {yf,av,iex}] [-p]
- Load stock ticker to perform analysis on. When the data source is 'yf', an Indian ticker can be loaded by using '.NS'
at the end, e.g. 'SBIN.NS'. See available market in https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html.
- -t : Stock ticker
- -s : The starting date (format YYYY-MM-DD) of the stock
- -i : Intraday stock minutes
- --source : Source of historical data. 'yf' and 'av' available. Default 'yf'
- -p : Pre/After market hours. Only works for 'yf' source, and intraday data
Note: Until a ticker is loaded, the menu will only show disc and sen menu, as the others require a ticker being provided.
usage: clear
- Clear previously loaded stock ticker.
view
Line plot color is configurable in config_plot.py
quote -t S_TICKER
- Show the current price of a stock.
candle -s START_DATE
- Visualize candles historical data, with support and resistance bars, and moving averages of 20 and 50.
export -f GNUS_data -F csv
- Exports the historical data from this ticker to a file or stdout.
- -f : Name of file to save the historical data exported (stdout if unspecified). Default: stdout.
- -F : Export historical data into following formats: csv, json, excel, clipboard. Default: csv.
Discover Stocks »
Command | Description | Source |
---|---|---|
ipo |
past and future IPOs | Finnhub |
map |
S&P500 index stocks map | Finviz |
rtp_sectors |
real-time performance sectors | Alpha Vantage |
gainers |
show latest top gainers | Yahoo Finance |
losers |
show latest top losers | Yahoo Finance |
orders |
orders by Fidelity Customers | Fidelity |
ark_orders |
orders by ARK Investment Management LLC | Cathiesark |
up_earnings |
upcoming earnings release dates | Seeking Alpha |
high_short |
show top high short interest stocks of over 20% ratio | High Short Interest |
low_float |
show low float stocks under 10M shares float | Low Float |
simply_wallst |
Simply Wall St. research data | Simply Wall St. |
spachero |
great website for SPACs research | SpacHero |
uwhales |
good website for SPACs research | UnusualWhales |
valuation |
valuation of sectors, industry, country | Finviz |
performance |
performance of sectors, industry, country | Finviz |
spectrum |
spectrum of sectors, industry, country | Finviz |
latest |
latest news | Seeking Alpha |
trending |
trending news | Seeking Alpha |
darkpool |
dark pool tickers with growing activity | FINRA |
darkshort |
dark pool short position | Stockgrid |
shortvol |
short interest and days to cover | Stockgrid |
Behavioural Analysis »
Command | Description |
---|---|
FinBrain | |
finbrain |
sentiment from 15+ major news headlines |
stats |
sentiment stats including comparison with sector |
wsb |
show what WSB gang is up to in subreddit wallstreetbets |
watchlist |
show other users watchlist |
popular |
show popular tickers |
spac_c |
show other users spacs announcements from subreddit SPACs community |
spac |
show other users spacs announcements from other subs |
Stocktwits | |
bullbear |
estimate quick sentiment from last 30 messages on board |
messages |
output up to the 30 last messages on the board |
trending |
trending stocks |
stalker |
stalk stocktwits user's last message |
infer |
infer about stock's sentiment from latest tweets |
sentiment |
in-depth sentiment prediction from tweets over time |
mentions |
interest over time based on stock's mentions |
regions |
regions that show highest interest in stock |
queries |
top related queries with this stock |
rise |
top rising related queries with stock |
Research »
Command | Website |
---|---|
macroaxis |
https://www.macroaxis.com |
yahoo |
https://www.finance.yahoo.com |
finviz |
https://www.finviz.com |
marketwatch |
https://www.marketwatch.com |
fool |
https://www.fool.com |
businessinsider |
https://www.markets.businessinsider.com |
fmp |
https://www.financialmodelingprep.com |
fidelity |
https://www.eresearch.fidelity.com |
tradingview |
https://www.tradingview.com |
marketchameleon |
https://www.marketchameleon.com |
stockrow |
https://www.stockrow.com |
barchart |
https://www.barchart.com |
grufity |
https://www.grufity.com |
fintel |
https://www.fintel.com |
zacks |
https://www.zacks.com |
macrotrends |
https://www.macrotrends.net |
newsfilter |
https://www.newsfilter.io |
stockanalysis |
https://www.stockanalysis.com |
Fundamental Analysis »
Command | Description |
---|---|
screener |
screen info about the company (Finviz) |
mgmt |
management team of the company (Business Insider) |
score |
investing score from Warren Buffett, Joseph Piotroski and Benjamin Graham (FMP) |
dcf |
a discounted cash flow with an option to edit in excel |
Yahoo Finance API | |
info |
information scope of the company |
shrs |
shareholders of the company |
sust |
sustainability values of the company |
cal |
calendar earnings and estimates of the company |
Alpha Vantage API | |
overview |
overview of the company |
income |
income statements of the company |
balance |
balance sheet of the company |
cash |
cash flow of the company |
earnings |
earnings dates and reported EPS |
fraud |
key fraud ratios |
Financial Modeling Prep API | |
profile |
profile of the company |
quote |
quote of the company |
enterprise |
enterprise value of the company over time |
dcf |
discounted cash flow of the company over time |
income |
income statements of the company |
balance |
balance sheet of the company |
cash |
cash flow of the company |
metrics |
key metrics of the company |
ratios |
financial ratios of the company |
growth |
financial statement growth of the company |
Technical Analysis »
Command | Description | Sources |
---|---|---|
view |
view historical data and trendlines | Finviz |
summary |
technical summary report | FinBrain |
recom |
recommendation based on Technical Indicators | Tradingview |
pr |
pattern recognition | Finnhub |
overlap | ||
ema |
exponential moving average | Wikipedia, Investopedia |
sma |
simple moving average | Wikipedia, Investopedia |
vwap |
volume weighted average price | Wikipedia, Investopedia |
momentum | ||
cci |
commodity channel index | Wikipedia, Investopedia |
macd |
moving average convergence/divergence | Wikipedia, Investopedia |
rsi |
relative strength index | Wikipedia, Investopedia |
stoch |
stochastic oscillator | Wikipedia, Investopedia |
trend | ||
adx |
average directional movement index | Wikipedia, Investopedia |
aroon |
aroon indicator | Investopedia |
volatility | ||
bbands |
bollinger bands | Wikipedia, Investopedia |
volume | ||
ad |
accumulation/distribution line values | Wikipedia, Investopedia |
obv |
on balance volume | Wikipedia, Investopedia |
custom | ||
fib |
Fibonocci levels | Investopedia |
Due Diligence »
Command | Description | Source |
---|---|---|
news |
latest news of the company | Finviz |
red |
gets due diligence from another user's post | |
analyst |
analyst prices and ratings of the company | Finviz |
rating |
rating of the company from strong sell to strong buy | FMP |
pt |
price targets over time | Business Insider |
rot |
ratings over time | Finnhub |
est |
quarter and year analysts earnings estimates | Business Insider |
ins |
insider activity over time | Business Insider |
insider |
insider trading of the company | Finviz |
sec |
SEC filings | MarketWatch |
short |
short interest | Quandl |
warnings |
company warnings according to Sean Seah book | MarketWatch |
dp |
dark pools (ATS) vs OTC data FINRA | |
ftd |
display fails-to-deliver data SEC | |
shortview |
shows price vs short interest volume Stockgrid | |
darkpos |
net short vs position Stockgrid | |
supplier |
list of suppliers csimarket | |
customer |
list of customers csimarket |
Prediction Techniques »
Command | Technique | Sources |
---|---|---|
knn |
k-Nearest Neighbors | Wikipedia |
linear |
linear regression (polynomial 1) | Wikipedia, Investopedia |
quadratic |
quadratic regression (polynomial 2) | Wikipedia, Investopedia |
cubic |
cubic regression (polynomial 3) | Wikipedia, Investopedia |
regression |
regression (other polynomial) | Wikipedia, Investopedia |
arima |
autoregressive integrated moving average | Wikipedia, Investopedia |
mlp |
MultiLayer Perceptron | Wikipedia |
rnn |
Recurrent Neural Network | Wikipedia |
lstm |
Long Short-Term Memory | Wikipedia, Details |
conv1d |
1D Convolution Neural Net | Wikipedia |
Portfolio Analysis »
Command | Description |
---|---|
load |
load portfolio from a file |
group |
view holdings by a user input group |
Brokers »
Command | Description | Brokers |
---|---|---|
login |
login to your brokers | |
rhhold |
view robinhood holdings | Robinhood |
rhhist |
plot robinhood portfolio history | Robinhood |
allyhold |
view ally holdings | Ally |
hold |
view net holdings across all logins | |
degiro |
degiro standalone menu | Degiro |
Degiro command | Description |
---|---|
cancel |
cancel an order using the id |
companynews |
view news about a company with it's isin |
create |
create an order |
hold |
view holdings |
lastnews |
view latest news |
login |
connect to degiro's api |
logout |
disconnect from degiro's api |
lookup |
view search for a product by name |
pending |
view pending orders |
topnews |
view top news preview |
update |
view top news preview |
Portfolio Optimization »
Command | Description |
---|---|
add |
add ticker to optimize |
select |
overwrite current tickers with new tickers |
equal |
equally weighted |
property |
weight according to selected info property (e.g. marketCap) |
maxsharpe |
optimizes for maximal Sharpe ratio (a.k.a the tangency portfolio) |
minvol |
optimizes for minimum volatility |
maxquadutil |
maximises the quadratic utility, given some risk aversion |
effret |
maximises return for a given target risk |
effrisk |
minimises risk for a given target return |
ef |
show the efficient frontier |
Cryptocurrency »
Command | Description |
---|---|
coingecko | |
load |
load cryptocurrency data |
view |
view loaded cryptocurrency data |
trend |
view top 7 coins |
coinmarketcap | |
top |
view top coins from coinmarketcap |
binance | |
select |
select coin/currency to use and load candle data |
book |
show order book |
candle |
show candles |
balance |
show coin balance |
Comparison Analysis »
Command | Description | Source |
---|---|---|
get |
get similar companies | Polygon |
select |
select similar companies | |
historical |
historical price data comparison | Yahoo Finance |
hcorr |
historical price correlation | Yahoo Finance |
income |
income financials comparison | MarketWatch |
balance |
balance financials comparison | MarketWatch |
cashflow |
cashflow comparison | MarketWatch |
sentiment |
sentiment analysis comparison | FinBrain |
scorr |
sentiment correlation | FinBrain |
Exploratory Data Analysis »
Command | Description | Source |
---|---|---|
get |
get similar companies | Polygon |
select |
select similar companies | |
historical |
historical price data comparison | Yahoo Finance |
hcorr |
historical price correlation | Yahoo Finance |
income |
income financials comparison | MarketWatch |
balance |
balance financials comparison | MarketWatch |
cashflow |
cashflow comparison | MarketWatch |
sentiment |
sentiment analysis comparison | FinBrain |
scorr |
sentiment correlation | FinBrain |
Residual Analysis »
Command | Description | Source |
---|---|---|
pick |
pick one of the model fitting | Supports ARIMA, Naive |
fit |
show model fit against stock | Wikipedia |
res |
show residuals | Wikipedia |
hist |
histogram and density plot | Wikipedia |
qqplot |
residuals against standard normal curve | Wikipedia |
acf |
(partial) auto-correlation function | Wikipedia |
normality |
normality test (Kurtosis,Skewness,...) | Wikipedia |
goodness |
goodness of fit test (Kolmogorov-Smirnov) | Wikipedia |
arch |
autoregressive conditional heteroscedasticity | Wikipedia |
unitroot |
unit root test / stationarity (ADF, KPSS) | Wikipedia |
independence |
tests independent and identically distributed (BDS) | Wikipedia |
Economy »
Command | Description | Source |
---|---|---|
feargreed |
CNN Fear Greed Index | https://money.cnn.com/data/fear-and-greed/ |
events |
economic impact events | https://finnhub.io |
fred |
display customized FRED data | https://fred.stlouisfed.org |
vixcls |
Volatility Index | https://fred.stlouisfed.org |
gdp |
Gross Domestic Product | https://fred.stlouisfed.org |
unrate |
Unemployment Rate | https://fred.stlouisfed.org |
dgs1 |
1-Year Treasury Constant Maturity Rate | https://fred.stlouisfed.org |
dgs5 |
5-Year Treasury Constant Maturity Rate | https://fred.stlouisfed.org |
dgs10 |
10-Year Treasury Constant Maturity Rate | https://fred.stlouisfed.org |
dgs30 |
30-Year Treasury Constant Maturity Rate | https://fred.stlouisfed.org |
mortgage30us |
30-Year Fixed Rate Mortgage Average | https://fred.stlouisfed.org |
fedfunds |
Effective Federal Funds Rate | https://fred.stlouisfed.org |
aaa |
Moody's Seasoned AAA Corporate Bond Yield | https://fred.stlouisfed.org |
dexcaus |
Canada / U.S. Foreign Exchange Rate (CAD per 1 USD) | https://fred.stlouisfed.org |
overview |
Market overview | https://www.wsj.com/market-data |
indices |
US indices overview | https://www.wsj.com/market-data |
futures |
Futures/commodities overview | https://www.wsj.com/market-data |
us_bonds |
US bonds overview | https://www.wsj.com/market-data |
gl_bonds |
Global bonds overview | https://www.wsj.com/market-data |
currencies |
Global currencies overview | https://www.wsj.com/market-data |
Options »
Command | Description | Source |
---|---|---|
disp |
Display all preset screeners filters | |
scr |
Output screener options | |
load |
Load new ticker | |
info |
Display option information | Barchart |
calc |
Basic option PnL calculator | |
act |
Scrapes unusual options activity | |
exp |
see/set expiry date | |
chains |
displays option chains | Tradier |
oi |
Plot open interest | |
vol |
Plot volume | |
voi |
Plot volume and open interest | |
hist |
Plot historical options data | Tradier |
gr_hist |
Plot historical option greek | Syncretism |
Screener »
Command | Description | Source |
---|---|---|
view | view available presets | presets |
set | set one of the available presets | |
historical | view historical price | Yahoo Finance |
Finviz | ||
overview | overview (e.g. Sector, Industry, Market Cap, Volume) | |
valuation | valuation (e.g. P/E, PEG, P/S, P/B, EPS this Y) | |
financial | financial (e.g. Dividend, ROA, ROE, ROI, Earnings) | |
ownership | ownership (e.g. Float, Insider Own, Short Ratio) | |
performance | performance (e.g. Perf Week, Perf YTD, Volatility M) | |
technical | technical (e.g. Beta, SMA50, 52W Low, RSI, Change) | |
signals | view filter signals (e.g. -s top_gainers) |
Insider »
Command | Description | Source |
---|---|---|
view | view available presets | presets |
set | set one of the available presets | |
filter | filter insiders based on preset | Open Insider |
Latest | ||
lcb | latest cluster boys | |
lpsb | latest penny stock buys | |
lit | latest insider trading (all filings) | |
lip | latest insider purchases | |
blip | big latest insider purchases ($25k+) | |
blop | big latest officer purchases ($25k+) | |
blcp | big latest CEO/CFO purchases ($25k+) | |
lis | latest insider sales | |
blis | big latest insider sales ($100k+) | |
blos | big latest officer sales ($100k+) | |
blcs | big latest CEO/CFO sales ($100k+) | |
Top | ||
topt | top officer purchases today | |
toppw | top officer purchases past week | |
toppm | top officer purchases past month | |
tipt | top insider purchases today | |
tippw | top insider purchases past week | |
tippm | top insider purchases past month | |
tist | top insider sales today | |
tispw | top insider sales past week | |
tispm | top insider sales past month |
Forex »
Command | Description |
---|---|
summary | display a summary of your account |
calendar | get information about past or upcoming events which may impact the price |
list | list your order history |
pending | get information about pending orders |
cancel | cancel a pending order by ID |
positions | get information about your positions |
trades | see a list of open trades |
closetrade | close a trade by ID |
load | specify an instrument to use |
candles | get a candlestick chart for the forex instrument |
price | show the current price for the forex instrument |
order | place a limit order |
orderbook | display the orderbook if Oanda provides one for the forex instrument |
positionbook | display the positionbook if Oanda provides one for the forex instrument |
Backtesting »
Command | Description |
---|---|
ema |
buy when price exceeds EMA(l) |
ema_cross |
buy when EMA(short) > EMA(long) |
rsi |
buy when RSI < low and sell when RSI > high |
Resource Collection »
Command | Website |
---|---|
hfletters |
https://miltonfmr.com/hedge-fund-letters/ |
arxiv |
https://arxiv.org |
finra |
https://www.finra.org/#/ |
edgar |
https://www.sec.gov/edgar.shtml |
fred |
https://fred.stlouisfed.org |
learn |
https://moongangcapital.com/free-stock-market-resources/ |
Government »
Command | Website |
---|---|
last_congress |
last congress trading |
buy_congress |
plot top buy congress tickers |
sell_congress |
plot top sell congress tickers |
last_senate |
last senate trading |
buy_senate |
plot top buy senate tickers |
sell_senate |
plot top sell senate tickers |
last_house |
last house trading |
buy_house |
plot top buy house tickers |
sell_house |
plot top sell house tickers |
last_contracts |
last government contracts |
sum_contracts |
plot sum of last government contracts |
with ticker provided | |
raw_congress |
raw congress trades on the ticker |
congress |
plot congress trades on the ticker |
raw_senate |
raw senate trades on the ticker |
senate |
plot senate trades on the ticker |
raw_house |
raw house trades on the ticker |
house |
plot house trades on the ticker |
raw_contracts |
raw contracts on the ticker |
contracts |
plot sum of contracts on the ticker |
ETF »
command | description |
---|---|
web |
open webbroswer to stockanalysis.com |
search |
search for ETFs matching an input |
overview |
get ETF overview |
holdings |
show ETF holdings |
compare |
compare multiple ETFs overview |
screener |
screen ETFs |
gainers |
show top gainers |
decliners |
show top decliners |
active |
show most active |