|
Ran
|
Jobs
1
|
Files
103
|
Run time
1min
|
Badge
README BADGES
|
push
github
Add historical_data_streaming() with keepUpToDate=true support (#384) * feat: add historical_data_streaming() with keepUpToDate=true support Add streaming historical data support for IBKR's reqHistoricalData API with keepUpToDate parameter enabled. This allows receiving continuous bar updates as they build, enabling live trading strategies to receive bars at any IBKR-supported resolution. Changes: - Add HistoricalBarUpdate enum to represent streaming updates - Add decode_historical_data_update() for message type 90 - Add historical_data_streaming() async function that sets keepUpToDate=true - Add HistoricalDataStreamingSubscription for handling streaming responses IBKR behavior notes: - Same timestamp bars are sent ~4-6 seconds apart as they build - When a NEW timestamp appears, the previous bar is complete - Supported what_to_show: Trades, Midpoint, Bid, Ask only - end_date must be None when keepUpToDate=true * add missing historical_data_streaming function * Change channel-closed logs from warn to info * fixed historical_data_streaming to properly received historical streaming data with keep_up_to_date=true * fixed formatting and doc tests * Revert "Change channel-closed logs from warn to" This reverts commit 065a65e8c. * fix: use proper contract builders in example - Use Contract::forex() builder instead of manual field assignment - Use struct initialization for futures query to satisfy clippy --------- Co-authored-by: Wil Boayue <wil.boayue@gmail.com>
55 of 74 new or added lines in 4 files covered. (74.32%)
1 existing line in 1 file now uncovered.8761 of 10116 relevant lines covered (86.61%)
117.72 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
99.01 |
-0.24% | src/messages.rs |
| 3 |
92.4 |
-1.65% | src/client/async.rs |
| 15 |
80.42 |
-3.75% | src/market_data/historical/async.rs |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
63.95 |
0.0% | src/contracts/types.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 21538104119.1 | 103 |
86.61 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|