government_trades
Obtain government transaction data, including data from the Senate and the House of Representatives.
Examples
from openbb import obb
obb.equity.ownership.government_trades(symbol='AAPL', chamber='all', provider='fmp')
obb.equity.ownership.government_trades(limit=500, chamber='all', provider='fmp')
Parameters
- standard
- fmp
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): fmp. | None | True |
chamber | Literal['house', 'senate', 'all'] | Government Chamber. | all | True |
limit | Annotated[int, Ge(ge=0)] | The number of data entries to return. | 100 | True |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): fmp. | None | True |
chamber | Literal['house', 'senate', 'all'] | Government Chamber. | all | True |
limit | Annotated[int, Ge(ge=0)] | The number of data entries to return. | 100 | True |
Returns
OBBject
results : List[GovernmentTrades]
Serializable results.
provider : Optional[Literal['fmp']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra : Dict[str, Any]
Extra info.
Data
- standard
- fmp
Name | Type | Description |
---|---|---|
symbol | str | Symbol representing the entity requested in the data. |
date | Union[date, str] | The date of the data. |
transaction_date | date | Date of Transaction. |
representative | str | Name of Representative. |
Name | Type | Description |
---|---|---|
symbol | str | Symbol representing the entity requested in the data. |
date | Union[date, str] | The date of the data. |
transaction_date | date | Date of Transaction. |
representative | str | Name of Representative. |
chamber | Literal['house', 'senate'] | Government Chamber - House or Senate. |
owner | str | Ownership status (e.g., Spouse, Joint). |
asset_type | str | Type of asset involved in the transaction. |
asset_description | str | Description of the asset. |
transaction_type | str | Type of transaction (e.g., Sale, Purchase). |
amount | str | Transaction amount range. |
comment | str | Additional comments on the transaction. |
url | str | Link to the transaction document. |