mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 00:12:29 +00:00
* add first iteration of content for Terminal Pro * Update index.md * Update dashboards.md * Update folders.md * Update grouping.md * Update report.md * Update templates.md * Update quick-start.md * Update index.md * Update index.md * Update home.md * Update news.md * Update index.md * Update index.md * Update index.md * Update data-provider.md * Update chat-with-widget.md * Update data-manipulation.md * Update forecasting.md * fix: images self closing tags * fix: only pro visitors can see pro * inter font * improve SEO content and restructuring * add new package for toggle on tutorials * move folder around * improve main page of each prod * small updates and improvements * fix logo above * small improvement in headtitle for portfolio funcs * fix typos from OpenAI's GPT-4 * fix _category_ json * remove generic SEO words * add script that generates SEO for documentation * add missing file * remove sdk warning message * fix links for andrew --------- Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
49 lines
1.4 KiB
Markdown
Vendored
49 lines
1.4 KiB
Markdown
Vendored
---
|
|
title: attrib
|
|
description: The page provides detailed information on how to use the 'attrib' command
|
|
in order to display portfolio attribution compared to the S&P 500. It invites to
|
|
choose between relative or absolute attribution values and to view raw attribution
|
|
values in a table. The users can select the period for which they want to calculate
|
|
the attribution.
|
|
keywords:
|
|
- portfolio attribution
|
|
- S&P 500 comparison
|
|
- attribution calculation
|
|
- relative attribution values
|
|
- absolute attribution values
|
|
- attrib command
|
|
- raw attribution values
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="portfolio/attrib - Reference | OpenBB Terminal Docs" />
|
|
|
|
Displays sector attribution of the portfolio compared to the S&P 500
|
|
|
|
### Usage
|
|
|
|
```python
|
|
attrib [-p {mtd,qtd,ytd,3m,6m,1y,3y,5y,10y,all}] [-t {relative,absolute}] [--raw [RAW]]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| period | Period in which to calculate attribution | all | True | mtd, qtd, ytd, 3m, 6m, 1y, 3y, 5y, 10y, all |
|
|
| type | Select between relative or absolute attribution values | relative | True | relative, absolute |
|
|
| raw | View raw attribution values in a table | False | True | None |
|
|
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
2022 Nov 03, 23:37 (🦋) /portfolio/ $ attrib -p 3m
|
|
```
|
|
---
|