You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(quote)!: remove the derived QuoteTick.midpoint column (#1201)
* feat(quote)!: remove the derived QuoteTick.midpoint column
The engine-vs-terminal audit flagged QuoteTick.midpoint as a client-side derivation: the parser computed (bid + ask) / 2 and surfaced it as a column the wire never sends. The terminal's gRPC bridge is pure pass-through and emits no midpoint for quotes — this is the same class as the already-removed derive_ohlcvc and local greeks calc. The SDK's contract is to deliver exactly what the terminal delivers, so the derived column is removed.
Removed the midpoint synthesis from every tick codegen surface (parser, tdbe struct, rust/python arrow frames, python/typescript classes, cpp layout asserts) and the columns presence helper's derive_midpoint path, then regenerated. The QuoteTick struct, its Arrow/Polars column, the per-binding class fields, the C ABI struct (tail padding grows to keep the align(64) size), the MCP/server JSON serialisers, and the benches all drop it. IvTick.midpoint and MarketValueTick's integer midpoint are real server-sent values and are unchanged.
Breaking: the quote history / snapshot Arrow schema and the QuoteTick binding types no longer carry a midpoint column; compute (bid + ask) / 2 caller-side if needed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test: drop residual QuoteTick.midpoint references in projection tests
test_column_projection built two QuoteTick values with a midpoint field and
asserted midpoint in the projected column set. QuoteTick no longer carries that
column, so `cargo check --all-targets --features arrow,polars` failed with
E0560. Remove the field from both constructions and drop midpoint from the
expected column lists; the projection assertions now match the wire schema.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* style: rustfmt projection-test comment reflow
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: preview <noreply@anthropic.com>
0 commit comments