Commit Graph

31 Commits

Author SHA1 Message Date
Chavithra
d825f98fc1 Release 2.0.0 (#3626)
* Moving Docker folder into Build

* Workflows : update Docker

* Docker : update compose image version

* Docker : fix volumes path

* Set version 2.0.0

* Doc : update docker compose file link

* remove hcp (#3627)

* Update dockerfile

* Update docker compose file

* Docker

* Docker compose

* changing setup nsi to correct version

* Update etf/ta

* Fix etf/tv

* Enabling autocompleter on etf/t

* Remove debug mode

* Disable PO detection on SDK (#3637)

* Turn Riskfolio detection off

* Disable reports/forecast

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
2022-11-28 21:27:02 -05:00
teh_coderer
79046608b6 Docs Fix (#3543)
* Update generate_terminal_markdown.py

* updates

* update workflows

* Automated Change

* tests

* tests

* Automated Change

* Update test_generate_docs.py

* Automated Change

* updates

* Automated Change

* Update gen-docs.yml

* Update test.yml

* Automated Change

* Update test.yml

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* test

* Automated Change

* testtt23

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* Automated Change

* added empting reference folders before autogen docs

* updates

* Automated Change

* update tests gitactions

* Automated Change

* up

* Automated Change

* Automated Change

* update pytest

* Automated Change

* tests

* Automated Change

* examples update

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* Update test.yml

* Update generate_sdk_markdown.py

* strip

* Automated Change

* Workflow : check test update

* Automated Change

* Automated Change

* Automated Change

* Update test.yml

* Automated Change

* Update test.yml

* Automated Change

* Automated Change

* up

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* update workflows

* fix guides

* testing

* Update gh-pages.yml

* Update gh-pages.yml

Co-authored-by: tehcoderer <tehcoderer@users.noreply.github.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Chavithra <Chavithra@users.noreply.github.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
2022-11-25 17:19:08 -05:00
Henrique Joaquim
7a9cf08acc Fix crypto candle (#3558)
* improve crypto.candle

* added raw and examples

* linting

* disable too many args

* format volume if in use

* consistency on dd.candle

* fixed tests as default arg changed

* fixed tests

* Revert "fixed tests"

This reverts commit fb7df62000.

* Revert "Revert "fixed tests""

This reverts commit 8b568d24e5.

* Revert "Revert "Revert "fixed tests"""

This reverts commit 04353b0d11.

* Revert "Revert "Revert "Revert "fixed tests""""

This reverts commit a181e0acdc.

* fixed tests

* wrong branch

* removing changes

* getting rid of mutable defaults, also changed vs_currency to to_symbol - tks @montezdesousa

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-11-25 14:52:45 -05:00
montezdesousa
598044ac6a Fix [Bug] SDK - openbb.stocks.dps.vol_exch_chart - Error: 'Date' (#3561)
* remove volexch

* remove volexch from sdk
2022-11-25 14:50:10 -05:00
montezdesousa
a91b8728a1 SDK import no extras warning (#3550)
* warn users if no extras

* add path to config

* warning first time only

* this btter
2022-11-24 10:48:14 +00:00
montezdesousa
246fdacc90 Add divs chart to sdk (#3529)
* add divs chart to sdk

* add examples

* fix tests

* fix tests

* fix test

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-23 14:53:46 -05:00
montezdesousa
fb42272c81 Add clenow and demark to SDK (#3525)
* add demark

* add clenow

* add model examples

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-22 16:50:59 -05:00
teh_coderer
6c9c6a68ec Terminal Docs Auto Generation (#3438)
* init

* Update generate_terminal_markdown.py

* Update generate_terminal_markdown.py

* moved folders out of common into root

* remove cat from trail if sub in [ ba, ta, qa ]

* Update generate_terminal_markdown.py

* un-indented example images

* Update generate_terminal_markdown.py

* Update generate_terminal_markdown.py

* Update generate_terminal_markdown.py

* replace ✨ with 🦋

* Update regression_model.py

* updates

* up

* fix missing type hints, added defaults to sdk generation

* typing

* typing

* datetime defaults, fix dict_keys([]) in choices

* fix regression docstring, added divider on markdowns

* fix get_hcp portfolio trailmap

* Update generate_sdk_markdown.py

* Update generate_sdk_markdown.py

* Update generate_sdk_markdown.py

* Update generate_sdk_markdown.py

* Update generate_sdk_markdown.py

* Update .gitignore

* Making it more 3.9 friendly

* Update controller_doc_classes.py

* Update generate_sdk_markdown.py

* Update controller_doc_classes.py

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-11-22 00:21:18 +01:00
James Maslek
cfe41ef7a9 More sdk enhancements (#3480)
* Combine CA peers to smiliar command

* crypto/disc/top into one sdk function

* Exchanges into sdk function

* delete wrong platforms trail

* #3478 sdk crypto load

* Options hist 1 sdk function

* SDK functions

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-11-21 21:58:32 +00:00
montezdesousa
659c214520 Add keys examples in docstrings (#3497)
* add keys examples

* add stocksera

* add more examples

* Update keys_view.py

* Update keys_view.py

* Update keys_model.py

* Update trail_map.csv
2022-11-21 19:43:07 +00:00
montezdesousa
18d1ce0df5 Add missing qa functions capm, beta, cusum, acf, qqplot, hist, line (#3499) 2022-11-21 10:49:18 -05:00
Henrique Joaquim
976d5dfccc Fix crypto 3327 (#3434)
* removed get_coinpaprika_id from the view

* reorganized a bit

* removed unused functions

* removed unused functions

* removed unused imports

* cleaning

* cleaning

* fix tests

* fix template report

* fix template report

* fixing imports

* fixing imports

* fix report

* fix report

* fix report

* fix tests

* small fixes after merge

* linting

* split find into view and model

* added tests for view

* add tests to model

* black

* unused import

* disbale import oustise top level

* removed view from sdk

* added example
2022-11-21 14:48:40 +00:00
James Maslek
fa2ca4e566 fixes (#3488) 2022-11-19 13:26:44 -05:00
James Maslek
ff89e32cb3 Trailmap fix (#3487) 2022-11-19 09:07:04 -05:00
montezdesousa
1d3e468cb9 Portfolio optimization - plot, show and load endpoints (#3443)
* minor changes

* add spaces to print help

* start _show refactoring

* partial refactor po

* fix ef view

* refactor plot

* remove some unused stuff

* refactor charts

* forgot this

* validate input type

* change func name

* rename some endpoints

* move statics

* turn some args to kwargs

* rewrite equal docstring

* equal docstring again

* add docstrings and move some statics

* fix maxsharpe terminal bug

* refactor show

* fix ef

* add integration tests

* fix category bug

* fill some examples

* add more examples and fix nco

* add more examples

* add one more example

* add examples file

* add examples to load

* add detail to example

* add integration tests

* fix doc

* fix teste

* black

* flake

* pylint

* Linting

* Fix return

* Trying to fix display_plot

* display_rc_chart -> display_rc

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-18 20:56:16 +00:00
James Maslek
95db246ec4 Making the SDK more intuitive. (#3450)
* Add earnings to fa trailmap.  More trailmap deletes

* Crypto renaming

* Economy futures sdk

* Forex quote function

* Update events docstring

* pydocstyle on this file

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-11-18 09:08:49 -05:00
martinb-bb
e84d78e255 report fix (#3435) 2022-11-17 15:03:45 -05:00
James Maslek
3dd9fb9567 Fix reports after SDK changes (#3444)
* Fix sdk changes

* Forex report

* Crypto Report

* etf report

* economy report
2022-11-17 12:43:40 -05:00
Colin Delahunty
963ca9b2b9 Audit SDK and View/Model functions (#3384)
* Initial commit

* Finalized functionality

* update script

* Allow using it without forecasting

* Update gitignore

* Update `sdk_audit.py`

* Fixed issues, found more

* Added fix for helper functions, and column for SDK type

* Checked one more thing

* Moved file

* Move files ending with models/views

* Added fix of name

* Added file path fixes

* Patch to fix sdk_audit for windows

* fix

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-17 16:25:36 +01:00
James Maslek
d91eb57f16 SDK mapping refactors + FA refactor (#3440)
* First commit

* Other sources

* Update trail map

* Couple more trail map updates

* Balance Sheet SDK

* Cash flow for  SDK

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-11-17 10:03:14 +00:00
Henrique Joaquim
c9be1155c2 Fix #3326 (#3425)
* removed get_coinpaprika_id from the view

* reorganized a bit

* removed unused functions

* removed unused functions

* removed unused imports

* cleaning

* cleaning

* fix tests

* fix template report

* fix template report

* fixing imports

* fixing imports

* fix report

* fix report

* fix report

* fix tests

* small fixes after merge

* linting

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2022-11-16 14:13:21 +00:00
James Maslek
4495d4d2f5 Refactoring econometrics for SDK usability (#3379)
* Econometrics enhancements

* Docsring

* norm show chart when true

* isort + lint

* Make coint sdk friendly

* mypy?

* Why you miss this locally pylint?

* Clean up granger command

* Tests

* #3323

* Fix up dwat function

* Fix rounding error in test--hopefully

* Update bgod and bpag

* testing mypy

* small commit to help rebase?

* Update Panel OLS stuff. Need some more examples and to fix mypy

* add docstring example

* update controller complete and duplicate printing

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-15 09:46:29 -05:00
James Maslek
8bf8201690 Refactor option chain for sdk (#3414)
* Refactor option chain for sdk

* Lint

* Executive decision about chains function

* Allow chains to specify an expiry

* Fix docstring +fix test + isort

* trail map merge

* Remove some unnecessary trails

* Fixes #3325

* Faster expirations

* This is why we dont skip pre commit
2022-11-15 15:06:35 +01:00
James Maslek
e3cd8bdc0e SDK bugs (#3420)
* Fixes #3400

* #3996

* #3313

* #3140
2022-11-15 10:48:33 +01:00
James Maslek
cef1fca090 Change common trails to no trails (#3419)
* Change common trails to no trails

* Update templates

* fix ta/qa switches

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-14 16:45:47 -05:00
montezdesousa
8e9e6bd57f Incorporate portfolio class into SDK (#3401)
* create functions to interact with portfolio

* fix some docstrings

* view docstrings

* make portfolio loading available in sdk

* reorder some methods

* fix bug

* update controller

* update website

* remove import

* change input name

* regenerate website

* change portfolio arg name

* fix metrics bugs

* fix report

* refactor assets alloc

* refactor assets sectors alloc

* remove unecessary attributes

* refactor allocaasset sector

* reorganize class

* first refactor alloc

* refactor portfolio alloc

* black

* fix alloc bug

* regenerate sdk website

* fix alloc bugs

* forgot this exception

* some refactor on portfolio alloc country region

* fix some allocation bugs

* add examples

* regenerate website

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-14 11:27:34 -05:00
fede
37c943f3d0 [FEAT] StatsForecast MSTL forecasting model (#3338)
* feat: add mstl model

* feat: update mstl usage example

* SDK : Checkout files from main

* SDK : update forecasting map

* feat: reformat forecast controller black

* fix: add pylint exp to preserve informative warning

* fix: merge formatting

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-11-13 21:15:15 -05:00
fede
d2b49b3438 [FEAT] StatsForecast AutoARIMA forecasting model (#3336)
* feat: add autoarima model

* Revert "feat: add autoarima model"

This reverts commit a1d0f08a18.

* Revert "Revert "feat: add autoarima model""

This reverts commit c3e25eff0d.

* hooks

* feat: update autoarima example

* fix: code style

* fix: remove unused file

* SDK : Checkout files from main

* SDK : update forecasting map

* Linting

* fix: merge formatting

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-13 18:56:11 -05:00
fede
a790cbc77c [FEAT] StatsForecast RandomWalkWithDrift forecasting model (#3339)
* feat: add random walk with drift model

* feat: update rwd usage example

* fix: remove seasonal periods from rwd

* SDK : Checkout files from main

* SDK : update forcasting map

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-13 00:28:21 -05:00
fede
d56eedc58b [FEAT] Automatic Statistical Forecasting (#3317)
* feat: add autostatsforecast

* feat: update autostatsforecast description

* feat: improve print results

* fix: update autostatsforecat docs (sorted results)

* fix: rename autostatsforecast -> beststatsmodel

* feat: try-except statsforecast imports

* fix: update beststatsmodel example

* fix: delete unused file

* fix: rename beststatsmodel -> autoselect command

* fix: update autoselect command description

* SDK : Fetch `trail_map_forecasting.csv`

* SDK : add `forecast.autoselect`

* SDK : update `sdk.py`

* feat: add pylint exep to preserve informative warning

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-12 22:42:32 -05:00
Chavithra
b93671ad0b SDK : faster and simpler architecture (#3289)
* SDK : split features

* Fix linting

* SDK : remove functions

* SDK : update openbb object building

* SDK : comments

* Typing

* Typing

* Typing

* SDK : update logs

* SDK : Breadcrumb

* SDK : Breadcrumb + Operation

* SDK : spell

* Linting

* Tests : SDK

* SDK : Operation

* SDK : Operation

* Linting

* enable wrong import position

* added logging info

* added log supression

* reverted the order

* SDK : update trail_map

* log suppresion as configuration

* changes reports to use the new sdk

* changes dashboards to use the new sdk

* changes dashboards to use the new sdk

* updated the documentation

* Tests + Linting

* Replace old sdk by new sdk

* Linting

* SDK : import + map_dict

* Linting

* Linting

* SDK : sdk + trail_map

* Linting

* SDK : forecasting

* SDK : update import path

* SDK

* SDK : md

* Linting

* removed unused functions

* trunc args to a max of 100 characters

* added logging when exceptions

* .md files

* SDK : add signature on operation + linting + remove trail on Breadcrumb

* Linting

* Move tests

* Linting

* Linting

* Linting

* Linting

* Linting

* Linting

* Linting

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-11-09 22:25:12 +01:00