Commit Graph

53 Commits

Author SHA1 Message Date
Pratyush Shukla
e4a5c4cef0 static 2023-09-26 18:23:22 +05:30
hjoaquim
d7bda4ddea Merge branch 'feature/openbb-sdk-v4' into feature/integration-tests 2023-09-26 09:09:59 +01:00
Diogo Sousa
7d933e3f77 fix stocks.fa.transcript and rebuild 2023-09-25 14:31:25 +01:00
Igor Radovanovic
4f473d0faf Integration test generator and example integration tests for stocks 2023-09-25 13:01:03 +02:00
hjoaquim
19f3ec9bad Merge branch 'feature/openbb-sdk-v4' into feature/integration-tests 2023-09-25 09:13:05 +01:00
montezdesousa
b641bb05ca Release/4.0.0a2 (#5463)
* patch package version

* poetry lock provider

* update toml files to a2

* update sdk readme and toml

* poetry lock core

* bulk lock extensions/providers

* rebuild with new versions

* poetry lock openbb

* move version back to dev
2023-09-22 12:21:36 +01:00
Igor Radovanovic
d98dac465a Module map 2023-09-22 12:18:57 +02:00
montezdesousa
d0862a9ea7 Include extensions in package __repr__ (#5462)
* include extensions in package repr

* rename menus to routers

* move docstring

* doc typo

* rename CLASS to ROUTER
2023-09-22 10:08:09 +01:00
Diogo Sousa
55cf6eeaba revert toml version changes to match pypi 2023-09-21 16:09:59 +01:00
montezdesousa
4f4e941267 Hotfix/ext map test (#5459)
* add tests and rebuild

* remove files before rebuild to avoid leftovers

* replace NoneType with None

* docstring
2023-09-21 09:17:40 +01:00
Diogo Sousa
3aac0baa8b rebuild package 2023-09-20 12:51:40 +01:00
Danglewood
264feb04a4 Hotfix/fix-cboe-regressions (#5447)
* fix cboe regressions

* Lint

* fixes intraday dates

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-09-20 12:44:54 +01:00
Pratyush Shukla
6ed837d24c Fix bugs in the provider models and standard models (#5427)
* added `StockNews` to yfinance

* make `symbol` optional in `IncomeStaementData`

* added financial statements

* intrinio provider package init

* added `StockEOD` model

* added `ForexPairs` model

* added `StockNews` model

* added `GlobalNews` model

* added Fetchers for models

* static files

* cleanup

* fetch all pages in intrinio

* static

* refactored `StockQuote` standard model

* refactored `StockQuote` fmp model

* added `StockQuote` for Intrinio

* static files

* Adding AV and StockEOD (#5365)

* boilerplate for av provider

* adding stock eod for av

* ruff n black

* changing available functions for better ux

* docstring

* move debug_mode out of system settings (#5366)

* move debug_mode out of system settings

* Update router.py

* update readme with debug mode

* dev_mode hub service + openbb_ namespace to Env

* update readme

* copy env to avoid problems w global state

* Linting

* rebuild python interface + fix py38

* Add @classproperty to fetcher for nested return types (#5371)

* add classproperty to fetcher and cpi.py

* type var bound

* validate model in registry map

* better exception msg

* fix fred mypy and add data_type

* typo

* specific model validation

* specific model validation

* reformat error msg

* better

* msg

* add black & ruff to core deps

* supress linter errors if not debug mode

* pylint + regen fixedincome

* py38 compat

* fix bug getting provider for placeholder cmds + ruff

* Revert "fix bug getting provider for placeholder cmds + ruff"

This reverts commit 1328c0b041.

* ruff

* avoid bug for placeholder and no provider

* expose available providers in provider interface

* poetry toml to match ci ruff version

* first we ruff and then we black

* add back noqa: E501 to docstrings inside package

* use singleton for provider interface: same functionality (#5372)

* use singleton for provider interface: same functionality

* ruff

* docstring typo

* update readme with tuna reference

* move to correct readme

* Merge

* Some error handling (#5357)

* Removed prints (#5367)

* Removed prints

* FIxed typing

* FIxed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fix

* Reverted stuff

* Feature/move package (#5374)

* move package to openbb_sdk

* avoid test writing files

* black

* revert toml changes, will do it in another PR

* run build in a separate process

* change error msg

* rename func

* change msg

* rename func + msg

* change param name

* update readme

* lazy load some deps

* Update README.md

* modules is better

* doc

* ruff

* pylint

* fix autocomplete (#5383)

* Core tests (#5375)

* makeing the function easier - @montezdesousa pls review this commit

* improve update_provider_choices readbility

* unncessary classmethod

* command runner tests

* fixing wrong attribution

* some tests for the charting manager

* changing fetcher and models to have a shorter name

* @the-prax suggestions

* fixing references to av

* making function a private fild so the user don't access it

* unbreaking changes

* Improve snake_case generation

* adding av to pyproject.toml

* stating the function as a private field while keeping validation for function specific fields

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>

* Rename EOD to Historical in code and files (#5395)

* rename EOD to Historical in providers

* renamed EOD to Historical in sdk/provider

* rename _eod to _historical in standard_models

* rename _eod to _historical in providers directory

* cleanup

* rename EOD to Historical in extensions

* static

* Revert "rename EOD to Historical in extensions"

* rename EOD to Historical in relevant extensions

* fix spelling in init

* static

* linting

* intrinio y u alone

* so sorry intrinio

* static

* ruff

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* feature/quandl-provider: Add Quandl provider to SDK-V4 (#5339)

* adds futures term structure from cboe

* Linting

* error handling for empty response

* codespell

* rename term_structure --> curve

* unused imports

* Improve import speed for CBOE

* add quandl provider

* doc strings

* black

* moves series id definitions to a separate file

* black

* add pandas dependency

* fix pyproject.toml

* refactor to load nothing on runtime

* black

* futures_curve model

* fix docstring

* static directory file no longer needed

* helper for european index constituents

* remove abstract request function which gets rid of Numpy import

* remove Numpy from dependencies

* add Europe class to helpers and European index data

* symbol.upper()

* add european_index to economy module

* add US indices in

* adds cboe as provider for major_indices_eod

* enforce snake_case for FMP columns

* add

* fix FMP non-intraday

* add european_index_constituents

* black

* update docstring in economy_router

* add cot_search() and makes helper function for querying the Commitment of Traders Reports

* refactor quandl

* docstring

* refactor cboe provider

* black

* merge feature/openbb-sdk-v4 into branch

* add Intrinio options chains

* codespell exception

* remove manual camelCase conversion in FMP StockEOD and MajorIndicesEOD

* fix polygon - MajorIndicesEOD

* fix FMP intraday stripping the time

* more codespell

* put validators back - fmp

* enhance yFinance indices

* timestamp to str

* yahoo index - empty no breaky

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* hotfix intrinio

* better cboe stock_info error handling

* fix merge

* handling for if ^ in symbol

* make alpha_vantage work

* fix yfinance intraday - stock historical

* fix yfinance major_indices_historical

* fix yfinance crypto_historical

* fix yfinance forex_historical

* fix yfinance crypto and forex

* economy router and package rebuild

* black

* add multi-ticker support for cboe stock_historical

* use yf_download for crypto and forex instead of yf(Ticker).history()

* potentially allow multiple tickers

* feature/sdk v4 bug fixes - Fixing some bugs (#5401)

* added `StockNews` to yfinance

* make `symbol` optional in `IncomeStaementData`

* added financial statements

* intrinio provider package init

* added `StockEOD` model

* added `ForexPairs` model

* added `StockNews` model

* added `GlobalNews` model

* added Fetchers for models

* static files

* cleanup

* fetch all pages in intrinio

* static

* refactored `StockQuote` standard model

* refactored `StockQuote` fmp model

* added `StockQuote` for Intrinio

* static files

* Adding AV and StockEOD (#5365)

* boilerplate for av provider

* adding stock eod for av

* ruff n black

* changing available functions for better ux

* docstring

* move debug_mode out of system settings (#5366)

* move debug_mode out of system settings

* Update router.py

* update readme with debug mode

* dev_mode hub service + openbb_ namespace to Env

* update readme

* copy env to avoid problems w global state

* Linting

* rebuild python interface + fix py38

* Add @classproperty to fetcher for nested return types (#5371)

* add classproperty to fetcher and cpi.py

* type var bound

* validate model in registry map

* better exception msg

* fix fred mypy and add data_type

* typo

* specific model validation

* specific model validation

* reformat error msg

* better

* msg

* add black & ruff to core deps

* supress linter errors if not debug mode

* pylint + regen fixedincome

* py38 compat

* fix bug getting provider for placeholder cmds + ruff

* Revert "fix bug getting provider for placeholder cmds + ruff"

This reverts commit 1328c0b041.

* ruff

* avoid bug for placeholder and no provider

* expose available providers in provider interface

* poetry toml to match ci ruff version

* first we ruff and then we black

* add back noqa: E501 to docstrings inside package

* use singleton for provider interface: same functionality (#5372)

* use singleton for provider interface: same functionality

* ruff

* docstring typo

* update readme with tuna reference

* move to correct readme

* Merge

* Some error handling (#5357)

* Removed prints (#5367)

* Removed prints

* FIxed typing

* FIxed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fix

* Reverted stuff

* Feature/move package (#5374)

* move package to openbb_sdk

* avoid test writing files

* black

* revert toml changes, will do it in another PR

* run build in a separate process

* change error msg

* rename func

* change msg

* rename func + msg

* change param name

* update readme

* lazy load some deps

* Update README.md

* modules is better

* doc

* ruff

* pylint

* fix autocomplete (#5383)

* Core tests (#5375)

* makeing the function easier - @montezdesousa pls review this commit

* improve update_provider_choices readbility

* unncessary classmethod

* command runner tests

* fixing wrong attribution

* some tests for the charting manager

* changing fetcher and models to have a shorter name

* @the-prax suggestions

* fixing references to av

* making function a private fild so the user don't access it

* unbreaking changes

* Improve snake_case generation

* adding av to pyproject.toml

* stating the function as a private field while keeping validation for function specific fields

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>

* Rename EOD to Historical in code and files (#5395)

* rename EOD to Historical in providers

* renamed EOD to Historical in sdk/provider

* rename _eod to _historical in standard_models

* rename _eod to _historical in providers directory

* cleanup

* rename EOD to Historical in extensions

* static

* Revert "rename EOD to Historical in extensions"

* rename EOD to Historical in relevant extensions

* fix spelling in init

* static

* linting

* intrinio y u alone

* so sorry intrinio

* static

* ruff

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* feature/quandl-provider: Add Quandl provider to SDK-V4 (#5339)

* adds futures term structure from cboe

* Linting

* error handling for empty response

* codespell

* rename term_structure --> curve

* unused imports

* Improve import speed for CBOE

* add quandl provider

* doc strings

* black

* moves series id definitions to a separate file

* black

* add pandas dependency

* fix pyproject.toml

* refactor to load nothing on runtime

* black

* futures_curve model

* fix docstring

* static directory file no longer needed

* helper for european index constituents

* remove abstract request function which gets rid of Numpy import

* remove Numpy from dependencies

* add Europe class to helpers and European index data

* symbol.upper()

* add european_index to economy module

* add US indices in

* adds cboe as provider for major_indices_eod

* enforce snake_case for FMP columns

* add

* fix FMP non-intraday

* add european_index_constituents

* black

* update docstring in economy_router

* add cot_search() and makes helper function for querying the Commitment of Traders Reports

* refactor quandl

* docstring

* refactor cboe provider

* black

* merge feature/openbb-sdk-v4 into branch

* add Intrinio options chains

* codespell exception

* remove manual camelCase conversion in FMP StockEOD and MajorIndicesEOD

* fix polygon - MajorIndicesEOD

* fix FMP intraday stripping the time

* more codespell

* put validators back - fmp

* enhance yFinance indices

* timestamp to str

* yahoo index - empty no breaky

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* hotfix intrinio

* better cboe stock_info error handling

* fix merge

* handling for if ^ in symbol

* make alpha_vantage work

* fix yfinance intraday - stock historical

* fix yfinance major_indices_historical

* fix yfinance crypto_historical

* fix yfinance forex_historical

* fix yfinance crypto and forex

* economy router and package rebuild

* black

* add multi-ticker support for cboe stock_historical

* use yf_download for crypto and forex instead of yf(Ticker).history()

* potentially allow multiple tickers

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* no reset index on yfinance crypto/forex

* added missing index search

* `stock_info` removed merge symbols

* static

* `\%` to `%` in FMP historical models

* removed fields

* set `period` and `cik` to `Optional`

* fix yfinance financial statements

* cleaned duplicate code

* static

* static

* fixed yfinance stock news

* improved yfinance stock news

* cleanup

* set `date` field type to `datetime` (again)

* add date validator

* `BaseSymbol` eliminated

* linting

* Add Quandl functions to economy router

* YFinance Statement Bugs

* Fix/provider-bugs-intrinio: fix bad API key response for options symbols (#5419)

* fix bad api key response for symbol directory

* move model functions into Fetcher class as static methods

* make ruff and black play together

* description fix

* move options tickers and expirations to helpers

* vw->vwap

* Remove confusing columns in cpi model

* `news.globalnews` has `limit` set as standardized param

* intrinio stocks historical fetch data robustly

* fix too many .reset_index()

* ruff

* fixed standardization

* cleanup

* `stocks.news` params standardized

* polygon `StockNews` model revamped

* intrinio `StockNews` model params standardized

* `link` and `final_link` set as `Optional` to fix validation errors

* benzinga cleanup

* linting

* set `type` to `Optional`

* removed extra cash_flow file

* `FinancialStatementQueryParams` eliminated

* Polygon `StockHistorical` returns all results

* `PolygonFundamentalQueryParams` eliminated

* Added source in doc

* `^` needed in symbol for FMP

* fix validation error for negative eps values

* change to latest v2 params

* correct descriptions

* removed `stocks.dd` and moved `sec` to `fa`

* `obb.news.globalnews` revamped

* `stocks.news` revamped

* `list` to `List`

* adding List instead of list

* `options.chains` Intrinio cleanup and standardization

* linting

* cleanup intrinio

* static

* bump package versions

* fixed date validation errors for yfinance

* YFinance updates

* Fix FMP tests

* Fix Intrinio

* Re-record Benzinga

* Fix Polygon fetchers and tests

* Re-record and fix CBOE

* Re-record and fix Quandl

* Some FMP fixes and hardcoded tests

* fmp stock ownership refactor and fix test

* fix fmp treasury rate `transform_query` to pass test

* fix fmp dividend calendar `transform_query` to pass test

* fix fmp historical models `transform_query` to pass test

* Fix Polygon fetchers and tests

* Fix Intrinio test and fetcher

* Re-record and fix YFinance

* Fred

* Update test generator

* CBOE cleanup

* Fix tests (again)

* static

* fix more tests

* fix yfinance tests

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-09-20 02:00:44 +05:30
montezdesousa
848edee368 Limit number of characters in docstring types (#5438)
* package_builder changes

* truncate only the mandatory args

* minor fix
2023-09-19 16:16:29 +02:00
montezdesousa
3ad3375c6a fix missing descriptions (#5420)
* fix missing descriptions

* black & ruff

* remove f string

* update desc

* update desc

* update desc

* update desc

* update desc

* update desc
2023-09-08 12:11:46 +01:00
Diogo Sousa
735389f0ce econometrics version at a0 2023-09-08 10:40:04 +01:00
Diogo Sousa
6081deeaea fix econometrics not loading 2023-09-08 10:32:09 +01:00
montezdesousa
139f77e435 Feature/release pypi (#5410)
* lock + descriptions

* core + provider

* poetry lock

* update toml

* poetry lock

* publish rc12 to testpypi

* rebuild

* poetry lock

* update system version

* change tomls

* poetry lock everything

* lock core

* lock extensions and providers

* update READMEs Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* update main toml and extensions map

* update core toml, lock

* Released 4.0.0a0

* point hub to .co

* bump version in system settings

* bump openbb-core to 0.1.0a1

* bump openbb-charting to 0.1.0a1

* Release openbb-core0.1.0a1 and openbb-charting0.1.0a1

* full rebuild

* dev again
2023-09-08 09:59:28 +01:00
James Maslek
ac27475ca8 Starting to port econometrics to v4 (#5394)
* add econometrics basics

* actual function

* stuff

* Edit df helpers to make function work as expected

* Get this to work

* Exclude from web api

* More functions + lint

* Cointegration + lint

* add causality

* add unitroot

* merge + update

* add to_polars :D

* add to_numpy

* aha.  I can now do multi index in basemodels

* Add panel models!

* Add tests for my multi index stuff

* cache pip envs on testing

* life can be ruff sometimes
2023-09-08 02:03:36 +05:30
Igor Radovanovic
03ffcc7e6b MyPy 2023-09-07 21:51:23 +02:00
Igor Radovanovic
2d7b48721b rebuild static 2023-09-07 16:31:49 +02:00
Igor Radovanovic
e012aa82da MyPy 2023-09-07 16:30:31 +02:00
Pratyush Shukla
fcb03ddeee add data providers (#5409)
* move changed files to this branch - openbb_sdk

* added correct cspell w/@montezdesousa

---------

Co-authored-by: montezdesousa <montezdesousa@gmail.com>
2023-09-05 02:59:34 +05:30
montezdesousa
e8f70f72e3 add version to built packages (#5408)
* add version to built packages

* remove file
2023-09-04 19:33:57 +01:00
montezdesousa
cd9a3dc9c8 Hotfix/toml cleanup (#5407)
* update extensions toml

* update providers

* update core and provider

* poetry lock everything

* openbb toml

* remove SDK ref

* reorg openbb toml

* lock

* change version

* typo

* providers toml

* rebuild only with core packages

* add toml comment

* rebuild

* lock with 0.1.0
2023-09-04 17:37:55 +01:00
Henrique Joaquim
48a97dd33c [SDK v4] Changing the behaviour of the chartargument (#5406)
* ruff happy

* missing endpoints on charting router

* remove old endpoints

* adjusting the preferences

* better name and grouping static methods together

* adding a function to get implemented charting functions

* only adds chart if implementation is found

* static assets with no chart for routes where it's not implemented

* typo

* typo

* ruff n black

* Rebuild static assets

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-09-04 14:52:03 +01:00
Henrique Joaquim
f02748cd26 Work on Contributing Guidelines (#5369)
* example documentation for adding a data point

* moving to the root of the sdk

* adding the table of contents

* Edits

* Update README

* adding cookiecutter to the cg

* adding a comment to differentiate from cookiecutter

* charting extension considerations

* Edit cg

* adding dependencies considerations

* Add standardization parts to cg

* Added usage of other extension

* CamelCase to snake_case w/ @montezdesousa @IgorWounds

* static files

* set relative import for packages w @montezdesousa @IgorWounds

* Finalize contributing guidelines w/ @IgorWounds and @hjoaquim

* revert data.py changes

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: montezdesousa <montezdesousa@gmail.com>
2023-09-04 07:50:50 +01:00
montezdesousa
e32ba50cec minor docstring typo 2023-09-03 13:40:34 +01:00
montezdesousa
e3a0ae4b5a fix charting bug: revert plugin rename 2023-09-02 13:30:50 +01:00
montezdesousa
f5bd14c03c Auto build sdk (#5397)
* save map of installed extensions

* allow silencing build prints

* use console class instead

* uncomment

* remove menus with empty commands

* detect changes

* build

* change warning

* rename variable

* uncomment

* remove unused variable

* check and build

* rename params

* change func name

* Update stocks.py

* Update crypto.py

* Update economy.py

* Update forex.py

* cwd

* fix test

* remove cwd

* rename var

* linters debug mode

* move code to core

* change description

* add option to avoid auto build

* unittests

* minor fix

* update readme

* readme

* Update README.md

* Update README.md

* Update package_builder.py

* ruff

* fix test
2023-09-01 20:48:09 +01:00
montezdesousa
d8ff897509 sort module map to avoid randomness in build 2023-08-31 13:05:27 +01:00
Igor Radovanovic
bc28dff7cc Linting 2023-08-31 12:14:41 +02:00
Igor Radovanovic
e1d971c754 Rebuild static assets 2023-08-31 11:42:56 +02:00
montezdesousa
52063550d7 change dunder var names to single underscore 2023-08-30 17:35:03 +01:00
montezdesousa
f89a4d7ad9 relative imports package_builder 2023-08-30 13:22:39 +01:00
Igor Radovanovic
9bc4924320 Fix futures curve 2023-08-29 12:20:54 +02:00
montezdesousa
7a2220a297 fix autocomplete (#5383) 2023-08-27 14:47:44 +01:00
Diogo Sousa
348977a36c pylint 2023-08-25 11:44:07 +01:00
montezdesousa
fa4ced7a0d Feature/move package (#5374)
* move package to openbb_sdk

* avoid test writing files

* black

* revert toml changes, will do it in another PR

* run build in a separate process

* change error msg

* rename func

* change msg

* rename func + msg

* change param name

* update readme

* lazy load some deps

* Update README.md

* modules is better

* doc
2023-08-25 11:34:36 +01:00
Diogo Sousa
25d54a31ad improve __repr__ for sdk classes 2023-08-22 01:31:10 +01:00
Igor Radovanovic
6e73b1236a Linting and improvements 2023-08-21 11:39:59 +02:00
Igor Radovanovic
374dd96aed Feature/fetcher cleanup (#5330)
* Linting

* added extra params and file cleanup in yfinance

* `yfinance` Fetcher refactored

* `cboe` Fetcher refactored, pydocstyle pass and cleanup

* `yfinance` Fetcher cleanup and pydocstyle pass

* `cboe` Fetcher cleanup

* ruff + black

* Linting

* Fetcher cleanup and typing, bug fixes

Co-authored-by: montezdesousa

* Fix CPI

* Fix CBOE typing

* Fix yfinance typing

* MyPy improvements

* remove pass

* property reorder

* update get_data_many to return raw data and refactor treasury rates

* refactor stocksplits

* stockquote

* change data one and stock peers

* stock ownership

* stock news

* stock multiples

* insider trading

* stock eod

* share stats

* sec fillings

* risk premium

* revenue business line

* revenue geographic

* price target

* black

* treasury rates descriptions

* more descriptions

* remove The from descriptions

* remove The from descriptions

* price target consensus

* polygon forex pairs

* fix `Annotated is not defined` in static files

* cboe Fetcher relisted data and pyproject cleanup

* major indices eod

* yfinance relisted data

* major indixes const

* key metrics

* key executive

* institutional ownership

* forgot futures curve

* income statement

* income statement growth

* remove unecessary var

* black

* rename var

* change generic var names

* rename abstract fetcher inner properties

* remove unused provider helpers

* add class description

* import from ParamSpec regardless of version

* specific imports hub service & ruff

* remove useless inspect import

* update comment

* remove mypy comment

* fmp Fetcher refactor, pydocstyle pass and cleanup

* ruff

* query.Dict to query.dict and set dates to 1 year diff

* polygon date interval is 1 year

* typing

* mypy

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-08-18 10:59:20 +01:00
montezdesousa
4435e1cbe7 Feature/gen docstring (#5326)
* update package builder

* sort childpath

* rewrite docstrings

* black & ruff

* add futures to interface

* typo

* rename funcs

* rename vars

* rename vars

* typo

* wrong descripton news

* rebuild python interface func fix

* fix package builder tests

* update docstring tests
2023-08-16 11:47:44 +01:00
montezdesousa
1165e57b40 make some provider args optional 2023-08-04 10:56:20 +01:00
James Maslek
ce5b93ae4e Custom args to package builder (#5282) 2023-08-04 00:59:51 +01:00
montezdesousa
3018be889d add some charts PR stuff into the main repo (#5224)
* add some charts PR stuff into the main repo

* add charting method working for jupyter

* dont raise

* renamed router

* cleaner

* ruff

* remove print, add todo

* minor readme adjustment on url

* adding pandas-ta

* add pandas-ta to deps

* remove optional content

* settings env file

* Use import relative to the package instead of REPO

* using openbb_directory const instead

* optional content

* optional content

* optional content

* black

* added user styles for console

* initializing backend in the charting manager and moving things - working version

* pyling

* add defaults

* ruff

* fixing circular import

* fix backend creation

* cmd location on the args instead

* considering charting settings on ta class

* cleaning ta extension

* adding missing dependency on ta

* charts on window

* misplaced import

* rename file no_import to dummy_backend

* redirect import

* introducing debug_mode and cleaning todos on ta_class

* rename backend folder to core

* move charts inside app folder and allocate models

* move logs folder into app folder

* fixing paths

* fixing todos on openbb_figure

* setting dummy backend to warn and open in browser if pywry missing

* ruff

* write msg inside exception

* refactor the use of the theme

* change package builder module names

* removing all references to theme as global variable

* ajudsting the usage of kwargs on the charting_router

* removing references to rich style and console things

* dinamically import the backend functions on the charting manager

* add comment

* fix backend funcs import

* read debug_mode from env

* no need to fix manager, but ignore ruff inside __init__

* break command_runner __execute_func into smaller functions

* don't raise unless debug mode

* replace some errors by OpenBBError

* raise provider error if failure

* add timedelta minus 7 for eods

* 5 is better

* print chart error if any

* same print for warnings

* fixing the broken indicators and removing clutter

* warn warnings in debug mode

* fix path

* fixes on the ta examples

* bringing back the utils functions

* add error handling messages and sync debug mode

* rename base_filter to call_filter

* fix chart on api

* complete comment

* add runtime debug_mode in the static version

* removing comment

* working with dataframes in the package

* ruff

* ruff

* ruff

* readme

* ruff

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-07-21 09:40:04 +01:00
montezdesousa
9e8e711737 rename command_runner_wrapper and clean up refs 2023-07-12 20:07:35 +01:00
Theodore Aptekarev
e5a9a7f427 Update folder structure for the SDK v4 (#5212)
* Move openbb_provider

* Add lock file for provider core

* Move sdk core

* Move openbb-provider readme text to the correct location

* Move data providers code

* Remove decoupling leftovers

* Lower the supported python version to 3.8

* Move sdk extensions

* Rename provider imports

* Update openbb pyproject toml

* Fix import statements after the move

* Update lock files

* Change ignored path for the static assets

* Add obb mascot

* Fix providers not being available in the openbb package

* Remove providers extension in favor of the coverage router in sdk core

* username is optional

* linting

* Change openbb_sdk_core to openbb_core

* Bump ruff pre-commit to latest version

* Bump ruff to latest in github actions

* Make ruff and pylint lint only the code in diff in GHA

* Attempt to fix broken linting action

* Attempt to fix the broken linting action II

* Lint code with pre-commit

* Revert all changes to github actions

* Revert to using ruff 0.0.256

* Use dot for local imports

* Re-commit lost forex pairs

* Fix fmp's typo that made it to the openbb data points

* Add other_investing_activities field that has a typo in fmp's api

---------

Co-authored-by: montezdesousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-07-12 18:43:30 +02:00
Theodore Aptekarev
38c8edc76e Fix imports for installed python packages 2023-07-07 21:28:53 +02:00
Diogo Sousa
8b4a506976 fix package builder issues 2023-07-03 13:33:36 +01:00