Commit Graph

102 Commits

Author SHA1 Message Date
Henrique Joaquim
9a09999bb6 Release/4.1.0 (#5901) 2024-01-03 18:17:37 -05:00
Danglewood
fe63d40731 hotfix/fmp-price-performance-zeros: Replace returned zero with None and normalize percent values. (#5918)
* replace zeros with none and normalize percents

* pylint unused argument
2024-01-03 22:10:31 +00:00
Igor Radovanovic
c43100d209 Fix test (#5916)
* Fix test

* Skip ultima integration tests

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2024-01-03 17:40:18 +00:00
Danglewood
5c4ac285b0 hotfix/financials-field-maps: Updates A Couple FMP/Polygon Income Statement Fields (#5907)
* update income statement fields

* another polygon field

* ratio -> margin

* black

* explicit fmp fields

* add reported_currency for standardized intrinio

* # pylint: disable=unused-argument

* another unused-argument

* black..

* patch tests

* polygon income: eps -> basic earnings per share

* re-capture terminal portfolio menu test

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2024-01-03 16:21:10 +00:00
Danglewood
06e38834d0 feature/financials - PR for working on structure of financial statements. (#5794)
* balance sheet draft

* balance_sheet draft

* cash_flow draft

* income_statement draft

* intrinio financials

* description

* period field

* ruff

* income statement

* field

* label - gross profit ratio

* cash flow statement

* investing order

* add option for caching to cashflow

* add caching to balance and income

* typos and update order for financial institutions

* replace 0 values with None

* add financial ratios from intrinio

* black

* missing test params

* balance cassette

* query param description

* symbol list warning

* black

* handle BRK-A and symbols with a dash for Intrinio

* fix typo error

* add free cash flow to bottom of cash flow statement

* amortization_expense

* dev_install.py

* undo dev_install.. wrong branch

* cash flow order things

* standardized cash flow

* fields

* integration tests

* cash flow model validator

* more polygon cash

* black

* black

* Delete openbb_sdk/providers/polygon/openbb_polygon/utils/definitions.py

wrong file

* balance sheet

* some cleanup

* ruff

* income statement

* black

* test params

* financial ratios async update

* recapture fmp and polygon tests

* yFinance financials

* yfinance tests

* delete financial_statements standard model

* intrinio balance sheet order

* fiscal year standard param

* remove file accidentally committed

* add reported_financials end point

* fiscal_year param for reported_financials

* fix url

* fmp test cassette

* add safe-guard with warning for fiscal year before 2008

* periods can only be annual and quarter

* url in docstring correction

* add fiscal_year param to intrinio standardized financials and ratios

* fix fmp ratios

* black

* rename fields as per Minh

* rogue field

* black

* Fix typo in a docstring

* Resolve linting errors

* type ignore

* disable=unused-argument

* changing the arg name cc @minhhoang1023

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-12-19 12:26:13 +00:00
teh_coderer
ad8e13b346 fix from openbb import obb asyncio lock in python REPL (#5896)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-18 11:22:12 +00:00
Igor Radovanovic
7067a19095 Add econometrics API tests (#5899) 2023-12-18 10:56:50 +00:00
Igor Radovanovic
ecdb111fd5 Check if outdated (#5898) 2023-12-18 10:24:02 +00:00
James Maslek
238ab39a50 Adds federal reserve data points (#5885)
* Allow optional input for 2-month treasury rates and add FederalReserve rates model

The commit includes two main changes. One being the modification to the standard treasury rate models, where the 2-month input field is now optional, and a default value is set to none. The other main change is the addition of a new module for the FederalReserve treasury rates model, which includes query parameters, a data model, and a data fetcher.

* Add Money Measures models and commands

This commit introduces new Money Measures models to handle money-related data, defines Money Measures commands in the economy router, and implements the Federal Reserve Money Measures model. The core model includes fields like start_date, end_date, and various components of the money supply. The new command added to the economy router allows the querying of these data.

* Add Federal Reserve Money Measures test file

This commit adds a test case file for the Federal Reserve Money Measures fetcher in the Federal Reserve module. The test case includes simulating a GET request and the corresponding expected response from the server.

* Cleanup

* Sneaky unformatted integration tests

* its a dawg life for me ...... ruff

* add the fed funds rate

* didnt mean to commmit this

* black

* this is why we should pre commit kids

* change install name

* add providers to int tests

* review comments + commit static

* replace nan with None

* fix float on None

* get rid of nans for nulls for json handling

* change `_` to `-` in readme pip install.

* Update __init__.py docstring

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-12-15 15:15:15 +00:00
montezdesousa
324d2abd66 sync descriptions (#5893) 2023-12-15 14:08:15 +00:00
Igor Radovanovic
5faa50c0d4 Fix bug. Add router test. (#5888)
* Fix bug. Add router test.

* Simplify
2023-12-14 17:09:48 +00:00
Henrique Joaquim
f9fbb2a831 small refactor for simplification (#5886)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-13 13:08:08 +00:00
montezdesousa
bcb1f50b05 Refactor package builder (#5880)
* breakdown builder + remove black

* rebuild

* rebuild

* rebuild

* rename method

* format built code without black

* we still lint if it's available

* fix existing tests

* add linter tests

* add black to dev deps

* auto_build as instance method

* reorder methods

* typing

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-12-13 12:13:43 +00:00
Igor Radovanovic
40f3de132a Fix version (#5883)
* Fix version

* Fix linter on terminal
2023-12-13 09:54:32 +00:00
montezdesousa
704c2d82de remove Literal from providers in OBBject (#5882)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-12 15:50:32 +00:00
montezdesousa
6918ab14d4 Refactor method in RegistryMap (#5879)
* refactor extract_info

* add comment

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-12 09:30:50 +00:00
Henrique Joaquim
e7a06085b3 Changes to the obb.fixedincome.corporate.hqm() output (#5876)
* changes to the hqm output

* typo

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-11 18:44:51 +00:00
Henrique Joaquim
fce63afa6c Parameterize obbject.to_df with index and sort_by (#5877)
* Parameterize obbject.to_df with index and sort_by

* unit tests for obbject

* keep using the date as default to use on  basemode_to_df()

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-12-11 15:27:58 +00:00
Igor Radovanovic
c02f54536a Command Schema (#5874)
* POC

* Filter by provider

* pass base_app as parameter

* add typing + TODO

* fix some typing

* Fix unit tests

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-12-11 15:11:00 +00:00
Theodore Aptekarev
d9ec0fe80c Use custom parametrize from news menu tests (#5873)
* Use custom parametrize from news menu tests

* Update Ultima unit test cassettes
2023-12-11 15:10:10 +00:00
James Maslek
0fcc50ec7a Allow this to be run in parallel (#5872) 2023-12-08 20:01:14 +00:00
teh_coderer
da7886d0a7 Make Pro Fetchers async by replacing ThreadPoolExecutor with asyncio.gather (#5822)
* init

* Update helpers.py

* filter URL on raise

* polygon, fmp done, update cassettes

* updates

* cleanup

* revert tests for now

* Update discovery_filings.py

* Update helpers.py

* add `async` overload to `Fetcher.extract_data`

* update merged fred models

* tests, improve fred series

* Update insider_trading.py

* insider

* tests

* intrinio

* Update equity_historical.py

* implement abstract async extract on Fetcher, with simple switch

* cleanup

* Update helpers.py

* Update helpers.py

* fix fmp historical deprecated urls

* Revert "fix fmp historical deprecated urls"

This reverts commit 1a760a2473.

* fix fmp `index.market` 1day url missing query params

* Update test_fmp_market_indices_fetcher.yaml

* field fixes

* `extract_data_async` -> `aextract_data`, `async_request` -> `amake_request`

* `async_requests` -> `amake_requests`

* Update company_news.py

* add sort to index `integration` params

* add `client.py` tests

* Update equity_search.py

* Add lost v in platform api version string

* Resolve linter errors here and there

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-12-08 14:41:37 +00:00
Danglewood
fdd9be6aca feature/nasdaq-equity-search: Adds Nasdaq provider for obb.equity.search() (#5790)
* add nasdaq to equity search

* black

* unused import

* make async

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-12-07 01:41:17 +00:00
Danglewood
068a0788f9 feature/sec-etf-holdings: Adds ETF holdings from SEC provider (#5757)
* add ETF holdings from SEC provider

* black

* helper function params

* edge cases

* ruff

* add validator in company filings

* remove xml field

* update import

* cleanup parsing

* missing datetime import in company_filings

* black

* unused import

* add missing py.typed files
2023-12-07 01:34:32 +00:00
Danglewood
18a5c392e8 Feature/us-treasury-prices: Adds Treasury Prices to Fixed Income (#5776)
* add treasury prices endpoint to fixed income router

* adds tests

* black

* ruff

* import statements

* standard model imports

* black

* some cleanup

* black

* async router

* make async

* str outpuot

* bytes object not string

* docstring typo

* multi-line f-string

* encoding

* duplicated conditional

* black

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-12-07 01:34:15 +00:00
Danglewood
d951dc0401 feature/yfinance-multi-ticker: Adds support to openbb-yfinance for multi-ticker download. (#5845)
* yfinance multi-ticker support

* multi-ticker support for market indices

* crypto multi-ticker support

* recapture tests

* yfinance cache and tests

* currency historical multi-ticker support

* style things

* black

* missed a values

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-12-07 01:32:19 +00:00
Danglewood
1604c78ee5 feature/intrinio-equity-search: Adds Intrinio to obb.equity.search() (#5863)
* intrinio equity search

* integration tests

* test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-12-07 00:40:05 +00:00
Igor Radovanovic
3d2a9cdb9a Introduce integration test modularity (#5865)
* Introduce integration test modularity

* Fix Python 3.9 error

* Add TODO

* Update generators

* Handle endpoints that only feature one provider that is not installed

* Fix failing unit test
2023-12-06 19:39:39 +00:00
Adi Sai
1a6c540cf6 sector news fetcher (#5824) 2023-12-06 13:01:39 +00:00
Theodore Aptekarev
0f78bdc514 Add sector news route and test placeholders (#5828) 2023-12-05 19:32:26 +00:00
montezdesousa
3eb640cd21 Feature/add version (#5861)
* add version to base doc

* clean account doc

* consistency
2023-12-05 17:07:16 +00:00
James Maslek
c9ac060201 Update CPI docstring (#5856)
* docstring

* pep8

* caps

* rip

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-12-05 17:06:22 +00:00
iwantanode
8e97e3220d fix: minor typos in the docs (#5854)
* fix typo conclusion.html

* fix typo uninstall.sh

* fix typo README.md

* fix typo README.md

* fix typo README.md

* fix typo README.md

* fix typo README.md

* fix typo CONTRIBUTING.md

* fix typo README.md

* fix typo CONTRIBUTING.md

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-12-05 14:39:42 +00:00
Danglewood
974bb8bbca fix symbol validator in standard models (#5839)
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-12-05 14:36:28 +00:00
Danglewood
2cfac126f1 hotfix/update-descriptions: updates some descriptions (#5857)
* updates some descriptions

* fred test
2023-12-05 14:29:32 +00:00
Henrique Joaquim
ff00312ec4 Hotfix/unskip tests (#5851)
* support for nested structures

* unskip extension map test

* unskip fred tests

* stockgrid tests

* adding pytest-assyncio

* fix query executor test

* package builder tests

* test query test with the asyncio marker

* asyncio marker

* fix extension map test: tests run with all extensions installed

* adding missing tests on user service

* fix update default test

* skipping allows version for non required extensions
2023-12-04 15:45:46 +00:00
Igor Radovanovic
302ed2e788 Test router models (#5846) 2023-12-04 10:51:49 +00:00
James Maslek
905b7fd9d4 Small change in extensions doc (#5844)
* break one table into 2

* Edit pypi readme

* remove extra ```

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-12-01 20:26:52 +00:00
Danglewood
c047cfeddd docs/new-working-docs: New working docs branch (#5768)
* move old example notebooks to v3 folder, update loadHistoricalPriceData and add findSymbols

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Vertical diagram instead

* important classes

* core dependencies

* folder structure

* devtools

* swap order

* fix github pages deploy issue

* development index

* delete expectations for developers

* devtools

* obbject stuff

* add

* installation

* hub sync

* idk if i committed already

* add usage page for financial statements

* add link to reference page

* syntax

* numbers

* nearly --> more than

* easier to read code blocks

* codespell

* removing mention to provider

* add 'orientation' for to_dict

* info card for output user preference

* put it in a code block

* correct user_settings.json example

* syntax corrections

* fix sentence

* get rid of floating point mathc

* get rid of other floating point math

* add companion example notebook for financial statements, and new section

* historical prices usage page

* codespell

* add commitment of traders section to usage

* add a note

* codespell

* get rid of equals sign

* Cleanup docs. with @the-praxs

* install

* obbject extend

* spell

* HeadTitle thingies

* Update obbject_extensions.md

* Update obbject_extensions.md

* typo

* Update architectural_considerations.md

* point to the TET pattern

* optional vs required

* reviewing the  patterns. removed the --pre flag under the assumption this will be the final docs for the release cc @deeleeramone

* add a walkthrough

* spelling

* Add more in the introduction

* validator examples

* update Copper-to-Gold notebook example for V4

* Update README.md

* QA Caveats w @the-praxs

* info on class outputs

* merge add data sources and add data points

* disclaimer on cookiecutter

* add missing import to example

* slight syntax change

* missing code block

* missing import

* update intrinio example syntax

* intrinio syntax update

* urls

* core and provider merged

* example syntax

* grammar

* Update API banner link

* quick-fix-docs cc @minhhoang1023

* Update pip install command for v3

* remove --pre note block

* update landing image

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Luqman <luqazino@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-12-01 01:09:25 +00:00
Henrique Joaquim
10cfd1e961 Release/4.0.0 (#5837)
* pyproject toml and poetry.lock files

* static assets

* fix link to platform

* bump core

* 4.0.1 adjustments
2023-11-30 18:48:27 +01:00
Igor Radovanovic
aea1c3bcaf Hotfix/test fix (#5827)
* Add verbosity to login

* Fix tests

* fix dem tests baby

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-30 16:00:56 +00:00
Theodore Aptekarev
a784bbacb0 Move pytest dependencies from openbb level to to core dev deps level (#5829)
* Move pytest to core dev deps

* removing openbb-core from devtools

* Fix dev_install script not picking developer dependencies

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-11-30 15:02:41 +00:00
Henrique Joaquim
fc95ded9bb Revamp openbb-core README (#5830)
* core readme

* mentioning query params
2023-11-30 12:13:16 +00:00
Igor Radovanovic
b65f51f7cc Account commands: add option to return user settings (#5825)
* Add verbosity to login

* Fix tests

* Add verbosity for other

* pratty=False

* docstring

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-11-30 11:27:26 +00:00
montezdesousa
5aaa855f30 Feature/release rc0 (#5821)
* publish core and extensions

* build static

* lock openbb

* force commit package changes

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-30 09:58:25 +00:00
Theodore Aptekarev
dc81f6cd24 Standardize balance, income, cash for Intrinio (#5809)
* Fix test coverage test failing

* Fix spot rates integration test

* Apply the standardization to intrinio balance, income and cash

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-11-29 20:54:56 +00:00
James Maslek
6d13807047 debuggint int tests (#5823)
* debug

* debug2

* extra debug step

* Another hail mary

* add debug

* MMMMMbop

* didnt import base64

* Other tests with headers

* increase timeout to 20

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-29 20:49:34 +00:00
Henrique Joaquim
6e3038b9e7 Fix tests (#5819)
* fix equity tests - python

* remove test for intrinio

* remove index.fred and fix tests w/@hjoaquim,@IgorWounds

* fix ultima company news model w/@hjoaquim,@IgorWounds

* re-record intrinio insider trading w/@hjoaquim,@IgorWounds

* adjust endpoint

* adjust endpoint

* adjust params

* fix equity test w/@IgorWounds

* re-record

* remove ultima test

* adding keys to the workflow

* typo

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-29 18:35:45 +00:00
Pratyush Shukla
563df69024 Set level as default tag value for index.market in Intrinio (#5801)
* set level as default tag value

* set limit to 1000

* re-record fetcher test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-11-29 16:35:44 +00:00
Danglewood
fe53c93d64 hotfix/fmp-replace-zero: Replace Zero with None in FMP Balance, Cash, Income (#5815)
* replace zeros with None in Balance, Cash, Income

* black

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-29 16:17:49 +00:00