mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
Move tests back one level. Update links to badges
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
||||
MPLBACKEND: Agg
|
||||
run: |
|
||||
source $VENV
|
||||
pytest gamestonk_terminal/tests/
|
||||
pytest tests/
|
||||
tests:
|
||||
needs: test
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -116,4 +116,4 @@ jobs:
|
||||
MPLBACKEND: Agg
|
||||
run: |
|
||||
source $VENV
|
||||
pytest gamestonk_terminal/tests/
|
||||
pytest tests/
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
# GamestonkTerminal 🚀
|
||||
|
||||
[](https://travis-ci.org/aia/GamestonkTerminal)
|
||||
[](https://github.com/aia/GamestonkTerminal/releases)
|
||||
[](https://github.com/DidierRLopes/GamestonkTerminal/actions)
|
||||
[](https://github.com/DidierRLopes/GamestonkTerminal/releases)
|
||||
[](https://github.com/psf/black)
|
||||
|
||||
## About
|
||||
@@ -74,7 +74,6 @@ Command|Description|Source
|
||||
`spachero` |great website for SPACs research |[SpacHero](https://www.spachero.com/)
|
||||
`uwhales` |good website for SPACs research |[UnusualWhales](https://unusualwhales.com/)
|
||||
|
||||
|
||||
### [Market Sentiment](gamestonk_terminal/sentiment/README.md) <a name="Market_Sentiment"></a>
|
||||
|
||||
Command|Description
|
||||
@@ -196,7 +195,6 @@ Command|Explanation|Source
|
||||
`short` |short interest |[Quandl](https://www.quandl.com/)
|
||||
`warnings` |company warnings according to Sean Seah book |[MarketWatch](https://www.marketwatch.com/)
|
||||
|
||||
|
||||
### [Prediction Techniques](gamestonk_terminal/prediction_techniques/README.md) <a name="Prediction_Techniques"></a>
|
||||
|
||||
Command|Technique|Sources
|
||||
|
||||
28
terminal.py
28
terminal.py
@@ -451,18 +451,22 @@ def main():
|
||||
b_quit = pm.pred_menu(df_stock, s_ticker, s_start, s_interval)
|
||||
# If stock data is intradaily, we need to get data again as prediction techniques work on daily adjusted data
|
||||
else:
|
||||
ts = TimeSeries(key=cfg.API_KEY_ALPHAVANTAGE, output_format="pandas")
|
||||
|
||||
# pylint: disable=unbalanced-tuple-unpacking
|
||||
df_stock_pred, _ = ts.get_daily_adjusted(
|
||||
symbol=s_ticker, outputsize="full"
|
||||
)
|
||||
# pylint: disable=no-member
|
||||
df_stock_pred = df_stock_pred.sort_index(ascending=True)
|
||||
df_stock_pred = df_stock_pred[s_start:]
|
||||
b_quit = pm.pred_menu(
|
||||
df_stock_pred, s_ticker, s_start, s_interval="1440min"
|
||||
)
|
||||
try:
|
||||
ts = TimeSeries(
|
||||
key=cfg.API_KEY_ALPHAVANTAGE, output_format="pandas"
|
||||
)
|
||||
df_stock_pred, _ = ts.get_daily_adjusted(
|
||||
symbol=s_ticker, outputsize="full"
|
||||
)
|
||||
df_stock_pred = df_stock_pred.sort_index(ascending=True)
|
||||
df_stock_pred = df_stock_pred[s_start:]
|
||||
b_quit = pm.pred_menu(
|
||||
df_stock_pred, s_ticker, s_start, s_interval="1440min"
|
||||
)
|
||||
except:
|
||||
print("Either the ticker or the API_KEY are invalids. Try again!")
|
||||
b_quit = False
|
||||
return
|
||||
|
||||
if b_quit:
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user