• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wboayue / rust-ibapi / 22809881371
86%

Build:
DEFAULT BRANCH: main
Ran 07 Mar 2026 11:57PM UTC
Jobs 1
Files 103
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Mar 2026 11:49PM UTC coverage: 85.659% (+0.003%) from 85.656%
22809881371

push

github

web-flow
Fix async market_depth cancel not propagating is_smart_depth flag (#437)

* Fix async market_depth cancel not propagating is_smart_depth flag

The sync `market_depth()` correctly uses `send_with_context()` to
propagate the `is_smart_depth` flag into the subscription's
`DecoderContext`. However, the async version uses plain `send()`,
which creates a default context with `is_smart_depth: false`.

When cancelling an async smart depth subscription, the cancel message
is encoded with `is_smart_depth = false` (from the default context),
while the original subscribe was sent with `is_smart_depth = true`.
TWS silently ignores the mismatched cancel — the subscription slot
is never freed. After 3 subscriptions, TWS rejects new requests with
error 309: "Max number (3) of market depth requests has been reached".

This affects both explicit `sub.cancel()` and the Drop-based cleanup.

The fix mirrors what the sync version already does: use
`send_with_context()` with the correct `is_smart_depth` value so
the cancel message matches the subscribe.

Related: #224

* Fix rustfmt formatting in async market_depth

3 of 3 new or added lines in 1 file covered. (100.0%)

11 existing lines in 2 files now uncovered.

9073 of 10592 relevant lines covered (85.66%)

121.31 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
78.78
-0.24% src/transport/sync.rs
10
61.05
-2.33% src/contracts/types.rs
Jobs
ID Job ID Ran Files Coverage
1 22809881371.1 07 Mar 2026 11:57PM UTC 103
85.66
GitHub Action Run
Source Files on build 22809881371
  • Tree
  • List 103
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22809881371
  • 668291d7 on github
  • Prev Build on main (#22513005317)
  • Next Build on main (#22810069854)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc