Commit Graph

60 Commits

Author SHA1 Message Date
tehcoderer
9203900529 validator -> field_validator, a3'd everything 2023-10-16 14:54:04 -04:00
Pratyush Shukla
fdbc6d7e1f Fixes FMP index endpoint to get 1 day interval data (#5535)
* fix FMP endpoint for getting index data for `1day` interval

* fix `open` type to prevent validation error

* modifed `validator` to `field_validator`

* type of fields is `StrictFloat`

* re-record and pass test

* linting
2023-10-16 21:26:54 +05:30
Henrique Joaquim
08549aad58 Fix econcal endpoint (#5567)
* fix econcal for python interface

* fix econcal tests

* fix non supported json output
2023-10-16 16:43:04 +01:00
Pratyush Shukla
f6eac35f0b Stock Historical standardization and UX improvements (#5457)
* polygon add interval standard param

* attempt at standardization

* Alpha Vantage params standardization

* rename `get_intervals` and fixed bug for extracting wrong value

* missed changing it in `extract_data`

* linting

* polygon cleanup

* modified `start_date` & `end_date` type to `datetime` from `dateType`

* standardized intrinio stock historical params

* fixed yfinance

* linting

* revert start and end date to dateType from datetime

* fix alpha vantage

* changed param

* fix intrinio infinite loop

* `validator` is `field_validator`

* revert time params and fixed intervals

* `outputsize` alias set in `Field`

* set interval description using in-build dict

* yfinance stock param standardization

* static

* intrinio cleanup

* Polygon add api params as `PrivateAttr`

* modified yfinance params to `PrivateAttr`

* intrinio remove overriding date params

* fixed description for AV adjusted param

* fix alpha vantage intraday not working

* re-record and pass unit tests

* pass integration tests

* Update test

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-10-16 21:00:10 +05:30
Igor Radovanovic
a5d2e833c4 Passing tests (#5560)
* Passing tests

* fix options

* Fix most tests and bugs

* fix forex missing params

* make symbol upper in polygon fx pairs

* fix fixedincome integration tests (#5564)

* Fixing charting api integration tests (#5562)

* fixing charting api integration tests

* black

* fix stocks less five API fails

* fix the 5 failing stocks integration tests

* recapture fmp stock news unit test

* fix fmp forex api test

* couple more forex integration fixes

* changing the request to always use the legacy session. @jmaslek this is was broken for 3.8 and 3.9; with this change apparently all versions work - lemme know if you see any issue with this change

* ruff

* fix ta

* add missing param

* fix testers for the api

* fix globalnews to use images instead of image

* remove unncessary pandas import

* econcal int tests

* update gitignore

* fix get_querystring to support lists

* add missing parameters

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-10-16 12:57:27 +02:00
Henrique Joaquim
3e8043f97a obbject tests (#5558)
* obbject tests

* ruff

* fix dev_install

* fix unittests

* black on nox

* black on nox

* nox

* fix fetcher test so it can compare dates

* fix intrinio tests

* ruff
2023-10-13 11:39:33 +01:00
James Maslek
afaeaea3fc Merge pull request #5554 from OpenBB-finance/feature/tradingeconomics
Trading Economics Economic Calendar
2023-10-12 16:35:39 -04:00
Pratyush Shukla
64bdd024c6 Make Intrinio options chains great again (#5540)
* add multithreading

* cleanup

* linting

* use dateutil.parser

* removed `TICKER_EXCEPTIONS`

* modified `date` and `type` fields in standard model

* set alias for `date` and `type` to match standards

* static

* static
2023-10-13 02:05:24 +05:30
James Maslek
c8a24374d9 Add trading economics economic calendar 2023-10-12 12:10:45 -04:00
montezdesousa
9dbc7b97b5 Fix buggy docstring in python package methods (#5548)
* fix buggy docstring for methods

* remove space

* fix typing

* avoid name collision with validator

* Revert "avoid name collision with validator"

This reverts commit 8a30a44555.

* typing

* rebuild

* python 3.8, ParamSpec not available

* lint

* ruff noqa
2023-10-12 14:49:08 +01:00
Theodore Aptekarev
e7942e6310 Update dependencies and linting on the CI (#5550)
* Remove ruff and black from platform dependencies

* Update codespell configuration

* Lint python code

* Add toml and tomli to root dev dependencies

* Update requirements.txt files
2023-10-12 15:42:30 +02:00
Pratyush Shukla
73171d701c Standard convention for multi-ticker symbols (#5549)
* standardize symbol input param in forex and crypto historical data

* static

* linting
2023-10-12 18:24:13 +05:30
Pratyush Shukla
86aaf827f3 validator -> field_validator in standard models 2023-10-12 17:40:22 +05:30
Pratyush Shukla
7298d7689c Small QA to rename SDK to Platform (#5544)
* SDK -> Platform in docs

* renamed in core

* renamed in openbb `init`

* `sdk` variable renamed as `platform`

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-10-12 09:37:25 +01:00
Igor Radovanovic
6a640434e8 Lint 2023-10-11 23:34:25 +02:00
Igor Radovanovic
003e3830e0 Merge 2023-10-11 23:30:31 +02:00
Danglewood
162cfd4cf0 change ticker field in Stock Search to is_symbol 2023-10-11 14:00:33 -07:00
Pratyush Shukla
c36518667c ticker. symbol. consistent. @piiq 2023-10-12 01:24:50 +05:30
Danglewood
27956ccc4e Merge branch 'feature/add-v4-standard-models' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-11 10:43:07 -07:00
Danglewood
f11a9d4801 Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-11 10:41:58 -07:00
Igor Radovanovic
6a4f47d1a3 Merge pull request #5542 from OpenBB-finance/hotfix/fix-econometrics
Hotfix/fix econometrics
2023-10-11 19:35:38 +02:00
Theodore Aptekarev
58717ece01 Another attempt to resolve even more linting errors 2023-10-11 19:18:41 +02:00
Theodore Aptekarev
bfa57dde04 Resolve more linter errors 2023-10-11 18:53:15 +02:00
Igor Radovanovic
20dfda472b Revert dep 2023-10-11 16:19:06 +02:00
Igor Radovanovic
8cc230c452 revert the revert 2023-10-11 15:44:20 +02:00
Igor Radovanovic
2e1d9012f8 revert pydantic 2023-10-11 15:39:20 +02:00
Diogo Sousa
1d3a6e997d pydantic v2: self.dict -> self.model_dump 2023-10-11 14:36:25 +01:00
Diogo Sousa
c12ba468b1 pydantic v2: remove deprecated Extra 2023-10-11 14:26:02 +01:00
Danglewood
77a4a5b6d4 Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-10 18:43:47 -07:00
James Maslek
41be83ff76 Add OECD Provider for economy extension (#5534) 2023-10-11 01:20:54 +05:30
hjoaquim
a775242ee6 chaging pro validation hash 2023-10-10 13:18:54 +01:00
Danglewood
aeb0e0a28a merge branch feature/openbb-sdk-v4 2023-10-09 17:02:29 -07:00
hjoaquim
24ce3e9bb8 making linters happy (i guess) 2023-10-09 12:25:54 +01:00
Theodore Aptekarev
ee4decd217 Update some docstrings, fix typos and lint 2023-10-09 11:50:25 +02:00
hjoaquim
2f89ee09f7 solving naming issues on pytest 2023-10-09 10:42:21 +01:00
hjoaquim
6835838007 ruff 2023-10-08 11:42:06 +01:00
hjoaquim
baf3bd3c67 tests for command_runner 2023-10-08 11:33:36 +01:00
Danglewood
63d733031b Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-07 19:05:00 -07:00
Danglewood
549af389a0 make the changes and some etf models 2023-10-07 18:59:43 -07:00
Diogo Sousa
66f9ffd845 update docstrings and readme 2023-10-06 18:24:33 +01:00
Diogo Sousa
59fcce4466 forgot to check auth here 2023-10-06 18:22:38 +01:00
Diogo Sousa
65ecfd75aa update docker readme 2023-10-06 18:19:20 +01:00
Diogo Sousa
bbe40da843 coverage router should not be here 2023-10-06 18:12:27 +01:00
Diogo Sousa
47821e22de some routers included if dev + chg hub backend var 2023-10-06 18:09:54 +01:00
Diogo Sousa
b03e06d3a5 include Darren auth suggestions 2023-10-06 17:50:58 +01:00
James Maslek
41b9e62c5c adding pydantic to core 2023-10-05 16:56:20 -04:00
James Maslek
4e587b263b Relock 2023-10-05 15:55:14 -04:00
montezdesousa
a7c4574919 Feature/basic auth (#5525)
* disable auth by default

* add startup banner

* banner

* create user_auth extension

* add back pymongo for user db

* lint

* add back hub option

* update toml

* remove form

* split auth_hook code

* pydantic v2

* allow db connection

* remove print

* move deps

* remove pymongo from core userservice

* reorg folders

* move props

* fix import

* create inits

* ruff

* rename user service

* rename userservice

* remove unused properties

* rename get_user_service

* ruff

* bad import

* bad import again

* fix userauth service

* now yes

* userdbservice needs to be unique

* move repository code to extension

* move remaining users code to extension

* lint

* pydantic v2

* rename default methods

* rename update to merge

* set merge_dict to private

* user_service: remove singleton

* set user_service as parent class

* fix typing

* add back default settings method used for tests

* + property

* add setter for default user settings

* revert previous: need lunch

* move back some code and start basic auth

* add auth hook

* load ext

* remove userauth ext

* remove from toml

* lint

* set ext name as param

* remove unused env var

* adding admin/pass

* add user/pass and return user_settings

* remove empty file

* improve type hints

* revert some func name changes

* 1 more

* black

* docs

* rename service

* fix tests

* rename env vars

* disable auth by default

* update ext loading

* remove unused pref

* update readme

* update readme + remove default user/pass

* separate user from authentication + lock some rout

* lint

* fix circular import

* fix tests

* readme

* remove comment

* Update README.md

* remove unused repository code

* fix auth env flag

* creds

* update readme

* only disables command auth

* remove link

* pydantic v2

* move app loader

* docstring
2023-10-05 16:25:32 +01:00
Danglewood
16f93a6b65 add some more 2023-10-04 20:37:54 -07:00
Danglewood
035e8448d9 one-year --> three-year 2023-10-03 22:47:05 -07:00