mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-29 12:43:48 +00:00
* Adding versioning to docs --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: tehcoderer <me@tehcoderer.com>
946 B
Vendored
946 B
Vendored
title, description
| title | description |
|---|---|
| show | OpenBB SDK Function |
show
Get portfolio transactions
Source Code: [link]
openbb.portfolio.show(portfolio_engine: portfolio_engine.PortfolioEngine)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations. Use portfolio.load to create a PortfolioEngine. |
None | False |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Portfolio transactions |
Examples
from openbb_terminal.sdk import openbb
p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv")
output = openbb.portfolio.show(p)