---
source_url: https://docs.dolphindb.cn/zh/funcs/i/irDepositPricer.html
fetched_at: 2026-05-19T09:28:13Z
category: funcs
title: irDepositPricer
sha1: c859ab4fcac9abd60b4d524b398f10008c78ba30
---

# irDepositPricer

首发版本：3.00.4

## 语法

`irDepositPricer(instrument, pricingDate,
discountCurve)`

## 详情

计算存款（Certificate of Deposit, CD）的定价。

## 参数

注意：所有输入向量必须等长，输入标量将自动扩展以匹配其它向量的长度。

**instrument** INSTRUMENT 类型标量或向量，一个 Deposit 对象，表示需要定价的存款。

**pricingDate** DATE 类型标量或向量，表示定价日期。

**discountCurve** MKTDATA 类型标量或向量，一个 IrYieldCurve 对象，表示用于计算折现因子的即期曲线。

## 返回值

DOUBLE 类型标量或向量。

## 例子

```dolphindb
deposit =  {
    "productType": "Cash",
    "assetType": "Deposit",
    "start": 2025.05.15,
    "maturity": 2025.08.15,
    "rate": 0.02,
    "dayCountConvention": "Actual360",
    "notionalCurrency": "CNY",
    "notionalAmount": 1E6,
    "payReceive": "Receive"
}
rate = deposit["rate"]
instrument = parseInstrument(deposit)
print(instrument)
pricingDate = 2025.06.10
curve_dict = {
    "mktDataType": "Curve",
    "curveType": "IrYieldCurve",
    "referenceDate": pricingDate,
    "currency": "CNY",
    "dayCountConvention": "Actual365",
    "compounding": "Continuous",  //连续复利
    "interpMethod": "Linear",
    "extrapMethod": "Flat",
    "frequency": "Annual",
    "dates":[2025.07.25, 2030.09.25],
    "values":[0.015, 0.015]
}
discountCurve = parseMktData(curve_dict)
irDepositPricer(instrument,2025.06.10,discountCurve)   // output:1002388.613154108868911
irDepositPricer([instrument, instrument],pricingDate,discountCurve)
irDepositPricer(instrument,[pricingDate, pricingDate, pricingDate],discountCurve)
irDepositPricer(instrument,pricingDate,[discountCurve, discountCurve, discountCurve])
```

**相关函数：**[parseInstrument](../p/parseInstrument.html)，[parseMktData](../p/parseMktData.html)
