[INFO] cloning repository https://github.com/gabagool222/PolyRustArb-BOT [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gabagool222/PolyRustArb-BOT" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabagool222%2FPolyRustArb-BOT", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabagool222%2FPolyRustArb-BOT'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56fcf317d6efcc6390d23e26fd9f7cff09f93ff6 [INFO] checking gabagool222/PolyRustArb-BOT against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgabagool222%2FPolyRustArb-BOT" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gabagool222/PolyRustArb-BOT [INFO] finished tweaking git repo https://github.com/gabagool222/PolyRustArb-BOT [INFO] tweaked toml for git repo https://github.com/gabagool222/PolyRustArb-BOT written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gabagool222/PolyRustArb-BOT on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gabagool222/PolyRustArb-BOT 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.39.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09a4012921de4fd6935941adf760c6770993d0ff5cc259634c3d5adf4398a25e [INFO] running `Command { std: "docker" "start" "-a" "09a4012921de4fd6935941adf760c6770993d0ff5cc259634c3d5adf4398a25e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09a4012921de4fd6935941adf760c6770993d0ff5cc259634c3d5adf4398a25e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09a4012921de4fd6935941adf760c6770993d0ff5cc259634c3d5adf4398a25e", kill_on_drop: false }` [INFO] [stdout] 09a4012921de4fd6935941adf760c6770993d0ff5cc259634c3d5adf4398a25e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f868218da6adb5c0509b7c911cd2e1d2d10c2a5414abfbf4f2adebd347c6d52a [INFO] running `Command { std: "docker" "start" "-a" "f868218da6adb5c0509b7c911cd2e1d2d10c2a5414abfbf4f2adebd347c6d52a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 [INFO] [stderr] Compiling zmij v1.0.12 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking byte-slice-cast v1.2.3 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling camino v1.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking const_format v0.2.35 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Compiling bumpalo v3.19.1 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking const-hex v1.17.0 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Checking salsa20 v0.10.2 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Checking hashers v1.0.1 [INFO] [stderr] Checking scrypt v0.10.0 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking dunce v1.0.5 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking webpki-roots v1.0.5 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking futures-locks v0.7.1 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking uuid v1.19.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.106 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking openssl v0.10.75 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Compiling rust_decimal_macros v1.39.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.106 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking wasm-bindgen v0.2.106 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking js-sys v0.3.83 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking impl-serde v0.4.0 [INFO] [stderr] Checking cargo-platform v0.1.9 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking coins-core v0.8.7 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking cargo_metadata v0.18.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking coins-bip32 v0.8.7 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking native-tls v0.2.14 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Compiling scale-info v2.11.6 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Checking enr v0.10.0 [INFO] [stderr] Checking eth-keystore v0.5.0 [INFO] [stderr] Checking coins-bip39 v0.8.7 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking ethbloom v0.13.0 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Compiling open-fastrlp v0.1.4 [INFO] [stderr] Compiling ethabi v18.0.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling ethers-core v2.0.14 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking ethers-contract-abigen v2.0.14 [INFO] [stderr] Checking ethers-signers v2.0.14 [INFO] [stderr] Checking ethers-addressbook v2.0.14 [INFO] [stderr] Checking ethers-providers v2.0.14 [INFO] [stderr] Checking ethers-etherscan v2.0.14 [INFO] [stderr] Compiling ethers-contract-derive v2.0.14 [INFO] [stderr] Checking ethers-contract v2.0.14 [INFO] [stderr] Checking ethers-middleware v2.0.14 [INFO] [stderr] Checking ethers v2.0.14 [INFO] [stderr] Checking polymarket-arb-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `websocket::PolymarketWs` [INFO] [stdout] --> src/polymarket/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use websocket::PolymarketWs; [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 import: `CascadeDirection` [INFO] [stdout] --> src/trading/engine.rs:11:40 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bybit::{LiquidationCascade, CascadeDirection, CascadeAction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `broadcast` [INFO] [stdout] --> src/trading/engine.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::{broadcast, mpsc, RwLock}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strategy::StrategyManager` [INFO] [stdout] --> src/trading/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use strategy::StrategyManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::*` [INFO] [stdout] --> src/trading/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use types::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `websocket::PolymarketWs` [INFO] [stdout] --> src/polymarket/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use websocket::PolymarketWs; [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 import: `CascadeDirection` [INFO] [stdout] --> src/trading/engine.rs:11:40 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bybit::{LiquidationCascade, CascadeDirection, CascadeAction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `broadcast` [INFO] [stdout] --> src/trading/engine.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::{broadcast, mpsc, RwLock}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strategy::StrategyManager` [INFO] [stdout] --> src/trading/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use strategy::StrategyManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::*` [INFO] [stdout] --> src/trading/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use types::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/binance/mod.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/binance/mod.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `price`, and `timestamp` are never read [INFO] [stdout] --> src/binance/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct BinanceTick { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 20 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTick` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from_price`, `to_price`, and `timestamp` are never read [INFO] [stdout] --> src/binance/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct PriceMove { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub from_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub to_price: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub window_sec: u32, [INFO] [stdout] 34 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceMove` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_time` is never read [INFO] [stdout] --> src/binance/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct BinanceTickerMsg { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | event_time: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTickerMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/binance/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct BinanceCombinedMsg { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 68 | stream: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceCombinedMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscribeMsg` is never constructed [INFO] [stdout] --> src/binance/mod.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct SubscribeMsg { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price` is never used [INFO] [stdout] --> src/binance/mod.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 136 | impl BinanceWs { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn get_price(&self, symbol: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symbol_to_asset` is never used [INFO] [stdout] --> src/binance/mod.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn symbol_to_asset(symbol: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asset_to_symbol` is never used [INFO] [stdout] --> src/binance/mod.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | pub fn asset_to_symbol(asset: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `price` are never read [INFO] [stdout] --> src/bybit/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct LiquidationEvent { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidationEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hold` is never constructed [INFO] [stdout] --> src/bybit/mod.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum CascadeAction { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 86 | Hold, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CascadeAction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg_type` and `ts` are never read [INFO] [stdout] --> src/bybit/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct BybitWsResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | msg_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 100 | ts: u64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BybitWsResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `updated_time` is never read [INFO] [stdout] --> src/bybit/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | struct BybitLiquidationData { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 108 | updated_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BybitLiquidationData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_totals` is never used [INFO] [stdout] --> src/bybit/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl LiquidationAggregator { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn get_totals(&self, symbol: &str) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_totals` is never used [INFO] [stdout] --> src/bybit/mod.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 256 | impl BybitLiquidationWs { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 287 | pub async fn get_totals(&self, symbol: &str) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bybit_to_polymarket_asset` is never used [INFO] [stdout] --> src/bybit/mod.rs:519:8 [INFO] [stdout] | [INFO] [stdout] 519 | pub fn bybit_to_polymarket_asset(symbol: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dynamic_threshold` is never used [INFO] [stdout] --> src/bybit/mod.rs:530:8 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn get_dynamic_threshold(cascade: &LiquidationCascade) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_default` is never used [INFO] [stdout] --> src/config/mod.rs:454:12 [INFO] [stdout] | [INFO] [stdout] 438 | impl AppConfig { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn load_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobMarketsResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct ClobMarketsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobMarketData` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct ClobMarketData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobTokenData` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct ClobTokenData { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GammaEvent` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct GammaEvent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GammaMarket` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct GammaMarket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hash`, `timestamp`, `market`, and `asset_id` are never read [INFO] [stdout] --> src/polymarket/client.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 112 | struct OrderBookResponse { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 115 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 117 | market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 118 | asset_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketMetadataResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | struct MarketMetadataResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/polymarket/client.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 134 | impl PolymarketClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn fetch_markets(&self, slug_pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub async fn fetch_15min_crypto_markets(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | async fn fetch_updown_events(&self, ticker_pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 539 | pub async fn fetch_crypto_market_prices(&self, market: &CryptoMarket) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub async fn fetch_market_prices(&self, market: &Market) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 654 | fn get_yes_no_tokens<'a>(&self, market: &'a Market) -> Result<(&'a Token, &'a Token)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 670 | pub async fn get_market_metadata(&self, token_id: &str) -> Result<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 839 | pub async fn get_open_orders(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 972 | pub async fn get_fee_rate(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1133 | pub async fn verify_api_credentials(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1334 | pub async fn get_todays_fills(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1413 | pub async fn estimate_daily_rebates(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeResp` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:1117:24 [INFO] [stdout] | [INFO] [stdout] 1117 | struct TimeResp { timestamp: i64 } // server returns int timestamp [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FeeRateResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:1441:8 [INFO] [stdout] | [INFO] [stdout] 1441 | struct FeeRateResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `yes_token_id` and `no_token_id` are never used [INFO] [stdout] --> src/polymarket/types.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Market { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 59 | /// Get Yes/Up token ID (index 0) [INFO] [stdout] 60 | pub fn yes_token_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn no_token_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `binance_symbol` is never used [INFO] [stdout] --> src/polymarket/types.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl CryptoAsset { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 89 | /// Get Binance symbol for this asset [INFO] [stdout] 90 | pub fn binance_symbol(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spread_bps` is never used [INFO] [stdout] --> src/polymarket/types.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn spread_bps(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_arb_opportunity` and `cheaper_side` are never used [INFO] [stdout] --> src/polymarket/types.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 189 | impl MarketPrices { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn has_arb_opportunity(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn cheaper_side(&self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeResult` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct TradeResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsMessage` is never used [INFO] [stdout] --> src/polymarket/types.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | pub enum WsMessage { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsChannel` is never used [INFO] [stdout] --> src/polymarket/types.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | pub enum WsChannel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/polymarket/types.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 317 | impl WsChannel { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 318 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LegStatus` is never used [INFO] [stdout] --> src/polymarket/types.rs:329:10 [INFO] [stdout] | [INFO] [stdout] 329 | pub enum LegStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HedgeTrade` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct HedgeTrade { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FeeRate` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | pub struct FeeRate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `effective_rebate_at_price` is never used [INFO] [stdout] --> src/polymarket/types.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 373 | impl FeeRate { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 376 | pub fn effective_rebate_at_price(&self, price: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `volume` and `estimated_rebate` are never used [INFO] [stdout] --> src/polymarket/types.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 401 | impl Fill { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 402 | /// Calculate volume (price * size) in USD [INFO] [stdout] 403 | pub fn volume(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 408 | pub fn estimated_rebate(&self, rebate_rate_bps: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_id`, `bids`, `asks`, and `timestamp` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct OrderBookUpdate { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 30 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub bids: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub asks: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookUpdate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market`, `timestamp`, and `hash` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 40 | BookUpdate { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 44 | market: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 49 | #[serde(default)] [INFO] [stdout] 50 | hash: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market` and `timestamp` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | PriceChange { [INFO] [stdout] | ----------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 55 | market: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/polymarket/websocket.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 62 | LegacyPriceChange { [INFO] [stdout] | ----------------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 68 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `side` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct PriceChangeItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | #[serde(default)] [INFO] [stdout] 80 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceChangeItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_price` and `get_orderbook` are never used [INFO] [stdout] --> src/polymarket/websocket.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 110 | impl PolymarketWs { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub async fn get_price(&self, token_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn get_orderbook(&self, token_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `signal_tx` and `signal_rx` are never read [INFO] [stdout] --> src/trading/engine.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | signal_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | signal_rx: mpsc::Receiver, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/trading/engine.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl TradingEngine { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn get_balance(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn get_dynamic_threshold(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn check_balance_sufficient(&self, required: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn get_cached_market(&self, condition_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn place_limit_buy( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub async fn execute_hedge_batch( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | fn get_tick_digits(tick_size: Decimal) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | fn estimate_maker_rebate(&self, price: Decimal, size: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1174 | fn calculate_leg2( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1264 | pub async fn record_trade_result(&self, trade_id: &str, pnl: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1316 | pub async fn pause(&self, reason: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1324 | pub async fn resume(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1332 | pub async fn reset_daily_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_leg2` is never used [INFO] [stdout] --> src/trading/strategy.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl HedgingStrategy { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn calculate_leg2( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_limit_price_for_rebate` is never used [INFO] [stdout] --> src/trading/strategy.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn optimize_limit_price_for_rebate( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/trading/types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Signal { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Signal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HedgeExit` and `StopLoss` are never constructed [INFO] [stdout] --> src/trading/types.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum SignalType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | HedgeExit, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | StopLoss, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderStatus` is never used [INFO] [stdout] --> src/trading/types.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum OrderStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlacedOrder` is never constructed [INFO] [stdout] --> src/trading/types.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct PlacedOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cost`, `potential_win`, `profit_if_win`, and `is_filled` are never used [INFO] [stdout] --> src/trading/types.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl PlacedOrder { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 167 | /// Calculate cost of order [INFO] [stdout] 168 | pub fn cost(&self) -> Decimal { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn potential_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn profit_if_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn is_filled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `total_cost`, `unrealized_pnl`, and `realized_pnl` are never read [INFO] [stdout] --> src/trading/types.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 196 | pub total_cost: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 197 | pub unrealized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 198 | pub realized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `net_exposure`, `is_hedged`, and `total_shares` are never used [INFO] [stdout] --> src/trading/types.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Position { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 202 | pub fn new(market_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn net_exposure(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn is_hedged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn total_shares(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `avg_pnl` is never used [INFO] [stdout] --> src/trading/types.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 239 | impl DailyStats { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn avg_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `daily_exposure` is never read [INFO] [stdout] --> src/trading/types.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct RiskState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 258 | pub daily_loss: Decimal, [INFO] [stdout] 259 | pub daily_exposure: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_trade` is never used [INFO] [stdout] --> src/utils/logging.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn log_trade( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_pnl` is never used [INFO] [stdout] --> src/utils/logging.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn log_pnl( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_price_move` is never used [INFO] [stdout] --> src/utils/logging.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn log_price_move( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_risk_event` is never used [INFO] [stdout] --> src/utils/logging.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn log_risk_event(event: &str, details: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils/pnl.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PnlTracker { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn record_trade(&mut self, trade: &HedgeTrade) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn calculate_trade_pnl(&self, trade: &HedgeTrade) -> (Decimal, Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn append_to_file(&self, record: &PnlRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn get_cumulative_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn get_simulated_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn get_real_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_daily_summary(&self, date: &str) -> DailySummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailySummary` is never constructed [INFO] [stdout] --> src/utils/pnl.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct DailySummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_fill`, `record_simulated_order`, `estimate_rebate_for_fill`, `get_simulated_totals`, `reset_daily`, and `get_historical` are never used [INFO] [stdout] --> src/utils/rebates.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl RebateTracker { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn record_fill(&mut self, fill: &Fill, is_simulated: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn record_simulated_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn estimate_rebate_for_fill(&self, fill: &Fill) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn get_simulated_totals(&self) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn get_historical(&self, date: &str) -> Option<&DailyRebateRecord> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `should_prioritize_for_rebates` is never used [INFO] [stdout] --> src/utils/rebates.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn should_prioritize_for_rebates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> src/utils/simulation.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct VirtualOrder { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualOrder` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PartiallyFilled` and `Cancelled` are never constructed [INFO] [stdout] --> src/utils/simulation.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum VirtualOrderStatus { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 31 | Open, [INFO] [stdout] 32 | PartiallyFilled, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | Filled, [INFO] [stdout] 34 | Cancelled, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualOrderStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/utils/simulation.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct VirtualPosition { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 40 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualPosition` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resolve_market`, `cancel_order`, and `get_open_orders` are never used [INFO] [stdout] --> src/utils/simulation.rs:223:18 [INFO] [stdout] | [INFO] [stdout] 59 | impl SimulationEngine { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | pub async fn resolve_market(&self, token_id: &str, winning_outcome: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub async fn get_open_orders(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `price`, and `timestamp` are never read [INFO] [stdout] --> src/binance/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct BinanceTick { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 20 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTick` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from_price`, `to_price`, and `timestamp` are never read [INFO] [stdout] --> src/binance/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct PriceMove { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub from_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub to_price: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub window_sec: u32, [INFO] [stdout] 34 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceMove` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_time` is never read [INFO] [stdout] --> src/binance/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct BinanceTickerMsg { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | event_time: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTickerMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/binance/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct BinanceCombinedMsg { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 68 | stream: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceCombinedMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscribeMsg` is never constructed [INFO] [stdout] --> src/binance/mod.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct SubscribeMsg { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price` is never used [INFO] [stdout] --> src/binance/mod.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 136 | impl BinanceWs { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn get_price(&self, symbol: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symbol_to_asset` is never used [INFO] [stdout] --> src/binance/mod.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn symbol_to_asset(symbol: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asset_to_symbol` is never used [INFO] [stdout] --> src/binance/mod.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | pub fn asset_to_symbol(asset: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `price` are never read [INFO] [stdout] --> src/bybit/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct LiquidationEvent { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidationEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hold` is never constructed [INFO] [stdout] --> src/bybit/mod.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum CascadeAction { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 86 | Hold, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CascadeAction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg_type` and `ts` are never read [INFO] [stdout] --> src/bybit/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct BybitWsResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | msg_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 100 | ts: u64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BybitWsResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `updated_time` is never read [INFO] [stdout] --> src/bybit/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | struct BybitLiquidationData { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 108 | updated_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BybitLiquidationData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_totals` is never used [INFO] [stdout] --> src/bybit/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl LiquidationAggregator { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn get_totals(&self, symbol: &str) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_totals` is never used [INFO] [stdout] --> src/bybit/mod.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 256 | impl BybitLiquidationWs { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 287 | pub async fn get_totals(&self, symbol: &str) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bybit_to_polymarket_asset` is never used [INFO] [stdout] --> src/bybit/mod.rs:519:8 [INFO] [stdout] | [INFO] [stdout] 519 | pub fn bybit_to_polymarket_asset(symbol: &str) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dynamic_threshold` is never used [INFO] [stdout] --> src/bybit/mod.rs:530:8 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn get_dynamic_threshold(cascade: &LiquidationCascade) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_default` is never used [INFO] [stdout] --> src/config/mod.rs:454:12 [INFO] [stdout] | [INFO] [stdout] 438 | impl AppConfig { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn load_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobMarketsResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct ClobMarketsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobMarketData` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct ClobMarketData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobTokenData` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct ClobTokenData { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GammaEvent` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct GammaEvent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GammaMarket` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct GammaMarket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hash`, `timestamp`, `market`, and `asset_id` are never read [INFO] [stdout] --> src/polymarket/client.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 112 | struct OrderBookResponse { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 115 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 117 | market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 118 | asset_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketMetadataResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | struct MarketMetadataResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/polymarket/client.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 134 | impl PolymarketClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn fetch_markets(&self, slug_pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub async fn fetch_15min_crypto_markets(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | async fn fetch_updown_events(&self, ticker_pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 539 | pub async fn fetch_crypto_market_prices(&self, market: &CryptoMarket) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub async fn fetch_market_prices(&self, market: &Market) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 654 | fn get_yes_no_tokens<'a>(&self, market: &'a Market) -> Result<(&'a Token, &'a Token)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 670 | pub async fn get_market_metadata(&self, token_id: &str) -> Result<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 839 | pub async fn get_open_orders(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 972 | pub async fn get_fee_rate(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1133 | pub async fn verify_api_credentials(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1334 | pub async fn get_todays_fills(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1413 | pub async fn estimate_daily_rebates(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeResp` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:1117:24 [INFO] [stdout] | [INFO] [stdout] 1117 | struct TimeResp { timestamp: i64 } // server returns int timestamp [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FeeRateResponse` is never constructed [INFO] [stdout] --> src/polymarket/client.rs:1441:8 [INFO] [stdout] | [INFO] [stdout] 1441 | struct FeeRateResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `yes_token_id` and `no_token_id` are never used [INFO] [stdout] --> src/polymarket/types.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Market { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 59 | /// Get Yes/Up token ID (index 0) [INFO] [stdout] 60 | pub fn yes_token_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn no_token_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `binance_symbol` is never used [INFO] [stdout] --> src/polymarket/types.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl CryptoAsset { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 89 | /// Get Binance symbol for this asset [INFO] [stdout] 90 | pub fn binance_symbol(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spread_bps` is never used [INFO] [stdout] --> src/polymarket/types.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn spread_bps(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_arb_opportunity` and `cheaper_side` are never used [INFO] [stdout] --> src/polymarket/types.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 189 | impl MarketPrices { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn has_arb_opportunity(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn cheaper_side(&self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeResult` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct TradeResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsMessage` is never used [INFO] [stdout] --> src/polymarket/types.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | pub enum WsMessage { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsChannel` is never used [INFO] [stdout] --> src/polymarket/types.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | pub enum WsChannel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/polymarket/types.rs:318:12 [INFO] [stdout] | [INFO] [stdout] 317 | impl WsChannel { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 318 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LegStatus` is never used [INFO] [stdout] --> src/polymarket/types.rs:329:10 [INFO] [stdout] | [INFO] [stdout] 329 | pub enum LegStatus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HedgeTrade` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct HedgeTrade { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FeeRate` is never constructed [INFO] [stdout] --> src/polymarket/types.rs:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | pub struct FeeRate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `effective_rebate_at_price` is never used [INFO] [stdout] --> src/polymarket/types.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 373 | impl FeeRate { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 376 | pub fn effective_rebate_at_price(&self, price: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `volume` and `estimated_rebate` are never used [INFO] [stdout] --> src/polymarket/types.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 401 | impl Fill { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 402 | /// Calculate volume (price * size) in USD [INFO] [stdout] 403 | pub fn volume(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 408 | pub fn estimated_rebate(&self, rebate_rate_bps: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_id`, `bids`, `asks`, and `timestamp` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct OrderBookUpdate { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 30 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub bids: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub asks: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub timestamp: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookUpdate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market`, `timestamp`, and `hash` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 40 | BookUpdate { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 44 | market: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 49 | #[serde(default)] [INFO] [stdout] 50 | hash: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market` and `timestamp` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | PriceChange { [INFO] [stdout] | ----------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 55 | market: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/polymarket/websocket.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 62 | LegacyPriceChange { [INFO] [stdout] | ----------------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 68 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsIncoming` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `side` are never read [INFO] [stdout] --> src/polymarket/websocket.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct PriceChangeItem { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | #[serde(default)] [INFO] [stdout] 80 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceChangeItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_price` and `get_orderbook` are never used [INFO] [stdout] --> src/polymarket/websocket.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 110 | impl PolymarketWs { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub async fn get_price(&self, token_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn get_orderbook(&self, token_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `signal_tx` and `signal_rx` are never read [INFO] [stdout] --> src/trading/engine.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | signal_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | signal_rx: mpsc::Receiver, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/trading/engine.rs:80:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl TradingEngine { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn get_balance(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn get_dynamic_threshold(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn check_balance_sufficient(&self, required: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn get_cached_market(&self, condition_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn place_limit_buy( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub async fn execute_hedge_batch( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | fn get_tick_digits(tick_size: Decimal) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | fn estimate_maker_rebate(&self, price: Decimal, size: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1174 | fn calculate_leg2( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1264 | pub async fn record_trade_result(&self, trade_id: &str, pnl: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1316 | pub async fn pause(&self, reason: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1324 | pub async fn resume(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1332 | pub async fn reset_daily_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_leg2` is never used [INFO] [stdout] --> src/trading/strategy.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl HedgingStrategy { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn calculate_leg2( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_limit_price_for_rebate` is never used [INFO] [stdout] --> src/trading/strategy.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn optimize_limit_price_for_rebate( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/trading/types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Signal { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Signal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HedgeExit` and `StopLoss` are never constructed [INFO] [stdout] --> src/trading/types.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum SignalType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | HedgeExit, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | StopLoss, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderStatus` is never used [INFO] [stdout] --> src/trading/types.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum OrderStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlacedOrder` is never constructed [INFO] [stdout] --> src/trading/types.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct PlacedOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cost`, `potential_win`, `profit_if_win`, and `is_filled` are never used [INFO] [stdout] --> src/trading/types.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl PlacedOrder { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 167 | /// Calculate cost of order [INFO] [stdout] 168 | pub fn cost(&self) -> Decimal { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn potential_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn profit_if_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn is_filled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `total_cost`, `unrealized_pnl`, and `realized_pnl` are never read [INFO] [stdout] --> src/trading/types.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 196 | pub total_cost: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 197 | pub unrealized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 198 | pub realized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `net_exposure`, `is_hedged`, and `total_shares` are never used [INFO] [stdout] --> src/trading/types.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Position { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 202 | pub fn new(market_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn net_exposure(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn is_hedged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn total_shares(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `avg_pnl` is never used [INFO] [stdout] --> src/trading/types.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 239 | impl DailyStats { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn avg_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `daily_exposure` is never read [INFO] [stdout] --> src/trading/types.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct RiskState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 258 | pub daily_loss: Decimal, [INFO] [stdout] 259 | pub daily_exposure: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_trade` is never used [INFO] [stdout] --> src/utils/logging.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn log_trade( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_pnl` is never used [INFO] [stdout] --> src/utils/logging.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn log_pnl( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_price_move` is never used [INFO] [stdout] --> src/utils/logging.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn log_price_move( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_risk_event` is never used [INFO] [stdout] --> src/utils/logging.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn log_risk_event(event: &str, details: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils/pnl.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PnlTracker { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn record_trade(&mut self, trade: &HedgeTrade) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn calculate_trade_pnl(&self, trade: &HedgeTrade) -> (Decimal, Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn append_to_file(&self, record: &PnlRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn get_cumulative_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn get_simulated_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn get_real_pnl(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_daily_summary(&self, date: &str) -> DailySummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailySummary` is never constructed [INFO] [stdout] --> src/utils/pnl.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 298 | pub struct DailySummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils/rebates.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl RebateTracker { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn record_fill(&mut self, fill: &Fill, is_simulated: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn record_simulated_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn estimate_rebate_for_fill(&self, fill: &Fill) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn calculate_rebate_at_price(&self, price: Decimal, volume: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn get_simulated_totals(&self) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn get_historical(&self, date: &str) -> Option<&DailyRebateRecord> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `should_prioritize_for_rebates` is never used [INFO] [stdout] --> src/utils/rebates.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn should_prioritize_for_rebates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> src/utils/simulation.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct VirtualOrder { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualOrder` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Open`, `PartiallyFilled`, and `Cancelled` are never constructed [INFO] [stdout] --> src/utils/simulation.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum VirtualOrderStatus { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 31 | Open, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | PartiallyFilled, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | Filled, [INFO] [stdout] 34 | Cancelled, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualOrderStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/utils/simulation.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct VirtualPosition { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 40 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VirtualPosition` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `place_order`, `resolve_market`, `cancel_order`, and `get_open_orders` are never used [INFO] [stdout] --> src/utils/simulation.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 59 | impl SimulationEngine { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn place_order(&self, request: &OrderRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub async fn resolve_market(&self, token_id: &str, winning_outcome: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub async fn get_open_orders(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 32s [INFO] running `Command { std: "docker" "inspect" "f868218da6adb5c0509b7c911cd2e1d2d10c2a5414abfbf4f2adebd347c6d52a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f868218da6adb5c0509b7c911cd2e1d2d10c2a5414abfbf4f2adebd347c6d52a", kill_on_drop: false }` [INFO] [stdout] f868218da6adb5c0509b7c911cd2e1d2d10c2a5414abfbf4f2adebd347c6d52a