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
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): fmp.
chamber: Literal['house', 'senate', 'all']
Default: all
Government Chamber.
limit: int
The number of data entries to return.
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): fmp.
chamber: Literal['house', 'senate', 'all']
Default: all
Government Chamber.
limit: int
The number of data entries to return.
Returns
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
symbol: str
Symbol representing the entity requested in the data.
date: date | str
The date of the data.
transaction_date: date
Date of Transaction.
representative: str
Name of Representative.
symbol: str
Symbol representing the entity requested in the data.
date: 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.