Repository navigation
v0.9.0
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_methodandexercise_style.implied_vol_method("out_of_the_money")takes each strike's volatility from its out-of-the-money option, andexercise_styleprices the tree asamericanoreuropean. Each binomial Greeks row now carriesimplied_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_fetchnow 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, setbulk_fetch = "auto":config.bulk_fetch = "auto"in Python,config.market_data.bulk_fetch = BulkFetchPolicy::Autoin Rust,config.setBulkFetch("auto")in TypeScript,config.set_bulk_fetch(0)in C++, orbulk_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
startStreamingcallback is still called once per event, in order. - The five Greeks tick structs carry
implied_vol_sourceandhas_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_secsnow 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 asDeadlineExceeded. In Rust, code that matchedError::Timeoutfor this limit should matchError::Grpc { kind: GrpcStatusKind::DeadlineExceeded, .. }. - A subscribe of any size goes through. A
subscribe_manylarger 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