Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 16:17
· 17 commits to main since this release

Two changes need action when upgrading: bulk fetch is now off by default, and the Greeks tick structs gain a field, which breaks Rust code that builds them field by field and C or C++ code built against the 0.8.2 header. Both are described below with their migration.

Added

  • Binomial Greeks take implied_vol_method and exercise_style. implied_vol_method("out_of_the_money") takes each strike's volatility from its out-of-the-money option, and exercise_style prices the tree as american or european. Each binomial Greeks row now carries implied_vol_source, which names where its implied volatility came from. Available in every language, the local server and the MCP server.

Changed

  • Bulk fetch is opt-in. bulk_fetch now defaults to "off", so every query runs as one request in the server's own order. How a large pull can be split depends on what the server accepts, so the split is now a choice you make. To keep it, set bulk_fetch = "auto": config.bulk_fetch = "auto" in Python, config.market_data.bulk_fetch = BulkFetchPolicy::Auto in Rust, config.setBulkFetch("auto") in TypeScript, config.set_bulk_fetch(0) in C++, or bulk_fetch = "auto" under [market_data] in a TOML config file.
  • With bulk fetch on, a one-day option chain of bars or quote ticks over every expiration splits by expiration. The SDK lists the day's contracts in one request, then fetches each expiration on its own, calls and puts separately, so every contract's bars still cover the whole window. A trade chain keeps the time split. An OHLC chain over every expiration, and a Greeks chain over every expiration at an interval under a minute, are not split, since the server refuses them as one request. See Bulk Downloads.
  • TypeScript streaming callbacks keep up with a higher message rate. The native side hands events to the Node main thread in arrays; your startStreaming callback is still called once per event, in order.
  • The five Greeks tick structs carry implied_vol_source and has_implied_vol_source. In Rust, a struct literal or a pattern that names every field must add both, or ... In C and C++ the struct layout changes, so rebuild against the new header. Python and TypeScript only gain a field.

Fixed

  • A request without its own deadline is no longer cut off after five minutes. request_timeout_secs now bounds only how long the server may stay silent, before the first row and between two messages, and its default is 2700 seconds, since the server can take longer than five minutes to prepare a large response. A pull that keeps streaming runs to completion; a stalled one fails as DeadlineExceeded. In Rust, code that matched Error::Timeout for this limit should match Error::Grpc { kind: GrpcStatusKind::DeadlineExceeded, .. }.
  • A subscribe of any size goes through. A subscribe_many larger than the command queue waits for room instead of failing part way, and its bookkeeping takes milliseconds instead of seconds on a whole-chain subscribe.

See the full changelog for the details.

What's Changed

  • fix(streaming): wait for room instead of failing a subscribe larger than the command queue by @userFRM in #1504
  • perf(streaming): make a bulk subscribe linear in the number of streams by @userFRM in #1505
  • perf(ts): hand streaming events to the Node main thread in arrays by @userFRM in #1503
  • chore(bench): keep only the benchmarks of the shipped callback paths by @userFRM in #1506
  • build(deps-dev): bump @napi-rs/cli to 3.10.9 by @userFRM in #1508
  • test(streaming): fill the command channel before the subscribe that must wait for room by @userFRM in #1509
  • feat(greeks): add the binomial routes' implied_vol_method, exercise_style and implied_vol_source by @userFRM in #1510
  • build(deps): bump the patch-minor group with 8 updates by @dependabot[bot] in #1512
  • feat(mdds)!: make bulk fetch opt-in, split one-day option chains by expiration, and bound requests by server silence by @userFRM in #1513
  • chore(release): 0.8.3 by @userFRM in #1514
  • chore(release): 0.9.0 by @userFRM in #1515

Full Changelog: v0.8.2...v0.9.0