diff --git a/openbb_terminal/miscellaneous/scripts/dashboards/test_dashboards_base.openbb b/openbb_terminal/miscellaneous/scripts/dashboards/test_dashboards_base.openbb new file mode 100644 index 000000000000..7b060781b3c6 --- /dev/null +++ b/openbb_terminal/miscellaneous/scripts/dashboards/test_dashboards_base.openbb @@ -0,0 +1,11 @@ +dashboards +stocks -n +correlation -n +vsurf -n +chains -n +shortdata -n +crypto -n +futures -n +forecast -n +forecasting -n +exit \ No newline at end of file diff --git a/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_base.openbb b/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_base.openbb new file mode 100644 index 000000000000..560d9ac490df --- /dev/null +++ b/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_base.openbb @@ -0,0 +1,55 @@ +econometrics + +## Exploration + +load nile +desc nile +load nile -a nile_2 +combine nile -c nile_2.volume +load -f 20221008_221605_dataset +rename -d 20221008_221605_dataset -o population -n pop +load -e +load -f wage_panel -a wp +add -n wp.after_1990 -b wp.year -s > -c 1990 +add -n wp.after_1985 -b wp.year -s > -c 1985 +show -n wp -s year -a -l 20 +plot -v wp.nr,wp.exper,wp.hours +index -n wp -i nr,year -a +type +type wp.year --format category +desc -n wp.expersq +clean wp -f cfill +clean wp -d rdrop +delete -d wp.black + +## Tests + +load fair +root fair.yrs_married + +## Load custom datasets - this can only be tested locally for now +## load -f 20221031_095631_AAPL.xlsx -a aapl +## load -f 20221031_095653_TSLA.xlsx -a tsla +## load -f 20221031_095706_MSFT.xlsx -a msft +## coint msft.adj_close,aapl.adj_close,tsla.adj_close +## norm tsla.adj_close -p +## norm msft.volume -p + +load strikes +granger strikes.duration,strikes.iprod + +## Regression + +panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year +panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.married,wp.educ,wp.union -r bols + +load longley -a ll +ols -d ll.totemp -i ll.gnpdefl,ll.gnp,ll.unemp,ll.armed,ll.pop,ll.year + +## Regression Tests + +dwat -p +bgod -l 2 +bpag + +exit diff --git a/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_panel.openbb b/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_panel.openbb deleted file mode 100644 index 0a87eb48439f..000000000000 --- a/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_panel.openbb +++ /dev/null @@ -1,31 +0,0 @@ -econometrics -load wage_panel wp -options -options wp -show wp -index wp nr year -clean wp -f cfill -clean wp -d rdrop -type -type year-wp category -desc wp -modify -a dummy_married_educ-wp married-wp * educ-wp -modify -d married-wp -load wage_panel wp2 -index wp2 nr year -modify -c wp married-wp2 -modify -r wp married_wp2 married -remove wp2 -panel lwage-wp black-wp hisp-wp exper-wp expersq-wp married-wp educ-wp union-wp year-wp -panel lwage-wp black-wp hisp-wp exper-wp married-wp educ-wp union-wp -t bols -panel lwage-wp black-wp hisp-wp exper-wp expersq-wp married-wp educ-wp union-wp year-wp -t re -panel lwage-wp expersq-wp union-wp married-wp year-wp -t fe -panel lwage-wp expersq-wp union-wp married-wp year-wp -t fe -ee -panel lwage-wp expersq-wp union-wp married-wp -t fe -te -panel lwage-wp expersq-wp union-wp married-wp -t fe -te -ee -panel lwage-wp exper-wp expersq-wp union-wp married-wp -t fdols -dwat -p -bgod -granger married-wp educ-wp -coint black-wp hisp-wp exper-wp expersq-wp married-wp educ-wp union-wp -exit diff --git a/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_ts.openbb b/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_ts.openbb deleted file mode 100644 index 2f5b01c18641..000000000000 --- a/openbb_terminal/miscellaneous/scripts/econometrics/test_econometrics_ts.openbb +++ /dev/null @@ -1,27 +0,0 @@ -econometrics -load longley ll -load longley ll2 -options -options ll -show ll -index ll year -plot pop-ll -clean ll -f cfill -clean ll -d rdrop -type -type year-ll category -desc ll -modify -a emp_ratio-ll totemp-ll div pop-ll -modify -d totemp-ll -index ll2 year -modify -c ll totemp-ll2 -modify -r ll totemp_ll2 totemp -remove ll2 -ols totemp-ll gnpdefl-ll gnp-ll unemp-ll armed-ll pop-ll year-ll -norm totemp-ll -root unemp-ll -dwat -p -bgod -granger gnp-ll pop-ll -coint totemp-ll gnpdefl-ll gnp-ll unemp-ll armed-ll pop-ll year-ll -exit diff --git a/openbb_terminal/miscellaneous/scripts/economy/test_economy.openbb b/openbb_terminal/miscellaneous/scripts/economy/test_economy.openbb index 2f97391cb036..fe3bcb2f6be8 100644 --- a/openbb_terminal/miscellaneous/scripts/economy/test_economy.openbb +++ b/openbb_terminal/miscellaneous/scripts/economy/test_economy.openbb @@ -10,26 +10,77 @@ futures -c metals --source Finviz futures -c meats --source Finviz futures -c grains --source Finviz futures -c softs --source Finviz +futures -c energy +futures -c metals +futures -c meats +futures -c grains +futures -c softs +futures -c energy -s ticker --ascend --source Finviz map +map -p 1w -t world +bigmac bigmac -c USA,ESP,LVA,DEU,FRA,FIN ycrv ycrv --source FRED --date 2022-10-03 --raw +ycrv -c united_states --source Investing events -events --country united states -i high --cat employment -s 2022-07-07 -e 2022-07-08 +events --country united_states -i high --cat employment -s 2022-07-07 -e 2022-07-08 +events -c spain --source Investing +edebt --limit 10 spread spread --group PIIGS --color binary spread --countries portugal,spain,italy,united states --maturity 5Y --change=True --color openbb +rtps +valuation +valuation --group sector --sortby MarketCap --ascend +performance +performance -g basic_materials -s Month -a +spectrum +spectrum --group consumer_defensive macro macro -p RGDP,CPI -macro -p URATE -c Netherlands Germany +macro -p URATE -c Netherlands,Germany +macro -p URATE -c United_States --start 2008-01-01 +macro -p GDP --countries Portugal,France,United_Kingdom,Spain,Italy,Poland --start 2000-01-10 +treasury +treasury --maturity 20y --type nominal +treasury --raw +treasury --type inflation --start 2020-01-01 --limit 10 +fred T10Y2Y,DFII10 -s 2019-01-01 -e 2022-01-01 fred -q treasury fred -p T10Y2Y,FII10 -s 2005-01-01 +fred T5YIEM,T10YIEM,T20YIEM,T30YIEM index -i nasdaq,dowjones,sp500 -s 2005-01-01 macro -p URATE -c Netherlands,Germany -s 2005-01-01 index -i sp500 -s 2005-01-01 -plot --y1 Netherlands_URATE,Germany_URATE --y2 sp500 +plot --y1 T10Y2Y --y2 T5YIEM +plot --y1 T10Y2Y,T20YIEM rtps valuation performance spectrum +fred DGS2,DGS5 +eval spread = DGS2 - DGS5 +qa +summary +normality +unitroot --fuller_reg c --kps_reg ct +line +line --log +hist +hist -b 10 +cdf +bw +bw --yearly +acf --lags 5 +qqplot +rolling +rolling -w 5 +spread -w 10 +quantile --window 5 --quantile 0.01 +skew --window 5 +kurtosis --window 9 +raw --limit 2 --descend +cusum --threshold 10 --drift 10 +decompose exit diff --git a/openbb_terminal/miscellaneous/scripts/forex/test_forex_base.openbb b/openbb_terminal/miscellaneous/scripts/forex/test_forex_base.openbb index 0836bdb3d8a8..2a88d61f7b39 100644 --- a/openbb_terminal/miscellaneous/scripts/forex/test_forex_base.openbb +++ b/openbb_terminal/miscellaneous/scripts/forex/test_forex_base.openbb @@ -1,5 +1,9 @@ forex load EURUSD +load -t EURUSD -r d -i 1day -s 2000-01-01 +load -t EURUSD -r i -i 30min fwd quote +quote --source YahooFinance +quote --source AlphaVantage exit diff --git a/openbb_terminal/miscellaneous/scripts/forex/test_forex_qa.openbb b/openbb_terminal/miscellaneous/scripts/forex/test_forex_qa.openbb index 37fd78a377aa..0165ec84633e 100644 --- a/openbb_terminal/miscellaneous/scripts/forex/test_forex_qa.openbb +++ b/openbb_terminal/miscellaneous/scripts/forex/test_forex_qa.openbb @@ -4,22 +4,35 @@ qa summary normality unitroot +unitroot --fuller_reg ctt --kps_reg c line +line --log hist +hist --bins 16 cdf bw +bw --yearly acf +acf --lags 5 qqplot rolling +rolling --window 10 spread +spread -w 5 quantile +quantile -w 5 -q 0.01 skew +skew --window 5 kurtosis +kurtosis --w 10 var es raw +raw --limit 10 --descend decompose +decompose --multiplicative cusum +cusum -t 0.01 -d 0.01 load EURUSD --source YahooFinance qa summary diff --git a/openbb_terminal/miscellaneous/scripts/forex/test_forex_ta.openbb b/openbb_terminal/miscellaneous/scripts/forex/test_forex_ta.openbb index 8a469a4fe7c7..cbb82c5fd461 100644 --- a/openbb_terminal/miscellaneous/scripts/forex/test_forex_ta.openbb +++ b/openbb_terminal/miscellaneous/scripts/forex/test_forex_ta.openbb @@ -3,18 +3,31 @@ load EURUSD --source YahooFinance load ta ema +ema -l 20,30 -o 1 sma +sma -l 20,30 -o 1 zlma +zlma -l 20,30 -o 1 cci +cci -l 7 -s 2 macd +macd --fast 10 --slow 30 --signal 5 rsi +rsi -l 10 -s 50 -d 2 stoch +stoch --fastkperiod 2 --slowdperiod 2 --slowkperiod 7 fisher +fisher --length 2 cg +cg -l 7 adx +adx -l 10 -s 110 -d 2 aroon +aroon --length 1 --scalar 10 bbands +bbands -l 1 -s 0.25 -m ema donchian +donchian --length_upper 10 --length_lower 1 fib load USDEUR --source Polygon ta diff --git a/openbb_terminal/miscellaneous/scripts/reports/test_reports_forecast.openbb b/openbb_terminal/miscellaneous/scripts/reports/test_reports_forecast.openbb new file mode 100644 index 000000000000..adfb65aaf5fb --- /dev/null +++ b/openbb_terminal/miscellaneous/scripts/reports/test_reports_forecast.openbb @@ -0,0 +1,15 @@ +reports + +## defaults +forecast + +## simple ticker +forecast --symbol AAPL + +## Non-US ticker +forecast --symbol NXPI + +## Non-US ticker with suffix +forecast --symbol PETR3.SA + +exit \ No newline at end of file