Skip to content

docs(quote): refresh option Greek descriptions on SecurityCalcIndex - #586

Merged
hogan-yuan merged 1 commit into
mainfrom
feat/option-greeks-descriptions
Sep 16, 2026
Merged

hogan-yuan merged 1 commit into
mainfrom
feat/option-greeks-descriptions

Conversation

@hogan-yuan

Copy link
Copy Markdown
Member

Update the delta / gamma / theta / vega / rho field descriptions on SecurityCalcIndex (calc_indexes) across all six SDK layers to match the Calc Index interface docs.

Key change: theta is now a per-day value — the server divides the raw annualized theta by 365, so the returned value is already daily. Previously the docs said the raw value was annualized (×252) and had to be divided by 252. vega/rho keep the /100 note.

Doc comments only; C header and Node index.d.ts regenerated. No field or behaviour changes. clippy --all --all-features and cargo fmt --check pass.

🤖 Generated with Claude Code

Update the delta/gamma/theta/vega/rho field docs on SecurityCalcIndex
(calc_indexes) across all six SDK layers to match the Calc Index interface
documentation. theta is now documented as a per-day value — the server
divides the raw annualized value by 365, so the returned theta is already
daily (previously the docs said the raw value was annualized by 252 and had
to be divided by 252). vega/rho keep the /100 note. Doc comments only; the
C header and Node index.d.ts are regenerated. No field or behaviour changes.
@hogan-yuan
hogan-yuan marked this pull request as draft September 3, 2026 10:50
@hogan-yuan
hogan-yuan marked this pull request as ready for review September 16, 2026 06:54
hogan-yuan added a commit to longbridge/developers that referenced this pull request Sep 16, 2026
…1241)

Update the delta / gamma / theta / vega / rho response-field
descriptions on the Calc Index (calc_indexes) interface across all three
languages (zh-CN / zh-HK / en).

Key change: **theta now documents the per-day semantics** — the raw
value has been divided by 365 on the server to convert to a daily value
(previously the docs incorrectly said divide by 100). delta/gamma get
full descriptions; vega/rho reworded to the /100 form.

Source of truth: the 期权希腊字母 spec table. Matches the SDK
(longbridge/openapi#586), MCP, and CLI changes.
hogan-yuan added a commit to longbridge/longbridge-mcp that referenced this pull request Sep 16, 2026
…ation (#142)

## Changes
- **calc_indexes**: the Calc Index API's theta was fixed server-side to
return a per-day value (raw annualized value divided by 365 on the
server), so calc_indexes no longer divides theta by 252 — that would
double-normalize. Extracted the Greek normalization into
`normalize_greeks` (vega/100, rho/100; theta as-is).
- **option_quote**: the `option_quote` interface does not carry Greeks
(they come from the Calc Index interface), so it previously showed the
Greek fields but returned no data. It now also fetches
delta/gamma/theta/vega/rho via `calc_indexes` for the same symbols and
merges them into each quote (best-effort — a Greek lookup failure leaves
the quotes unchanged).

Matches longbridge/openapi#586 and the CLI change. build + clippy pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
hogan-yuan added a commit to longbridge/longbridge-terminal that referenced this pull request Sep 16, 2026
…y value) (#315)

The Calc Index API's theta was fixed server-side to return a per-day
value (the raw annualized value is now divided by 365 on the server), so
the CLI must no longer divide it by 252 — doing so under-reported theta.
Format theta with `fmt_decimal` like the other raw Greeks; vega/rho keep
their /100 normalization. Removed the now-unused `fmt_decimal_div252`
helper.

Matches longbridge/openapi#586 and the MCP change. build + clippy pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@hogan-yuan
hogan-yuan merged commit 1df0f56 into main Sep 16, 2026
56 checks passed
@hogan-yuan
hogan-yuan deleted the feat/option-greeks-descriptions branch September 16, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant