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

wboayue / rust-ibapi / 25531789661
92%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 01:40AM 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

08 May 2026 01:39AM UTC coverage: 88.27% (+0.1%) from 88.139%
25531789661

push

github

web-flow
feat(orders): complete IB algo builder coverage (9 new strategies) (#522)

* refactor(orders): extract algo_builders inline tests to sibling file

Per CLAUDE.md rules 13/14: tests in their own file, modernize touched
modules. Sibling _tests.rs wired via #[path] attribute, contents
unchanged. Prepares the module for upcoming algo builder additions
without mixing test relocation into the feature diffs.

* feat(orders): add Adaptive, ClosePrice, DarkIce algo builders

Priority 1 of the remaining IB algo strategies:
- AdaptiveBuilder ("Adaptive") + AdaptivePriority enum
- ClosePriceBuilder ("ClosePx"), reuses RiskAversion
- DarkIceBuilder ("DarkIce")

Each ships with a fluent builder, helper function in algo_helpers,
TryFrom<Builder> for AlgoParams, struct + helper doc-examples, and
round-trip + minimal-form tests. Mirrors the pattern established by
the existing 4 builders.

* feat(orders): add AccumulateDistribute, BalanceImpactRisk, MinimiseImpact algo builders

Priority 2 of the remaining IB algo strategies:
- AccumulateDistributeBuilder ("AD") - 9 fields covering component
  sizing, time/size randomization, and active-time windows
- BalanceImpactRiskBuilder ("BalanceImpactRisk") - reuses
  RiskAversion + validate_pct_vol
- MinimiseImpactBuilder ("MinImpact") - single max_pct_vol field

Each ships with helper, TryFrom, struct + helper doc-examples, and
round-trip + minimal + boundary tests for percentage validation.

* feat(orders): add PctVolPx, PctVolSz, PctVolTm algo builders

Priority 3 - the three specialized PctVol variants:
- PctVolPriceBuilder ("PctVolPx") - rate varies with price
- PctVolSizeBuilder ("PctVolSz") - rate varies with remaining size
- PctVolTimeBuilder ("PctVolTm") - rate varies linearly over time

Validation deviates from the original plan: only participation-rate
fields (pct_vol, start_pct_vol, end_pct_vol) are checked against
the 10-50% range. delta_pct_vol can legitimately be negative, and
min_pct_vol_4_px / max_pct_vol_4_px h... (continued)

555 of 584 new or added lines in 2 files covered. (95.03%)

15 existing lines in 2 files now uncovered.

18046 of 20444 relevant lines covered (88.27%)

26.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
29
0.0
-100.0% src/orders/builder/algo_helpers.rs

Coverage Regressions

Lines Coverage ∆ File
13
0.0
-100.0% src/orders/builder/algo_helpers.rs
2
58.95
-0.44% src/contracts/types.rs
Jobs
ID Job ID Ran Files Coverage
1 25531789661.1 08 May 2026 01:40AM UTC 125
88.27
GitHub Action Run
Source Files on build 25531789661
  • Tree
  • List 125
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25531789661
  • 126a9a33 on github
  • Prev Build on main (#25513793972)
  • Next Build on main (#25534675204)
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