[INFO] cloning repository https://github.com/windopper/ctb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/windopper/ctb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cceb98b8fb0ad60c514eb764c6fa630790b15ea5 [INFO] testing windopper/ctb against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/windopper/ctb [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/windopper/ctb [INFO] tweaked toml for git repo https://github.com/windopper/ctb written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/windopper/ctb on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/windopper/ctb 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.5.15 [INFO] [stderr] Downloaded dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Downloaded webhook v2.1.2 [INFO] [stderr] Downloaded dotenv_codegen v0.15.0 [INFO] [stderr] Downloaded linregress v0.5.4 [INFO] [stderr] Downloaded jwt v0.16.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.27.0 [INFO] [stderr] Downloaded tungstenite v0.27.0 [INFO] [stderr] Downloaded openssl-src v300.5.1+3.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 425678abab4c1c4e3f9ccf2e4be420323d9b961d8215062ede6a6c0f1974fc66 [INFO] running `Command { std: "docker" "start" "-a" "425678abab4c1c4e3f9ccf2e4be420323d9b961d8215062ede6a6c0f1974fc66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "425678abab4c1c4e3f9ccf2e4be420323d9b961d8215062ede6a6c0f1974fc66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "425678abab4c1c4e3f9ccf2e4be420323d9b961d8215062ede6a6c0f1974fc66", kill_on_drop: false }` [INFO] [stdout] 425678abab4c1c4e3f9ccf2e4be420323d9b961d8215062ede6a6c0f1974fc66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13feaba625af9cef35f4b1d5dd9bf96a94732c43df9af994a0a8a2f8d412da5f [INFO] running `Command { std: "docker" "start" "-a" "13feaba625af9cef35f4b1d5dd9bf96a94732c43df9af994a0a8a2f8d412da5f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling openssl-src v300.5.1+3.5.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling dotenv_codegen v0.15.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling nalgebra v0.33.2 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling jwt v0.16.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling linregress v0.5.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.27.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling webhook v2.1.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling tokio-tungstenite v0.27.0 [INFO] [stderr] Compiling ctb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 26 | let _second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 26 - let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] 26 + let backtest::lib::INITIAL_ASSET = ema_5[ema_5.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | let _second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 29 - let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] 29 + let backtest::lib::INITIAL_ASSET = ema_20[ema_20.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 105 - let mut ask_volume_sum = 0.0; [INFO] [stdout] 105 + let mut backtest::lib::INITIAL_ASSET = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 203 | let _calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 203 - let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] 203 + let backtest::lib::INITIAL_ASSET = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 389 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 389 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 656 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 656 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 45s [INFO] running `Command { std: "docker" "inspect" "13feaba625af9cef35f4b1d5dd9bf96a94732c43df9af994a0a8a2f8d412da5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13feaba625af9cef35f4b1d5dd9bf96a94732c43df9af994a0a8a2f8d412da5f", kill_on_drop: false }` [INFO] [stdout] 13feaba625af9cef35f4b1d5dd9bf96a94732c43df9af994a0a8a2f8d412da5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46b1d5dbf9f00a0854de68db2e94f1a4742f58115c8b0e3d2174c36f1862c0f7 [INFO] running `Command { std: "docker" "start" "-a" "46b1d5dbf9f00a0854de68db2e94f1a4742f58115c8b0e3d2174c36f1862c0f7", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 26 | let _second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 26 - let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] 26 + let backtest::lib::INITIAL_ASSET = ema_5[ema_5.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | let _second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 29 - let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] 29 + let backtest::lib::INITIAL_ASSET = ema_20[ema_20.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 105 - let mut ask_volume_sum = 0.0; [INFO] [stdout] 105 + let mut backtest::lib::INITIAL_ASSET = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 203 | let _calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 203 - let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] 203 + let backtest::lib::INITIAL_ASSET = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 389 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 389 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 656 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 656 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ctb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CandleTrait` [INFO] [stdout] --> examples/candle_patterns.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use ctb::core::candle::{Candle, CandleBase, CandleTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / send_buy_signal( [INFO] [stdout] 12 | | "KRW-BTC", [INFO] [stdout] 13 | | 50000000.0, [INFO] [stdout] 14 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 18 | | "SuperTrend + EMA" [INFO] [stdout] 19 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / send_sell_signal( [INFO] [stdout] 25 | | "KRW-BTC", [INFO] [stdout] 26 | | 52000000.0, [INFO] [stdout] 27 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 31 | | "목표가 도달" [INFO] [stdout] 32 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / send_sell_signal( [INFO] [stdout] 38 | | "KRW-BTC", [INFO] [stdout] 39 | | 48000000.0, [INFO] [stdout] 40 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 44 | | "손절가 도달" [INFO] [stdout] 45 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / send_trade_summary( [INFO] [stdout] 51 | | "KRW-BTC", [INFO] [stdout] 52 | | 100, [INFO] [stdout] 53 | | 65, [INFO] [stdout] ... | [INFO] [stdout] 57 | | -500000.0 [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 26 | let _second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 26 - let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] 26 + let backtest::lib::INITIAL_ASSET = ema_5[ema_5.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | let _second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 29 - let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] 29 + let backtest::lib::INITIAL_ASSET = ema_20[ema_20.len() - 2]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 105 - let mut ask_volume_sum = 0.0; [INFO] [stdout] 105 + let mut backtest::lib::INITIAL_ASSET = 0.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 203 | let _calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 203 - let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] 203 + let backtest::lib::INITIAL_ASSET = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 389 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 389 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stdout] | [INFO] [stdout] 656 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] 656 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.95s [INFO] running `Command { std: "docker" "inspect" "46b1d5dbf9f00a0854de68db2e94f1a4742f58115c8b0e3d2174c36f1862c0f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b1d5dbf9f00a0854de68db2e94f1a4742f58115c8b0e3d2174c36f1862c0f7", kill_on_drop: false }` [INFO] [stdout] 46b1d5dbf9f00a0854de68db2e94f1a4742f58115c8b0e3d2174c36f1862c0f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 38e3e8b246bc772da199917bb33810b130d3444fea23205854c9060396881fde [INFO] running `Command { std: "docker" "start" "-a" "38e3e8b246bc772da199917bb33810b130d3444fea23205854c9060396881fde", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stderr] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stderr] | [INFO] [stderr] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stderr] | [INFO] [stderr] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/strategy/orderbook.rs:52:15 [INFO] [stderr] | [INFO] [stderr] 52 | } else if (supports.len() == 1) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 52 - } else if (supports.len() == 1) { [INFO] [stderr] 52 + } else if supports.len() == 1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/strategy/orderbook.rs:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | } else if (resistances.len() == 1) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 84 - } else if (resistances.len() == 1) { [INFO] [stderr] 84 + } else if resistances.len() == 1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stderr] --> src/strategy/of1.rs:3:81 [INFO] [stderr] | [INFO] [stderr] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stderr] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/helper/support_resistance.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stderr] --> src/backtest/simulate.rs:8:107 [INFO] [stderr] | [INFO] [stderr] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/webhook/lib.rs:49:28 [INFO] [stderr] | [INFO] [stderr] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stderr] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/webhook/lib.rs:50:26 [INFO] [stderr] | [INFO] [stderr] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stderr] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/webhook/lib.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | Ok(result) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `color_emoji` [INFO] [stderr] --> src/webhook/lib.rs:100:17 [INFO] [stderr] | [INFO] [stderr] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stderr] [INFO] [stderr] warning: unused import: `candle::CandleTrait` [INFO] [stderr] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `candle::CandleTrait` [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `second_last_ema_5` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 26 | let _second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 26 - let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stderr] 26 + let backtest::lib::INITIAL_ASSET = ema_5[ema_5.len() - 2]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `second_last_ema_20` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 29 | let _second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 29 - let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stderr] 29 + let backtest::lib::INITIAL_ASSET = ema_20[ema_20.len() - 2]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_last_macd_positive` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rsi` [INFO] [stderr] --> src/strategy/scalp.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_price` [INFO] [stderr] --> src/strategy/orderbook.rs:109:47 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_asset` [INFO] [stderr] --> src/strategy/orderbook.rs:109:60 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `trailing_stop_price` [INFO] [stderr] --> src/strategy/orderbook.rs:109:92 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/orderbook.rs:6:37 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stderr] --> src/strategy/of1.rs:105:21 [INFO] [stderr] | [INFO] [stderr] 105 | let mut ask_volume_sum = 0.0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_ask_volume_sum` instead [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 105 - let mut ask_volume_sum = 0.0; [INFO] [stderr] 105 + let mut backtest::lib::INITIAL_ASSET = 0.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/of1.rs:74:69 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_price` [INFO] [stderr] --> src/strategy/of1.rs:215:47 [INFO] [stderr] | [INFO] [stderr] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_asset` [INFO] [stderr] --> src/strategy/of1.rs:215:60 [INFO] [stderr] | [INFO] [stderr] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `calculated_stop` [INFO] [stderr] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stderr] | [INFO] [stderr] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 203 | let _calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 203 - let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stderr] 203 + let backtest::lib::INITIAL_ASSET = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `avg_volume` [INFO] [stderr] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stderr] | [INFO] [stderr] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 389 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 389 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] 389 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stderr] | [INFO] [stderr] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `avg_volume` [INFO] [stderr] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stderr] | [INFO] [stderr] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 656 | let (volume_ratio, _avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `INITIAL_ASSET` [INFO] [stderr] | [INFO] [stderr] 656 - let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] 656 + let (volume_ratio, backtest::lib::INITIAL_ASSET) = self.calculate_volume_ratio(config); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `min_trade_interval` [INFO] [stderr] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stderr] | [INFO] [stderr] 709 | let min_trade_interval = 3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `next_sar` is never read [INFO] [stderr] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stderr] | [INFO] [stderr] 30 | let mut next_sar = sar; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `orderbook` [INFO] [stderr] --> src/helper/orderbook.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stderr] [INFO] [stderr] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stderr] --> src/strategy/scalp.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `RSI_OVERSOLD` is never used [INFO] [stderr] --> src/strategy/scalp.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `risk_pct` is never read [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct StrategyParams { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | risk_pct: f64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stderr] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stderr] | --------------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stderr] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `ctb` (lib) generated 39 warnings (run `cargo fix --lib -p ctb` to apply 16 suggestions) [INFO] [stderr] warning: `ctb` (lib test) generated 39 warnings (39 duplicates) [INFO] [stderr] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stderr] --> src/main.rs:7:14 [INFO] [stderr] | [INFO] [stderr] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stderr] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `CODES` is never used [INFO] [stderr] --> src/main.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `realtime_simulation` is never used [INFO] [stderr] --> src/main.rs:60:10 [INFO] [stderr] | [INFO] [stderr] 60 | async fn realtime_simulation() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / send_buy_signal( [INFO] [stderr] 12 | | "KRW-BTC", [INFO] [stderr] 13 | | 50000000.0, [INFO] [stderr] 14 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 18 | | "SuperTrend + EMA" [INFO] [stderr] 19 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / send_sell_signal( [INFO] [stderr] 25 | | "KRW-BTC", [INFO] [stderr] 26 | | 52000000.0, [INFO] [stderr] 27 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 31 | | "목표가 도달" [INFO] [stderr] 32 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | / send_sell_signal( [INFO] [stderr] 38 | | "KRW-BTC", [INFO] [stderr] 39 | | 48000000.0, [INFO] [stderr] 40 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 44 | | "손절가 도달" [INFO] [stderr] 45 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | / send_trade_summary( [INFO] [stderr] 51 | | "KRW-BTC", [INFO] [stderr] 52 | | 100, [INFO] [stderr] 53 | | 65, [INFO] [stderr] ... | [INFO] [stderr] 57 | | -500000.0 [INFO] [stderr] 58 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused import: `CandleTrait` [INFO] [stderr] --> examples/candle_patterns.rs:1:45 [INFO] [stderr] | [INFO] [stderr] 1 | use ctb::core::candle::{Candle, CandleBase, CandleTrait}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `ctb` (bin "ctb" test) generated 3 warnings (run `cargo fix --bin "ctb" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `ctb` (test "webhook") generated 4 warnings [INFO] [stderr] warning: `ctb` (example "candle_patterns") generated 1 warning (run `cargo fix --example "candle_patterns"` to apply 1 suggestion) [INFO] [stderr] warning: `ctb` (bin "ctb") generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ctb-df11c2bf20f5a873) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ctb-0c4dcf416e198c30) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/account.rs (/opt/rustwide/target/debug/deps/account-eadc19ae0331175e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_check_my_account ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_check_my_account stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_check_my_account' (27) panicked at src/lib.rs:13:22: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: EnvVar(NotPresent) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x59b29a18faf2 - std::backtrace_rs::backtrace::libunwind::trace::h52580dd202462214 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x59b29a18faf2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc969519abce0f52b [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x59b29a18faf2 - std::sys::backtrace::_print_fmt::hfd5825900b6e0030 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x59b29a18faf2 - ::fmt::h427144ad75cfb218 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x59b29a1a159f - core::fmt::rt::Argument::fmt::hd5ccc9cf97cea7f7 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x59b29a1a159f - core::fmt::write::h593aaf5adf0f5dae [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x59b29a15b741 - std::io::default_write_fmt::h305b5a0727055346 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x59b29a15b741 - std::io::Write::write_fmt::h76f14a8a88733dc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x59b29a1683f2 - std::sys::backtrace::BacktraceLock::print::h3953113552dca3ca [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x59b29a16d45f - std::panicking::default_hook::{{closure}}::h486b96ad75eafbb8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x59b29a16d2f1 - std::panicking::default_hook::h99456317c5a1a20c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x59b29995cd7e - as core::ops::function::Fn>::call::h441e4551014e4cf8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x59b29995cd7e - test::test_main_with_exit_callback::{{closure}}::hdbca54e17f1a00e4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x59b29a16dbcf - as core::ops::function::Fn>::call::h1e57b72c4e1d3045 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x59b29a16dbcf - std::panicking::panic_with_hook::h67ab0df20212e4ea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x59b29a16d97a - std::panicking::panic_handler::{{closure}}::hc9e4a933ae92e208 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x59b29a168539 - std::sys::backtrace::__rust_end_short_backtrace::hbfa72df9b68c2d19 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x59b29a14f77d - __rustc[8cce077e14951490]::rust_begin_unwind [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x59b29a1aba40 - core::panicking::panic_fmt::h49931053d20abf41 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x59b29a1aad46 - core::result::unwrap_failed::h7f5a2d4cf85d933f [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/result.rs:1854:5 [INFO] [stdout] 20: 0x59b299994a01 - core::result::Result::unwrap::h03108a362b9fcfbb [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/result.rs:1225:23 [INFO] [stdout] 21: 0x59b299994a01 - ctb::env_var::hb0fc378167d2d779 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:13:22 [INFO] [stdout] 22: 0x59b29998fbc3 - ctb::upbit_api::utils::create_jwt_token::h37ed7819839787bd [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:25:23 [INFO] [stdout] 23: 0x59b299991142 - ctb::upbit_api::utils::create_authorization_token::h6754626524ed90e1 [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:39:21 [INFO] [stdout] 24: 0x59b299990803 - ctb::upbit_api::utils::request_upbit_api::{{closure}}::hec82dfbe0a99b2dd [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:45:31 [INFO] [stdout] 25: 0x59b29998ac14 - ctb::upbit_api::account::check_my_account::{{closure}}::h5f911dd0d5562198 [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/account.rs:19:53 [INFO] [stdout] 26: 0x59b29993bc60 - account::test_check_my_account::{{closure}}::h703ed28c4a57b46b [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:5:37 [INFO] [stdout] 27: 0x59b29993b902 - as core::future::future::Future>::poll::h2150f273aa7495b8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 28: 0x59b29993b8bd - as core::future::future::Future>::poll::h0d47ec2f2dd79b77 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 29: 0x59b29993b42d - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::hf8df1fb003902c1e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:742:70 [INFO] [stdout] 30: 0x59b29993b18b - tokio::task::coop::with_budget::h26a52e7f135efee8 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:167:5 [INFO] [stdout] 31: 0x59b29993b18b - tokio::task::coop::budget::h97e3e33ef5ee93c7 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:133:5 [INFO] [stdout] 32: 0x59b29993b18b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h47fe27e5fdfe9fda [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:742:25 [INFO] [stdout] 33: 0x59b299938ac0 - tokio::runtime::scheduler::current_thread::Context::enter::hfc2003e81ac12695 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:432:19 [INFO] [stdout] 34: 0x59b299939dcd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h4d7600258601227b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:741:44 [INFO] [stdout] 35: 0x59b299939a94 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::hbd1f6049acdce356 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:829:68 [INFO] [stdout] 36: 0x59b2999360fb - tokio::runtime::context::scoped::Scoped::set::hcc03e357b75117a6 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 37: 0x59b299935df9 - tokio::runtime::context::set_scheduler::{{closure}}::h339430c1104c417f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:38 [INFO] [stdout] 38: 0x59b299933242 - std::thread::local::LocalKey::try_with::hce4a5d38138928f0 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 39: 0x59b29993264e - std::thread::local::LocalKey::with::hedfa020a1f20f1f0 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 40: 0x59b299935dad - tokio::runtime::context::set_scheduler::hbd066c697092efa9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:17 [INFO] [stdout] 41: 0x59b299939820 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h7cc1c45e0581b2c5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:829:27 [INFO] [stdout] 42: 0x59b299939b13 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h9a5dad15aafef965 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:729:24 [INFO] [stdout] 43: 0x59b299937da0 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::ha6a4ca8a28c5439c [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:200:33 [INFO] [stdout] 44: 0x59b2999367c0 - tokio::runtime::context::runtime::enter_runtime::he4cc503f7f2a9119 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 45: 0x59b299937761 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h423e157005956cb1 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:188:9 [INFO] [stdout] 46: 0x59b299937344 - tokio::runtime::runtime::Runtime::block_on_inner::hf4976c3c03cdf453 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/runtime.rs:356:52 [INFO] [stdout] 47: 0x59b29993750c - tokio::runtime::runtime::Runtime::block_on::h6e9abc3a7f4e62ad [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/runtime.rs:330:18 [INFO] [stdout] 48: 0x59b29993baa3 - account::test_check_my_account::h38ff09d9f2149d43 [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:6:30 [INFO] [stdout] 49: 0x59b29993bdb7 - account::test_check_my_account::{{closure}}::h9f184ed04ed6d5aa [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:4:33 [INFO] [stdout] 50: 0x59b2999338a6 - core::ops::function::FnOnce::call_once::h2088b2d010423cb5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 51: 0x59b29995cb3b - core::ops::function::FnOnce::call_once::h5d9016d521f5aee4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 52: 0x59b29995cb3b - test::__rust_begin_short_backtrace::h123fcee610330442 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:663:18 [INFO] [stdout] 53: 0x59b299972625 - test::run_test_in_process::{{closure}}::h0442efda2e6359b2 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:74 [INFO] [stdout] 54: 0x59b299972625 - as core::ops::function::FnOnce<()>>::call_once::hfe3528c8dd09682c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 55: 0x59b299972625 - std::panicking::catch_unwind::do_call::hb1659f7844fe8531 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 56: 0x59b299972625 - std::panicking::catch_unwind::hdc1f4be0019e72ad [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 57: 0x59b299972625 - std::panic::catch_unwind::hd6d7ccfa4513e770 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 58: 0x59b299972625 - test::run_test_in_process::h6bbb839ed0802366 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:27 [INFO] [stdout] 59: 0x59b299972625 - test::run_test::{{closure}}::he4fad7398c8acc11 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:607:43 [INFO] [stdout] 60: 0x59b299948f94 - test::run_test::{{closure}}::h41975797e198d26c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:637:41 [INFO] [stdout] 61: 0x59b299948f94 - std::sys::backtrace::__rust_begin_short_backtrace::hfb46c397857336f1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 62: 0x59b29994c93a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hddf826a64f532bea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 63: 0x59b29994c93a - as core::ops::function::FnOnce<()>>::call_once::hc3518c3eab91aeb3 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 64: 0x59b29994c93a - std::panicking::catch_unwind::do_call::h7bf3ad6dc012415a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 65: 0x59b29994c93a - std::panicking::catch_unwind::h8b88f0375c767e36 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 66: 0x59b29994c93a - std::panic::catch_unwind::h66cb5d61a90f7bc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 67: 0x59b29994c93a - std::thread::Builder::spawn_unchecked_::{{closure}}::h65bc9d15fb966bbd [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 68: 0x59b29994c93a - core::ops::function::FnOnce::call_once{{vtable.shim}}::he8d2c9a8796342e5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 69: 0x59b29a1624ff - as core::ops::function::FnOnce>::call_once::hef12b47e5c033835 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 70: 0x59b29a1624ff - std::sys::pal::unix::thread::Thread::new::thread_start::h135087e7c97657bc [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 71: 0x731f15a9faa4 - [INFO] [stdout] 72: 0x731f15b2ca34 - clone [INFO] [stdout] 73: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_check_my_account [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test account` [INFO] running `Command { std: "docker" "inspect" "38e3e8b246bc772da199917bb33810b130d3444fea23205854c9060396881fde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38e3e8b246bc772da199917bb33810b130d3444fea23205854c9060396881fde", kill_on_drop: false }` [INFO] [stdout] 38e3e8b246bc772da199917bb33810b130d3444fea23205854c9060396881fde