Commit Graph

425 Commits

Author SHA1 Message Date
James Maslek
9deb06d733 Friday night bugs (#2557)
* bug 2548 to fix stocks/gov/topbuys

* lets not print the df

* stocks/gov/lasttrades help #2547

* #2531 earnings issue

* Add a check in contracts that the amounts are more than 0

* Fxiix tests

* #2516

* #2516

* #2511

* Break up the estimates into 3 different options

* #2532

* mypy fix

* pylint fix
2022-09-17 12:57:39 +01:00
raviolispy
3964705101 #2212 Removed hist and trend comamnds from /stocks/ba (#2284)
* Removed hist and trend comamnds from /stocks/ba

* Removed trend and hist command from /stocks/ba help menu

* Fixed whitespace issue

* Fixed test_print_help for ba controller

* Fixed pylint issues

* fix test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Ravioli Spy <raviolispy@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-09-16 23:04:01 -04:00
James Maslek
000e75baf5 Comment out options screener for short term (#2544) 2022-09-14 13:23:25 -04:00
jose-donato
40490054fd [bug] nft price model (#2475)
* Update nftpricefloor_model.py

* fixes to match new api

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-14 15:17:20 +01:00
jose-donato
0f23910e59 removed nftcalendar.io (#2540)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-13 22:47:02 +01:00
Om Gupta
3d0190e35b New path for .env (#2508)
* add log path

* add test to check if log file is in correct dir

* env path

* black

* mypy fix

* linting

* add make_paths and change references

* terminal change

* change constants to paths

* change names

* black

* mypy

* mypy

* pylint else

* add make paths

* remove custom user dir name

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-09-12 11:56:45 +01:00
Om Gupta
eff4632df9 New path for logs (#2502)
* add log path

* add test to check if log file is in correct dir

* small change

* Adding paths

* change to paths.py

* black

Co-authored-by: Chavithra Parana <chavithra@gmail.com>
2022-09-07 12:14:17 +01:00
James Maslek
f856a2f212 Add heatmap function to stocks disc (#2454)
* Add heatmap function

* Reinstalled black.  Weird

* fix export and lint

* fix test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-06 21:15:47 -04:00
hjoaquim
37340beaf6 Adds a warning regarding /stocks/ba/jcdr (#2501)
* added warning message

* Update warnings

* fixed tests by forcing rewrite

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-09-06 10:40:24 +01:00
DidierRLopes
8edf079041 Big refactor to be explicit about data sources (#2490)
* refactor stocks datasources

* add rest of data sources

* add_cmd without source

* forgot one tiny thing

* fix crypto tests

* fix forex tests

* fix etf tests

* fix economy tests

* fix oss tests

* fix remaining tests

* fix tests

* Rewrote vcr files

* Take 2

* fix test

* fix tests for FA

Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-04 18:04:56 +01:00
James Maslek
bd59270297 Add yf for fa/earnings (#2488)
* Add yf for fa/earnings

* Fix test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-04 11:42:17 -04:00
Parker Boyes
db844a567f [bug] Fix SettingWithCopyWarning and export error (#2481)
* fixed Pandas SettingWithCopyWarnings

* fixed typo in test_google_view

* fixed typo in test_google_view
2022-09-02 16:37:41 -04:00
Om Gupta
3da5c35a46 fix: Issue 2458 (#2472)
* bug 2458

* black and fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-09-01 22:21:00 +01:00
montezdesousa
7df711d32c Fix etf function get_all_names_symbols (#2467)
* fix etf scrapping

* remove unused import

* fix stockanalysis tests
2022-08-31 00:00:26 +01:00
DidierRLopes
065cd78814 forex quote to use yahoo finance instead (#2436)
* forex quote to use yahoo finance instead

* update docs

* add av as secondary source for quote
2022-08-29 01:29:21 +01:00
DidierRLopes
817bca657e Fix stocks/news (#2442)
* fix stocks/news

* fixtest
2022-08-28 02:25:34 +01:00
DidierRLopes
17629fc9ae allow percentages for EconDB as required by user (#2440)
* allow percentages for EconDB as required by user

* minor typo

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-08-28 02:25:23 +01:00
Christian Clauss
6e7971860a pre-commit autoupdate ; pre-commit run --all-files (#2330) 2022-08-27 15:34:04 +01:00
Jalil F
629172230f Fix liquidations data. fixes OpenBB-finance/OpenBBTerminal#2429 (#2430) 2022-08-27 15:22:04 +01:00
James Maslek
a285e5b2b7 fix etf/compare (#2426)
* fix etf/compare

* tests

* more tests fix
2022-08-26 10:24:31 -04:00
Glauco Custódio
c341f46aac add bullrun.com.br as source for research (#2386)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-26 11:29:52 +01:00
jose-donato
d399fce650 NFTs - added floor price and collections commands (#2375)
* added floor price and collections command

* added tests and docs

* updated to match minh requests

* updated tests

* added legend and images preview

* Fix tests

* Tests : nft

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-08-24 13:54:24 +01:00
jose-donato
4399d06a78 Refactoring crypto load (#2366)
* refactoring load

* updated to match minh changes

* improved loading

* updated tests

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-08-24 10:10:16 +01:00
Jalil F
a9a9b2b785 feat m: [Crypto/DD] Add Coinglass Liquidations (#2402)
* Add initial liquidations calls.

* Fix liquidation terminal call.

* Adding documentation.

* Update to correct docs.

* added stacked bars

* Adding new bar chart visualization to docs.

* revert helpers.

* linting

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
2022-08-23 18:30:18 +01:00
Colin Delahunty
c68857f982 Fixed polygon quarterly (#2401)
* Fixed polygon quarterly

* Fixed tests
2022-08-23 10:41:10 -04:00
Colin Delahunty
5bfdd8f422 Fixed the etf compare command (#2394)
* Fixed the command

* Fiexed tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-23 09:35:30 +01:00
James Maslek
cf9b5ad832 Add nasdaq as an options source (#2397)
* Get all nasdaq chains

* Get all expirations

* Add chain by expiry and clean up columns

* add nasdaq to load and exp

* Add OI plot for nasdaq

* add volume plot

* Update vol + oi to have nasdaq + raw flag

* Add VOI functionality with nasdaq

* Add nasdaq chains function

* Run isort

* doesnt

* Change menu for sources and edit yfinance to expiration instead of expiry

* lint

* oops

* unused imports

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-23 09:35:18 +01:00
Colin Delahunty
1ca58d9cdd Changed cdebt to edebt with wording fixes (#2393)
* Changed cdebt to edebt with wording fixes

* Added text fix
2022-08-22 21:46:13 -04:00
Colin Delahunty
6f2691b916 Fix income statement bad headers (#2390)
* More verbose error

* Fixed headers
2022-08-22 16:30:52 -04:00
Colin Delahunty
b6ebe207f2 Bug fixes (#2387)
* Fixed bug

* Fixed tests
2022-08-22 13:14:18 -04:00
Om Gupta
3a7401dfd0 Adds relative strength percentile to stocks/ta (#2302)
* Adds relative-strength percentile to stocks/ta

* allow exporting tables

* shifted from common to stocks and added tests

* added documentation

* added in nav bar

* fix test

* remove whitespace in docstring

* fix type error

* fix test

* fix tests

* test

* added tickers to a separate table

* add image to doc

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-08-22 14:54:08 +01:00
DidierRLopes
f14fdfe7a2 Improve SIA experience as based on feedback (#2264)
* improve sia experience

* Pytest : stocks/sector_industry_analysis controller

* Tests : rewrite expected files

* refactor based on Jer feedback

* add the code that I forgot to push lol

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-08-22 13:10:27 +01:00
Colin Delahunty
f4bcfcca1c Fixed breaking changes to hotpenny (#2368)
* Fixed breaking changes to hotpenny

* Added features

* Added fixes
2022-08-19 09:21:39 -04:00
James Maslek
73f7561f80 Small change + small bug fix (#2359) 2022-08-18 17:55:16 -04:00
Colin Delahunty
6b95d7d3ac Added fixes from the general integration tests (#2357)
* Added fixes from James

* Fixed tests

* More test fixes

* Added fixes

* Fixed tests
2022-08-18 17:03:46 -04:00
James Maslek
52f4d673f8 Fix TA integration script (#2356)
* Fix TA integration script

* test
2022-08-18 15:16:42 -04:00
Chavithra
9e1a58e2db Here we merge all API Refactor related branches (#2236)
* Update api.py

* Updated forex menu

* refactor ycrv command

* refactor ycrv command black

* refactor ecocal command

* Minh changes

* Adding space to test pushing

* title fix ecocal df

* get economic calendar annotation

* fix investingcom tests

* refactor index command

* refactor overview command

* give defaults to wsj view function args

* rename date args investincom

* refacto bigmac command

* fix ecocal typo

* refactor rtps command

* alphavantage gdp

* alphavantage gdp per capita

* alphavantage cpi

* alphavantage tyld

* alphavantage inf

* refactor macro command

* refactor macro command w helpers

* refactor treasury command

* fix macro on terminal

* treasury labels

* refactor maturities

* update treasury maturities doc strings

* refactor get economic calendar finhub

* refactor map command api

* display map filter choices

* route economy api to performance map

* route economy api to performance map

* display group choices on valuation command

* refactor performance and valuation commands

* refactor spectrum model and view

* add choices to spectrum controller

* delete image after view

* fix model tests finviz

* fix finciz view tests

* refactor futures

* fix some tests

* fix more tests

* fix controller test

* refactor fred series notes

* update fred notes docstring

* refacto fred series ids

* fix pred and qa when empty datasets

* refactor fred

* uncomment stuff

* refacto get series data

* fix some tests

* set defaults on args

* refactor fred yield curve

* black

* fix spell and remove ecocal names

* fix linting

* linting

* pylint fix

* change dangerous defaults

* Working through crypto fixes (#2256)

* Working through crypto fixes

* Continued adding crypto stuff

* Added crypto overview

* Added test fixes

* Added fixtures

* Fixed tests

* Fixed charting issue

* Removed broken APIs

* Final adjustments

* Added test fixes

* map get groups and get ycrv countries into old api

* exposed econdb helper funcs

* remove helpers

* refactor search indices

* linting

* refactor arg currency

* pylint from currency

* Started switching crpyto ascending to ascend

* Merging

* Portfolio model arguements, params, and docstring

* Refactored for etf commands (#2292)

* Refactored for etf commands

* Fixed tests

* Added load command

* Fixed menu

* Portfolio logic fixes

* Added econometrics (#2260)

* Added econometrics

* Fixed tests

* Simplified API

* Added test fixes

* Added test csv

* Allowed examples to be loaded

* Fund refactor (#2291)

* Fund refactor

* Changed fund_name and fund to name

* Changed ascending to ascend

* Stock menu refactoring for easier API usage (#2194)

* Stocks  refactoring for easier API usage

* Linting

* Refactor newly added features

* Linting

* Fixing tests

* Refactor common files used by stocks menu

* Fixing flake8

* Fix linting and tests

* Linting

* Fix flake8

* refactor insider_data

* refactor mentions

* refactor watchlist

* refactor sentiment

* refactor sentiment

* fix yahoofinance tests

* refactor load and candle

* refactor get_news and display_news

* refactor stocks.ins.act

* candle default matplotlib

* fix yahoofinance_view tests

* fix ark model tests

* fix ark view tests

* fix business insider model

* fix business insider view

* refactor csimarket model

* fix tests csi market model

* update dd controller

* fix get suppliers tests

* fix dd controller tests

* fix finhub tests

* fix finviz tests

* fix fmp tests

* fix marketwatch tests

* corrected argument keywords in test_bt_model

* corrected argument keywords in test_bt_view

* refactor fa controller

* refactor marketwatch view

* refactor gov controller

* fix tests fa av

* fix tests elect

* fix dcf tests

* fix polygon tests

* fix fmp tests

* fix quiverquant tests

* fix yahoofinance fa tests

* fix more fa tests

* fix insider tests

* fix more tests

* fix more tests

* fix options tests

* fix stock gov tests

* fix tests test_ba_controller

* fix tests for test_finviz_compare_model.py

* fixed 2 tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fix final tests

* fixed tests

* fixed tests

* Fix tests

* black

* forgot to black tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* flakefix

* Tests + code : Stocks / Discovery

* fix tests

* added recorder

* fixed tests

* fixed tests

* black

* black

* remove unused imports

* refactor display raw

* sia dicts fix

* pylint

* linting

* remove dangerous default

* fix tests

* fix beta model test

* black

* skip screener qa test

* change sector path to sectors

* update tests readme

* fix metric defaults

* black

* substitute lost ticker

* defaults cpic

* another round on sia

* refactor cramer

* reduce default tweets on sentiment

* refactor yf hist, corr, volume

* arkorders default

* refactor income, balance, cashflow

* refacto scorr, screener, getfinnhub

* refactor stockgrid

* ibkr refactor

* another round on stockgrid

* add dividens end point

* refactor discovery endpoints

* update docstrings with similar input

* refactor messages

* refactor ba

* refactor regioons

* refactor twitter sentiment

* refactor hist

* refactor regions

* give default to timeframe

* refactor bunch of defaults and arg names

* remove leftover imports

* refactor vwap

* let tests run

* fix tests

* fix stock tests

* fix stockanalysis tests

* flake

* MYPY

* Made important changes

* added fixes

* Fixed big issue

* Added fixes to tests

* fix qa tests

* fix tests

* fix 1 more test

* last stocks failing

* fix crypto test

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: montezdesousa <montezdesousa@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>

* fix portfolio tests

* change period to window

* update ca docstrings

* refactor get_similar_companies func

* Fixed

* Update CI

* Update CI 2

* Update CI 3

* Update dependencies

Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: montezdesousa <montezdesousa@gmail.com>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2022-08-17 15:28:54 +01:00
Colin Delahunty
ee0e1e9822 Country debt (#2311)
* Storing for now

* more

* added

* Added new feature

* Added fix to tests

* James changes

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-08-16 11:13:23 -04:00
Colin Delahunty
fc8dec2b7a More Options Tradier Fixes (#2309)
* Added features

* Fixed tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-08-16 10:30:39 -04:00
soggyomelette
a9755e2847 add a test for oanda key (#2297)
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-08-16 11:56:43 +02:00
Colin Delahunty
c6f12b779a Polygon candle from UTC to EST (#2304)
* Fixed getting data from polygon

* Fixed tests
2022-08-11 16:03:23 -04:00
Colin Delahunty
fa5e62eb50 Options tradier fix (#2295)
* Fixed issues

* Fixed tests
2022-08-11 07:33:23 -04:00
Colin Delahunty
317bca69ba Added yfinance as a source and converted to pandas read_html (#2286)
* Added yfinance as a source and converted to pandas read_html

* Fixed tests

* Forgot to add my helpers
2022-08-10 16:32:03 -04:00
Colin Delahunty
bd12c203a0 Fixed bad yfinance urls (#2282) 2022-08-09 17:10:32 -04:00
montezdesousa
9ff9d121a8 Rename ecocal to events and fix categories filtering (#2268)
* fix investpy categories filter

* change ecocal to events

* update website doc

* rewrite menu help test

* update menu command description

* update main.yml

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-08 14:19:33 +01:00
DidierRLopes
32c656b7f0 Remove portfolio optimisation shortcut (#2266)
* bring suffix over to tackle #2257

* remove po shorcut from ca

* remove po shortcut in ca test

* remove po shorcut from remaining places

* fix tests
2022-08-08 11:34:07 +01:00
soggyomelette
824373cad1 Adds santiment to keys menu in response to #2224 (#2238)
* 'Adds santiment key in keys_controller.py and adds tests for santiment and messari keys'

* fix linting

* fix linting

* Fixed \n issue

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-08-05 10:53:44 -04:00
Theodore Aptekarev
775d218891 Add parser for input command arguments (The Forward Slash PR) (#2064)
* Add helper command to filter unix paths and other edge cases

* Remove sort argument filtering from parsing

* Make --file arg mandatory for loading files

* Refactor queue parsing logic

* Enable adding controller level input parsing filters

* Remove the github repo path hack because it's not needed anymore

* Fix typos and line length linting

* Update unix path parser to match known extensions

* Update oss custom filters to not require space after slash arg

* Fix tests and failing linters

* Add pre-commit hook to check for reserved arguments validity

* Fix tests

* Fix finviz compare screener tests

* Fix screener test

* Fix screener test

* Fix float representation in pd dataframe on finviz screener tests

* Update test records

* Update test records

* Remove explicit float formatting in tests

* Update tests

* Remove prepending file argument

* Update long arguments that have lost their short default to file

* Update arguments in docs

* Update portfolio test data

* Fix econometrics/desc throwing error on empty df and fix tests

* Update tests

* Fix econometrics load autocompletion

* Fix portfolio tests giving different results every time

* Allow loading openbb scripts from arbitrary path

* Fix passing path as a terminal argument

* Fix guess game being case sensitive

* Silence bandit warning about using pseudo-random generators

* Update gov tests

* Fix screener sort fields that have forward slash

* Make controllers apply custom argument filters on entry

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-05 12:51:23 +03:00
montezdesousa
1413456bd9 Ecocal improve (#2225)
* fix available countries and title

* fix title

* capitalize headers

* display just one day by default

* default all countries & high imporatnce

* format output

* fix display to standard date yyyy/mm/dd

* rewrite expected ecocal test

* change date format slash to dash

* mypy

* complete description

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-08-04 09:29:47 +01:00
Colin Delahunty
7007e5857c Fixed Jim Cramer (#2246)
* Fixed small issue

* Fixing tests
2022-08-03 16:23:13 -04:00