Skip to main content

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

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): fmp.NoneTrue
chamberLiteral['house', 'senate', 'all']Government Chamber.allTrue
limitAnnotated[int, Ge(ge=0)]The number of data entries to return.100True

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

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
dateUnion[date, str]The date of the data.
transaction_datedateDate of Transaction.
representativestrName of Representative.