From 022a203ee67eba48b9820b6ab125bc853e7b3a4b Mon Sep 17 00:00:00 2001 From: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:42:03 +0200 Subject: [PATCH] Remove empty commands --- .../economy/openbb_economy/economy_router.py | 260 ------------------ .../news/openbb_news/news_router.py | 7 - .../extensions/qa/openbb_qa/qa_router.py | 91 ------ .../stocks/openbb_stocks/ca/ca_router.py | 61 ---- .../stocks/openbb_stocks/disc/__init__.py | 0 .../stocks/openbb_stocks/disc/disc_router.py | 111 -------- .../stocks/openbb_stocks/dps/dps_router.py | 72 ----- .../stocks/openbb_stocks/fa/fa_router.py | 122 -------- .../stocks/openbb_stocks/gov/gov_router.py | 68 ----- .../stocks/openbb_stocks/ins/ins_router.py | 98 ------- .../openbb_stocks/options/options_router.py | 31 --- .../stocks/openbb_stocks/stocks_router.py | 27 +- .../extensions/ta/openbb_ta/ta_router.py | 48 ---- 13 files changed, 11 insertions(+), 985 deletions(-) delete mode 100644 openbb_sdk/extensions/stocks/openbb_stocks/disc/__init__.py delete mode 100644 openbb_sdk/extensions/stocks/openbb_stocks/disc/disc_router.py diff --git a/openbb_sdk/extensions/economy/openbb_economy/economy_router.py b/openbb_sdk/extensions/economy/openbb_economy/economy_router.py index b2db78777a1..3656911e734 100644 --- a/openbb_sdk/extensions/economy/openbb_economy/economy_router.py +++ b/openbb_sdk/extensions/economy/openbb_economy/economy_router.py @@ -1,6 +1,5 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -18,14 +17,6 @@ router = Router(prefix="") # pylint: disable=unused-argument -@router.command -def corecpi( - cc: CommandContext, provider_choices: ProviderChoices -) -> OBBject[Empty]: # type: ignore - """CORECPI.""" - return OBBject(results=Empty()) - - @router.command(model="MajorIndicesConstituents") def const( cc: CommandContext, @@ -48,14 +39,6 @@ def cpi( return OBBject(results=Query(**locals()).execute()) -@router.command -def cpi_options( - cc: CommandContext, provider_choices: ProviderChoices -) -> OBBject[Empty]: - """Get the options for v3 cpi(options=True)""" - return OBBject(results=Empty()) - - @router.command(model="MajorIndicesEOD") def index( cc: CommandContext, @@ -87,246 +70,3 @@ def risk( ) -> OBBject[BaseModel]: """Market Risk Premium.""" return OBBject(results=Query(**locals()).execute()) - - -@router.command -def macro( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: # type: ignore - """Query EconDB for macro data.""" - return OBBject(results=Empty()) - - -@router.command -def macro_countries( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """MACRO_COUNTRIES.""" - return OBBject(results=Empty()) - - -@router.command -def macro_parameters( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """MACRO_PARAMETERS.""" - return OBBject(results=Empty()) - - -@router.command -def balance( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """BALANCE.""" - return OBBject(results=Empty()) - - -@router.command -def bigmac( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """BIGMAC.""" - return OBBject(results=Empty()) - - -@router.command -def country_codes( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """COUNTRY_CODES.""" - return OBBject(results=Empty()) - - -@router.command -def currencies( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """CURRENCIES.""" - return OBBject(results=Empty()) - - -@router.command -def debt( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """DEBT.""" - return OBBject(results=Empty()) - - -@router.command -def events( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """EVENTS.""" - return OBBject(results=Empty()) - - -@router.command -def fgdp( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """FGDP.""" - return OBBject(results=Empty()) - - -@router.command -def fred( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """FRED.""" - return OBBject(results=Empty()) - - -@router.command -def fred_search( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """FRED Search (was fred_notes).""" - return OBBject(results=Empty()) - - -@router.command -def futures( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """FUTURES. 2 sources""" - return OBBject(results=Empty()) - - -@router.command -def gdp( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """GDP.""" - return OBBject(results=Empty()) - - -@router.command -def glbonds( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """GLBONDS.""" - return OBBject(results=Empty()) - - -@router.command -def indices( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """INDICES.""" - return OBBject(results=Empty()) - - -@router.command -def overview( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """OVERVIEW.""" - return OBBject(results=Empty()) - - -@router.command -def perfmap( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """PERFMAP.""" - return OBBject(results=Empty()) - - -@router.command -def performance( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """PERFORMANCE.""" - return OBBject(results=Empty()) - - -@router.command -def revenue( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """REVENUE.""" - return OBBject(results=Empty()) - - -@router.command -def rgdp( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """RGDP.""" - return OBBject(results=Empty()) - - -@router.command -def rtps( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """RTPS.""" - return OBBject(results=Empty()) - - -@router.command -def search_index( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """SEARCH_INDEX.""" - return OBBject(results=Empty()) - - -@router.command -def spending( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """SPENDING.""" - return OBBject(results=Empty()) - - -@router.command -def trust( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """TRUST.""" - return OBBject(results=Empty()) - - -@router.command -def usbonds( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """USBONDS.""" - return OBBject(results=Empty()) - - -@router.command -def valuation( - cc: CommandContext, - provider_choices: ProviderChoices, -) -> OBBject[Empty]: - """VALUATION.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/news/openbb_news/news_router.py b/openbb_sdk/extensions/news/openbb_news/news_router.py index 88c0edba943..c0c76baddc8 100644 --- a/openbb_sdk/extensions/news/openbb_news/news_router.py +++ b/openbb_sdk/extensions/news/openbb_news/news_router.py @@ -3,7 +3,6 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -25,9 +24,3 @@ def globalnews( ) -> OBBject[BaseModel]: """Global News.""" return OBBject(results=Query(**locals()).execute()) - - -@router.command -def sectornews() -> OBBject[Empty]: # type: ignore - """Sector news.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/qa/openbb_qa/qa_router.py b/openbb_sdk/extensions/qa/openbb_qa/qa_router.py index 104e535437c..0d7cbd4f646 100644 --- a/openbb_sdk/extensions/qa/openbb_qa/qa_router.py +++ b/openbb_sdk/extensions/qa/openbb_qa/qa_router.py @@ -3,7 +3,6 @@ from typing import List, Literal import numpy as np import pandas as pd from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.router import Router from openbb_core.app.utils import ( basemodel_to_df, @@ -109,12 +108,6 @@ def capm(data: List[Data], target: str) -> OBBject[CAPMModel]: return OBBject(results=results) -@router.command(methods=["POST"]) -def qqplot() -> OBBject[Empty]: - """QQ Plot.""" - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def om( data: List[Data], @@ -188,42 +181,6 @@ def kurtosis(data: List[Data], target: str, window: PositiveInt) -> OBBject[List return OBBject(results=results) -@router.command(methods=["POST"]) -def pick() -> OBBject[Empty]: - """Pick.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def spread() -> OBBject[Empty]: - """Spread.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def rolling() -> OBBject[Empty]: - """Rolling.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def var() -> OBBject[Empty]: - """Value at Risk.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def line() -> OBBject[Empty]: - """Line.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def hist() -> OBBject[Empty]: - """Histogram.""" - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def unitroot( data: List[Data], @@ -278,12 +235,6 @@ def unitroot( return OBBject(results=unitroot_summary) -@router.command(methods=["POST"]) -def beta() -> OBBject[Empty]: - """Beta.""" - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def sh( data: List[Data], target: str, rfr: float = 0.0, window: PositiveInt = 252 @@ -367,30 +318,6 @@ def so( return OBBject(results=results) -@router.command(methods=["POST"]) -def cusum() -> OBBject[Empty]: - """Cumulative Sum.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def raw() -> OBBject[Empty]: - """Raw.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def cdf() -> OBBject[Empty]: - """Cumulative Distribution Function.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def decompose() -> OBBject[Empty]: - """Decompose.""" - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def skew(data: List[Data], target: str, window: PositiveInt) -> OBBject[List[Data]]: """Skewness. @@ -443,24 +370,6 @@ def quantile( return OBBject(results=results) -@router.command(methods=["POST"]) -def bw() -> OBBject[Empty]: - """Bandwidth.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def es() -> OBBject[Empty]: - """Expected Shortfall.""" - return OBBject(results=Empty()) - - -@router.command(methods=["POST"]) -def acf() -> OBBject[Empty]: - """Autocorrelation Function.""" - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def summary(data: List[Data], target: str) -> OBBject[SummaryModel]: """Summary. diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/ca/ca_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/ca/ca_router.py index bdc4a11b64b..6ea6f83d4b7 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/ca/ca_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/ca/ca_router.py @@ -3,7 +3,6 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -25,63 +24,3 @@ def peers( ) -> OBBject[BaseModel]: """Company peers.""" return OBBject(results=Query(**locals()).execute()) - - -@router.command -def balance() -> OBBject[Empty]: # type: ignore - """Company balance sheet.""" - return OBBject(results=Empty()) - - -@router.command -def cashflow() -> OBBject[Empty]: # type: ignore - """Company cashflow.""" - return OBBject(results=Empty()) - - -@router.command -def hcorr() -> OBBject[Empty]: # type: ignore - """Company historical correlation.""" - return OBBject(results=Empty()) - - -@router.command -def hist() -> OBBject[Empty]: # type: ignore - """Company historical prices.""" - return OBBject(results=Empty()) - - -@router.command -def income() -> OBBject[Empty]: # type: ignore - """Company income statement.""" - return OBBject(results=Empty()) - - -@router.command -def scorr() -> OBBject[Empty]: # type: ignore - """Company sector correlation.""" - return OBBject(results=Empty()) - - -@router.command -def screener() -> OBBject[Empty]: # type: ignore - """Company screener.""" - return OBBject(results=Empty()) - - -@router.command -def sentiment() -> OBBject[Empty]: # type: ignore - """Company sentiment.""" - return OBBject(results=Empty()) - - -@router.command -def similar() -> OBBject[Empty]: # type: ignore - """Company similar.""" - return OBBject(results=Empty()) - - -@router.command -def volume() -> OBBject[Empty]: # type: ignore - """Company volume.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/disc/__init__.py b/openbb_sdk/extensions/stocks/openbb_stocks/disc/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/disc/disc_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/disc/disc_router.py deleted file mode 100644 index a3ac1e435af..00000000000 --- a/openbb_sdk/extensions/stocks/openbb_stocks/disc/disc_router.py +++ /dev/null @@ -1,111 +0,0 @@ -from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty -from openbb_core.app.router import Router - -router = Router(prefix="/disc") - - -@router.command -def active() -> OBBject[Empty]: # type: ignore - """Most active stocks by intraday trade volumes.""" - return OBBject(results=Empty()) - - -@router.command -def arkord() -> OBBject[Empty]: # type: ignore - """Order by ARK INvestment Management LLC.""" - return OBBject(results=Empty()) - - -@router.command -def asc() -> OBBject[Empty]: # type: ignore - """Small cap stocks with revenue and earnings growth more than 25%.""" - return OBBject(results=Empty()) - - -@router.command -def dividends() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - -@router.command -def filings() -> OBBject[Empty]: # type: ignore - """The most-recent form submissions to the SEC.""" - return OBBject(results=Empty()) - - -@router.command -def fipo() -> OBBject[Empty]: # type: ignore - """Future IPOs dates.""" - return OBBject(results=Empty()) - - -@router.command -def gainers() -> OBBject[Empty]: # type: ignore - """Show latest top gainers.""" - return OBBject(results=Empty()) - - -@router.command -def gtech() -> OBBject[Empty]: # type: ignore - """Tech stocks with revenue and earnings growth more than 25%.""" - return OBBject(results=Empty()) - - -@router.command -def hotpenny() -> OBBject[Empty]: # type: ignore - """Today's hot penny stocks.""" - return OBBject(results=Empty()) - - -@router.command -def ipo() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - -@router.command -def losers() -> OBBject[Empty]: # type: ignore - """Show latest top losers.""" - return OBBject(results=Empty()) - - -@router.command -def lowfloat() -> OBBject[Empty]: # type: ignore - """Low float stocks under 10M shares float.""" - return OBBject(results=Empty()) - - -@router.command -def pipo() -> OBBject[Empty]: # type: ignore - """Past IPOs dates.""" - return OBBject(results=Empty()) - - -@router.command -def rtat() -> OBBject[Empty]: # type: ignore - """Top 10 retail traded stocks per day.""" - return OBBject(results=Empty()) - - -@router.command -def trending() -> OBBject[Empty]: # type: ignore - """Trending news.""" - return OBBject(results=Empty()) - - -@router.command -def ugs() -> OBBject[Empty]: # type: ignore - """Undervalued stocks with revenue and earnings growth above 25%.""" - return OBBject(results=Empty()) - - -@router.command -def ulc() -> OBBject[Empty]: # type: ignore - """Potentially undervalued large cap stocks.""" - return OBBject(results=Empty()) - - -@router.command -def upcoming() -> OBBject[Empty]: # type: ignore - """Upcoming earnings release dates.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/dps/dps_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/dps/dps_router.py index 2670a591d70..765ffb7349b 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/dps/dps_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/dps/dps_router.py @@ -1,75 +1,3 @@ -from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.router import Router router = Router(prefix="/dps") - - -@router.command -def psi() -> OBBject[Empty]: # type: ignore - """Price vs short interest volume""" - return OBBject(results=Empty()) - - -@router.command -def ctb() -> OBBject[Empty]: # type: ignore - """Cost to borrow of stocks.""" - return OBBject(results=Empty()) - - -@router.command -def dpotc() -> OBBject[Empty]: # type: ignore - """Dark pools (ATS) vs OTC data.""" - return OBBject(results=Empty()) - - -@router.command -def ftd() -> OBBject[Empty]: # type: ignore - """Fails-to-deliver data.""" - return OBBject(results=Empty()) - - -@router.command -def hsi() -> OBBject[Empty]: # type: ignore - """Show top high short interest stocks of over 20% ratio.""" - return OBBject(results=Empty()) - - -@router.command -def pos() -> OBBject[Empty]: # type: ignore - """Dark pool short position.""" - return OBBject(results=Empty()) - - -@router.command -def prom() -> OBBject[Empty]: # type: ignore - """Promising tickers based on dark pool shares regression.""" - return OBBject(results=Empty()) - - -@router.command -def psi_q() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - -@router.command -def psi_sg() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - -@router.command -def shorted() -> OBBject[Empty]: # type: ignore - """Most shorted stocks.""" - return OBBject(results=Empty()) - - -@router.command -def sidtc() -> OBBject[Empty]: # type: ignore - """Short interest and days to cover.""" - return OBBject(results=Empty()) - - -@router.command -def spos() -> OBBject[Empty]: # type: ignore - """Net short vs position.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/fa/fa_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/fa/fa_router.py index dffc42e7ad8..45786359694 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/fa/fa_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/fa/fa_router.py @@ -3,7 +3,6 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -16,12 +15,6 @@ from pydantic import BaseModel router = Router(prefix="/fa") -@router.command -def analysis() -> OBBject[Empty]: # type: ignore - """Analyse SEC filings with the help of machine learning.""" - return OBBject(results=Empty()) - - @router.command(model="BalanceSheet") def balance( cc: CommandContext, @@ -99,18 +92,6 @@ def comsplit( return OBBject(results=Query(**locals()).execute()) -@router.command -def customer() -> OBBject[Empty]: # type: ignore - """List of customers of the company.""" - return OBBject(results=Empty()) - - -@router.command -def dcfc() -> OBBject[Empty]: # type: ignore - """Determine the (historical) discounted cash flow.""" - return OBBject(results=Empty()) - - @router.command(model="HistoricalDividends") def divs( cc: CommandContext, @@ -122,12 +103,6 @@ def divs( return OBBject(results=Query(**locals()).execute()) -@router.command -def dupont() -> OBBject[Empty]: # type: ignore - """Detailed breakdown for Return on Equity (RoE).""" - return OBBject(results=Empty()) - - @router.command(model="EarningsCalendar") def earning( cc: CommandContext, @@ -150,18 +125,6 @@ def emp( return OBBject(results=Query(**locals()).execute()) -@router.command -def enterprise() -> OBBject[Empty]: # type: ignore - """Enterprise value.""" - return OBBject(results=Empty()) - - -@router.command -def epsfc() -> OBBject[Empty]: # type: ignore - """Earnings Estimate by Analysts - EPS.""" - return OBBject(results=Empty()) - - @router.command(model="AnalystEstimates") def est( cc: CommandContext, @@ -173,35 +136,6 @@ def est( return OBBject(results=Query(**locals()).execute()) -@router.command -def fama_coe() -> OBBject[Empty]: # type: ignore - """Fama French 3 Factor Model - Coefficient of Earnings.""" - return OBBject(results=Empty()) - - -@router.command -def fama_raw() -> OBBject[Empty]: # type: ignore - """Fama French 3 Factor Model - Raw Data.""" - return OBBject(results=Empty()) - - -@router.command -def fraud() -> OBBject[Empty]: # type: ignore - """Key fraud ratios including M-score, Z-score and McKee.""" - return OBBject(results=Empty()) - - -@router.command -def growth() -> OBBject[Empty]: # type: ignore - """Growth of financial statement items and ratios.""" - return OBBject(results=Empty()) - - -@router.command -def historical_5() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - @router.command(model="IncomeStatement") def income( cc: CommandContext, @@ -246,11 +180,6 @@ def ins_own( return OBBject(results=Query(**locals()).execute()) -@router.command -def key() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - @router.command(model="KeyMetrics") def metrics( cc: CommandContext, @@ -273,17 +202,6 @@ def mgmt( return OBBject(results=Query(**locals()).execute()) -@router.command -def mktcap() -> OBBject[Empty]: # type: ignore - """Obtain the market capitalization or enterprise value.""" - return OBBject(results=Empty()) - - -@router.command # CHECK IF NEWS IS NEEDED HERE -def news() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - @router.command(model="CompanyOverview") def overview( cc: CommandContext, @@ -339,18 +257,6 @@ def ratios( return OBBject(results=Query(**locals()).execute()) -@router.command -def rating() -> OBBject[Empty]: # type: ignore - """Analyst prices and ratings over time of the company.""" - return OBBject(results=Empty()) - - -@router.command -def revfc() -> OBBject[Empty]: # type: ignore - """Earning Estimate by Analysts - Revenue.""" - return OBBject(results=Empty()) - - @router.command(model="RevenueGeographic") def revgeo( cc: CommandContext, @@ -373,28 +279,6 @@ def revseg( return OBBject(results=Query(**locals()).execute()) -@router.command -def rot() -> OBBject[Empty]: # type: ignore - """Number of analyst ratings over time on a monthly basis.""" - return OBBject(results=Empty()) - - -@router.command -def score() -> OBBject[Empty]: # type: ignore - """Value investing scores for any time period.""" - return OBBject(results=Empty()) - - -@router.command -def sec() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - -@router.command -def shares() -> OBBject[Empty]: # type: ignore - return OBBject(results=Empty()) - - @router.command(model="ShareStatistics") def shrs( cc: CommandContext, @@ -417,12 +301,6 @@ def split( return OBBject(results=Query(**locals()).execute()) -@router.command -def supplier() -> OBBject[Empty]: # type: ignore - """List of suppliers of the company.""" - return OBBject(results=Empty()) - - @router.command(model="EarningsCallTranscript") def transcript( cc: CommandContext, diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/gov/gov_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/gov/gov_router.py index f1ed355720d..987e8e2002d 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/gov/gov_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/gov/gov_router.py @@ -1,74 +1,6 @@ """Due Diligence Router.""" -from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.router import Router router = Router(prefix="/gov") - - -@router.command -def contracts() -> OBBject[Empty]: # type: ignore - """Return government contracts.""" - return OBBject(results=Empty()) - - -@router.command -def government_trading() -> OBBject[Empty]: # type: ignore - """Return government trading.""" - return OBBject(results=Empty()) - - -@router.command # Isn't this one the same as the one above? -def gtrades() -> OBBject[Empty]: # type: ignore - """Return government trades.""" - return OBBject(results=Empty()) - - -@router.command -def histcont() -> OBBject[Empty]: # type: ignore - """Historical quarterly government contracts.""" - return OBBject(results=Empty()) - - -@router.command -def lastcontracts() -> OBBject[Empty]: # type: ignore - """Return last government contracts given out.""" - return OBBject(results=Empty()) - - -@router.command -def lasttrades() -> OBBject[Empty]: # type: ignore - """Last trades.""" - return OBBject(results=Empty()) - - -@router.command -def lobbying() -> OBBject[Empty]: # type: ignore - """Corporate lobbying details.""" - return OBBject(results=Empty()) - - -@router.command -def qtrcontracts() -> OBBject[Empty]: # type: ignore - """Quarterly government contracts analysis.""" - return OBBject(results=Empty()) - - -@router.command -def topbuys() -> OBBject[Empty]: # type: ignore - """Show most purchased stocks.""" - return OBBject(results=Empty()) - - -@router.command -def toplobbying() -> OBBject[Empty]: # type: ignore - """Top corporate lobbying tickers.""" - return OBBject(results=Empty()) - - -@router.command -def topsells() -> OBBject[Empty]: # type: ignore - """Show most sold stocks.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/ins/ins_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/ins/ins_router.py index ebf2307817c..fa44e79cb67 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/ins/ins_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/ins/ins_router.py @@ -1,104 +1,6 @@ """Due Diligence Router.""" -from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.router import Router router = Router(prefix="/ins") - - -@router.command -def act() -> OBBject[Empty]: # type: ignore - """Insider activity over time.""" - return OBBject(results=Empty()) - - -@router.command -def blcp() -> OBBject[Empty]: # type: ignore - """Big latest CEO/CFO purchaces ($25k+).""" - return OBBject(results=Empty()) - - -@router.command -def blcs() -> OBBject[Empty]: # type: ignore - """Big latest CEO/CFO sales ($100k+).""" - return OBBject(results=Empty()) - - -@router.command -def blip() -> OBBject[Empty]: # type: ignore - """Big latest insider purchaces ($25+).""" - return OBBject(results=Empty()) - - -@router.command -def blis() -> OBBject[Empty]: # type: ignore - """Big latest insider sales ($100k+).""" - return OBBject(results=Empty()) - - -@router.command -def blop() -> OBBject[Empty]: # type: ignore - """Big latest officer purchaces ($25k+).""" - return OBBject(results=Empty()) - - -@router.command -def blos() -> OBBject[Empty]: # type: ignore - """Big latest officer sales ($100k+).""" - return OBBject(results=Empty()) - - -@router.command # Can't use filter because it's a python keyword -def filt() -> OBBject[Empty]: # type: ignore - """Filter insiders based on preset.""" - return OBBject(results=Empty()) - - -@router.command -def lcb() -> OBBject[Empty]: # type: ignore - """Latest cluster buys.""" - return OBBject(results=Empty()) - - -@router.command -def lins() -> OBBject[Empty]: # type: ignore - """Last insider trading of the company.""" - return OBBject(results=Empty()) - - -@router.command -def lip() -> OBBject[Empty]: # type: ignore - """Latest insider purchaces.""" - return OBBject(results=Empty()) - - -@router.command -def lis() -> OBBject[Empty]: # type: ignore - """Latest insider sales.""" - return OBBject(results=Empty()) - - -@router.command -def lit() -> OBBject[Empty]: # type: ignore - """Latest insider trading (all filings).""" - return OBBject(results=Empty()) - - -@router.command -def lpsb() -> OBBject[Empty]: # type: ignore - """Latest penny stock buys.""" - return OBBject(results=Empty()) - - -@router.command -def print_insider_data() -> OBBject[Empty]: # type: ignore - """Print insider data.""" - return OBBject(results=Empty()) - - -@router.command -def stats() -> OBBject[Empty]: # type: ignore - """Insider stats of the company.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/options/options_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/options/options_router.py index fe2f16bd102..c1fb54315e1 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/options/options_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/options/options_router.py @@ -2,7 +2,6 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -24,33 +23,3 @@ def chains( ) -> OBBject[BaseModel]: """Get the complete options chain for a ticker.""" return OBBject(results=Query(**locals()).execute()) - - -@router.command -def eodchain() -> OBBject[Empty]: # type: ignore - """Gets option chain at a specific date.""" - return OBBject(results=Empty()) - - -@router.command -def hist() -> OBBject[Empty]: # type: ignore - """Get historical data for a single option contract.""" - return OBBject(results=Empty()) - - -@router.command -def info() -> OBBject[Empty]: # type: ignore - """Display option information (volatility, IV rank, etc.).""" - return OBBject(results=Empty()) - - -@router.command -def pcr() -> OBBject[Empty]: # type: ignore - """Display historical rolling put/call ratio for ticker over a defined window.""" - return OBBject(results=Empty()) - - -@router.command -def unu() -> OBBject[Empty]: # type: ignore - """Show unusual options activity.""" - return OBBject(results=Empty()) diff --git a/openbb_sdk/extensions/stocks/openbb_stocks/stocks_router.py b/openbb_sdk/extensions/stocks/openbb_stocks/stocks_router.py index a90ce6508f2..701e3006807 100644 --- a/openbb_sdk/extensions/stocks/openbb_stocks/stocks_router.py +++ b/openbb_sdk/extensions/stocks/openbb_stocks/stocks_router.py @@ -4,7 +4,6 @@ from openbb_core.app.model.command_context import CommandContext from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.provider_interface import ( ExtraParams, ProviderChoices, @@ -16,25 +15,27 @@ from pydantic import BaseModel from openbb_stocks.ca.ca_router import router as ca_router from openbb_stocks.dd.dd_router import router as dd_router -from openbb_stocks.disc.disc_router import router as disc_router -from openbb_stocks.dps.dps_router import router as dps_router from openbb_stocks.fa.fa_router import router as fa_router -from openbb_stocks.gov.gov_router import router as gov_router -from openbb_stocks.ins.ins_router import router as ins_router from openbb_stocks.options.options_router import router as options_router +# TODO: Uncomment once they have some commands. +# from openbb_stocks.gov.gov_router import router as gov_router +# from openbb_stocks.ins.ins_router import router as ins_router +# from openbb_stocks.dps.dps_router import router as dps_router + + router = Router(prefix="") router.include_router(fa_router) router.include_router(ca_router) router.include_router(dd_router) -router.include_router(dps_router) -router.include_router(disc_router) -router.include_router(gov_router) -router.include_router(ins_router) router.include_router(options_router) +# router.include_router(dps_router) +# router.include_router(gov_router) +# router.include_router(ins_router) -@router.command(model="StockEOD") + +@router.command(model="StockEOD", include_in_schema=False) def load( cc: CommandContext, provider_choices: ProviderChoices, @@ -67,12 +68,6 @@ def multiples( return OBBject(results=Query(**locals()).execute()) -@router.command -def tob() -> OBBject[Empty]: - """View top of book for loaded ticker (US exchanges only).""" - return OBBject(results=Empty()) - - @router.command(model="StockSearch") def search( cc: CommandContext, diff --git a/openbb_sdk/extensions/ta/openbb_ta/ta_router.py b/openbb_sdk/extensions/ta/openbb_ta/ta_router.py index d7cce6b9c50..ec9c22f996b 100644 --- a/openbb_sdk/extensions/ta/openbb_ta/ta_router.py +++ b/openbb_sdk/extensions/ta/openbb_ta/ta_router.py @@ -2,7 +2,6 @@ from typing import List, Literal, Optional import pandas as pd from openbb_core.app.model.obbject import OBBject -from openbb_core.app.model.results.empty import Empty from openbb_core.app.router import Router from openbb_core.app.utils import ( basemodel_to_df, @@ -273,15 +272,6 @@ def adosc( return OBBject(results=results) -@router.command(methods=["POST"]) -def tv() -> OBBject[Empty]: - """TradingView.""" - - # TODO : probably out of scope for now - - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def bbands( data: List[Data], @@ -353,15 +343,6 @@ def bbands( return OBBject(results=results) -@router.command(methods=["POST"]) -def multi() -> OBBject[Empty]: - """Plot multiple indicators on the same chart.""" - - # TODO : probably out of scope for now - - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def zlma( data: List[Data], @@ -627,16 +608,6 @@ def vwap( return OBBject(results=results) -@router.command(methods=["POST"]) -def recom() -> OBBject[Empty]: - """Recommendation.""" - - # TODO : this command does only a call to a Tradingview's endpoint - # thus, it should probably be implement on a provider level - - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def macd( data: List[Data], @@ -1154,16 +1125,6 @@ def rsi( return OBBject(results=results) -@router.command(methods=["POST"]) -def summary() -> OBBject[Empty]: - """Summary.""" - - # TODO : this command does only a call to a finbrain's endpoint - # thus, it should probably be implement on a provider level - - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def stoch( data: List[Data], @@ -1220,15 +1181,6 @@ def stoch( return OBBject(results=results) -@router.command(methods=["POST"]) -def rsp() -> OBBject[Empty]: - """Relative Strength Performance.""" - - # TODO : https://github.com/OpenBB-finance/OpenBBTerminal/issues/5167 - - return OBBject(results=Empty()) - - @router.command(methods=["POST"]) def kc( data: List[Data],