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

wboayue / rust-ibapi / 16869958867
86%

Build:
DEFAULT BRANCH: main
Ran 11 Aug 2025 03:11AM UTC
Jobs 1
Files 77
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

11 Aug 2025 03:06AM UTC coverage: 77.182% (+0.5%) from 76.695%
16869958867

push

github

web-flow
Add comprehensive integration tests for real-time market data methods (#292)

This commit adds integration tests for all real-time market data client methods
using the MockGateway testing framework. The tests verify correct request/response
handling for market data, market depth, realtime bars, and tick-by-tick data.

Key changes:
- Add setup functions in client/common.rs for all real-time market data test scenarios
- Implement integration tests in client/sync.rs for synchronous client methods
- Implement corresponding tests in client/async.rs for asynchronous client methods
- Fix MockGateway to handle varying StartApi message formats based on server version
- Fix test assertions to match actual TWS/IB Gateway protocol behavior

Test coverage includes:
- market_data() - Level 1 market data with various tick types
- market_depth() - Level 1 order book (non-smart depth)
- market_depth_exchanges() - Available market depth exchanges
- realtime_bars() - 5-second OHLCV bars
- tick_by_tick_last() - Last trade ticks only
- tick_by_tick_all_last() - All trades including unreported
- tick_by_tick_bid_ask() - Bid/ask quote updates
- tick_by_tick_midpoint() - Midpoint calculations
- switch_market_data_type() - Market data type switching

5395 of 6990 relevant lines covered (77.18%)

62.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16869958867.1 11 Aug 2025 03:11AM UTC 77
77.18
GitHub Action Run
Source Files on build 16869958867
  • Tree
  • List 77
  • Changed 5
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16869958867
  • 5c7ed51b on github
  • Prev Build on main (#16866257544)
  • Next Build on main (#17034042583)
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