Git Product home page Git Product logo

openbbterminal's People

Contributors

aia avatar alokan avatar andrewkenreich avatar arcutright avatar buzzcraft avatar cclauss avatar chavithra avatar clothespin avatar colin99d avatar deeleeramone avatar devwolff avatar didierrlopes avatar hinxx avatar igorwounds avatar jerbouma avatar jmaslek avatar jose-donato avatar kulbinderdio avatar lolrenx avatar luqmanbello avatar martinb-ai avatar minhhoang1023 avatar montezdesousa avatar northern-64bit avatar piiq avatar shadycuz avatar simmonsj330 avatar soggyomelette avatar tehcoderer avatar the-praxs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openbbterminal's Issues

macOS Installation nitpicks and a crash

Very impressive work, thanks for offering this up to the community.

Installation took a few passes. In the end, I needed to do these installations after installing the requirements.txt

pip uninstall pandas_ta
pip install pandas_ta
pip install python-Levenshtein
pip install lunarcalendar
pip install fbprophet

Not sure why I had to uninstall pandas, but doing so let me continue.

So far, running disc > sectors gives a segfault. I have added my AlphaVantage key although to be fair I just signed up for this project so I'm not positive it's active?

ERROR: No matching distribution found for sentencepiece==0.1.91

$ pip install -r requirements.txt
[...]
Collecting sentencepiece==0.1.91
  Using cached sentencepiece-0.1.91.tar.gz (500 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/jesse/.pyenv/versions/3.9.0/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/setup.py'"'"'; __file__='"'"'/tmp/pip-in
stall-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"
'))' egg_info --egg-base /tmp/pip-pip-egg-info-qcmgf7cu
         cwd: /tmp/pip-install-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/
    Complete output (5 lines):
    Package sentencepiece was not found in the pkg-config search path.
    Perhaps you should add the directory containing `sentencepiece.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'sentencepiece' found
    Failed to find sentencepiece pkgconfig
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ba/f6/520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086/sentencepiece-0.1.91.tar.gz#sha256=f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f (from
 https://pypi.org/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sentencepiece==0.1.91
ERROR: No matching distribution found for sentencepiece==0.1.91

How to you load a stock?

Hi there!
The -t S_ticker [-s S_start_date]... is confusing me. What does the -t mean, do I put the date there? What is going on haha

Thank you,
Quaid

Some stock Tickers(NSE & BSE) are missing in Timeseries AlphaVantage module

Hello ! Kudos to great work. Currently I'm going through all the code to understand the terminal. I live in india and We have two stock markets - NSE & BSE. I couldn't find any list of stock tickers from india which are available in this module ? Can you share the list of available shares which are available in Timeseries AlphaVantage module if they're availalbe with you ? Else Can you suggest any other free API which i can use instead of alphavantage ?

Can't install with python 3.7.4 on Windows 10

tensorflow_gpu==1.1.0

is not found.

Collecting tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4))
Could not find a version that satisfies the requirement tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4)) (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 1.15.5, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1)
No matching distribution found for tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4))

After running don't see anything?

I tried running:

load -t GME -s 2020-02-25 -i 5
Loading Intraday 5min GME stock with starting period 2020-02-25 for analysis.

But the command finished and I'm not seeing anything? Am I doing something wrong? Don't see errors either..

Thanks

Ubuntu 20.04: Errors on Install

I get several errors while installing the requirements on Ubuntu 20.04.


Building wheel for appscript (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8zf7z1dv
cwd: /tmp/pip-install-47q6av7/appscript/
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying appscript_3x/lib/mactypes.py -> build/lib.linux-x86_64-3.8
copying appscript_3x/lib/osax.py -> build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/kae.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/init.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemcodecs.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemconnect.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/findapp.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemsend.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/typewrappers.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/mactypes.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemreference.py -> build/lib.linux-x86_64-3.8/aem
creating build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/defaultterminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/keywordwrapper.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/init.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reservedkeywords.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/referencerenderer.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/genericreference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminologyparser.py -> build/lib.linux-x86_64-3.8/appscript
running build_ext
building 'aem.ae' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/appscript_3x
creating build/temp.linux-x86_64-3.8/appscript_3x/ext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c appscript_3x/ext/ae.c -o build/temp.linux-x86_64-3.8/appscript_3x/ext/ae.o -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_6 -D__LP64

In file included from appscript_3x/ext/ae.c:16:
appscript_3x/ext/ae.h:26:10: fatal error: Carbon/Carbon.h: Datei oder Verzeichnis nicht gefunden
26 | #include <Carbon/Carbon.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Building wheel for fbprophet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/fbprophet/setup.py'"'"'; file='"'"'/tmp/pip-install-_47q6av7/fbprophet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-o8c5hg2u
cwd: /tmp/pip-install-_47q6av7/fbprophet/
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/fbprophet
creating build/lib/fbprophet/stan_model
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 122, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 48, in run
build_models(target_dir)
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 36, in build_models
from fbprophet.models import StanBackendEnum
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/init.py", line 8, in
from fbprophet.forecaster import Prophet
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/forecaster.py", line 17, in
from fbprophet.make_holidays import get_holiday_names, make_holidays_df
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/make_holidays.py", line 14, in
import fbprophet.hdays as hdays_part2
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/hdays.py", line 13, in
from convertdate.islamic import from_gregorian, to_gregorian
ModuleNotFoundError: No module named 'convertdate'


Running setup.py install for appscript ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j24seff8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/[...]/.local/include/python3.8/appscript
cwd: /tmp/pip-install-47q6av7/appscript/
Complete output (40 lines):
running install
Distribution option extra_path is deprecated. See issue27919 for details.
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying appscript_3x/lib/mactypes.py -> build/lib.linux-x86_64-3.8
copying appscript_3x/lib/osax.py -> build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/kae.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/init.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemcodecs.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemconnect.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/findapp.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemsend.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/typewrappers.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/mactypes.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemreference.py -> build/lib.linux-x86_64-3.8/aem
creating build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/defaultterminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/keywordwrapper.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/init.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reservedkeywords.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/referencerenderer.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/genericreference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminologyparser.py -> build/lib.linux-x86_64-3.8/appscript
running build_ext
building 'aem.ae' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/appscript_3x
creating build/temp.linux-x86_64-3.8/appscript_3x/ext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c appscript_3x/ext/ae.c -o build/temp.linux-x86_64-3.8/appscript_3x/ext/ae.o -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_6 -D__LP64

In file included from appscript_3x/ext/ae.c:16:
appscript_3x/ext/ae.h:26:10: fatal error: Carbon/Carbon.h: Datei oder Verzeichnis nicht gefunden
26 | #include <Carbon/Carbon.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j24seff8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/[...]/.local/include/python3.8/appscript Check the logs for full command output.

Somebody had these issues or has an idea how to resolve?

Proper typing

Python 3 offers typing support: https://docs.python.org/3/library/typing.html

You are still using prefixes in your method parameters like s_, l_ etc. to indicate, that a parameter must be a string or list etc.

Why do not use Python3 typing instead? l_whatever will become whatever: list

Brand new to coding etc

So, this may not be the right place for this but I am completely new to coding (although not trading). I have downloaded python and the files for this terminal however am having a hell of a time opening and running it.

Any help on how to install the terminal would be really welcome.

can't get predictions to work

Hi,

I keep getting this error when trying predictions techniques:

To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

is it something wrong with the way I run the commands? check below:

> help

Daily Stock: TSLA (from 2021-01-01)

Prediction Techniques:
   help        show this prediction techniques menu again
   q           quit this menu, and shows back to main menu
   quit        quit to abandon program

   sma         simple moving average
   knn         k-Nearest Neighbors
   linear      linear regression (polynomial 1)
   quadratic   quadratic regression (polynomial 2)
   cubic       cubic regression (polynomial 3)
   regression  regression (other polynomial)
   arima       autoregressive integrated moving average
   prophet     Facebook's prophet prediction
   mlp         MultiLayer Perceptron
   rnn         Recurrent Neural Network
   lstm        Long-Short Term Memory

> knn
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

> linear
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

> lstm
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

> rnn
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

> cubic
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs

> 

Thank!

[Feature] Support for asynchronous requests and data exports

In true algotrading fashion having support for data exports would be really helpful (csv probably) for those trying to perform other analysis on the data without directly building onto the terminal itself. Maybe an abstract Data class with methods for flexible loading/exporting would be best for this, but you're the expert. Also, support for multiple ticker data requests would be useful when trying to compile and export this data, so some implementation of asyncio could be beneficial there in the long term for those trying to gather large quantities of data on slower connections.

Also, I love these small Easter egg type things: print("Hope you made money today. Good bye my lover, good bye my friend.\n")

DASH + Predictions exported to CSV + Predictions to multiple tickers

Thank you for doing this. It is impressive.

I tested LSTM with a ticker whose df_stock begins in May 2006. The predictions were for dates beginning on May 11 2006.

This should be predictions for dates starting at the end of the series, so in 2021. I will attempt to debug this. I would really like to see it working.

scipy==1.6.1

This came through when installing requirements.txt on Mac:

ERROR: Could not find a version that satisfies the requirement scipy==1.6.1
ERROR: No matching distribution found for scipy==1.6.1

Appscript not supported on Windows (and is deprecated)

Running pip install -r requirements.txt results in

fatal error C1083:  Cannot open include file: 'Carbon/Carbon.h': No such file or directory

on Windows which is required by appscript.

I am not sure if you intend this project to also run on Windows, yet I would like to point out that appscript is no longer maintained, see http://appscript.sourceforge.net/ I am not even sure where you use it searching on GitHub on the strings App( and appscript yields no hits beyond requirements.txt.

Can't run app / can't install appscript and fbprophet

This is what I get when trying to run it. Couldn't install appscript and fbprophet. Python 3.8.8 (Win 10)

(venv_for_GamestonkTerminal) D:\Downloads\GamestonkTerminal-main>gamestonk_terminal.py
Traceback (most recent call last):
File "D:\Downloads\GamestonkTerminal-main\gamestonk_terminal.py", line 12, in
from prediction_techniques import pred_menu as pm
File "D:\Downloads\GamestonkTerminal-main\prediction_techniques\pred_menu.py", line 16, in
from prediction_techniques import fbprophet
File "D:\Downloads\GamestonkTerminal-main\prediction_techniques\fbprophet.py", line 11, in
from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'

(venv_for_GamestonkTerminal) D:\Downloads\GamestonkTerminal-main>

Getting Started Section

This looks super interesting and I'd like to use it, but I'm not sure how to get started.
I've installed the requirements ok, but how do I begin using it?
It would be really useful to have a "getting started" section in the readme.

ModuleNotFoundError: No module named 'flair'

I followed this guide https://imgur.com/a/gqgVJPn to setup the terminal in anaconda environment but I'm getting the flair module error even though that is already installed along with pytorch. Can someone clarify me on this about what I should do ?

This is the complete error I'm getting -

warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
Traceback (most recent call last):
File "D:\rPython\GamestonkTerminal\gamestonk_terminal.py", line 11, in
from sentiment import sen_menu as sm
File "D:\rPython\GamestonkTerminal\sentiment\sen_menu.py", line 5, in
from sentiment import twitter_api
File "D:\rPython\GamestonkTerminal\sentiment\twitter_api.py", line 5, in
import flair
ModuleNotFoundError: No module named 'flair'

How to get it up and running on macOS Big Sur

Hi, I saw the maintainer is planning to release a documentation. In the meanwhile I wanted to share my experience installing and running the code on macOS.
I had python3 previously setup with Anaconda (installed with homebrew brew install --cask anaconda).
Cloned the repo with git clone https://github.com/DidierRLopes/GamestonkTerminal.git.
cd into the repo directory and then pip3 install -r requirements.txt.
Then I tried to run the script but some errors came out.
First prawcore said it was outdated.
Second Importing plotly failed. Interactive plots will not work. solved with pip install --upgrade plotly.
Finally the code was running fine but crashed every time a graph had to show up. I ended up changing and updating some dependencies in ./requirements.txt:

- praw==7.1.4
- prawcore==1.5.0
+ praw==7.2.0
+ prawcore==2.0.0
...
- matplotlib==3.1.1
+ matplotlib==3.3.3

then again pip3 install -r requirements.txt.

Hope this help someone while waiting for an official starting guide. Congrats for this amazing project!

Feature request: built in screener using trading views api or similiar

While we can already see the sentiment of the market. In my opinion it would be nice to see and screen out different stock. For instance on trading view I love to filter my stocks between $.10-10$ by descending volume. I just think if it had a screener feature then this terminal would really be above everything else.

installing sentence piece is giving me an error.

I already have it so I'm not sure why it keeps giving me :
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/setup.py'"'"'; file='"'"'/private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-pip-egg-info-fogkqa8j
cwd: /private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/
Complete output (2 lines):
/bin/sh: pkg-config: command not found
Failed to find sentencepiece pkgconfig
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ba/f6/520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086/sentencepiece-0.1.91.tar.gz#sha256=f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f (from https://pypi.org/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sentencepiece==0.1.91
ERROR: No matching distribution found for sentencepiece==0.1.91

Cannot Install FBProphet

I am working through the dependencies on windows and have finally run into a snag I haven't been able to figure. During the fbprophet installation, the environment notices that pystan is missing and installs Cython, pystan, fbprophet, config, beautifulsoup4, alpha-vantage. After this, it retries running setup.py for fbprophet and quickly fails due to not finding pystan despite it being installed in the enviroment. Any guesses here?

Running 64 bit Windows 10 and an Intel i9. Sorry in advance for the poor formatting below I couldn't hunt down where it spit out the log file.

Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: Cython, pystan, fbprophet, config, beautifulsoup4, alpha-vantage
Running setup.py install for fbprophet ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"'; file='"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Jack\AppData\Local\Temp\pip-record-z8zczdsi\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\include\site\python3.6\fbprophet'
cwd: C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418
Complete output (45 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Importing plotly failed. Interactive plots will not work.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 149, in
long_description_content_type='text/markdown',
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\command\build.py", line 135, in run
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 48, in run
build_models(target_dir)
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 38, in build_models
StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR)
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\fbprophet\models.py", line 209, in build_model
import pystan
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\pystan_init_.py", line 9, in
from pystan.api import stanc, stan
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\pystan\api.py", line 13, in
import pystan._api # stanc wrapper
ImportError: DLL load failed: The specified module could not be found.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"'; file='"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Jack\AppData\Local\Temp\pip-record-z8zczdsi\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\include\site\python3.6\fbprophet' Check the logs for full command output.

Change package management to Poetry

Love the project. I think the project would see lots of benefit from moving to a different package manager then just pip and the requirements.txt. poetry would make it easier to support multiple Pythons like 3.6 to 3.10. It also would help increase development velocity by making it easier to use latest versions of dependencies and making it easier to develop/contribute by having poetry manage the virtual environment for us. poetry can also help push a package to pypi if that's a direction you want to go in and I recommend you do.

If this is something you want to explore I can push a PR with a CONTRIBUTING.md and poetry setup to manage dependencies. After that we can talk about automated testing, releases and making GameStonkTerminal pip installable.

Most of what I have in mind comes from HyperModern Python.

make predictive models reload existing data

would be nice to have pred models like the rnn and lstm load existing data without recalculating the pred every time, assuming the input data (e.g. start date) doesn't get updated

after following a guide that was posted on the thread i tried running the gamestonk_terminal within anaconda but i keep getting an error

(terminal) C:\Users\Diego>C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py
Traceback (most recent call last):
File "C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py", line 6, in
from helper_funcs import *
File "C:\Users\Diego\Documents\GitHub\GamestonkTerminal\helper_funcs.py", line 3, in
from holidays import US as holidaysUS
ModuleNotFoundError: No module named 'holidays'

Link to guide https://imgur.com/a/gqgVJPn

Ive already tried conda install holidays and theyre all in there. I dont know what to do now as the python file refuses to open.

SOLVED it looks like while everything else was in check all i had to do was open the .py file through anaconda so essentially just this: Python
C:\Users\Diego>C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py

module compiled against API version 0xe but this version of numpy is 0xd

Using python 3.8:

python3 gamestonk_terminal.py 
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
  File "gamestonk_terminal.py", line 6, in <module>
    from helper_funcs import *
  File "/Users/pel/Projects/Gamestonk/GamestonkTerminal/helper_funcs.py", line 9, in <module>
    import matplotlib
  File "/Users/pel/Library/Python/3.8/lib/python/site-packages/matplotlib/__init__.py", line 205, in <module>
    _check_versions()
  File "/Users/pel/Library/Python/3.8/lib/python/site-packages/matplotlib/__init__.py", line 190, in _check_versions
    from . import ft2font
ImportError: numpy.core.multiarray failed to import
pip3 show numpy
Name: numpy
Version: 1.19.2
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /Users/pel/Library/Python/3.8/lib/python/site-packages
Requires: 
Required-by: yfinance, transformers, torch, TimeSeriesCrossValidation, tensorflow, tensorboard, statsmodels, scipy, scikit-learn, Quandl, pystan, pmdarima, patsy, pandas, opt-einsum, matplotlib, Keras-Preprocessing, hyperopt, h5py, gensim, fbprophet, cmdstanpy, bpemb

Feature request: stock data end date

Would be nice to see how a model can be compared to current data. Like a sub option under pred to compare each model's data from 1 week ago to current prices.

TimeSeriesCrossValidation cannot be installed on Mac

When installing requirements.txt below Warning is mentioned but the protocol continues until shows an Error when trying to use the TimeSeriesCrossValidation.
Does anyone else have that issue?

Cloning https://github.com/DidierRLopes/TimeSeriesCrossValidation (to revision 1e29d393204abb3bde23ff3f15258ed85d3b263e) to /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad
Running command git clone -q https://github.com/DidierRLopes/TimeSeriesCrossValidation /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
WARNING: Discarding git+https://github.com/DidierRLopes/TimeSeriesCrossValidation@1e29d393204abb3bde23ff3f15258ed85d3b263e. Command errored out with exit status 1: git clone -q https://github.com/DidierRLopes/TimeSeriesCrossValidation /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad Check the logs for full command output.

requirements.txt errors on Ubuntu Linux

Hey, awesome project idea!

I tried installing this on Ubuntu Linux 20.04 but pip complains about the following:

xlwings (lets you bypass but sounds bad to do)
wheel (error)

I'm using python 3.6.13 on the aforementioned OS.

Installing fbprophet and appscript on Windows

Installing the requirements fbprophet and appscript fails on Windows 10 with Python 3.8.8 64bit Version. Is there a fix? I read that fbprophet needs a compiler on windows, but I couldn't figure it out yet. If there is an easy fix, I appreciate it!

Instructions to run on Python 3.8.5 / Windows 10 Ubuntu WSL

Probably not the best place but maybe helps somebody so I'm dumping here:

  1. Enable Windows subsystem for Linux - open PowerShell as Administrator and run the following thee commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
  1. Install Ubuntu 20.04 LTS from Microsoft Store

  2. Run it, let it do its thing, set username and password and you should end up in a terminal window

  3. Run the following commands to install a few dependencies and check out Gamestonk Terminal from GitHub:

sudo apt update && sudo apt upgrade -y 
sudo apt install python3-venv python3-dev g++ pkg-config libfreetype6-dev -y
git clone https://github.com/DidierRLopes/GamestonkTerminal.git
cd GamestonkTerminal
  1. Edit requirements.txt file and delete the appscript line
nano requirements.txt
  1. Next, run the following commands to create a Python virtual environment and install Gamestonk:
python3 -m venv venv_for_GamestonkTerminal
source ./venv_for_GamestonkTerminal/bin/activate
export INSTALL_ON_LINUX=1
pip3 install wheel
pip3 install numpy==1.19.2
pip3 install -r requirements.txt
  1. Run Gamestonk Terminal
python3 gamestonk_terminal.py

Note: To get plotly/graphs to work you will also need to install Nvidia beta CUDA drivers for WSL on latest Windows Insider build, which requires joining MS Insider program. Hopefully they will be out of beta soon.

You need to activate Python venv again if you close your Ubuntu terminal to run Gamestonk:

cd GamestonkTerminal
source ./venv_for_GamestonkTerminal/bin/activate
python3 gamestonk_terminal.py

Window 10

A continuation of the issuses on windows

Sorry one more, just was able to do that last one

Traceback (most recent call last):
File "gamestonk_terminal.py", line 12, in
from prediction_techniques import pred_menu as pm
File "C:\GamestonkTerminal\prediction_techniques\pred_menu.py", line 16, in
from prediction_techniques import fbprophet
File "C:\GamestonkTerminal\prediction_techniques\fbprophet.py", line 11, in
from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'

Grammatical Error in the 'Install' section

Original sentence: "Hence, it is recommended for the user to set up a virtual python environment previous to install these."

Corrected: Hence, it is recommended for the user to set up a virtual python environment prior to installing these.

feature request: pyinstaller binaries for terminal

hi,
i think it would nice to provide binaries for "end-users" , instead of using current installation method.

pip install -r requirements.txt

The python binaries can be built using pyinstaller. However the overhead would be to build windows binary on windows computer.

regards

prediction days

Hey, excellent work man. Is there a way to set prediction days ? i.e to just 1? cant find anything relating to it

Let's talk about modularity.

This is a really great job! I like what you did. I like it that much, that I would love to use some of your features in my Game Stonk Telegram Bot (https://github.com/exislow/telegram-stonks-bot).

To do so, it would be great, if you could provide all the features you offer (dd, charts, news etc.) as a separate lib, which can be installed using pip (PyPi).

I mean, it would be great if the "terminal" feature of your script is just a wrapper for all your libraries. So, everybody could re-use your libraries easily instead of ripping your code apart without almost any chance to get code update.

Also versioning would be great, or at least a stable branch called "release".

So many dependencies!

It takes a very long time to install all dependencies. Are really all of the dependencies required? Maybe some are only for dev and could be moved e.g. to requirements-dev.txt?

Also some of the dependencies have no version pinning. This is not a good practice.

What do you think? Less dependencies could increase deploy time...

Setup Instructions for MacOS 11.2.1

Thanks for creating this package, it looks quite nice.

I ran into a couple errors while installing the pip requirements and I am documenting them here.

  1. Installed Python 3.6.8 as per the build instructions but received an error saying python > 3.7 was required
'gensim.models.fasttext_inner': 'gensim/models/fasttext_inner.c',
    RuntimeError: Python version >= 3.7 required.

I ran pyenv install 3.7.10 and pyenv global 3.7.10 to resolve this error.

  1. The second was by missing the wheel package. Running pip install wheel resolved the issue.
  2. Received the following error.
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.
      To build Scipy from sources, BLAS & LAPACK libraries need to be installed.

Attempting to install blas using brew install llvm@9 openblas

Some 'preds' not working

When I try to use some preds, I get the same same error for all of them. Don't really know what this means. SMA and arima works fine without problem.

Screen Shot 2021-02-27 at 12 45 49 PM

`popular`command unexpected results

At the moment if find stocks only in wallstreetbets subreddit.

> popular
Search for latest tickers under 50 'pennystocks' posts
  0 tickers found.
Search for latest tickers under 50 'RobinHoodPennyStocks' posts
  0 tickers found.
Search for latest tickers under 50 'Daytrading' posts
  0 tickers found.
Search for latest tickers under 50 'StockMarket' posts
  0 tickers found.
Search for latest tickers under 50 'stocks' posts
  0 tickers found.
Search for latest tickers under 50 'investing' posts
  0 tickers found.
Search for latest tickers under 50 'wallstreetbets' posts
  23 tickers found.

Enable a dashboard interface for model performance evaluation

The CLI for this app is incredibly useful and allows the user to carry out a lot of analysis.

Is there any planned work to develop a dashboard to visualise multiple analyses at once, or retrieve model performance metrics from previously trained models? For instance, I can see that tensorboard is listed as a dependency, but I can't see that being used anywhere within the project.

For quick and dirty dashboards, streamlit is often a good place to start.

If this is something you're looking for help with, I'd be happy to contribute.

for those who encounter error when installing the python packages on Macos

when you run pip install -r requirement.txt in your mac, if you encounter error related to tensorflow, sentencepieces or matplotlib, please check the followings:

  1. your python and pip version required by tensorflow 2.x ( this project requires tensorflow 2.x , https://www.tensorflow.org/tutorials/quickstart/advanced )
  2. some of my fds encounter error related to ft2build, they run brew install freetype then install the requirement again, it works ( like described here https://stackoverflow.com/questions/12363557/matplotlib-install-failure-on-mac-osx-10-8-mountain-lion/12790839 )

dun know if there is anyone facing the same errors, i hope it helps :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.