Commit Graph

72 Commits

Author SHA1 Message Date
Danglewood
7935d6802b and some more.. 2024-12-09 19:31:18 -08:00
Danglewood
02d92cddf5 are we sure now 2024-12-09 18:57:56 -08:00
Danglewood
078f5be3fe are we done yet? 2024-12-09 18:55:05 -08:00
Danglewood
a4e7678b21 some final stragglers...? 2024-12-09 15:13:04 -08:00
Danglewood
662e5da3da polygon quote fields as optional 2024-12-09 14:51:07 -08:00
Danglewood
9ab9c6e769 lots of linting 2024-12-09 11:45:23 -08:00
Danglewood
31bda8e46b more lint 2024-12-08 20:25:08 -08:00
Danglewood
ff4a6c4472 some linting 2024-12-07 18:50:49 -08:00
Danglewood
726b4c7a72 polygon crypto vwap as optional 2024-12-03 18:22:44 -08:00
Danglewood
606f48fdf3 Merge branch 'develop' of https://github.com/OpenBB-finance/OpenBB into feature/websockets 2024-11-19 18:31:56 -08:00
Danglewood
7f3b7bc84c small update 2024-11-19 18:31:41 -08:00
Danglewood
bb45cbf9f6 [BugFix] Clean Out Files From Already Deprecated Endpoint (#6953)
* clean out files from already deprecated endpoint

* decorator goes on the other side
2024-11-20 00:46:11 +00:00
Danglewood
31b05c0c15 fix discriminator tag issue 2024-11-14 19:38:20 -08:00
Danglewood
e93ab2ffd9 got some missing stock quote indicator definitions 2024-11-12 12:37:35 -08:00
Danglewood
b69cba831b make bid/ask optional in PolygonStockQuoteWebSocketData 2024-11-12 10:35:41 -08:00
Danglewood
2e4d693071 start some documentation 2024-11-11 23:34:26 -08:00
Danglewood
95a1356c8c trade size is optional 2024-11-11 17:18:16 -08:00
Danglewood
8712e0569f raise exc as OpenBBError in client.connect 2024-11-11 16:59:57 -08:00
Danglewood
4fcb48ead6 fix fmp 2024-11-11 10:43:08 -08:00
Danglewood
632342072a add symbol error handling and move symbol to provider models for custom docstrings. 2024-11-10 21:46:00 -08:00
Danglewood
1e82e1e08f polygon symbol handling edge case 2024-11-10 13:08:40 -08:00
Danglewood
82b706a41e handle UnauthorizedError and map polygon options feeds 2024-11-10 12:21:31 -08:00
Danglewood
d748e815aa add polygon indices and send message to broadcast server from main client 2024-11-09 22:43:00 -08:00
Danglewood
f1ac74bd66 handle ValidationError 2024-11-09 17:40:02 -08:00
Danglewood
b53a636f43 add some exception handling 2024-11-09 13:44:19 -08:00
Danglewood
2c317a346b didn't add that file 2024-11-09 00:10:04 -08:00
Danglewood
f9d00c1d15 add most of polygon and some general updates 2024-11-09 00:09:35 -08:00
Danglewood
466b16b2ec [BugFix] Use __alias_dict__ instead of Field(alias) for data fields. (#6673)
* use __alias_dict__ instead of Field(alias) for data fields

* yfinance

* mypy

* benzinga thing

* ruff

* sec compare company facts choices

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-09-17 18:42:36 +00:00
Danglewood
07d8232f22 [BugFix] obb.news.world Add Validators To Providers Where Symbol Is Mandatory (#6625)
* add validators to enforce mandatory symbols in providers where required

* linter

* fmp 3.9 test cassette

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-08-17 06:12:43 +00:00
Danglewood
dd49c5ff35 [BugFix] Fix ReferenceGenerator Unions and Choices (#6599)
* fix duplicated unions in reference.json

* missing static files

* fix choices

* black

* mypy

* more mypy

* line too long

* fix typo

* fix another typo

* static files

* tradingeconomics country choices

* financial statement period choices

* black

* mypy

* test params

* price-historical interval choices

* test params

* test cassettes

* new test cassettes again

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-08-05 11:03:44 +00:00
Danglewood
78445ce007 [Feature] Delay/Optimize Imports (#6532)
* round 1

* black

* more black

* providers a-thru-fmp

* charting settings

* charting backend

* black

* charting_settings

* missing nasdaq import

* nasdaq mypy

* fed money measure

* some linting

* black

* more linting

* more linting

* charting imports

* black

* pylint

* refactor fred

* more linting

* rest of the providers

* didn't want that file

* more cleanup

* missed

* ta_helpers

* router views

* chart ta_class

* forgot a file

* forgot another file

* biztoc

* package builder

* technical router

* fred params

* bump finviz

* fix tmx

* more cleanup

* try again

* currency historical

* equity search

* missed files in commit

* fix some tests

* black

* fix more test cassettes

* more patchy

* black

* linters

* more tests

* black

* mypy

* delete unused model

* more linting

* forgot files

* more linting

* make up your mind, black, and stop moving pylint for me

* more black

* back to where we were before black destroyed it

* ..........

* ..................

* unused fetcher test

* remove standard model validator

* commodity router

* treasury prices

* oecd tests

* finra

* container cleanup

* black

* forgotten file

* linter

* remove wrapped ""

* fix merge

* patches

* ecb test

* finra cassette

* finviz cassettes

* nasdaq cassettes

* oecd cassettes

* yfinance cassettes

* more test cassettes

* black

* merge cleanup

* cboe helpers

* black

* fix typo

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-07-09 16:28:15 +00:00
montezdesousa
ecede0b4e4 [BugFix] Release fixes (#6560)
* Bump openbb version

* Small fixes

* update version

* Add python 3.12 to noxfile

* ^

* python 3.12 compatibility fixes

* fix typing

* fix currency snapshots

* black

* Enable test collection on 3.12

* Update mock called once assertion syntax

* remove logging assertion

* fix command runner chart assertion

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2024-07-02 19:33:11 +00:00
montezdesousa
d465f22fbd [Feature] Store defaults in hub account (#6491)
* feat: store defaults in hub account

* fix: rename var

* feat: v3Credentials -> deprecatedCredentials

* feat: allow unmapped deprecations

* fix: account.save()

* fix: unit tests

* fix: update fallback message
2024-06-18 14:58:11 +00:00
montezdesousa
5ec2db7643 [BugFix] Replace some base exceptions by OpenBBError (#6502)
* fix: replace base exceptions by openbberrors

* Update yield_curve.py

* fix typo

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2024-06-17 09:09:28 +00:00
Danglewood
5fecd9de96 [BugFix] Add json_schema_extra With Choices To Provider 'period' Field (#6451)
* add json_schema_extra choices to provider 'period' field

* black

* unused imports

* mypy

* pytest

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-26 14:07:51 +00:00
montezdesousa
1994b34866 [BugFix] Bump anyio & sync pre-commit, openbb-devtools and GitHub workflows (#6443)
* fix: update anyio & ruff

* fix: ruff updates

* remove TODO

* lock cli

* bump black

* fix: lock sec

* fix: sec test

* fix: replace toml with tomlkit in test
2024-05-21 10:46:03 +00:00
montezdesousa
627f7f9a77 [BugFix] - Remove logos (#6404)
* fix: remove logos

* fix: remove from provider

* feat: add extra field

* rename
2024-05-13 17:13:34 +00:00
montezdesousa
1dd8bf39c9 fix: alias credentials with uppercase (#6400) 2024-05-13 11:01:19 +00:00
montezdesousa
5b7428070a [Feature] - Create repo assets directory (#6384)
* feat: create scripts to generate repo assets

* move script

* publish.md

* deletes unmaintained .md files

* ruff

* pylint

* fix: website urls

* fix: website urls

* rename script

* renames

* create folder

* mypy

* PyDocstyle

* fix: descriptions & websites

* camelCase

* change json structure

* logo url

* reprName

* finra

* logos

* logo

* logo

* logo

* logo

* pylint

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-10 19:16:09 +00:00
montezdesousa
0b9b12d198 [Feature] - Redefined standard fields & multiple_items_allowed property changes (#6377)
* feat: add field annotation and replace multiple items by dict

* comments & details

* fix: fix api & update docs website

* ^

* remove empty info

* descriptions

* descriptions

* fix reference.json

* remove debug code

* remove debug code

* docstring

* docstring

* fix: standard fields propagate to providers

* comment

* better

* better

* better

* better

* better

* mypy fixes

* mypy fixes

* reference

* cli fix: if the argument is required (aka standard) it means we don't want to touch it, unless choices need to be added

* cli fix: touch the help message (with the available providers) only if it's not on the signature (aka standard field)

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-09 17:50:24 +00:00
Danglewood
4d6074de2d [BugFix] Fix Currency Search (#6380)
* fix currency search

* test artifact

* static files
2024-05-09 09:38:59 +00:00
Danglewood
99b0bb5287 [Feature] EconDB Main Indicators (#6365)
* add main indicators to economy.indicators

* static assets

* ruff

* Adapt and add unit test

* record test cassette

* polygon test cassette

* currency pairs

* recapture test

* mypy

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-07 20:03:13 +00:00
Igor Radovanovic
e12aac157e [BugFix] - Fix tests for release (#6372)
* Fix user service

* fix module import

* proper Chart(...) mock

* Fix SEC rss

* improve test on to_chart() method

* Fix form 13F example filing

* remove broken example

* Add lxml dep to SEC

* fix default

* fix: treasury_prices default date, last business day´

* fix: linting

* fix: rebuild

* ^

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2024-05-07 14:57:12 +00:00
Henrique Joaquim
63723f7b2c [BugFix] Remove Literal[None,...] (#6371)
* remove Literal[None,...]

* pylint: disable=unused-argument

* change  to Filesystem     1K-blocks      Used Available Use% Mounted on
tmpfs            3257224      3044   3254180   1% /run
/dev/nvme0n1p5 491732848 290872352 175808336  63% /
tmpfs           16286112     81500  16204612   1% /dev/shm
tmpfs               5120         8      5112   1% /run/lock
efivarfs             246        66       176  28% /sys/firmware/efi/efivars
tmpfs           16286112         0  16286112   0% /run/qemu
/dev/nvme0n1p1    262144     60008    202136  23% /boot/efi
tmpfs            3257220     15056   3242164   1% /run/user/1000 to avoid misleading linting attr errors
2024-05-07 10:57:03 +00:00
Danglewood
6b3d6fbe67 add currency snapshots from polygon (#6333) 2024-04-23 08:38:40 +00:00
Henrique Joaquim
6cfc47541a [BugFix] Adding safe timestamp conversion everywhere (#6299)
* safe fromtimestamp

* sage timestamp convertion on equity profile

* safe fromtimestamp

* fix imports

* Lint

* Force UTC Currency Snapshots

* Add that to market_snapshots too.

* black

* ignoring some typing

* ignoring some typing

* typing

* typing

* typing

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2024-04-19 15:00:02 +00:00
Igor Radovanovic
a255fa52a0 [Enhancement] - PyDocstyle Compliant (#6284)
* PyDocstyle Compliant batch 1

* Batch 2

* Batch 3

* Batch 4

* Batch 5

* Batch 6

* Batch 7

* Linting

* MyPy

* mypy things

* black

* more mypy

* black

* fix that

* black again

* undo that

* Fix error message

* pylint

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2024-04-09 13:30:29 +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
f328a45b95 [Feature] - refactor examples (#6154)
* remove auto examples and split python from api

* add missing exampels

* rebuild

* query params focstring

* black

* add scoped examples

* group model imports in the router

* unblock api

* fix

* classify examples

* fix package identation

* black sig

* fix indentation without linter

* fix python examples

* remove doc

* pylint

* again

* add model validators

* commodity, crypto, currency

* filter examples

* fix python examples

* fix filter and build

* undo toml change

* add comment

* oop

* comment

* typing

* lint

* Update router.py

* Update econometrics_router.py

* fix to_python

* to_python

* to_python

* black

* fix multiple line field descriptions

* remove circular import

* add missing import

* pass indent as object attr

* doc

* doc

* this looks better

* forgot this

* fix: new examples adapted

* fix prev commit

* avoid future problems

* Update ownership_router.py

* rebuild + remove todo

* make description mandatory for python examples

* simple indent

* append_examples func works for both website and docstring

* Add example unit tests

* Edit example unit tests

* fix validator

* this works

* fix to_python

* fix mandatory docstrings

* typing

* shorter error msgs

* economy router

* fix more examples

* more examples

* more examples

* more examples

* field desc

* minor fix

* fix etf examples

* handling types better

* lint

* rename method

* rename var

* docstring + move method

* typing

* prompt

* rebuild

* prompt fix in PythonEx

* fix examples without model

* example mock data

* add get_field_type func to get field data type

* panel data

* mock data

* fix

* fix

* docstring

* ohlcv

* pylint

* quantitaive router

* simplify mock data

* fix remaining quantitative routers

* a bit more flexibility for examples

* lint

* mock dat from sample

* docstring

* assertion

* bugfix

* minor fix

* technical

* fix integration tests

* fix docstring

* econometrics examples

* econometrics examples

* remove warning

* add technical examples

* fix bad examples

* fix more examples

* update test rules

* remoce old pydantic referenc

* fix bug in treasury prices

* fix quantitative examples

* discovery router

* equity shorts

* equity shorts

* fix currency pairs

* fix sec_router example

* fix panel data to support all funcs

* black

* more examples fixes

* simplify test

* rebuild

* test doc

* add provider to some ex

* ^

* last

* add provider

* rebuild

* working examples

* noqa

* pylint

* pylint

* clean

* minor fix

* fix test

* lint

* ruff

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-03-09 23:22:40 +00:00
Danglewood
8254bd5638 [Enhancement] Standardize "X".price.historical Intervals and Params (#6146)
* FMP

* tiingo

* yfinance

* intrinio

* polygon

* fmp interval descriptions

* alpha_vantage

* update unit tests

* tests

* static files

* black

* black

* black again

* codespell

* codespell again

* futures historical

* ruff

* some more black

* pylint

* now black again

* test params

* skip deprecated

* fmp test cassette

* fix some tests

* fix test_query

* fix bad symbol in toolkit integration tests

* attempt at parameter deprecation warning

* Fix edge case

* test params

* more test params

* that's the ticket

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-03-08 16:31:38 +00:00