Commit Graph

6155 Commits

Author SHA1 Message Date
tehcoderer
4de03eafe5 Update provider_interface.py 2023-08-04 14:50:40 -04:00
tehcoderer
b90cbc98d8 Squashed commit of the following:
commit 70f70a81b4
Author: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Date:   Thu Aug 3 12:43:55 2023 +0100

    Hotfix/sdk py38 (#5279)

    * replace unsupported Annotated, MappingProxyType, is_annotated_dc

    * fix package builder

commit 61afffb1f5
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:56:40 2023 +0100

    typing

commit 0b3b30eccc
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:51:07 2023 +0100

    rename exception for better localization

commit 49fe650117
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:43:54 2023 +0100

    update provider readme

commit 1e0a3c36c4
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:43:19 2023 +0100

    update provider readme

commit 9a1b4a8fba
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:42:02 2023 +0100

    update provider readme

commit 6b93a603dc
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 16:37:54 2023 +0100

    update provider readme

commit 13d95452c3
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 15:50:20 2023 +0100

    to follow the convention

commit e3d65b502f
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 14:49:19 2023 +0100

    filter

commit cc5a334258
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Aug 2 14:42:14 2023 +0100

    cleanup filters

commit be864d01f3
Author: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Date:   Wed Aug 2 14:17:20 2023 +0100

    Feature/provider refactoring (#5266)

    * remove comment

    * replace registry description

    * black and add some todos

    * remove unused var

    * allow description and move provider to title

    * fix the data field descriptions

    * refactor globalnews

    * added `"limit"` to metadata descriptions

    * fix cpi command and refactor

    * refactored `AnalystEstimates`

    * add concat param

    * refactored `AvailableIndices` for `economy.available_indices`

    * sort and set index to date

    * place it inside exception

    * move literals to core

    * rename descriptions dict

    * add descriptions to cpi data

    * change description

    * black

    * refactored `CompanyOverview` for `stocks.fa.overview`

    * Updated `DATA_DESCRIPTIONS` in provider metadata

    * Updated `symbol` description in `DATA_DESCRIPTIONS`

    * fix stock_news alias

    * pass standard limit

    * fix stock news

    * fix to datframe

    * rebuild python interface

    * refactored `CryptoEOD` for `crypto.load`

    * added Field descriptions

    * fix polygon stock_news

    * fix stock_news data

    * ruff

    * refactored `DividendCalendar` for `stocks.fa.cal`

    * refactored `EarningsCalendar` for `stocks.fa.cal`

    * refactored `EarningsCallTranscript` for `stocks.fa.transcript`

    * refactored `ExecutiveCompensation` for `stocks.fa.comp`

    * first round, refactor registry, executor, map

    * ruff

    * Allow alias in the provider models for provider specific params

    * Updated stock news to use alias in query

    * small fixes

    * fix interface bug

    * black

    * exceptions and typing

    * ruff

    * fix docstring

    * sort providers

    * push static assets without docstrings

    * date Field and optional dates params in `CryptoEOD` for fmp and polygon

    * refactored `ForexEOD` for `forex.load`

    * add comment

    * refactored `ForexPairs` and added Polygon provider

    * removed `_price` models from fmp and polygon

    * Updated `economy.index` to use `MajorIndicesEOD`

    * removed `_price` from sdk models

    * refactored `MajorIndicesEOD` for `economy.index`

    * refactored `StockEOD` for `stocks.load`

    * regenerate sdk

    * ruff

    * fix bug with global_news

    * typing

    * add docstrings to registry map

    * update docstrings

    * add executor query arg

    * follow convention

    * docstring

    * inject provider interface instead

    * doc

    * safer this way

    * docs

    * add abstractmethod decorator

    * add explicit fetcher property model_name

    * remove mode_name prop

    * get model name from query params

    * force extra params or data to be optional

    * replace fetcher list by fetcher dict and black

    * explicit depps in prov interface

    * explicit depps in prov interface

    * no formatted creds

    * no formatted creds

    * dep injection

    * dep injection

    * private methods

    * just verify credentials

    * docstring

    * typing and cut doc

    * typing

    * typing

    * typing

    * no overkill

    * ruff

    * don't block if model not found, just warn

    * don't block if model not found, just warn

    * don't block if model not found, just warn

    * empty list if creds None

    * check creds before request

    * just return the data

    * typing

    * move query params

    * ruff

    * move queryparams

    * move queryparams

    * move queryparams

    * fix a bunch o polygon models

    * ruff

    * partial fix fmp models

    * ruff

    * refactor more fmps

    * create dict by alias

    * refactor more fmp endpoints

    * bug

    * add params to transform query

    * ruff

    * fix fmp bugs

    * has to be annotation

    * rewrite static

    * typing

    * append return type to map

    * support return for generic data type

    * remove return type for openbb provider

    * add todo

    * fix small fred typing error

    * add more return type info

    * better message

    * handle multiple types of data (the fetcher should declare them later)

    * add comment

    * ruff

    * handle returns with generic for now (check juan solution)

    * fix bug with generic

    * fix fmp fetchr dict

    * fill return type in the provider lib for docstrings

    * polygon stock news

    * Update economy_router.py (#5254)

    * remove return type stuff

    * adapt cpi and overview

    * rewrite python interface

    * fix to_dataframe

    * limit stocks eod output

    * rename method

    * mypy

    * mypy

    * mypy chart style

    * mypy provider

    * mypy ignores

    * mypy credentials

    * Added Statements Growth endpoints from FMP

    * account mypy fix

    * privatize account method

    * one more mypy

    * remove mypy ignore

    * rename private method

    * Linting

    * Docstring generation

    * Linting

    * move provider.py into __init__.py

    * add default to required_credentials -> None

    * refactored `KeyExecutives` for `stocks.fa.mgmt`

    * refactored `HistoricalEmployees` for `stocks.fa.emp`

    * provider docstring

    * docstring

    * refactored `HistoricalStockSplits` for `stocks.fa.split`

    * standardised date in stockeod

    * refactored ``InstitutionalOwnership` for `stocks.fa.own`

    * removed unused imports

    * add `check_fields=False` in `@validator`

    * historical dividens

    * remove unused helper

    * move single used helpers to where they are used

    * move single used helpers to where they are used

    * move single used helpers to where they are used

    * standardise date, vwap in crypto eod and forex eod

    * rename __commands__ to __extensions__

    * change coverage separator

    * the map cannot change sep

    * sry

    * sry again

    * remove comment

    * refactored `MajorIndicesConstituents` for `economy.const`

    * add some descriptions about provider

    * refactored `PriceTargetConsensus` for `stocks.fa.pt`

    * refactored `PriceTarget` for `stocks.fa.pta`

    * refactored `RevenueBusinessLine` for `stocks.fa.revseg`

    * change metadata file name

    * docstring

    * remove unecessary arg

    * ruff & black

    * refactored `RevenueGeographic` for `stocks.fa.revgeo`

    * refactored `RiskPremium` for `economy.risk`

    * refactored `SECFilings` for `stocks.dd.sec`

    * refactored `ShareStatistics` for `stocks.fa.shrs`

    * refactored `StockInsiderTrading` for `stocks.fa.ins`

    * peers

    * stock splits

    * refactored `KeyMetrics` for `stocks.fa.metrics`

    * refactored `StockMultiples` for `stocks.multiples`

    * refactor income statement

    * rebuild

    * fmp balance

    * added `StocksOwnership` to `stocks.fa.own`

    * added `InstitutionalOwnership` to `stocks.fa.ins_own`

    * refactored `StocksOwnership` for `stocks.fa.own`

    * cleanup

    * refactored `TreasuryRates` for `fixedincome.treasury`

    * reorder balance items

    * fix polygon bs

    * refactored `IncomeStatement` for `stocks.fa.balance`

    * refactored base and types

    * added static files

    * cleanup

    * cleanup

    * refactored `CashFlowStatement` for `stocks.fa.cash`

    * added `stocks/fa` static file

    * black and ruff

    ---------

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

commit 2066d7d4be
Merge: fe1073da09 07537199af
Author: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Date:   Wed Aug 2 05:37:20 2023 +0100

    Merge branch 'develop' into feature/openbb-sdk-v4

commit 07537199af
Author: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Date:   Tue Aug 1 17:27:59 2023 +0100

    Move hub api keys ts (#5267)

    * move hub api keys ts

    * json instead

    * update contributing.md

    * Update all_api_keys.json

    ---------

    Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>

commit ae91a3f9b9
Author: teh_coderer <me@tehcoderer.com>
Date:   Tue Aug 1 11:05:29 2023 -0500

    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>

commit 3b5fc53cc7
Author: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Date:   Tue Aug 1 06:41:21 2023 -0700

    Adds details/image for installing C++ Build Tools (#5268)

    * Adds details/image for installing C++ Build Tools

    * Update installation_updates.md with screenshots

    * Update installation_updates.md

    Screenshots for MS C++ Build Tools

commit fe1073da09
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Tue Aug 1 12:29:42 2023 +0100

    only allow setup for allowed system fields

commit c8f82e1f8f
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Tue Aug 1 12:04:16 2023 +0100

    reorder system settings attrs

commit 21c69a510f
Merge: 379a5518fa d212a8e270
Author: Theodore Aptekarev <aptekarev@gmail.com>
Date:   Mon Jul 31 20:17:30 2023 +0300

    Merge branch 'develop' into feature/openbb-sdk-v4

commit d212a8e270
Author: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Date:   Mon Jul 31 09:05:22 2023 -0700

    hotfix/gdp-units - better GDP units (#5262)

    * better GDP units

    * mypy

    * remove not needed dict

    * test_oecd_view.py

    * test_oecd_model.py

commit dc30ab3d36
Author: teh_coderer <me@tehcoderer.com>
Date:   Fri Jul 28 21:13:42 2023 -0500

    Hotfix/ locking when deploying streamlit app (#5261)

    * fix locking when deploying streamlit app

    * Update streamlit_run.py

    * Update streamlit_run.py

commit 379a5518fa
Author: hjoaquim <h.joaquim@campus.fct.unl.pt>
Date:   Fri Jul 28 10:00:39 2023 +0100

    small comment on show() implementation

commit 849e6134ee
Merge: 27e1728027 73348c0872
Author: Theodore Aptekarev <aptekarev@gmail.com>
Date:   Thu Jul 27 19:23:10 2023 +0300

    Merge branch 'develop' into feature/openbb-sdk-v4

commit 27e1728027
Merge: afe4c480a2 41d1359202
Author: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Date:   Thu Jul 27 15:04:19 2023 +0100

    Merge branch 'develop' into feature/openbb-sdk-v4

commit afe4c480a2
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Jul 26 14:33:37 2023 +0100

    fix comment

commit 531fa104c8
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Jul 26 14:32:00 2023 +0100

    rename method and add description

commit cc1a84b4d0
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Jul 26 13:15:55 2023 +0100

    change method description

commit ff31d9ab87
Author: Diogo Sousa <montezdesousa@gmail.com>
Date:   Wed Jul 26 12:52:54 2023 +0100

    check sdk token expiration on login
2023-08-04 14:44:09 -04:00
tehcoderer
67415276a2 init 2023-08-02 12:39:11 -04:00
Pratyush Shukla
dde91d106e added static files 2023-08-02 17:03:33 +05:30
Pratyush Shukla
1a9a142963 refactored base and types 2023-08-02 17:03:08 +05:30
Pratyush Shukla
728d0f714d Merge branch 'feature/provider_refactoring' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/provider_refactoring 2023-08-02 16:54:01 +05:30
Pratyush Shukla
335c2f2220 refactored IncomeStatement for stocks.fa.balance 2023-08-02 16:53:54 +05:30
Diogo Sousa
d92ae78e25 fix polygon bs 2023-08-02 12:15:27 +01:00
Diogo Sousa
49ca854311 reorder balance items 2023-08-02 11:56:01 +01:00
Pratyush Shukla
738dbe85d6 refactored TreasuryRates for fixedincome.treasury 2023-08-02 16:16:28 +05:30
Pratyush Shukla
9dda6b75de cleanup 2023-08-02 16:01:17 +05:30
Pratyush Shukla
2feb4b08c0 refactored StocksOwnership for stocks.fa.own 2023-08-02 16:00:36 +05:30
Pratyush Shukla
c09b983552 added InstitutionalOwnership to stocks.fa.ins_own 2023-08-02 16:00:20 +05:30
Pratyush Shukla
b2d3ceff31 added StocksOwnership to stocks.fa.own 2023-08-02 15:59:19 +05:30
Igor Radovanovic
616e911ae4 Merge branch 'develop' into feature/provider_refactoring 2023-08-02 11:36:55 +02:00
Diogo Sousa
f9506a2edd fmp balance 2023-08-02 02:00:05 +01:00
Diogo Sousa
2feb704d52 rebuild 2023-08-02 01:13:48 +01:00
Diogo Sousa
0fe94cbfc7 refactor income statement 2023-08-02 01:09:50 +01:00
Pratyush Shukla
a5b4f89e4e refactored StockMultiples for stocks.multiples 2023-08-02 04:11:37 +05:30
Pratyush Shukla
0ef2995512 Merge branch 'feature/provider_refactoring' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/provider_refactoring 2023-08-02 03:54:29 +05:30
Pratyush Shukla
74f1a470a8 refactored KeyMetrics for stocks.fa.metrics 2023-08-02 03:53:40 +05:30
Diogo Sousa
cfdf74d7bd stock splits 2023-08-01 23:05:33 +01:00
Diogo Sousa
54706c1926 peers 2023-08-01 22:56:31 +01:00
Pratyush Shukla
0a4c8223f7 refactored StockInsiderTrading for stocks.fa.ins 2023-08-02 03:12:55 +05:30
Pratyush Shukla
b93056eeed refactored ShareStatistics for stocks.fa.shrs 2023-08-02 02:29:09 +05:30
Pratyush Shukla
da08d83943 refactored SECFilings for stocks.dd.sec 2023-08-02 02:20:51 +05:30
Pratyush Shukla
4bbb18ebf1 refactored RiskPremium for economy.risk 2023-08-02 01:51:36 +05:30
Pratyush Shukla
60f9033909 refactored RevenueGeographic for stocks.fa.revgeo 2023-08-02 01:35:51 +05:30
Diogo Sousa
c9bdc0fb6e ruff & black 2023-08-01 20:53:31 +01:00
Diogo Sousa
c67ad0acc1 remove unecessary arg 2023-08-01 20:53:22 +01:00
Diogo Sousa
f30b24e627 docstring 2023-08-01 20:49:58 +01:00
Diogo Sousa
8ee801d0b9 change metadata file name 2023-08-01 20:49:10 +01:00
Pratyush Shukla
7bbe2bccd5 refactored RevenueBusinessLine for stocks.fa.revseg 2023-08-02 01:17:00 +05:30
Pratyush Shukla
9fe93c0456 refactored PriceTarget for stocks.fa.pta 2023-08-02 00:51:15 +05:30
Pratyush Shukla
49d653401d refactored PriceTargetConsensus for stocks.fa.pt 2023-08-02 00:39:28 +05:30
Diogo Sousa
96955b836b add some descriptions about provider 2023-08-01 19:48:40 +01:00
Pratyush Shukla
35b5aea218 Merge branch 'feature/provider_refactoring' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/provider_refactoring 2023-08-02 00:13:18 +05:30
Pratyush Shukla
609ca78fdb refactored MajorIndicesConstituents for economy.const 2023-08-02 00:13:11 +05:30
Diogo Sousa
89a6e7b7b2 remove comment 2023-08-01 19:30:47 +01:00
Diogo Sousa
ec42c463e2 sry again 2023-08-01 19:18:46 +01:00
Diogo Sousa
986cd41ab2 sry 2023-08-01 19:18:07 +01:00
Diogo Sousa
e94ae384d6 the map cannot change sep 2023-08-01 19:17:10 +01:00
Diogo Sousa
f09d14871d change coverage separator 2023-08-01 19:11:44 +01:00
Diogo Sousa
5a17d06e67 rename __commands__ to __extensions__ 2023-08-01 18:55:48 +01:00
Diogo Sousa
823ed410fe standardise date, vwap in crypto eod and forex eod 2023-08-01 18:28:39 +01:00
Diogo Sousa
c569b65f7b move single used helpers to where they are used 2023-08-01 18:04:37 +01:00
Diogo Sousa
1c4f8e8d77 move single used helpers to where they are used 2023-08-01 18:03:20 +01:00
Diogo Sousa
7c7317dce5 move single used helpers to where they are used 2023-08-01 18:02:06 +01:00
Diogo Sousa
77da7c56c8 remove unused helper 2023-08-01 17:59:26 +01:00
Pratyush Shukla
f06f4333b5 Merge branch 'feature/provider_refactoring' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/provider_refactoring 2023-08-01 20:16:32 +05:30