Commit Graph

202 Commits

Author SHA1 Message Date
Henrique Joaquim
b170e29478 Hotfix/terminal tests (#5919)
* skip supressed arguments

* silent way of customly load on quote

* specify source for call_load
2024-01-04 14:29:53 +00:00
James Maslek
f2208f8d31 Release/3.2.4 (#5704)
* 3.2.3->3.2.4

* Changelogs

* new changelog
2023-11-10 09:42:05 -05:00
James Maslek
934e9e6828 Release 3.2.3 2023-10-02 13:34:55 -04: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
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
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
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
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
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
f07d116f23 Fixed URL for uploading to the hub (#5340)
* Fixed URLs

* Added a fix
2023-08-17 16:18:26 +00: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
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
James Maslek
673b22f4ef fix sdk 2023-08-08 14:45:01 -04:00
James Maslek
dfd8e7c983 Merge branch 'develop' into release/3.2.1 2023-08-07 14:49:45 -04:00
teh_coderer
47c9086e80 fix: #5263 #5264 (#5290) 2023-08-07 17:25:57 +00:00
James Maslek
3d579ca2e3 3.2 -> 3.2.1 2023-08-07 10:12:25 -04:00
Colin Delahunty
19e6b61953 Fixed the get routines to meet the new backend standard (#5271)
* Added fixes

* Fixed test

* Unhid try except

* Fixed everything else

* Fixed typing

* Fixed pylint

* Fixed tests

* Fixed

---------

Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-07 13:16:39 +00:00
teh_coderer
ae91a3f9b9 Hotfix economy/overview rates displaying as dates (#5269)
* fix: `economy/overview` rates displaying as dates

* Fix Test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-01 16:05:29 +00:00
teh_coderer
dc30ab3d36 Hotfix/ locking when deploying streamlit app (#5261)
* fix locking when deploying streamlit app

* Update streamlit_run.py

* Update streamlit_run.py
2023-07-29 02:13:42 +00:00
montezdesousa
41d1359202 Check token expiration before request (#5255)
* check token expiration before request

* move to jose instead

* ruff

* Reqs

* update requirements files

* Print expiration time on login

* console.print

* too fast, let the token expire...

* fix create token date

* point expired key to hub

* hard code tokens, works?

* ok it passed

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-26 19:28:36 +00:00
OpenBB
02767ca733 ruff 2023-07-22 16:02:07 -07:00
OpenBB
4681dc785b fix trail map for crypto.price() 2023-07-22 15:56:20 -07:00
Danglewood
bd1c2a4a37 mypy 2023-07-21 21:32:04 -07:00
tehcoderer
e98021e9a0 limit rangebreaks 2023-07-21 20:45:07 -04:00
tehcoderer
290c5bc8d7 fix for economy treasury / usdli 2023-07-21 20:17:33 -04:00
tehcoderer
cd74832ded fix tables 2023-07-21 16:32:01 -04:00
James Maslek
1e25cd6e81 Merge branch 'develop' into release/3.2.0 2023-07-21 13:05:25 -04:00
James Maslek
3a322b831d Change 3.1 to 3.2 2023-07-21 12:57:21 -04:00
montezdesousa
d6bc45d046 add public routines flag (#5236)
* add public routines flag

* Spelling

* mypy

* Tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-21 16:26:31 +00:00
James Maslek
87b5bdb521 Release Cleanup (#5233)
* turn hold off when run even if no figure

* Add warning text to PlotlyTA

* better wording

* fixes #5232

* Fix askobb + updaate reqs

* bump requests

* Couple other bumps

* Here we go with the mac builds

* That wasn't right

* Not gonna have a good time today

* Previous miniconda

* did that wrong

* Wrong version

* ?

* installer-url instead

* 3.1 not 5.1

* CONDA UPDATE

* Revert the mac builds

* Run poetry lock and update some packages

* bump poetry on unit test

* Fix one test

* Add vanilla 3.11

* Fix issue on runner

* One last try

* Remove windows conda :D
2023-07-20 22:26:05 +00:00
teh_coderer
41ef3d416f Hotfix/ improve tables/charts (#5228)
* improve charts, tables

* update

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-19 23:58:32 +00:00
James Maslek
8b007785a1 Adds a matlab like hold on to plot on same axis (#5173)
* definitely not juan walking me through everything

* trying to pretty it

* start doing same axis with hold

* actually do the sameaxis correctly

* Better docstring

* Fix mypy

* mypy3

* pylint fixes

* Add message about candle

* might work, might now

* Update stocks_controller.py

* Update plotly_helper.py

* Update plotly_helper.py

* Make fmp view legends nice

* Update helper_funcs.py

* Add custom legends for when hold on

* bigger font

* add colors to new axes

* add custom title, remove location

* Start guide.

* Update plot-holds.md

Add figures

* More words

* Update plot-holds.md

* Finish guide

* tests

* Sneak in test updates for release

* guess not sneak test

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-07-19 23:29:24 +00:00
DidierRLopes
1bfc4190e1 Update routine tags (#5221)
* Update routine tags

This updates available routine tags.

I added other topics than not OpenBB menus. Let me know if anything is missing.

@jmaslek @andrewkenreich @deeleeramone

CC: @Disorrder

* Update constants.py

* Update constants.py

* Update constants.py
2023-07-19 22:30:11 +00:00
James Maslek
830159f718 Update treasury command to get directly from fed (#5215)
* Update treasury command to get directly from fed

* test

* Fix the codespell lint

* Mypy

* help text

* mypy + askobb update

* pylint now

* Fix #5190

* Fix report

* ruff life

* Fix #5172

* economy report titles

* Make the chart nicer
2023-07-14 17:33:31 +00:00
teh_coderer
281799f047 hotfix / improve autoscaling/dynamic loading, fix forex candle charts, equity reports (#5183)
* improve autoscaling/dynamic loading, fix forex candle charts

* updates

* Update plotly_helper.py

* fix?

* fix table date sorting, localize forex load

* tests

* tests?

* ugh tests

* Update test_display_debt.txt

* Update test_get_debt.csv

* Update forex_helper.py

* close #5182

* fix `crypto/dd/info` tables not loading due to `dict` object in dataframe values

* Update parent_classes.py

* tables: show full value on hover, fix year only filtering. on reset use queue if logged in

* lint + first batch of test fix

* tests pt2

* Tests v3

* Pylint

* typo

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-14 14:46:01 +00:00
montezdesousa
92027a6a0e Fix prompt typo (#5192)
* fix prompt typo

* Update banner.txt

* rewrite prompt on test

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-13 17:42:15 +00:00
James Maslek
84f215d4bd Remove economy/rtps and stocks/ta/rsp (#5181)
* remove economy/rtps

* remove ta/rsp

* Forgot the sdk

* remove  from stocks/ta choices

* remove terminal ta intro reference

* remove sdk economy intro reference

* remove from integration tests

* delete gpt index txt files

* more .md files to remove

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-07-07 14:06:43 -04:00
teh_coderer
77f34f54a2 Hotfix / Switch download_plotly_js to run in thread (#5203)
* change plotlyjs download to run in thread

* Update backend.py
2023-07-06 21:07:04 +00:00
Danglewood
8df31f8de4 feature/usd-liquidity-index: Adds USD Liquidity Index to Economy menu (#5174)
* add USD Liquidity Index to Economy menu

* mypy

* add screenshots to Terminal Economy Intro

* add test to test_fred_model

* add Broad US Dollar Index to list of comparables

* docs pages update

* fix test_nasdaq_model

* ask obb indexing

* return just the calculated series by default

* a grid for Squares

* raw table output

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2023-07-06 15:50:10 +00:00
teh_coderer
923327c321 hotfix / Save session on oauth login (#5195)
* save session on oauth login

* avoid `asyncio.run` if in a running loop

* tests

* fix economy rtps
2023-07-04 23:08:16 +00:00