Commit Graph

289 Commits

Author SHA1 Message Date
teh_coderer
bf26d4a7c7 Merge branch 'develop' into feature/sdk-update 2023-02-27 12:26:28 -05:00
James Maslek
cab0eb4522 Merge branch 'develop' into hotfix/add-fixed-income-text 2023-02-27 12:20:13 -05:00
jeroen
254ef35f9e Update fixedincome text 2023-02-27 18:04:59 +01:00
teh_coderer
15ec8dbb6d removed old trailmap csv's 2023-02-27 11:57:28 -05:00
jeroen
5b3647dcc2 Remove etf/scr from SDK 2023-02-27 17:09:15 +01:00
James Maslek
68d6970641 Merge branch 'develop' into feature/finance-database-update 2023-02-27 09:14:26 -05:00
Danglewood
5a171fd775 Merge branch 'develop' of https://github.com/OpenBB-finance/OpenBBTerminal into hotfix/options-screener-fix 2023-02-26 13:18:10 -08:00
Danglewood
28ab5b411f adds option screener preset 2023-02-25 23:48:53 -08:00
Danglewood
3f16a382b0 fix for options screener 2023-02-25 16:21:30 -08:00
james
1ae9115741 Delete rogue file and update test and add fixedincome to en.yml 2023-02-25 18:31:12 -05:00
northern-64bit
21a7777370 Add options greeks to the SDK 2023-02-25 23:41:38 +01:00
Jeroen Bouma
bec294b92d Merge branch 'develop' into feature/finance-database-update 2023-02-25 14:24:18 +01:00
Danglewood
834784247c adds cones to the crypto-ta menu 2023-02-24 20:29:01 -08:00
Danglewood
d6c5a99cfa trail_map conflict 2023-02-24 09:56:06 -08:00
martinb-bb
80d1eb7b8e Merge branch 'develop' into feature/whisper 2023-02-24 11:59:48 -05:00
james
2ba24ec839 Integration test 2023-02-24 11:30:00 -05:00
martinb-bb
14e7532156 Merge branch 'develop' into feature/whisper 2023-02-24 11:25:17 -05:00
James Maslek
d3efd2f326 Merge branch 'develop' into feature/fixed_income 2023-02-24 11:13:19 -05:00
James Maslek
eea170bdda Adding databento as a source (#4293)
* First commit

* Baby steps

* Keys and sdk

* Fix import for api key

* Add SDK endpoints

* Test + api checks

* tests

* roque print of api key

* Changes

* minor

* custom timeout

* improve timeouts

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-02-24 10:33:45 -05:00
martinb-bb
ca7f251fb5 Merge branch 'develop' into feature/whisper 2023-02-23 20:45:31 -05:00
martinb-bb
1e6735321a trailmap 2023-02-23 15:14:28 -05:00
teh_coderer
49bb20d76d Merge branch 'develop' into feature/fixed_income 2023-02-23 13:31:09 -06:00
Danglewood
10cff856b8 Merge branch 'develop' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/rvol-cones 2023-02-23 07:26:01 -08:00
jeroen
b704ca0cdf Fix routine script 2023-02-23 16:09:34 +01:00
jeroen
f4daa9104b Depreciate the sia menu 2023-02-23 16:09:34 +01:00
DidierRLopes
f1a824a179 Add tweet news in terminal toolbar (#3757)
* Add tweet news in terminal toolbar

* allow to store tweet news settings

* update dependencies

* Add tweet news in terminal toolbar

* lint

* dependencies

* 5s timeout for twitter api

* poetry update for resolve

* reqs

* set news to false by default

* update tweepy

* update reqs

* update reqs again?

* update setuptools

* small improv

* Add tweet news in terminal toolbar

* update packages

* black linting

* black formatting

* ruff fixes

* fix settings controller

* Reqs

* fix tz issue

* add keywords selection

* linting

* helper funcs mypy

* pylint fixes

* Checkout poetry.lock + pyproject.toml

* Update dependencies

* Remove integration test file

* News Toolbar : Fix bugs

* Tests : News Toolbar

* Update dependencies

* Tests : change variable name

* Remove unused keys

* Remove unecessary global variable

* Fix linting

* Lighter API call

* Ruff

* Linting + Remove keys

* Linting

* Dotenv loading issue.

* Ruff

* Revert "Dotenv loading issue."

This reverts commit 4493f1a3e7.

* Tests : fix

* Tests : fix test_settings_controller.py

* Twitter Toolbar : avoid checking API when not enabled

* Tests : news toolbar

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2023-02-23 13:22:22 +01:00
Danglewood
c97e0445db adds flag for crypto to switch volatility calculations to 365 from 252 2023-02-22 20:26:53 -08:00
Danglewood
f6f978ba8d updates SDK trail map and crypto ta_controller 2023-02-22 11:09:42 -08:00
Danglewood
f45d3a4428 adds cones function to Stocks/TA 2023-02-22 09:47:57 -08:00
jeroen
05a09fda8a Almost there.. 2023-02-22 16:04:53 +01:00
jeroen
13cde528c6 Introduce ICE BofA and Spreads 2023-02-22 11:06:42 +01:00
jeroen
55f0751082 Many more improvements 2023-02-21 15:41:12 +01:00
James Maslek
14fcb1a716 Merge branch 'develop' into feature/fixed_income 2023-02-20 18:45:34 -05:00
jeroen
961d0d8c28 Improve ecb functionality and improve treasury functionality 2023-02-20 18:01:29 +01:00
Henrique Joaquim
7998ae7887 Adds Personal Access Token Commands (#4266)
* token generation on the terminal

* revoke and show commands

* save to keys

* test for hub_model

* black

* controller tests

* fix wrong merge

---------
2023-02-17 17:13:51 +00:00
jeroen
e13d4b4f97 Combine projection functionality 2023-02-17 12:16:17 +01:00
jeroen
e777ad29b9 And another update 2023-02-16 18:15:22 +01:00
jeroen
463535ef9c Initial Update 2023-02-15 18:43:24 +01:00
northern-64bit
af5e74bba1 Merge branch 'develop' into feature/fixed_income 2023-02-15 13:43:40 +01:00
james
482f6f8419 Fix trailmap again 2023-02-14 15:22:39 -05:00
james
4c591bff6b trail map 2023-02-14 14:55:15 -05:00
northern-64bit
3fd21664bd Merge branch 'develop' into feature/fixed_income 2023-02-14 19:27:34 +01:00
montezdesousa
825b8955df Set guest by default and put authentication behind environment variable (#4197)
* small bug

* small bug on routines list

* guest as default

* limit logout to users2

* simpler this way

* add logout

* move logout to account & add env var

* put authentication under env var

* fix tests

* remove login

* remove openbb vars on login

* ruff

* revert .toml

* Delete Icon

* Update .env

* fix sdk guest not loading keys

* ruff

* remove press enter & --login

* ruff

* move env load

* load env

* move dot env loading to terminal.py

* fix user sdk login mixing .env with user

* now it works

* fix reset

* fix tests

* ruff

* Login on the SDK using the OpenBB Personal Access Token (#4206)

* openbb key on keys menu

* adding sdk endpoints

* adding login via token to the sdk

* base url

* rename to personal access token

* added docstrings and examples

* openbb is special

* removing extra break line

* making keys working with the personal access token

* resolve conflicting tests

* Revert "resolve conflicting tests"

This reverts commit 2fca2c0ec3.

* using custom requests

* tests

* tests

* tests

* using process_session_response instead

* rewriting some tests

* Fix sdk guest not loading keys (#4207)

* fix sdk guest not loading keys

* ruff

* remove comment

* tests

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* test record mode vcr none

* remove yes from tests yml

* specify modules to reload

* try disable check api

* UPdate spec file

* Small stocks bug

* avoid reloading in test mode

* will this work?

* skip session tests

* try with env var as well

* mock sdk reload

* pylint

* bump poetry on python 3.8

* adapt to python 3.8

* adapt to python 3.8 remaining tests

* Tests : update cassettes

* Fix linting

* Makes login conditions simpler

* Tests : txt

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-02-14 09:56:03 +00:00
James Maslek
5aebae4d46 Feature/general improvements (#4213)
* Get rid of required ticker and add -t argument to all of fa

* ta to work without ticker

* Allow bt to be accessed without ticker

* Bt not ticker dependent (last commit was qa)

* Update stock controller

* UPdate tests

* Review changes + update tests
2023-02-13 10:22:29 -05:00
James Maslek
2a7ec56000 Sunset some dependencies (#4215)
* Sunset some dependencies

* Mypy

* Last iex refs

* remove ref to investpy

* tests

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-02-13 08:54:54 -05:00
teh_coderer
dadfe9eaa9 removed portfolio.po deleted functions, fixed stocks.disc.filings incorrect function (#4210) 2023-02-10 13:22:00 -05:00
James Maslek
06d737f4be Adding intrinio and cleaning up options a bit more (#4127)
* Add intrinio load functions into stocks and options.  First try at options sdk with intrinio

* Add a new eodchain function + add intrinio model test

* Unit tests for intrinio options

* dont add eodchain yet -- wait for other PR

* Make null handling better + add intrinio sdk to reqs

* mock dates

* update test

* fix ruff

* black and gitignore

* Clean up and make options load class

* Clean up clean up

* Fix intrinio stock load

* Get requirements even

* sort intrinio chain and fix

* Dont rename the candle input argument

* Fix bug #4060

* Historical option prices

* Add grhist from intrinio and isort

* Fix things for presentation

* Fix tradier chain printing

* YahooFInance chain cleanup

* standardize nasdaq

* Format intrinio

* Cleanup SDK

* Fix tests

* mypy

* Clean up trail map and edit docs

* Fix mapping of info on sdk

* Add intrinio to deps

* Add a rich progress bar to expirations :)

* controller test

* Silly error + tests

* Required arg

* bad assert statememts

* Mutable default

* Keys and switch another tqdm

* BizIns Tests

* tests

* Last Test
2023-02-10 16:54:05 +00:00
Jeroen Bouma
6421be3d8e Cleanse functionality from relying on yfinance (#4176)
* Cleanse PO from Yahoo Finance

* I removed equal but then moved it back in

* Update tests

* Get rid of sust command

* Get rid of quote since broken

* Added in export capability for quote

* Remove pir and summary, fix news and change source for weights

* Update stuff

* Add sources

* Update portfolio to not be dependend on Yahoo Finance

* Update all tests

* Update SDK

* Details

* Fix integration scripts

* I think I had to rewrite these

* Update more tests

* oopsie

* Fix 1

* Fix Sort

* and fix test

---------

Co-authored-by: james <jmaslek11@gmail.com>
2023-02-09 16:57:26 -05:00
montezdesousa
5953be0a42 Terminal authentication + keys/settings/routines (#4015)
* import order

* pylint

* no login, go to prompt

* add logout and whoami

* clear before prompt

* black

* these are unecessary

* error

* improve login prompt message

* login does not follow the controller pattern, so will name it differently

* nop

* move logout and change to results

* change return obj

* ruff

* pyupgrade

* remove user from statics

* message

* fetch configs at start

* remove unecessary func

* unecessary dataclass

* change user vars

* change login flow

* remote logout should not be used

* simplify

* fix double exit logout bug

* wrong exception

* apply keys

* change controller

* mypy

* save if no internet

* pylint

* logout everywhere

* breaking changes: move to local/hub models

* unused import

* fix logout bug

* whoami in guest mode

* add todo

* small bug guest allowed

* limit flair length

* fix bug on user pull

* logout working

* handle no connection

* logout user when logout

* remove keys push

* split logger funcs

* commant apply configs for now

* account to session

* rename user

* clear sounds better

* breaking changes: splitting guest from logged users

* pull imports up

* delete session model

* move logout func

* add ability to save and apply keys from remote

* no sensitive keys

* add support for feature flags

* unecessary print

* allow settings from differnt modules

* change setff to static

* change way to set ff

* fix bug in applying configs

* simplify obbff application

* bug on setting configs

* allow text ff

* obbff in settings

* add upload to cfg_plot 1

* data sources + backend

* this solves circular import?

* move create_session to model

* rever logs changes, not needed for now

* sync optionally

* outline account controller interface

* don't sync when guest

* block guest on installer

* or not and

* start routines

* fix bug on ff, settings

* is installer

* implementing chavi suggestions

* fix colors on installer prompt

* Logging login (#4046)

* basic logging for the login

* removing unused import

* hacking the logs custom filter to not filter the email

* black

* cooping with the new changes

* removing redundant method

* ruff

* ruff

* mypy

* SDK login (#4051)

* sdk login

* adding to the trail map

* minor fix

* improve sdk expirience

* adapting to new changes

* add docstrings

* block guest from account

* change guest msg

* change guest messages

* add sync on/off

* display onoff

* missing paragraph

* fix glitch on logout

* add sys clear

* filtering password

* filtering the email from user

* avoid writing to multiple log files if a user logs out

* fix bug, guest allowed in installer without connection

* log user on the sdk

* split login from lauch

* add clear and change messages on account

* docstrings

* start pull cmd

* change account menu description

* Fix login bug and decouple some logic (#4056)

* fix bug, guest allowed in installer without connection

* split login from lauch

* improvements on the sdk login

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* sync fix

* change account controller description

* ruff

* add help on account cmds

* update clear prompt

* fix email not in jwt

* remove jwt from requiremnts

* pull command output

* remove character

* pull cmd when no data

* add space below whoami

* fix log filenotfound exception

* changed arg name

* delete .hist on logout

* add asteriscs to password

* pylint

* uncomment rich config

* show only diffs on pull

* black#

* warn when no changes#

* pull msg was switched

* apply diff only

* breaking?: strbool change

* reduce some code

* add timeout to hub requests

* black

* add remote logout

* success msg only if success

* remove colors in prompt

* update docstrings

* keep timeout outside funcs

* update clear

* clear and patch

* delete session

* routine upload

* move .his file to .openbb folder

* change apply configs

* refactor logout

* remove mixed portfolio changes

* fix bug in lock file

* fix bug pwidth, pheight are floats

* fix sources command & add choices

* refactor timezone setting

* userdata

* fix flair

* need to cast paths

* cast on diff

* fix flair default

* save session test

* get session

* data

* test remove

* test remove with assert

* add bad test cases

* add exception cases to unittests

* test remove cli hist file

* black

* test apply configs

* test apply with sync flag

* test create session, session model

* login tests, session model

* some tests for the hub_model

* test logout user

* black

* test clear vars, reload

* test create session

* update user-json to user

* update user class

* add user tests

* tests sdk session

* tests for hub_model

* start account controller tsts

* unused import

* tests account controller: clear, pull

* tests for session_controller

* logout success bugfix

* add integration test for account

* black

* move routine related commands to other PR

* test for the user input

* completed tests for session controller

* convert to hist to str)

* fix import errors

* ruff

* ruff tests

* fix qa

* add help to settings cmds

* ruff

* fix pull keys bug

* point to dev

* account model tests

* black

* ruff

* fix for empty feature settings

* ruff

* don't display config msg if wrong token

* general msgs

* remove print

* ruff

* fix sources not updated real time

* missing return doc

* add guest if no email

* Routine remote storage (#4143)

* add upload routine command

* remove prints

* point to local again

* add commands

* add delete

* add download command and upload 409

* list comprehension

* add download & save plus upload fixe

* add user uuid folder

* add list command

* ruff

* en.yml detail

* provide choices to delete & download

* add choices to upload

* change menu text

* starting adding unit tests

* bad english

* Update test_print_help.txt

* genearl msgs

* remove print

* add docstrings

* add unit tests to account controller

* change parser

* fix routine upload test

* add to be implemented tests hub

* add to be implemented tests local

* add total pages to title

* split list into model and view

* add docstring

* print msg if character

* add local model tests

* hub tests routines

* fix test

* point to dev and glob

* fix small bug on upload

* missing return

* log decorators missing

* black

* ruff

* change prompt display

* rewrite test

* rewrite expected

* rewrite call

* try passing git action

* change .yml everywhere

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-09 13:35:44 +00:00
James Maslek
a6a67efedf Merge branch 'develop' into feature/remove-dd-docs 2023-02-08 09:31:45 -05:00