finance.option_payoff
Calculates an option’s expiration payoff from a spot price path for vanilla, digital, Asian, and barrier types, supporting calls and puts.
Instructions
옵션의 만기 payoff 를 계산한다. option_type 은 vanilla, digital(현금 지급), asian(산술평균), barrier(up_in, up_out, down_in, down_out). spot_path 는 기초자산 가격 문자열 목록이며 vanilla 와 digital 은 마지막 값만 쓴다. barrier 유형은 barrier 와 barrier_type 이 필수이고 결과는 소수 8자리. 만기 가치일 뿐 프리미엄이 아니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strike | Yes | ||
| barrier | No | ||
| is_call | No | ||
| spot_path | Yes | ||
| option_type | Yes | ||
| barrier_type | No | ||
| digital_cash | No | 1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| payoff | Yes | ||
| is_call | Yes | ||
| activated | No | ||
| option_type | Yes | ||
| terminal_spot | Yes |