Skip to content

Commit

Permalink
improved integration tests (#3078)
Browse files Browse the repository at this point in the history
* improved integration tests for forex

* integration test for dashboards

* added more tests to economy

* added test for forecast report

* added eedbt integration test

* added hist tests

* added eval command

* updatedeconometrics tests

* changed order

* test removing warning

* Revert "test removing warning"

This reverts commit 09ca09012156771428b2041b478296dbf2bfc780.

* adding todo

* Fix top categories and sorting not working (#3025)

* Fix categories and sorting not working

* Allow sort in ascending order

* Documented the new flag

* Fixed tests

* Fix bad practises

Co-authored-by: James Maslek <[email protected]>

* [FEAT] StatsForecast AutoETS forecasting model (#2988)

* feat: add autoets model

* feat: update autoets index

* feat: add verbose option

* feat: freq preprocessing

* feat: improve test size call

* feat: add statsforecast dep to conda env full

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: martinb-bb <[email protected]>

* Improve ETF menu (#3124)

* improve etf menu

* improve docs

* fix tests

* should cover more edge cases

Co-authored-by: James Maslek <[email protected]>

* improve export (#3176)

* When renaming funcs to remove source at start, the translating keys were missing update (#3177)

* fix the en.yml key for some funcs

* fix tests

Co-authored-by: James Maslek <[email protected]>

* Adds guide for SDK/Keys (#3111)

* Adds guide for SDK/Keys

* Linter

* Applied requested changes, and improved the examples.

* Removed bullet point

Co-authored-by: Jeroen Bouma <[email protected]>

* Adds Introduction Guide for the Economy SDK Module (#3142)

* Adds Introduction Guide for the Economy SDK Module

* Changes title

Co-authored-by: Jeroen Bouma <[email protected]>

* version check for statforecast (#3227)

* Fix 3188 - UX for `Feature Engineering` functions  (#3224)

* fix depr. warning

* console printout enhancment

* improvement to sto for UX

* average true range UX

* signal UX improv.

* Fix Some Econometrics Bugs (#3210)

* Added suggestions for load

* Fixed a command

* Fixed panel

Co-authored-by: Henrique Joaquim <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Fixing 6 crypto bugs (#3228)

* fixing 6 crypto bugs

* fixing filter stuff

Co-authored-by: Colin Delahunty <[email protected]>

* Fix SDK plot colors without needing openbb.stocks.candle (#3178)

* fix SDK plot colors without needing openbb.stocks.candle

* lint

* ordering

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Updating crypto integration tests (#3222)

* disc, ov, and base

* more integration tests and fixing previous commited ones

* some more fixes

Co-authored-by: Colin Delahunty <[email protected]>

* removing commented tests

* removing commented tests

Co-authored-by: Gerard <[email protected]>
Co-authored-by: James Maslek <[email protected]>
Co-authored-by: fede <[email protected]>
Co-authored-by: martinb-bb <[email protected]>
Co-authored-by: DidierRLopes <[email protected]>
Co-authored-by: Danglewood <[email protected]>
Co-authored-by: Jeroen Bouma <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Simmons <[email protected]>
  • Loading branch information
10 people authored Nov 1, 2022
1 parent 9b05c15 commit 05fe8c3
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
dashboards
stocks -n
correlation -n
vsurf -n
chains -n
shortdata -n
crypto -n
futures -n
forecast -n
forecasting -n
exit
Original file line number Diff line number Diff line change
@@ -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

This file was deleted.

This file was deleted.

57 changes: 54 additions & 3 deletions openbb_terminal/miscellaneous/scripts/economy/test_economy.openbb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions openbb_terminal/miscellaneous/scripts/forex/test_forex_qa.openbb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions openbb_terminal/miscellaneous/scripts/forex/test_forex_ta.openbb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 05fe8c3

Please sign in to comment.