Spaces:
Build error
Build error
| from openbb_terminal.sdk import openbb | |
| from pydantic import BaseModel, Field | |
| from typing import Optional | |
| from workcell.integrations.types import PerspectiveTable | |
| class Input(BaseModel): | |
| ticker: str = Field(default="AAPL", description="A ticker value, like `AAPL`, etc...") | |
| def stocks_dd_sec(input: Input) -> PerspectiveTable: | |
| """List of SEC Filings. Gets a DataFrame of the recent SEC filings submitted by the company and a link to view each one. (openbb.stocks.dd.sec )""" | |
| df = openbb.stocks.dd.sec(input.ticker).reset_index() | |
| output = PerspectiveTable(data=df) | |
| return output | |