[INFO] cloning repository https://github.com/zachhornung/first-trading-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zachhornung/first-trading-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachhornung%2Ffirst-trading-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachhornung%2Ffirst-trading-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82d4bda8ccabba9f743e0eea3634347874e1bf93 [INFO] checking zachhornung/first-trading-app against master#d14d202262d13df896b0c624b0cec6e4bfde631a for pr-143028 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachhornung%2Ffirst-trading-app" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zachhornung/first-trading-app [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/zachhornung/first-trading-app [INFO] tweaked toml for git repo https://github.com/zachhornung/first-trading-app written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zachhornung/first-trading-app on toolchain d14d202262d13df896b0c624b0cec6e4bfde631a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zachhornung/first-trading-app already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ibapi v0.4.3 [INFO] [stderr] Downloaded ta v0.5.0 [INFO] [stderr] Downloaded time-tz v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b6bbc363559100a99dd08ae3e0535e86ac24e033d93b947d18d19cbb9c4902a [INFO] running `Command { std: "docker" "start" "-a" "3b6bbc363559100a99dd08ae3e0535e86ac24e033d93b947d18d19cbb9c4902a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b6bbc363559100a99dd08ae3e0535e86ac24e033d93b947d18d19cbb9c4902a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b6bbc363559100a99dd08ae3e0535e86ac24e033d93b947d18d19cbb9c4902a", kill_on_drop: false }` [INFO] [stdout] 3b6bbc363559100a99dd08ae3e0535e86ac24e033d93b947d18d19cbb9c4902a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62d362d04d0384b16263306eb0824aaaa8f11c01edfc7d58bed8806c98a0af96 [INFO] running `Command { std: "docker" "start" "-a" "62d362d04d0384b16263306eb0824aaaa8f11c01edfc7d58bed8806c98a0af96", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling cc v1.2.25 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking winnow v0.7.10 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking toml_write v0.1.1 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling rust_decimal v1.37.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking ta v0.5.0 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling rust_decimal_macros v1.37.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Compiling pest_derive v2.8.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking toml_datetime v0.6.9 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking toml_edit v0.22.26 [INFO] [stderr] Compiling serde-xml-rs v0.5.1 [INFO] [stderr] Compiling time-tz v1.0.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking toml v0.8.22 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking ibapi v0.4.3 [INFO] [stderr] Checking first-trading-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/config.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/historical_backtesting.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/config.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/historical_backtesting.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_size` [INFO] [stdout] --> src/ibkr.rs:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | let bar_size = match request.bar_size.as_str() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `what_to_show` [INFO] [stdout] --> src/ibkr.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let what_to_show = match request.what_to_show.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_what_to_show` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date_time` [INFO] [stdout] --> src/ibkr.rs:536:13 [INFO] [stdout] | [INFO] [stdout] 536 | let end_date_time = request.end_date_time [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_size` [INFO] [stdout] --> src/ibkr.rs:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | let bar_size = match request.bar_size.as_str() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `what_to_show` [INFO] [stdout] --> src/ibkr.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let what_to_show = match request.what_to_show.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_what_to_show` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date_time` [INFO] [stdout] --> src/ibkr.rs:536:13 [INFO] [stdout] | [INFO] [stdout] 536 | let end_date_time = request.end_date_time [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_bar_date` is never used [INFO] [stdout] --> src/ibkr.rs:620:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl IBKRClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 620 | fn parse_bar_date(&self, time_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `analytics_engine` is never read [INFO] [stdout] --> src/historical_backtesting.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct HistoricalBacktestEngine { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | analytics_engine: AnalyticsEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_bar_date` is never used [INFO] [stdout] --> src/ibkr.rs:620:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl IBKRClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 620 | fn parse_bar_date(&self, time_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `analytics_engine` is never read [INFO] [stdout] --> src/historical_backtesting.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct HistoricalBacktestEngine { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | analytics_engine: AnalyticsEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/bin/backtest.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc, NaiveDate, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/bin/backtest.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HistoricalBacktestConfig` [INFO] [stdout] --> src/bin/backtest.rs:10:75 [INFO] [stdout] | [INFO] [stdout] 10 | use first_trading_app::historical_backtesting::{HistoricalBacktestEngine, HistoricalBacktestConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/bin/backtest.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc, NaiveDate, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/bin/backtest.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HistoricalBacktestConfig` [INFO] [stdout] --> src/bin/backtest.rs:10:75 [INFO] [stdout] | [INFO] [stdout] 10 | use first_trading_app::historical_backtesting::{HistoricalBacktestEngine, HistoricalBacktestConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/config.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/config.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_size` [INFO] [stdout] --> src/ibkr.rs:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | let bar_size = match request.bar_size.as_str() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `what_to_show` [INFO] [stdout] --> src/ibkr.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let what_to_show = match request.what_to_show.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_what_to_show` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date_time` [INFO] [stdout] --> src/ibkr.rs:536:13 [INFO] [stdout] | [INFO] [stdout] 536 | let end_date_time = request.end_date_time [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_size` [INFO] [stdout] --> src/ibkr.rs:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | let bar_size = match request.bar_size.as_str() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `what_to_show` [INFO] [stdout] --> src/ibkr.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let what_to_show = match request.what_to_show.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_what_to_show` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_date_time` [INFO] [stdout] --> src/ibkr.rs:536:13 [INFO] [stdout] | [INFO] [stdout] 536 | let end_date_time = request.end_date_time [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_date_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HistoricalDataRequest` is never constructed [INFO] [stdout] --> src/ibkr.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct HistoricalDataRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ibkr.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 100 | impl IBKRClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn cancel_market_data(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | async fn cancel_realtime_bars(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 379 | pub async fn cancel_tick_data(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub async fn update_position(&self, symbol: String, position: Position) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | pub async fn get_account_summary(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_historical_data(&self, request: &HistoricalDataRequest) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | fn parse_bar_date(&self, time_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | pub async fn get_multiple_historical_data(&self, requests: &[HistoricalDataRequest]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_tick_data` and `get_statistics` are never used [INFO] [stdout] --> src/data.rs:199:18 [INFO] [stdout] | [INFO] [stdout] 62 | impl MarketDataManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub async fn get_tick_data(&self, symbol: &str, limit: Option) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub async fn get_statistics(&self, symbol: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_initial_cash` is never used [INFO] [stdout] --> src/portfolio.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl PortfolioManager { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn with_initial_cash(initial_cash: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RSI` is never constructed [INFO] [stdout] --> src/indicators.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct RSI { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl RSI { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 63 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn update(&mut self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn generate_signal(&self, rsi_value: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MACDIndicator` is never constructed [INFO] [stdout] --> src/indicators.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct MACDIndicator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl MACDIndicator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 145 | pub fn new(fast_period: usize, slow_period: usize, signal_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn update(&mut self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn generate_signal(&self, macd: &MACD) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BollingerBandsIndicator` is never constructed [INFO] [stdout] --> src/indicators.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 203 | pub struct BollingerBandsIndicator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl BollingerBandsIndicator { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 211 | pub fn new(period: usize, std_dev_multiplier: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn update(&mut self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn generate_signal(&self, bands: &BollingerBands, current_price: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StochasticIndicator` is never constructed [INFO] [stdout] --> src/indicators.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub struct StochasticIndicator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 279 | impl StochasticIndicator { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 280 | pub fn new(k_period: usize, d_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn generate_signal(&self, stoch: &Stochastic) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WilliamsR` is never constructed [INFO] [stdout] --> src/indicators.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct WilliamsR { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:351:12 [INFO] [stdout] | [INFO] [stdout] 350 | impl WilliamsR { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 351 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn generate_signal(&self, williams_r: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CCI` is never constructed [INFO] [stdout] --> src/indicators.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | pub struct CCI { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 407 | impl CCI { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 408 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | pub fn generate_signal(&self, cci: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ATR` is never constructed [INFO] [stdout] --> src/indicators.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | pub struct ATR { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/indicators.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 467 | impl ATR { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 468 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SMA` is never constructed [INFO] [stdout] --> src/indicators.rs:494:12 [INFO] [stdout] | [INFO] [stdout] 494 | pub struct SMA { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/indicators.rs:500:12 [INFO] [stdout] | [INFO] [stdout] 499 | impl SMA { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 500 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 507 | pub fn update(&mut self, value: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EMA` is never constructed [INFO] [stdout] --> src/indicators.rs:523:12 [INFO] [stdout] | [INFO] [stdout] 523 | pub struct EMA { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/indicators.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 529 | impl EMA { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 530 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 538 | pub fn update(&mut self, value: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VolumeIndicators` is never constructed [INFO] [stdout] --> src/indicators.rs:555:12 [INFO] [stdout] | [INFO] [stdout] 555 | pub struct VolumeIndicators { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `volume_ratio`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:562:12 [INFO] [stdout] | [INFO] [stdout] 561 | impl VolumeIndicators { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 562 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | pub fn update(&mut self, volume: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn volume_ratio(&self, current_volume: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 592 | pub fn generate_signal(&self, volume_ratio: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SupportResistance` is never constructed [INFO] [stdout] --> src/indicators.rs:613:12 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct SupportResistance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `calculate_levels`, `get_nearest_resistance`, `get_nearest_support`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:622:12 [INFO] [stdout] | [INFO] [stdout] 621 | impl SupportResistance { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 622 | pub fn new(lookback_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub fn update(&mut self, high: f64, low: f64, _close: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 646 | fn calculate_levels(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 672 | pub fn get_nearest_resistance(&self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn get_nearest_support(&self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 686 | pub fn generate_signal(&self, current_price: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyEngine` is never constructed [INFO] [stdout] --> src/strategy_engine.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct StrategyEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndicatorCollection` is never constructed [INFO] [stdout] --> src/strategy_engine.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | struct IndicatorCollection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/strategy_engine.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 217 | impl StrategyEngine { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 218 | pub fn new(config: StrategyEngineConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub async fn analyze(&mut self, symbol: &str, price_data: &PriceData) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | fn generate_combined_signals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | fn calculate_weighted_scores(&self, signals: &HashMap) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | fn get_indicator_weight(&self, indicator_name: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | fn determine_action(&self, bullish_score: f64, bearish_score: f64) -> (Action, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | fn calculate_risk_score(&self, signals: &HashMap) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 464 | fn calculate_expected_return(&self, combined_score: f64, risk_score: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | fn calculate_stop_take_levels(&self, price_data: &PriceData, action: &Action) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 493 | fn build_reasoning_string(&self, signals: &HashMap, combined_score: f64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn get_performance_metrics(&self) -> &PerformanceMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | pub fn update_performance_metrics(&mut self, trade_result: &TradeResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn get_signal_history(&self, symbol: &str) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/strategy_engine.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 552 | impl IndicatorCollection { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 553 | fn new(config: &IndicatorConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/backtesting.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 149 | impl BacktestingEngine { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 150 | pub fn new(config: BacktestConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub async fn run_backtest( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn create_timeline(&self, price_data: &HashMap>) -> Result, HashMap)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn update_portfolio_values(&mut self, current_prices: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn execute_signal(&mut self, signal: &EnhancedTradingSignal, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn execute_buy_order(&mut self, signal: &EnhancedTradingSignal, price: f64, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | fn execute_sell_order(&mut self, signal: &EnhancedTradingSignal, price: f64, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | fn apply_slippage(&self, price: f64, action: &Action) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 422 | fn calculate_current_drawdown(&self, current_value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | fn calculate_results(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | pub fn generate_report(&self) -> BacktestReport { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | pub async fn run_walk_forward_analysis( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderManager` is never constructed [INFO] [stdout] --> src/orders.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct OrderManager { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/orders.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl OrderManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 194 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn create_market_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn create_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn create_stop_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn create_stop_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn create_bracket_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 394 | pub fn create_oco_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | pub fn create_trailing_stop_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 496 | pub fn add_condition_to_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | pub fn add_execution_instruction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 524 | pub fn update_order_status(&mut self, order_id: &str, status: OrderStatus) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 534 | pub fn fill_order( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 603 | fn handle_bracket_order_completion(&mut self, parent_order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 616 | fn handle_oco_order_completion(&mut self, filled_order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 637 | pub fn update_trailing_stop(&mut self, symbol: &str, current_price: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 698 | pub fn cancel_order(&mut self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 712 | pub fn get_order(&self, order_id: &str) -> Option<&AdvancedOrder> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 716 | pub fn get_orders_by_symbol(&self, symbol: &str) -> Vec<&AdvancedOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 722 | pub fn get_active_orders(&self) -> Vec<&AdvancedOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 730 | pub fn get_fills_by_order(&self, order_id: &str) -> Vec<&Fill> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 736 | pub fn get_fills_by_symbol(&self, symbol: &str) -> Vec<&Fill> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 742 | pub fn evaluate_conditions(&self, order_id: &str, market_data: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | fn evaluate_single_condition(&self, condition: &OrderCondition, market_data: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 793 | fn compare_values(&self, left: Decimal, right: Decimal, operator: &ComparisonOperator) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 804 | pub fn update_order_book(&mut self, symbol: String, order_book: OrderBook) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 808 | pub fn get_order_book(&self, symbol: &str) -> Option<&OrderBook> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HistoricalDataRequest` is never constructed [INFO] [stdout] --> src/ibkr.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct HistoricalDataRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ibkr.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 100 | impl IBKRClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn cancel_market_data(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | async fn cancel_realtime_bars(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 379 | pub async fn cancel_tick_data(&mut self, symbol: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub async fn update_position(&self, symbol: String, position: Position) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | pub async fn get_account_summary(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_historical_data(&self, request: &HistoricalDataRequest) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | fn parse_bar_date(&self, time_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | pub async fn get_multiple_historical_data(&self, requests: &[HistoricalDataRequest]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_signal` is never used [INFO] [stdout] --> src/indicators.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl RSI { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn generate_signal(&self, rsi_value: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_signal` is never used [INFO] [stdout] --> src/indicators.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl MACDIndicator { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn generate_signal(&self, macd: &MACD) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_signal` is never used [INFO] [stdout] --> src/indicators.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl BollingerBandsIndicator { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn generate_signal(&self, bands: &BollingerBands, current_price: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k_period`, `highs`, `lows`, `closes`, and `d_sma` are never read [INFO] [stdout] --> src/indicators.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub struct StochasticIndicator { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 270 | k_period: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 271 | _d_period: usize, [INFO] [stdout] 272 | highs: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 273 | lows: VecDeque, [INFO] [stdout] | ^^^^ [INFO] [stdout] 274 | closes: VecDeque, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 275 | _k_values: VecDeque, [INFO] [stdout] 276 | d_sma: SMA, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StochasticIndicator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update` and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 279 | impl StochasticIndicator { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn generate_signal(&self, stoch: &Stochastic) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `period`, `highs`, and `lows` are never read [INFO] [stdout] --> src/indicators.rs:345:5 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct WilliamsR { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 345 | period: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 346 | highs: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 347 | lows: VecDeque, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WilliamsR` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update` and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:359:12 [INFO] [stdout] | [INFO] [stdout] 350 | impl WilliamsR { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn generate_signal(&self, williams_r: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `period`, `typical_prices`, and `sma` are never read [INFO] [stdout] --> src/indicators.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 401 | pub struct CCI { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 402 | period: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 403 | typical_prices: VecDeque, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 404 | sma: SMA, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CCI` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update` and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 407 | impl CCI { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | pub fn generate_signal(&self, cci: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `atr_ema` and `previous_close` are never read [INFO] [stdout] --> src/indicators.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub struct ATR { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 463 | atr_ema: EMA, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 464 | previous_close: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ATR` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/indicators.rs:477:12 [INFO] [stdout] | [INFO] [stdout] 467 | impl ATR { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn update(&mut self, high: f64, low: f64, close: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `period`, `volumes`, and `volume_sma` are never read [INFO] [stdout] --> src/indicators.rs:556:5 [INFO] [stdout] | [INFO] [stdout] 555 | pub struct VolumeIndicators { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 556 | period: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 557 | volumes: VecDeque, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 558 | volume_sma: SMA, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VolumeIndicators` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update`, `volume_ratio`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:570:12 [INFO] [stdout] | [INFO] [stdout] 561 | impl VolumeIndicators { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 570 | pub fn update(&mut self, volume: f64) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn volume_ratio(&self, current_volume: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 592 | pub fn generate_signal(&self, volume_ratio: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lookback_period`, `highs`, `lows`, `resistance_levels`, and `support_levels` are never read [INFO] [stdout] --> src/indicators.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 613 | pub struct SupportResistance { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 614 | lookback_period: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 615 | highs: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 616 | lows: VecDeque, [INFO] [stdout] | ^^^^ [INFO] [stdout] 617 | resistance_levels: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 618 | support_levels: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SupportResistance` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update`, `calculate_levels`, `get_nearest_resistance`, `get_nearest_support`, and `generate_signal` are never used [INFO] [stdout] --> src/indicators.rs:632:12 [INFO] [stdout] | [INFO] [stdout] 621 | impl SupportResistance { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 632 | pub fn update(&mut self, high: f64, low: f64, _close: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 646 | fn calculate_levels(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 672 | pub fn get_nearest_resistance(&self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn get_nearest_support(&self, price: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 686 | pub fn generate_signal(&self, current_price: f64) -> IndicatorSignal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `indicators`, `signal_history`, and `performance_metrics` are never read [INFO] [stdout] --> src/strategy_engine.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct StrategyEngine { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 183 | config: StrategyEngineConfig, [INFO] [stdout] 184 | indicators: IndicatorCollection, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 185 | signal_history: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 186 | performance_metrics: PerformanceMetrics, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/strategy_engine.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 189 | struct IndicatorCollection { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 190 | rsi: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 191 | macd: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 192 | bollinger_bands: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 193 | stochastic: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 194 | williams_r: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 195 | cci: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 196 | atr: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 197 | volume: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 198 | support_resistance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/strategy_engine.rs:229:18 [INFO] [stdout] | [INFO] [stdout] 217 | impl StrategyEngine { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 229 | pub async fn analyze(&mut self, symbol: &str, price_data: &PriceData) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | fn generate_combined_signals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | fn calculate_weighted_scores(&self, signals: &HashMap) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | fn calculate_risk_score(&self, signals: &HashMap) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 464 | fn calculate_expected_return(&self, combined_score: f64, risk_score: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | fn calculate_stop_take_levels(&self, price_data: &PriceData, action: &Action) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 493 | fn build_reasoning_string(&self, signals: &HashMap, combined_score: f64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn get_performance_metrics(&self) -> &PerformanceMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | pub fn update_performance_metrics(&mut self, trade_result: &TradeResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn get_signal_history(&self, symbol: &str) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/backtesting.rs:168:18 [INFO] [stdout] | [INFO] [stdout] 149 | impl BacktestingEngine { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 168 | pub async fn run_backtest( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn create_timeline(&self, price_data: &HashMap>) -> Result, HashMap)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn update_portfolio_values(&mut self, current_prices: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn execute_signal(&mut self, signal: &EnhancedTradingSignal, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn execute_buy_order(&mut self, signal: &EnhancedTradingSignal, price: f64, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | fn execute_sell_order(&mut self, signal: &EnhancedTradingSignal, price: f64, trade_id: &mut u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 422 | fn calculate_current_drawdown(&self, current_value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | fn calculate_results(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | pub fn generate_report(&self) -> BacktestReport { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | pub async fn run_walk_forward_analysis( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `order_books` is never read [INFO] [stdout] --> src/orders.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct OrderManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 190 | order_books: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/orders.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl OrderManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn create_stop_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | pub fn add_execution_instruction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 637 | pub fn update_trailing_stop(&mut self, symbol: &str, current_price: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 716 | pub fn get_orders_by_symbol(&self, symbol: &str) -> Vec<&AdvancedOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 722 | pub fn get_active_orders(&self) -> Vec<&AdvancedOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 730 | pub fn get_fills_by_order(&self, order_id: &str) -> Vec<&Fill> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 736 | pub fn get_fills_by_symbol(&self, symbol: &str) -> Vec<&Fill> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 804 | pub fn update_order_book(&mut self, symbol: String, order_book: OrderBook) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 808 | pub fn get_order_book(&self, symbol: &str) -> Option<&OrderBook> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "62d362d04d0384b16263306eb0824aaaa8f11c01edfc7d58bed8806c98a0af96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62d362d04d0384b16263306eb0824aaaa8f11c01edfc7d58bed8806c98a0af96", kill_on_drop: false }` [INFO] [stdout] 62d362d04d0384b16263306eb0824aaaa8f11c01edfc7d58bed8806c98a0af96