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

wboayue / rust-ibapi / 25478878073
92%

Build:
DEFAULT BRANCH: main
Ran 07 May 2026 06:07AM UTC
Jobs 1
Files 125
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 May 2026 06:06AM UTC coverage: 88.136% (+0.02%) from 88.112%
25478878073

push

github

web-flow
feat(market_data)!: realtime_bars builder; align sync/async

* feat(market_data)!: realtime_bars builder; align sync/async (#486)

Replace the divergent flat realtime_bars signatures with a fluent builder.

- Sync was 4 args, missing options. Async was 5 args with non-idiomatic
  &BarSize / &WhatToShow refs (both Copy). Aligning flat hits 5 params,
  violating CLAUDE.md rule 9.
- New: client.realtime_bars(&contract).{what_to_show,trading_hours,options}
  ().subscribe(). Defaults Trades + Regular + no options. Identical surface
  on sync vs async; only the terminal .subscribe() is .awaited on async.
- BarSize dropped from public surface (TWS only accepts 5-second bars; can
  return non-breakingly via .bar_size if IB ever expands).
- options is now reachable from sync, fixing the v2 asymmetry.

Tests: 6 new unit tests (4 sync + 2 async) covering defaults / overrides /
options round-trip; existing test_realtime_bars on both sides routed
through the builder. The test-side RealtimeBarsRequestBuilder gained
.options() so encoding asserts cover the sync-options gap.

Migrated callers: 8 examples, 2 integration tests, 1 doctest in
client/sync.rs. Docs: README (10 sites), migration-3.0.md (new section 7),
quick-start.md, api-patterns.md.

* refactor(realtime): tighten builder follow-ups

- RealtimeBarsBuilder::new -> pub(crate); only legitimate caller is
  Client::realtime_bars entry method.
- Async builder_tests gain stubbed_client() helper, mirroring sync side.

* refactor(realtime): simplify pass on builder PR

- Use shared create_blocking_test_client / create_test_client from
  common::test_utils::helpers instead of inline stubbed_client() helpers.
- Drop redundant .request_id(TEST_REQ_ID_FIRST) calls — already the
  default on RealtimeBarsRequestBuilder.
- Drop "Called by RealtimeBarsBuilder::subscribe" caller-narration on
  pub(crate) helpers (CLAUDE.md "no caller references").
- Fix README indentation regression in 3 multi-thread/retry examples
  introd... (continued)

54 of 54 new or added lines in 4 files covered. (100.0%)

17629 of 20002 relevant lines covered (88.14%)

26.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25478878073.1 07 May 2026 06:07AM UTC 125
88.14
GitHub Action Run
Source Files on build 25478878073
  • Tree
  • List 125
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25478878073
  • 2718a9e7 on github
  • Prev Build on main (#25472803103)
  • Next Build on main (#25479938156)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc