Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] 4.1.5 #6190

Merged
merged 397 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
397 commits
Select commit Hold shift + click to select a range
fce63af
Parameterize `obbject.to_df` with `index` and `sort_by` (#5877)
hjoaquim Dec 11, 2023
e7a0608
Changes to the `obb.fixedincome.corporate.hqm()` output (#5876)
hjoaquim Dec 11, 2023
6918ab1
Refactor method in RegistryMap (#5879)
montezdesousa Dec 12, 2023
704c2d8
remove Literal from providers in OBBject (#5882)
montezdesousa Dec 12, 2023
40f3de1
Fix version (#5883)
IgorWounds Dec 13, 2023
bcb1f50
Refactor package builder (#5880)
montezdesousa Dec 13, 2023
f9fbb2a
small refactor for simplification (#5886)
hjoaquim Dec 13, 2023
5faa50c
Fix bug. Add router test. (#5888)
IgorWounds Dec 14, 2023
b815d08
separate pylint between platform + terminal (#5892)
jmaslek Dec 15, 2023
324d2ab
sync descriptions (#5893)
montezdesousa Dec 15, 2023
6754809
Add REST API docs page with advanced settings configuration (#5890)
piiq Dec 15, 2023
3a12348
fix a v3 syntax example (#5891)
deeleeramone Dec 15, 2023
238ab39
Adds federal reserve data points (#5885)
jmaslek Dec 15, 2023
ecdb111
Check if outdated (#5898)
IgorWounds Dec 18, 2023
7067a19
Add econometrics API tests (#5899)
IgorWounds Dec 18, 2023
40b53b0
Docs/excel update (#5889)
montezdesousa Dec 18, 2023
2974f45
Fix pylint scope (#5895)
piiq Dec 18, 2023
ad8e13b
fix `from openbb import obb` asyncio lock in python REPL (#5896)
tehcoderer Dec 18, 2023
06e3883
feature/financials - PR for working on structure of financial stateme…
deeleeramone Dec 19, 2023
3eaf0d2
docs/legacy-install: Add warning at top of page - Instructions on thi…
deeleeramone Dec 28, 2023
5c4ac28
hotfix/financials-field-maps: Updates A Couple FMP/Polygon Income Sta…
deeleeramone Jan 3, 2024
c43100d
Fix test (#5916)
IgorWounds Jan 3, 2024
fe63d40
hotfix/fmp-price-performance-zeros: Replace returned zero with None a…
deeleeramone Jan 3, 2024
2bc67f3
Update index.md (#5906)
Jan 3, 2024
9a09999
Release/4.1.0 (#5901)
hjoaquim Jan 3, 2024
b170e29
Hotfix/terminal tests (#5919)
hjoaquim Jan 4, 2024
70633e3
docs/platform-faq: Start Platform FAQ page with bullet points on Plat…
deeleeramone Jan 5, 2024
a7514bc
hotfix/backend - Initialize OpenBBFigure (#5912)
deeleeramone Jan 6, 2024
1d77e03
hotfix/yf-futures-historical: yfinance historical futures multi-ticke…
deeleeramone Jan 8, 2024
00febe1
Docs/excel examples (#5920)
montezdesousa Jan 8, 2024
26f67c4
Re-record tests and fix symbol bug (#5924)
IgorWounds Jan 8, 2024
f79f50a
Docs/bug fix (#5926)
montezdesousa Jan 8, 2024
bae3388
Introduces a limit argument for the `equity.fundamental.trailing_divi…
hjoaquim Jan 8, 2024
af8dbe4
Add json_schema_extra to openapi.json (#5930)
IgorWounds Jan 8, 2024
873e9a5
feature/standardize-quote: Proposal to Standardize EquityQuote (#5922)
deeleeramone Jan 9, 2024
0b8d6e6
hotfix/fmp-rev-segments: Adds Fiscal Period to busines/geographic seg…
deeleeramone Jan 9, 2024
16bd470
Allow multiple symbols `equity.profile` (#5929)
montezdesousa Jan 9, 2024
cf9536d
Add filtering to AV historical price (#5928)
hjoaquim Jan 9, 2024
a5396ac
Fix vwap FMP error (#5936)
IgorWounds Jan 10, 2024
ee5388a
Add date filter + symbols to comp (#5931)
montezdesousa Jan 10, 2024
c3abc41
Improving Platform's import time (#5894)
hjoaquim Jan 10, 2024
d7c6918
Disable auto_build on test run (#5937)
IgorWounds Jan 10, 2024
b1157cd
Update excel docs (#5940)
montezdesousa Jan 10, 2024
f2b9054
Categorize release notes based on labels for OpenBB Platform (#5943)
luqmanbello Jan 10, 2024
e36ba9d
Custom deprecation message in API endpoints and Python commands (#5942)
the-praxs Jan 11, 2024
8c36373
Hotfix/remove unused workflow (#5945)
IgorWounds Jan 11, 2024
cdce904
Hotfix/fix typo (#5948)
IgorWounds Jan 11, 2024
c0f0445
docs/data-models-url: Fix URLs on Development Page (#5944)
deeleeramone Jan 12, 2024
79c8149
`equity.fundamental.dividends`: allow filter by date (#5932)
montezdesousa Jan 12, 2024
83aa71a
Create Excel templates page (#5947)
montezdesousa Jan 14, 2024
c8d5556
hotfix/intrinio-dividends-limit: Fix Limit Param Alias (#5951)
deeleeramone Jan 15, 2024
16cffc5
Docs/remove core refs (#5957)
montezdesousa Jan 15, 2024
f58380b
Excel tutorials on the docs (#5956)
Jan 16, 2024
711c620
hotfix/float-values: Convert Intrinio balance sheet values to float t…
deeleeramone Jan 16, 2024
6fb7860
Update to OpenBB Add-in for Excel (#5965)
minhhoang1023 Jan 17, 2024
a2e3f04
Log custom headers (#5966)
montezdesousa Jan 17, 2024
7fd223d
move government-us to community in dev_install (#5963)
the-praxs Jan 17, 2024
54b6a2e
fix: adds logic to check whther user is logged in on hub (#5941)
jose-donato Jan 17, 2024
37c7b14
hotfix/fix-company-filings: Fixes too many mandatory fields. (#5909)
deeleeramone Jan 17, 2024
31d03eb
`equity.estimates.price_target` - Integrate with Benzinga (#5946)
hjoaquim Jan 17, 2024
2f4abee
[DEPRECATION] `index.market` renamed to `index.price.historical` (#5962)
the-praxs Jan 18, 2024
c6c003e
bug fix (#5969)
montezdesousa Jan 18, 2024
e9ddbd3
Uppercase excel reference (#5958)
montezdesousa Jan 18, 2024
65bc870
move templates (#5970)
montezdesousa Jan 18, 2024
80f5cbf
Release 4.1.1. (#5964)
montezdesousa Jan 19, 2024
17ef2bf
Fix link to discord channel (#5910)
ayrt-n Jan 19, 2024
a7f5e73
Fixing Posthog handler for thread safety (#5968)
hjoaquim Jan 19, 2024
801ebb2
Update labeler.yml and labels-PR.yml (#5974)
luqmanbello Jan 19, 2024
237defa
hotfix/ allow multiple `identify` calls (#5976)
tehcoderer Jan 19, 2024
cf5a641
regex out any invisible control character from sales_conditions field…
deeleeramone Jan 20, 2024
2428d3e
docs/http-requests: Contributor Guide For Building HTTP Requests (#5973)
deeleeramone Jan 20, 2024
9697aeb
feature/add-yfinance-functions: Add equity.profile for yFinance (#5978)
deeleeramone Jan 20, 2024
f052666
remove yfinance from extras in toml (#5982)
the-praxs Jan 22, 2024
a9b4d20
Release OpenBB Platform v`4.1.3` (#5983)
hjoaquim Jan 22, 2024
e2f7e59
feature/cboe-async: Refactor Cboe for Async (#5900)
deeleeramone Jan 22, 2024
7fccc15
Fix typo in website/README.md (#5980)
northern-64bit Jan 22, 2024
7f657d9
Hotfix/th etfs (#5959)
EricLi-Dev Jan 22, 2024
04df52d
feature/finviz-provider: Adds Community Finviz Provider Extension (#5…
deeleeramone Jan 22, 2024
604f549
Add support for multiple symbols on `obb.equity.price.historical` (#5…
hjoaquim Jan 23, 2024
03197c9
update extension descriptions page (#5985)
deeleeramone Jan 23, 2024
ea9cedb
remove useless file (#5991)
hjoaquim Jan 24, 2024
00402d4
added symbol to headers (#5981)
EricLi-Dev Jan 24, 2024
2e0551e
Fixing Docs Typos (#5955)
EricLi-Dev Jan 25, 2024
21f413d
fix nasdaq test cassettes (#5989)
deeleeramone Jan 25, 2024
dff51f2
don't include `custom_headers` in openapi schema (#5994)
tehcoderer Jan 25, 2024
305b865
hotfix/intrinio-index: Drop None Rows From intrinio Historical Index …
deeleeramone Jan 25, 2024
f7c9865
hotfix/insider-trading: Fix #5988 (#5990)
deeleeramone Jan 25, 2024
13283fb
CI listing quick fix (#6002)
the-praxs Jan 26, 2024
94ea6d8
Release `openbb-finviz` `1.0.0` to the public (#6000)
the-praxs Jan 26, 2024
34312d2
Auto Labelling for OpenBB Excel Docs Changes (#5998)
luqmanbello Jan 26, 2024
c6eefd2
[Feature] - Support for custom examples in router commands (#5993)
IgorWounds Jan 26, 2024
e7798c2
hotfix/intrinio-options-date: Fix comparing values between str and da…
deeleeramone Jan 26, 2024
4755711
[Feature] - Field order added to the OBBject extra as preference (#5999)
IgorWounds Jan 29, 2024
2d7c5c6
Update `openbb-devtools` (#6008)
the-praxs Jan 29, 2024
4163f47
format w new black (#6009)
hjoaquim Jan 29, 2024
e21721c
remove reviewpad (#6010)
hjoaquim Jan 30, 2024
7a07970
Remove Ultima provider (#6012)
IgorWounds Jan 30, 2024
bbf5da0
Add OECD unemployment (+more) + data cache idea (#5917)
jmaslek Jan 31, 2024
5fd11be
Feature/improved pr template (#6018)
hjoaquim Jan 31, 2024
d4baba0
[Feature] - Custom deprecation (#6005)
hjoaquim Feb 1, 2024
5f8fca5
[BugFix] Fix package builder (#6022)
montezdesousa Feb 2, 2024
9ddbf34
[Feature] Add support for multiple tags in `historical_attributes` an…
the-praxs Feb 2, 2024
c9f1aec
[feature]: feature/overview-to-profile: Deprecate `equity.fundamental…
deeleeramone Feb 2, 2024
6c2aa62
[BugFix] - Remove duplicate code (#6025)
IgorWounds Feb 2, 2024
a5da328
remove `SectorNews` from router and standard models (#6026)
the-praxs Feb 4, 2024
3de1bdd
feature/more-yfinance: Adds some more to openbb-yfinance (#5979)
deeleeramone Feb 4, 2024
b4649b3
feature/commodities-lbma-fixing: Adds Commodity Extension and LBMA Go…
deeleeramone Feb 5, 2024
52ac175
Improve UX for `obb.news` (#5986)
hjoaquim Feb 5, 2024
743c229
[BugFix] - Improve Standardization - `IndexHistorical` (#6030)
hjoaquim Feb 5, 2024
f86483e
[Feature] - Refactor Response Model (#6024)
IgorWounds Feb 5, 2024
074cffa
[BugFix] - Improve Standardization - `CotSearch` (#6031)
hjoaquim Feb 5, 2024
a75d326
Docs/byod (#5996)
montezdesousa Feb 5, 2024
16f2bec
Feature/ex-dividend: Renames "date" columns as "ex_dividend_date" for…
deeleeramone Feb 5, 2024
7c953d5
[BugFix] - Adds a timezone to the Unix timestamp conversion to correc…
deeleeramone Feb 5, 2024
b5f41fe
Hotfix/wrong pydantic validator (#6037)
hjoaquim Feb 5, 2024
d674237
fix openapi schema fields `to_snake` (#6036)
tehcoderer Feb 6, 2024
1cff417
Fix data connectors link typo (#6038)
montezdesousa Feb 6, 2024
6eb097c
[BugFix] - Improve Standardization - `EquitySearch` (#6033)
hjoaquim Feb 6, 2024
f8fb593
Docs / only display results for current platform (#6017)
tehcoderer Feb 6, 2024
76e4a7b
Improve the docstrings (#6040)
IgorWounds Feb 6, 2024
6f15965
Improve the docstrings (#6041)
IgorWounds Feb 6, 2024
e77a67d
dont run base tests with v4 label (#6046)
montezdesousa Feb 7, 2024
38d79d0
Sync excel reference (#6039)
montezdesousa Feb 7, 2024
3805e9b
[Enhancement] - Improve `news` router docs and examples (#6047)
hjoaquim Feb 7, 2024
c41f43c
Feature/platform standardization notebook (#6049)
piiq Feb 7, 2024
158d6e9
[Enhancement] - Improve `currency` router docs and examples (#6045)
hjoaquim Feb 7, 2024
aa1fab6
display warnings based on preference (#6051)
montezdesousa Feb 7, 2024
8e445fe
[Enhancement] - Improve `crypto` router docs and examples (#6048)
the-praxs Feb 7, 2024
7d668b1
Final Implementation of Changelog V2 (#6050)
luqmanbello Feb 8, 2024
7c68832
improve discriminator logic, fix package return type docs (#6052)
tehcoderer Feb 8, 2024
d4ac2fe
Add LLM tools example notebook (#6053)
mnicstruwig Feb 8, 2024
3ca266d
Remove the preference (#6055)
IgorWounds Feb 8, 2024
6088c98
[Feature] - Standardise multiple symbols input (#6056)
montezdesousa Feb 8, 2024
b286800
Improve the docstrings (#6057)
IgorWounds Feb 8, 2024
930004c
update economy router docstrings (#6058)
deeleeramone Feb 8, 2024
f08b0a6
[BugFix] Fix OECD Long Term Interest Rate (#6060)
deeleeramone Feb 9, 2024
3fae9c2
[Bugfix] - Fix economic calendar country (#6059)
montezdesousa Feb 9, 2024
bc24709
[HotFix] Index Router Docstrings & `sp500_multiples()` Cleanup (#6063)
deeleeramone Feb 9, 2024
6881314
[Feature] FMP Current Holdings (#6043)
deeleeramone Feb 9, 2024
3988826
[Feature] - Replace symbols in company/news (#6061)
montezdesousa Feb 12, 2024
b867fc5
[Enhancement] Add function examples to router. (#6042)
deeleeramone Feb 12, 2024
ed0446e
[Enhancement] Add function examples to Regulators Router (#6054)
deeleeramone Feb 12, 2024
d31eec2
[BugFix] Fix World News (#6064)
deeleeramone Feb 12, 2024
6648f51
[Feature] - remove unused validators from standard models (#6067)
montezdesousa Feb 12, 2024
2516cfb
Update USD Liquidity Example Notebook for V4 (#5902)
deeleeramone Feb 13, 2024
28cd697
Fix QA Examples (#6072)
IgorWounds Feb 14, 2024
cb192cb
[Feature] - Ensure Bugfix branches can only do PRs to `develop` branc…
luqmanbello Feb 14, 2024
2f01e95
Feature/charting obbject (#5938)
hjoaquim Feb 14, 2024
7ceec30
Fix CAPM example (#6075)
IgorWounds Feb 14, 2024
f288c41
Start removing dead v3 commands for deprecation (#6070)
jmaslek Feb 14, 2024
7deb4e6
[Feature] - Comma separated string and list inputs (#6062)
montezdesousa Feb 15, 2024
07e98ab
[Feature] Add Regional Data Endpoint from FRED (#6071)
deeleeramone Feb 15, 2024
9903876
[BugFix] - Fix most integration tests (#6082)
IgorWounds Feb 15, 2024
4ba7e10
Fix price_target column for Benzinga (#6083)
IgorWounds Feb 15, 2024
fa5dedf
Release/4.1.4 (#6081)
hjoaquim Feb 15, 2024
3893338
Add dates to /quantitative as needed. (#6078)
jmaslek Feb 15, 2024
ccf46aa
[Feature] Add end point: `etf.equity_exposure()` with FMP provider (#…
deeleeramone Feb 15, 2024
60a93c3
[BugFix] Fix Equity Integration Tests (#6086)
deeleeramone Feb 18, 2024
9f18919
[Enhancement] Add `analyst_search` to the Equity/Estimates Router (#6…
deeleeramone Feb 18, 2024
0b5260f
[BugFix] - Fix POST docstring examples (#6095)
IgorWounds Feb 19, 2024
339f979
[BugFix] Fix `treasury_rates()` (#6092)
deeleeramone Feb 19, 2024
b84a091
clean up the remains from my yeeting (#6089)
jmaslek Feb 20, 2024
9fee65a
Add ETF examples (#6102)
IgorWounds Feb 20, 2024
7d84690
[BugFix] Fix integration tests (#6100)
hjoaquim Feb 20, 2024
fe3fa6a
[Enhancement]: Add TMX data provider extension. (#5913)
deeleeramone Feb 20, 2024
f8a5f5f
[Feature] - OBB.GET (#6097)
montezdesousa Feb 20, 2024
ad2dae2
[Docs] Remove Reference to `to_chart` in OBBject. (#6096)
deeleeramone Feb 21, 2024
5f9d958
[Feature] - Create openbb assets folder (#6101)
montezdesousa Feb 21, 2024
754e14c
[BugFix] Fixes to_df() where the date series contains multiple TZ-off…
deeleeramone Feb 21, 2024
3cc6025
Update the quantitative extension to make more sense (#6087)
jmaslek Feb 21, 2024
11df8e1
[BugFix] Fix ECB Yield Curve (#6108)
deeleeramone Feb 22, 2024
5018518
Update unit-test workflow to check for changes to openbb_platform (#6…
luqmanbello Feb 22, 2024
0ecb742
[Bug fix] - Fix package mypy (#6110)
montezdesousa Feb 22, 2024
6095c43
[Feature] - Equity router descriptions & examples (#6103)
montezdesousa Feb 22, 2024
274a027
[Feature] - Add `exception_handler` decorator to static (#6112)
the-praxs Feb 22, 2024
6c105df
update extensions list (#6114)
deeleeramone Feb 23, 2024
2c6cfa1
add missing field descriptions to yfinance equity price historical (#…
deeleeramone Feb 23, 2024
d5cfb57
remove charting extension env var (#6118)
hjoaquim Feb 23, 2024
eea2fb5
[BugFix] Fix Company News (#6111)
deeleeramone Feb 25, 2024
1cbe345
[BugFix] Allow Multiple Symbols in `equity.fundamental.metrics()` fro…
deeleeramone Feb 26, 2024
1d29ddc
remove unnecessary function (#6125)
hjoaquim Feb 26, 2024
da79144
[Docs] Update OpenBB Copilot docs (#6106)
mnicstruwig Feb 26, 2024
71676ae
[Enhancement] Add Previous Close to DATA_DESCRIPTIONS (#6120)
deeleeramone Feb 26, 2024
6a1ed9b
added australia as a country also (#6131)
capital0 Feb 26, 2024
ea26bf0
[Bug fix] - Fix regulator cik map standard model (#6129)
montezdesousa Feb 26, 2024
6f6dc0c
increase timeout to 30 (#6115)
deeleeramone Feb 26, 2024
ab74848
clean up some v3 deps (#6105)
jmaslek Feb 26, 2024
8e07b56
[Bug fix] - explicit multiple items docstring (#6127)
montezdesousa Feb 26, 2024
49967fe
[Feature] Pretty Pydantic `ValidationError` exceptions (#6130)
the-praxs Feb 27, 2024
225c945
tmx etf info (#6132)
deeleeramone Feb 27, 2024
577a424
[Feature] - Platform V4 Markdown Generator V2 (#6094)
the-praxs Feb 27, 2024
2ae6651
[Docs] Adds Example Notebook for the Implied Earnings Move (#6128)
deeleeramone Feb 27, 2024
ccdb246
[Feature] - Sync with new openapi.json (#6137)
montezdesousa Feb 27, 2024
3d34e56
Fix the v3 markdown generation workflow (#6138)
jmaslek Feb 27, 2024
2332725
update functions.json (#6140)
montezdesousa Feb 27, 2024
d46e960
fix intraday check in charting ta_class (#6119)
deeleeramone Feb 28, 2024
c464f88
[BugFix] Display EconDB as source for macro (#6143)
Feb 28, 2024
59e2099
[BugFix] Disable Intrinio `InstitutionalOwnership` model (#6142)
the-praxs Feb 28, 2024
37209c8
add more examples into findSymbols (#6139)
deeleeramone Feb 28, 2024
830acd9
[BugFix] Fix SEC ETF Holdings Parsing Exception (#6121)
deeleeramone Feb 28, 2024
b60d908
Docs/update xl docs (#6145)
montezdesousa Feb 28, 2024
bbc869d
fix get reference (#6147)
montezdesousa Feb 29, 2024
b47c9cc
[BugFix] Filter OECD data using `start_date` and `end_date` parameter…
the-praxs Feb 29, 2024
1d70c87
Merge 'main' into 'develop' (#6151)
montezdesousa Feb 29, 2024
b458d2f
More v3 removals (#6141)
jmaslek Feb 29, 2024
ba18734
[Enhancement] Show the source of error in exception traceback (#6153)
the-praxs Feb 29, 2024
5f5fad0
Improve the OECD requests (#6152)
jmaslek Mar 1, 2024
eb07111
adds AlphaVantage to historical_eps (#6155)
deeleeramone Mar 3, 2024
47541d4
[BugFix] Fix FMP Market Snapshots (#6160)
deeleeramone Mar 4, 2024
c064107
[Feature] - Excel help page (#6165)
montezdesousa Mar 5, 2024
e7896a8
[Feature] Add Currency Snapshots With Data From FMP (#6162)
deeleeramone Mar 5, 2024
6efab3f
[Feature] Add `form_13f` Endpoint to `equity.ownership` (#6122)
deeleeramone Mar 5, 2024
b768bc0
[Bug fix] - Run charting tests again (#6167)
montezdesousa Mar 5, 2024
65ce66e
[Enhancement] Slightly Change The Order of intrinio Cash Flow (#6168)
deeleeramone Mar 6, 2024
76556df
[Bug fix] - Fix integration tests (#6170)
montezdesousa Mar 6, 2024
a8122e9
[Bug fix] - Handle multiple items with arbitrary type (#6171)
montezdesousa Mar 6, 2024
48c508b
[Feature] Custom choices (#6169)
hjoaquim Mar 7, 2024
f24e971
exception in debug mode shows complete argument (#6174)
the-praxs Mar 7, 2024
8f3d332
[Bugfix] - Lower case validator in standard models (#6172)
montezdesousa Mar 8, 2024
8254bd5
[Enhancement] Standardize "X".price.historical Intervals and Params (…
deeleeramone Mar 8, 2024
f328a45
[Feature] - refactor examples (#6154)
montezdesousa Mar 9, 2024
3ea6bcf
[Enhancement] Improve Intrinio Unusual Options (#6177)
deeleeramone Mar 11, 2024
782f8d1
added code to get new examples as string (#6181)
the-praxs Mar 11, 2024
eaae8c2
[Feature] Add Tradier Provider Extension (#6178)
deeleeramone Mar 11, 2024
27a711b
[Feature] - Create static asset tests (#6182)
IgorWounds Mar 11, 2024
a8f5543
Add labels for `breaking_changes` tag (#6184)
luqmanbello Mar 11, 2024
875969a
[Bugfix] - Fix equity/price/historical w/ alphavantage (#6183)
montezdesousa Mar 11, 2024
0115feb
[Enhancement] Allow Multiple Symbols For Intrinio Key Metrics (#6186)
deeleeramone Mar 11, 2024
9341b80
handle date type (#6185)
deeleeramone Mar 11, 2024
898222b
Release bug fixes (#6187)
montezdesousa Mar 11, 2024
d458eb9
[BugFix] Update `README` for Platform (#6189)
the-praxs Mar 11, 2024
87a50f7
[BugFix] Raise Alpha Vantage API Error (#6188)
deeleeramone Mar 11, 2024
ac612ae
bump versions for all packages
the-praxs Mar 11, 2024
c13ac55
update extensions
the-praxs Mar 11, 2024
08a9740
update econ cal headers (#6191)
deeleeramone Mar 12, 2024
b6bd2b9
fix for obbject extensions not added in extension map
the-praxs Mar 12, 2024
9ed74fe
updated extension map
the-praxs Mar 12, 2024
0a77525
Merge branch 'develop' into release/4.1.5
the-praxs Mar 12, 2024
75157ce
update lock files
the-praxs Mar 12, 2024
e4beecf
fix maybe for SDK v3 docs
the-praxs Mar 12, 2024
5b333db
Merge branch 'main' into release/4.1.5
montezdesousa Mar 12, 2024
c5b81c2
Revert "Merge branch 'main' into release/4.1.5"
montezdesousa Mar 12, 2024
d8fbcb6
Revert "fix for obbject extensions not added in extension map"
the-praxs Mar 12, 2024
2eb283c
Revert "updated extension map"
the-praxs Mar 12, 2024
22592a2
don't get del files for terminal
the-praxs Mar 12, 2024
e3a5b14
expiration choice u killing me
the-praxs Mar 12, 2024
27f3a67
bad mypy
the-praxs Mar 12, 2024
e6fdd70
no linting for terminal v3
the-praxs Mar 12, 2024
867d390
add TODO
the-praxs Mar 12, 2024
d14fd7c
disable pylint for sec files
the-praxs Mar 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix bug. Add router test. (#5888)
* Fix bug. Add router test.

* Simplify
IgorWounds authored Dec 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5faa50c0d4998f0a2f6a4c5d37fcec8b10170a2c
11 changes: 10 additions & 1 deletion openbb_platform/extensions/tests/test_routers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
"""Test the routers."""

from extensions.tests.utils.router_testers import check_router_function_models
from extensions.tests.utils.router_testers import (
check_router_function_models,
check_router_model_functions_signature,
)


def test_router_function_models() -> None:
"""Test if the models in the router functions exist in the provider interface map."""
missing_models = check_router_function_models()
assert not missing_models, "\n".join(missing_models)


def test_router_model_functions_signature() -> None:
"""Test if the router functions have the correct signature."""
missing_args = check_router_model_functions_signature()
assert not missing_args, "\n".join(missing_args)
58 changes: 52 additions & 6 deletions openbb_platform/extensions/tests/utils/router_testers.py
Original file line number Diff line number Diff line change
@@ -8,13 +8,22 @@
from openbb_core.app.provider_interface import ProviderInterface


def collect_routers(path) -> List:
"""Collect all routers in the path."""
def collect_routers(target_dir: str) -> List[str]:
"""Collect all routers in the target directory."""
current_dir = os.path.dirname(__file__)
base_path = os.path.abspath(os.path.join(current_dir, "../../../"))

full_target_path = os.path.abspath(os.path.join(base_path, target_dir))
routers = []
for root, _, files in os.walk(path):

for root, _, files in os.walk(full_target_path):
for name in files:
if name.endswith("_router.py"):
routers.append(os.path.join(root, name))
full_path = os.path.join(root, name)
# Convert the full path to a module path
relative_path = os.path.relpath(full_path, base_path)
module_path = relative_path.replace("/", ".").replace(".py", "")
routers.append(module_path)

return routers

@@ -23,7 +32,7 @@ def import_routers(routers: List) -> List:
"""Import all routers."""
loaded_routers: List = []
for router in routers:
module = importlib.import_module(router.replace("/", ".").replace(".py", ""))
module = importlib.import_module(router)
loaded_routers.append(module)

return loaded_routers
@@ -44,6 +53,10 @@ def collect_router_functions(loaded_routers: List) -> Dict:

def find_decorator(file_path: str, function_name: str) -> Optional[str]:
"""Find the decorator of the function in the file."""
this_dir = os.path.dirname(os.path.abspath(__file__))
file_path = os.path.join(
this_dir.split("openbb_platform/")[0], "openbb_platform", file_path
)
with open(file_path) as file:
lines = file.readlines()
for index, line in enumerate(lines):
@@ -85,9 +98,42 @@ def check_router_function_models() -> List[str]:
"""Check if the models in the router functions exist in the provider interface map."""
pi = ProviderInterface()
pi_map = pi.map
routers = collect_routers(os.path.join("openbb_platform", "extensions", "routers"))
routers = collect_routers("extensions")
loaded_routers = import_routers(routers)
router_functions = collect_router_functions(loaded_routers)
missing_models = find_missing_router_function_models(router_functions, pi_map)

return missing_models


def check_router_model_functions_signature() -> List[str]:
"""Check if the router model functions have the correct signature."""
expected_args = ["cc", "provider_choices", "standard_params", "extra_params"]
expected_return_type = "OBBject"
missing_args: List[str] = []
missing_return_type: List[str] = []

routers = collect_routers("extensions")
loaded_routers = import_routers(routers)
router_functions = collect_router_functions(loaded_routers)

for router_name, functions in router_functions.items():
for function in functions:
decorator_filer = ["POST", "GET", None]
decorator = find_decorator(
os.path.join(*router_name.split(".")) + ".py",
function.__name__,
)
if decorator:
args = list(function.__code__.co_varnames)
if args != expected_args and decorator not in decorator_filer:
missing_args.append(
f"{function.__name__} in {router_name} doesn't have the expected args: {expected_args}"
)
if expected_return_type not in str(function.__annotations__["return"]):
missing_return_type.append(
f"{function.__name__} in {router_name}"
f"doesn't have the expected return type: {expected_return_type}"
)

return missing_args + missing_return_type