Commit Graph

2000 Commits

Author SHA1 Message Date
James Maslek
41be83ff76 Add OECD Provider for economy extension (#5534) 2023-10-11 01:20:54 +05:30
Igor Radovanovic
91479724af Fix typos, add API keys to website docs 2023-10-03 11:24:13 +02:00
Theodore Aptekarev
b570102ab0 Merge branch 'develop' into feature/openbb-sdk-v4 2023-09-28 17:00:00 +02:00
DidierRLopes
40ae229494 Fix bug that doesn't allow to iterate through tickers with a dot (#5489) 2023-09-28 14:38:45 +00:00
Theodore Aptekarev
ab4b3e418a Remove old scripts and update the readme (#5482)
* Remove old scripts and update the readme

* Update CI installation instructions

* Fix typo

* Install toml into test environment

* Fix ruff linting regression introduced by merge of develop

* The return of the lost line

* Add mention of toml to the dev install section of the readme

* fix incorrect numbering and added note for installing all packages

* Revert "fix incorrect numbering and added note for installing all packages"

This reverts commit d43f880f0c.

* Fix tests

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-09-28 12:23:21 +02:00
Theodore Aptekarev
7b6dbe7a6e Merge branch 'develop' into feature/openbb-sdk-v4 2023-09-27 15:22:59 +02:00
teh_coderer
6a9308c3e7 Feature/sdk v4 pydantic v2 (#5458)
* init

* Update provider_interface.py

* docstring

* pydantic v2

* Update __init__.py

* build package v2 support

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* updates

* Update registry.py

* validate_arguments -> validate_call

* update terminal classes

* response_model_by_alias = False

* query_params by alias

* Update major_indices_constituents.py

* add alias to Query in `provider_interface`

* yfinance

* build package, add param defaults and correct `OBBject` results type

* fix cpi validation errors

* Update risk_premium.py

* fix `forex_pairs` active query param annotation, set default when only 1 provider

* fix and refactor intrinio `options_chains`

* Update poetry.lock

* fix benzinga news, build package, add intrinio fred_historical fetcher

* Update extension_map.json

* ruff

* Update unit_test_generator.py

* updates

* add `default=None` on Optional fields

* `parse_obj` -> `model_validate`

* add alias to dup fields on providers with `__alias_dict__`, fix `test_generate_model_docstring`

* Update package_builder.py

* fix validation errors, fix tests

* tests http

* `fred_historical` record

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update available_indices.py

* Update stock_historical.py

* build package

* build package without optional

* change `SystemSettings` -> `MockSystemSettings` in `test_system_settings.py`

* `openbb_figure.py`/`backend.py` terminal changes  , update deps/lock files

* `linearmodels>4.26`  auto installs `setuptools-scm` which cause error messages

* clean up

* `dev_install.py` for local development

* ruff

* dup `# noqa`

* build

* Update bitquery_model.py

* records

* rec

* f

* worky?

* update `integration_test_generator.py` and `unit_test_generator.py`

* renamed test to tests in file

* fix import due to change in file name

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-09-27 09:40:07 +01:00
Danglewood
1ecd426a91 hotfix/delete-options-screener-intro: Removes deprecated function from Intros documentation. (#5474)
* remove deprecated function from intros

* shrug

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-09-25 15:56:38 +00:00
James Maslek
bf082d1aed Hotfix stock screener (#5440)
* correct screener

* fix another .strip
2023-09-20 21:09:35 +00:00
Phoebe Hu
78ebeef125 print message if yahoo finance load fails (#5450) 2023-09-20 19:15:19 +00:00
teh_coderer
bfe8afc3bf Hotfix/pywry 0.6.1 (#5446)
* poetry, req files

* installer spec pywry 0.6.0 changes

* fix `df_volume` being sent as `pd.Series` on Macs

* more `pd.Series` fixes

* bump pywry to 0.6.1 -fixes linux install
2023-09-18 20:30:32 +00:00
Henrique Joaquim
41eb6de87b Hotfix/weird logs (#5439)
* allow None on credentials model

* encapsulating var inside a function

* removing existing default handlers

* ruff

* filter empty credentials
2023-09-15 13:34:00 +00:00
James Maslek
e05d3eb405 3.2.1->3.2.2 2023-08-28 16:12:43 -04:00
Define101
36de52c6f0 update defillama_dapps json file (#5380) 2023-08-28 17:38:40 +00:00
DidierRLopes
18caebf116 Allow to execute reports url from reports menu (#5385)
* allow to execute reports url from reports menu

* lint for James

* ruff

* ruff

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-28 17:32:51 +00:00
dio
db9d462188 Feature/companies house (#4721)
* Addition of UK Companies House data. Allows you to search for companies and inspect their details and download any filings including accounts

* reformatting of code

* reformatting

* reformat code

* reformat

* fix codespell issue

* updated for changes in way key are handled

* small reformatting

* added timeout for requests

* formatting

* ruff order fixes

* black reformatting

* merge issue - removed function call_openbb

* black format change

* Added new Companies House functionality to SDK

* formattng

* more Formatting (black)

* Ruff fix

* change return type for function

* forced type conversion

* return type fix

* correct error return type

* fix return type

* deleted companieshouse tests as they require API key

* Extra validation added for when data not exist from remote calls

* Added extra commands to en.yml

* spelling mistake correction

* fat finger trouble corrected

* Save documents with identifying names and allow documents to be viewed directly within OpenBB

* ruff updates

* black changes

* ruff change

* Addition of currently loaded company information in menu

* add entry in the API keys guide for Companies Hosue

* adds images to api keys guide

* adds section in SDK API Keys Guide for Companies House

* test file for companieshouse_model

* changed test data due to ruff line size limit

* resolve merge issues

* resolve merge issue

* doc strings examples

* added docstrings for companieshouse_model

* allow download_filking_document methid in view class to be called from SDK

* added docstring for download_filing_document SDK method

* correct Companies house key literal

* replace starnge . with ,

* add check_api_key decorator to each methopd in controller

* implement next and previous for looping through filings

* ruff changes

* correct tests

* companing filings now allows you specify category

* ruff line length issue resolved

* retrieves all filings  and  added charges command

* bug fix

* Added limit parameter to filings command, def :100

* fix ruff issue

* added get_charges to sdk and to test class

* resolved ruff line length issue

* add some view tests

* add some controller tests

* applying fix not merged to develop yet, column_keep_types=['Company Number']

* fix i18n description

* update test_print_help

* actually update test_print_help.txt

* Update en.yml - no colon

* rerorder imports - ruff failurre

* simple text change

* ruff fix

* help text change trying to fix pytest issue

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-28 14:28:33 +00:00
DidierRLopes
fc6137c86b Fix foreach on routine where the inputs provided are not valid (#5373)
* Fix foreach on routine where the inputs provided are not valid

* fix nixtla req + fix lint

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-25 15:54:45 +00:00
DidierRLopes
1036308f35 1st integration with TimeGPT-1 (Beta), from Nixtla (#5292)
* integrate time gpt from Nixtla

* add to reqs

* add residuals to timegpt

* fix some bugs

* remove twitter functions

* remove twitter functions and all references to it

* start work to integrate date features

* add date_features to timegpt

* remove twitter functions

* remove twitter functions and all references to it

* Update deps for timegpt + askobb

* Update forecast load to set an index to date

* lint

* spell

* mypy

* mypy2

* blac k

* pylint

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-25 15:28:34 +00:00
Colin Delahunty
0846cc8687 Removed prints (#5367)
* Removed prints

* FIxed typing

* FIxed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fix

* Reverted stuff
2023-08-25 00:18:11 +02:00
Colin Delahunty
9d70bc7da1 Some error handling (#5357) 2023-08-25 00:18:11 +02:00
Igor Radovanovic
77716b2081 Merge 2023-08-25 00:17:56 +02:00
Colin Delahunty
141dd68e68 Removed prints (#5367)
* Removed prints

* FIxed typing

* FIxed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fixed typing

* Fix

* Reverted stuff
2023-08-23 18:40:31 +00:00
Colin Delahunty
bfd365b46b Some error handling (#5357) 2023-08-23 12:11:55 +00:00
Colin Delahunty
1ca7fd9beb Improves the settings/userdata command, and upgrade ruff (#5359)
* Began the fax

* Bumped ruff

* Fixed a BUNCH of ruff errors

* Fixed a lot of ruff errors

* Simplify if statements

* Fixed black

* Updated some stuff

* Updated some stuff

* A lot more ruff fixes

* Added a fix

* Added a fix

* Fixed mypy

* Fixed some stuff

* Reverted one thing

* Small fix

* Small fix

* Small fix

* Added fix

* Added fix

* Update requirements
2023-08-22 20:11:48 +00:00
Theodore Aptekarev
8f34e1c4f7 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-22 15:58:14 +02:00
Colin Delahunty
3147577fc9 bye bye shroom (#5351)
* bye bye shroom

* missed one

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-21 21:26:03 +00:00
teh_coderer
144c59ccae hotfix / Allow routine args inside lists (#5353)
* allow routine args inside lists

* add `-f` to `call_exe` parser
2023-08-21 12:59:44 +00:00
Pratyush Shukla
3006446497 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-19 21:06:44 +05:30
James Maslek
3fcb64d5f2 Fix the CPI CSV and remove twitter functionalities (#5350)
* remove twitter functions

* remove twitter functions and all references to it

* remove twitter functions

* remove twitter functions and all references to it

* Fix units on cpi

* crlf - lf

* missed one

* update ba menu integration test

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-08-18 18:07:48 +00:00
Colin Delahunty
258ed9a11c Thegraph totally changed, I removed the endpoints (#5349)
* Thegraph totally changed, I removed the endpoints

* Cleaned up more
2023-08-18 17:45:17 +00:00
Colin Delahunty
50c9d2c4ff Improve documentation (#5345)
* added fixes

* Added better error handling

* Added fixes
2023-08-18 14:51:37 +00:00
montezdesousa
3e89ce3ab3 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-18 11:00:52 +01:00
Colin Delahunty
b27bb59ef6 Added fixes (#5344) 2023-08-17 21:39:34 +00:00
Danglewood
a6e66f7a73 hotfix/fix-stocks-search-sdk3: Fixes the stocks search so that it doesn't print_rich_table() for SDK. (#5329)
* fixes the stocks search on SDK so the ticker symbol is returned.

* export data

* unused argument

* fix test

* more test fixy

* test_print_help.txt
2023-08-17 16:25:13 +00:00
Colin Delahunty
f07d116f23 Fixed URL for uploading to the hub (#5340)
* Fixed URLs

* Added a fix
2023-08-17 16:18:26 +00:00
Colin Delahunty
f78449924b Fixed the request function (#5336)
* Fixed the request function

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix
2023-08-17 14:12:20 +00:00
Henrique Joaquim
ab6c8f4804 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-17 09:40:02 +01:00
DidierRLopes
c6b0bfe6f2 hotfix/simplify-regex (#5324) 2023-08-14 22:39:10 -07:00
James Maslek
f4460fbf18 tests 2023-08-14 11:40:39 -04:00
James Maslek
889a986b07 pylint + test 2023-08-14 10:47:29 -04:00
James Maslek
99a5459dc0 mypy 2023-08-14 10:03:41 -04:00
James Maslek
2c44cae0e9 add back --url auto complete 2023-08-14 09:57:41 -04:00
James Maslek
c000c6e3cc Merge branch 'release/3.2.1' into hotfix/macro-routines-to-hub 2023-08-14 09:39:46 -04:00
DidierRLopes
5ddeb8f35e Fix regex (#5320)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev

* few more updates

* small fix

* rename BASE_URL from ultima to ULTIMA_BASE_URL

* use debug from dataclasses instead of env since env doesn't get updated

* create --dev flag that can point to .dev backend

* merge conflits

* few changes, made it actually work 🤣

* fix regex

---------

Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-08-14 03:20:25 -07:00
DidierRLopes
c40c3f7529 Creates a "--dev" flag that points to dev backend for testing with hub (#5319)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev

* few more updates

* small fix

* rename BASE_URL from ultima to ULTIMA_BASE_URL

* use debug from dataclasses instead of env since env doesn't get updated

* create --dev flag that can point to .dev backend

* merge conflits

* few changes, made it actually work 🤣

---------

Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-08-13 23:20:07 -07:00
DidierRLopes
3e48648487 small fixy (#5318)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev

* few more updates

* small fix
2023-08-13 18:16:35 -07:00
DidierRLopes
3d6ad59643 few more updates (#5317)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev

* few more updates
2023-08-13 17:43:10 -07:00
DidierRLopes
01210120d8 --debug points to dev env (#5316)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic

* --debug runs .dev
2023-08-13 17:18:14 -07:00
DidierRLopes
db746aa1a9 Silly (#5313)
* check that routine title is valid

* more updates

* small fixes

* override local routine

* more improvements to routine logic
2023-08-13 00:27:26 -07:00
Igor Radovanovic
744a30ca74 Merge branch 'develop' into feature/openbb-sdk-v4 2023-08-10 19:37:03 +02:00