trades
Recent trades, with the buying and selling brokers.
Examples
from openbb import obb
# Time and sales with broker attribution.
obb.tmx.markets.trades(symbol='AC', provider='tmx')
Parameters
- standard
- tmx
symbol: str
Symbol to get data for.
limit: int | None
Default: 50
The number of trades to return, most recent first.
use_cache: bool | None
Default: True
Whether to use the on-disk response cache. Set to False to bypass.
Returns
results: EquityTrades
Serializable results.
provider: str | None
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- tmx
date: datetime | str
The date of the data.
symbol: str
Symbol representing the entity requested in the data.
price: float | None
The price the trade printed at.
volume: int | None
The number of shares traded.
exchange: str | None
The marketplace the trade printed on.
buyer_id: str | None
The broker number on the buy side.
buyer_name: str | None
The broker on the buy side.
seller_id: str | None
The broker number on the sell side.
seller_name: str | None
The broker on the sell side.