> For the complete documentation index, see [llms.txt](https://help.deepsearch.com/dp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.deepsearch.com/dp/api/func/event/portfolio/analyzeportfolioreturns.md).

# AnalyzePortfolioReturns

### Function specification

```
AnalyzePortfolioReturns(portfolio, benchmark)
```

### Parameters

| Parameter | Type             | Description                   |
| --------- | ---------------- | ----------------------------- |
| portfolio | PortfolioReturns | ComputePortfoilioReturns() 결과 |
| benchmark | string           | 벤치마크 인덱스 : KOSPI, KOSDAQ      |

### Result

{% content-ref url="/pages/-MX1W7NNFMRmLnJn42NC" %}
[Result:PortfolioAnalysis](/dp/api/result_layout/result-portfolioanalysis.md)
{% endcontent-ref %}

### Examples

```
> AnalyzePortfolioReturns(ComputePortfolioReturns([삼성전자, LG전자, 네이버], 2013-01-01, \
            2018-12-31, "equal"), KOSPI)
> AnalyzePortfolioReturns(ComputePortfolioReturns(상위(인공지능 관련 기업,10), 2013-01-01, \
            2018-12-31, "equal"), KOSPI)
```
