Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/warrant-pricing.md
T

153 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 金融 / 权证 / 定价
## `warrantBenchClose(endt)`
声明:function
返回标的收盘价,与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------ |
| `endt` | datetime | 指定日 |
返回:float
## `warrantBenchId()`
声明:function
返回标的代码
<!-- tags: 金融 权证 定价 返回 获取 -->
返回:string
## `warrantBenchVolatility(endt)`
声明:function
返回标的证券年波动率(%),标的证券去年到今年截止日(刚好一年)的指定日波动率(%),周期为日线。与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------ |
| `endt` | datetime | 指定日 |
返回:float
## `warrantDurationDay(end_t)`
声明:function
返回剩余存续期限(天),即当前日与行权截止日之间相距的天数
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | --------- | ------------------ |
| `end_t` | date_time | 日期类型,截止日期 |
返回:real
## `warrantDurationMonth(end_t)`
声明:function
返回剩余存续期限(月),即当前日与行权截止日之间相距的月数
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------ |
| `end_t` | datetime | 日期类型,截止日期 |
返回:float
## `warrantGearing(end_t)`
声明:function
返回杠杆倍数,标的证券价格/(权证价格/行权比例),与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------ |
| `end_t` | datetime | 日期,截止日 |
返回:float
## `warrantNZjz(end_t)`
声明:function
返回内在价值,与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------ |
| `end_t` | datetime | 日期类型,截止日期 |
返回:float
## `warrantPriceByBS(end_t)`
声明:function
返回B-S理论价值,若权证性质为认购,则返回0,若权证性质为认沽,则返回1。与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------ |
| `end_t` | datetime | 日期,截止日 |
返回:bool
## `warrantSJJZ(end_t)`
声明:function
返回时间价值,即权证价格 - 内在价值,与系统证券pn_stock()有关
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------ |
| `end_t` | datetime | 日期类型,截止日期 |
返回:float
## `warrantYHBDL(end_t, rf)`
声明:function
返回隐含波动率(%),利用权证性质认沽、标的收盘、权证行权价、无风险收益率(%)、权证现价和剩余存续期限来求出隐含波动率(%)
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rf` | float | 无风险收益率(% |
返回:float
## `warrantYJL(end_t)`
声明:function
返回溢价率(%)
<!-- tags: 金融 权证 定价 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------ |
| `end_t` | datetime | 日期类型,截止日期 |
返回:float