Commit Graph

1017 Commits

Author SHA1 Message Date
teh_coderer
6a9308c3e7 Feature/sdk v4 pydantic v2 (#5458)
* init

* Update provider_interface.py

* docstring

* pydantic v2

* Update __init__.py

* build package v2 support

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* updates

* Update registry.py

* validate_arguments -> validate_call

* update terminal classes

* response_model_by_alias = False

* query_params by alias

* Update major_indices_constituents.py

* add alias to Query in `provider_interface`

* yfinance

* build package, add param defaults and correct `OBBject` results type

* fix cpi validation errors

* Update risk_premium.py

* fix `forex_pairs` active query param annotation, set default when only 1 provider

* fix and refactor intrinio `options_chains`

* Update poetry.lock

* fix benzinga news, build package, add intrinio fred_historical fetcher

* Update extension_map.json

* ruff

* Update unit_test_generator.py

* updates

* add `default=None` on Optional fields

* `parse_obj` -> `model_validate`

* add alias to dup fields on providers with `__alias_dict__`, fix `test_generate_model_docstring`

* Update package_builder.py

* fix validation errors, fix tests

* tests http

* `fred_historical` record

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update available_indices.py

* Update stock_historical.py

* build package

* build package without optional

* change `SystemSettings` -> `MockSystemSettings` in `test_system_settings.py`

* `openbb_figure.py`/`backend.py` terminal changes  , update deps/lock files

* `linearmodels>4.26`  auto installs `setuptools-scm` which cause error messages

* clean up

* `dev_install.py` for local development

* ruff

* dup `# noqa`

* build

* Update bitquery_model.py

* records

* rec

* f

* worky?

* update `integration_test_generator.py` and `unit_test_generator.py`

* renamed test to tests in file

* fix import due to change in file name

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-09-27 09:40:07 +01:00
montezdesousa
4660401974 Hotfix/tests passing (#5452)
* replace string dates with datetime in fetcher tests

* lint
2023-09-20 10:31:44 +01:00
Colin Delahunty
0846cc8687 Removed prints (#5367)
* Removed prints

* FIxed typing

* FIxed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fix

* Reverted stuff
2023-08-25 00:18:11 +02:00
Igor Radovanovic
77716b2081 Merge 2023-08-25 00:17:56 +02:00
Theodore Aptekarev
8f34e1c4f7 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-22 15:58:14 +02:00
Colin Delahunty
3147577fc9 bye bye shroom (#5351)
* bye bye shroom

* missed one

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-21 21:26:03 +00:00
Pratyush Shukla
3006446497 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-19 21:06:44 +05:30
James Maslek
3fcb64d5f2 Fix the CPI CSV and remove twitter functionalities (#5350)
* remove twitter functions

* remove twitter functions and all references to it

* remove twitter functions

* remove twitter functions and all references to it

* Fix units on cpi

* crlf - lf

* missed one

* update ba menu integration test

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-08-18 18:07:48 +00:00
Colin Delahunty
258ed9a11c Thegraph totally changed, I removed the endpoints (#5349)
* Thegraph totally changed, I removed the endpoints

* Cleaned up more
2023-08-18 17:45:17 +00:00
montezdesousa
3e89ce3ab3 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-18 11:00:52 +01:00
Danglewood
a6e66f7a73 hotfix/fix-stocks-search-sdk3: Fixes the stocks search so that it doesn't print_rich_table() for SDK. (#5329)
* fixes the stocks search on SDK so the ticker symbol is returned.

* export data

* unused argument

* fix test

* more test fixy

* test_print_help.txt
2023-08-17 16:25:13 +00:00
Henrique Joaquim
ab6c8f4804 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-17 09:40:02 +01:00
James Maslek
2b2ccacbbe more tests 2023-08-14 11:52:14 -04:00
James Maslek
f4460fbf18 tests 2023-08-14 11:40:39 -04:00
James Maslek
889a986b07 pylint + test 2023-08-14 10:47:29 -04:00
James Maslek
c000c6e3cc Merge branch 'release/3.2.1' into hotfix/macro-routines-to-hub 2023-08-14 09:39:46 -04:00
DidierRLopes
c40c3f7529 Creates a "--dev" flag that points to dev backend for testing with hub (#5319)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev

* few more updates

* small fix

* rename BASE_URL from ultima to ULTIMA_BASE_URL

* use debug from dataclasses instead of env since env doesn't get updated

* create --dev flag that can point to .dev backend

* merge conflits

* few changes, made it actually work 🤣

---------

Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-08-13 23:20:07 -07:00
Igor Radovanovic
744a30ca74 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-10 19:37:03 +02:00
James Maslek
f4cdc3d432 Merge branch 'develop' into release/3.2.1 2023-08-09 17:41:30 -04:00
Danglewood
581fd94276 hotfix/options-hist: Fixes options/hist to display date column when raw is True (#5304)
* fix options hist to display date column when raw is True

* make raw table title same as other sources

* if export
2023-08-09 21:36:35 +00:00
James Maslek
e122a0bb55 fix wsb/deprecate spacc 2023-08-08 14:41:40 -04:00
Igor Radovanovic
af04b4ca88 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-08 13:55:00 +02:00
Colin Delahunty
19e6b61953 Fixed the get routines to meet the new backend standard (#5271)
* Added fixes

* Fixed test

* Unhid try except

* Fixed everything else

* Fixed typing

* Fixed pylint

* Fixed tests

* Fixed

---------

Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-07 13:16:39 +00:00
James Maslek
279850822d fix databento (#5287) 2023-08-07 13:10:21 +00:00
Henrique Joaquim
dbc6751843 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-04 07:37:11 +01:00
Danglewood
f1eee44cab Feature/options_views: Add a Variety of Views/Charts to Extend the OptionsChains Class (#5222)
* add options_chains_view

* vsurf charts

* skew for strike vs contract

* doc string

* add chart_volatility

* linting

* codespell

* mypy

* types

* tmx mypy

* update test file

* add synthetic long/short to strategies

* updates test_options_chains_model.py

* updates some docstrings

* update documentation

* actually commit the documentation page

* update documentation screenshots

* try catch for 403 error

* add tests for options_chains_view

* int64

* SPX error handling

* add cboe options dashboard for terminal

* codespell

* enable mouse scroll wheel zoom for charts

* declare key values for all widgets

* add some more streamlit charts and tables

* fix test_yfinance_view.py

* conflict resolution

* test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-03 20:58:47 +00:00
DidierRLopes
373c4f1ea7 Update all_api_keys.json (#5277)
* Update all_api_keys.json

* Update CONTRIBUTING.md

* Create json-yaml-validate

* Update release-drafter.yml

* Update json-yaml-validate

* fix test

* add json lint to general

* Update tsconfig.json

* Add a json_validate exclude to not check tests and certain known violations

* fix workflow

* not sure why this didnt exclude?

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-03 15:25:47 +00:00
Henrique Joaquim
2066d7d4be Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-02 05:37:20 +01:00
teh_coderer
ae91a3f9b9 Hotfix economy/overview rates displaying as dates (#5269)
* fix: `economy/overview` rates displaying as dates

* Fix Test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-01 16:05:29 +00:00
Theodore Aptekarev
21c69a510f Merge branch 'develop' into feature/openbb-sdk-v4 2023-07-31 20:17:30 +03:00
Danglewood
d212a8e270 hotfix/gdp-units - better GDP units (#5262)
* better GDP units

* mypy

* remove not needed dict

* test_oecd_view.py

* test_oecd_model.py
2023-07-31 16:05:22 +00:00
Henrique Joaquim
27e1728027 Merge branch 'develop' into feature/openbb-sdk-v4 2023-07-27 15:04:19 +01:00
montezdesousa
41d1359202 Check token expiration before request (#5255)
* check token expiration before request

* move to jose instead

* ruff

* Reqs

* update requirements files

* Print expiration time on login

* console.print

* too fast, let the token expire...

* fix create token date

* point expired key to hub

* hard code tokens, works?

* ok it passed

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-26 19:28:36 +00:00
OpenBB
5f9d07c390 black 2023-07-24 17:38:47 +02:00
OpenBB
d4f4d9fc91 fix assertion error with test_economy_controller: test_menu_with_queue[queue0-expected0] 2023-07-24 17:38:47 +02:00
OpenBB
a3427b0557 fix test_economy_controller 2023-07-24 17:38:47 +02:00
OpenBB
f113fc27e3 put spaces in columns for econ/performance and valuation and make sortby work 2023-07-24 17:38:47 +02:00
OpenBB
2b1e04679c fix Finviz screener Perf 1Y returning as 1970-01-01 2023-07-24 17:38:47 +02:00
OpenBB
7121abf7d6 rename 1Year column to fix returning as 1970-01-01 2023-07-24 17:38:47 +02:00
OpenBB
d85cae6193 fix windows int overflow economy/edebt 2023-07-24 17:38:47 +02:00
Danglewood
31f595bc99 update test_get_floor_price 2023-07-24 17:38:47 +02:00
montezdesousa
1453885ab4 add public routines flag (#5236)
* add public routines flag

* Spelling

* mypy

* Tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-24 13:22:47 +02:00
OpenBB
b5cee74fde black 2023-07-22 12:02:06 -07:00
OpenBB
1efbbba6cf fix assertion error with test_economy_controller: test_menu_with_queue[queue0-expected0] 2023-07-22 11:59:37 -07:00
OpenBB
563b4cbbdd fix test_economy_controller 2023-07-22 11:53:21 -07:00
OpenBB
3f3c61ab00 put spaces in columns for econ/performance and valuation and make sortby work 2023-07-22 11:06:21 -07:00
OpenBB
68239df094 fix Finviz screener Perf 1Y returning as 1970-01-01 2023-07-22 09:57:51 -07:00
OpenBB
adcaadf261 rename 1Year column to fix returning as 1970-01-01 2023-07-22 09:22:46 -07:00
OpenBB
c70a990900 fix windows int overflow economy/edebt 2023-07-22 09:01:40 -07:00
Danglewood
bb7889af07 update test_get_floor_price 2023-07-21 22:30:11 -07:00