finance.futures_price
Calculates the theoretical futures price from spot, risk-free rate, dividend yield, and time to expiry using a continuous-compounding cost-of-carry model.
Instructions
연속복리 보유비용 모형의 선물 이론가격을 계산한다. F = S x exp((r - q) x T). spot 은 양수, risk_free_rate 와 dividend_yield(q, 기본 0)는 연속복리 연율, time_to_expiry 는 0 초과 연 단위, 모두 Decimal 문자열. 결과는 소수 8자리. 이산복리 이율을 그대로 넣으면 값이 어긋난다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | ||
| dividend_yield | No | 0 | |
| risk_free_rate | Yes | ||
| time_to_expiry | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| carry_rate | Yes | ||
| futures_price | Yes |