Commit Graph

17 Commits

Author SHA1 Message Date
Igor Radovanovic
04d3af5c50 [Feature] - LLM mode (#6308)
* LLM mode

* Docstring truncation

* Preferences

* Output type

* use settings instead? (#6314)

* Refactor with @montezdesousa

* fix test

* fix: max length type

* field descriptions

* try with FieldInfo

* ugly...

* partial

* override FieldInfo __repr__

* typing

* separate model_config

* rename OpenBBCustomParameter to OpenBBField

* lint

* pydocstyle

* don't include choices if no choices

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2024-04-19 15:49:53 +00:00
Danglewood
510b9389c9 [BugFix] Chunk FMP Price Performance URL For Large Lists (#6317)
* chunk price performance url

* black

* recapture fmp tests

* fix tests

* type
2024-04-17 17:33:12 +00:00
montezdesousa
b8d1846d46 [BugFix] - Provider is added to every response item (#6305)
* Exclude provider and don't model_dump

* still missing docstrings

* undo package changes

* minor fix

* mypy

* minor fix

* cleaner

* private var

* docstring

* docstrings

* add package builder tests

* ruff

* rename

* rename

* update tests

* minor fix

* fix test

* handle docstring edge cases

* test
2024-04-12 12:08:55 +00:00
Danglewood
0a64bd19d0 [HotFix] Add ETF holdings data param to Intrinio (#6293)
* add etf holdings date param

* static files

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-04-09 13:09:08 +00:00
montezdesousa
40c89444cd [BugFix] - Fix nested router descriptions (#6292)
* fix: get_routers

* keep previous structure

* rebuild

* opt

* rename var

* simpler

* ^
2024-04-09 07:47:16 +00:00
montezdesousa
33d186f8ea [Feature] - Router descriptions (#6288)
* First try

* add routers to reference.json

* fix apploader

* add some router descriptions

* rebuild

* remove pydocstyle fixes

* minor fix

* docstring

* new descriptions

* undo sub routers

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-04-05 11:21:35 +00:00
montezdesousa
daa4520fea [Feature] - Merge reference.json and extension_map.json, plus documentation generator fixes (#6268)
* Merge reference.json and extension_map.json

* feat: check all packages are built and installed

* rebuild

* fix

* small fix

* Update package_builder.py

* move core into info

* move extensions into info

* fix test

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-04-04 09:56:37 +00:00
Henrique Joaquim
559778cc87 [Release] 4.1.6 (#6266)
* fixing integration tests

* adding reference to the docstring

* fix: docstring examples test + mypy

* remove spaces

* parse Volume column to float do avoid sorting issues

* rebuild

* release changes

* lock openbb

* remove unused script

* fix broken links

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2024-04-01 15:47:07 +00:00
montezdesousa
db9960aac3 [BugFix] - multiple items allowed in provider parameters (#6256)
* fix extra multiple items in extra parameters

* fix: integration test + parametrized typing

* rebuild
2024-03-28 09:03:51 +00:00
Danglewood
78695fa6de [BugFix] Return FMP Error Messages (#6237)
* response callback and equity quote

* merge branch develop

* fix some more

* static files

* test param

* executive comp

* some more fetchers

* test cassette

* black

* another one

* some more

* etf equity exposure

* price_performance

* black

* ruff

* test params

* more test params

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-03-21 09:26:19 +00:00
Danglewood
9dcad4472b [Feature] Add Intrinio to obb.equity.market_snapshots() (#6232)
* add intrinio to equity market snapshots

* field definitions

* map date

* static files

* black

* date check

* test cassette

* pylint

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-03-18 21:38:34 +00:00
Danglewood
c55f93c865 add Intrinio ETF Holdings (#6208) 2024-03-15 15:05:20 +00:00
Danglewood
46f4834cb2 [Feature] Intrinio ETF Price Performance (#6220)
* remap to etf router

* add the intrinio files this time

* update standard model

* the rest of the changes

* static files

* black

* pylint

* test thing

* black

* fix test?

* try another way?

* ruff

* maybe?

* new cassette?
2024-03-15 12:24:55 +00:00
Pratyush Shukla
3b7f18f91c [Enhancement] Sync reference.json and Platform function docstring (#6211)
* obbject params stored as a list of dict

platform markdown generator processes obbject returns into a string

* process field types further

* process field type correctly

* fixed models

* mypy suggestion was sus

* updated assets and packages

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-03-14 16:52:47 +00:00
montezdesousa
eca4ea9d2d [BugFix] - Json schema extra broken in standard models (#6212)
* Separate standard models in registry map

* fix

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2024-03-14 16:41:01 +00:00
Pratyush Shukla
a2ef2adc5c [BugFix] Fix empty docstring in data processing functions (#6206)
* update etf static file

update reference.json with changes

* data processing docstrings can be empty

use self._write func to create reference.json file
2024-03-13 21:13:55 +00:00
Pratyush Shukla
540f578852 [Enhancement] ReferenceGenerator class in package_builder.py (#6179)
* fix docstrings in quantitative,technical,econometrics routers

* add reference generator class to create reference.json file in openbb/assets folder

* modify platform markdown generator script to not generate the reference.json file

* get properly formatted examples for the website

* modify get_field_type function

* remove TODO comment

* path change / to .

* remove extra '-' below 'Args' in function docstring

* get obbject extensions in extension_map.json

* skew in stats_router had extra . rip

* black

* extra space (sigh)

* modify get_provider_parameter_info func to use model_provider from provider interface

* update lock files

* black

* Revert "update lock files"

This reverts commit 13e7d8b280.

* add function to check all extensions are installed before the markdow generator runs

* better comment

* fix docstring

fix mypy

obbject description function

* black

* 'static

* remove duplicate standard params & data from reference data

add standard params & data fields while generating markdown files
2024-03-13 17:30:10 +00:00