[INFO] cloning repository https://github.com/eightfx/FTX_to_MySQL [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eightfx/FTX_to_MySQL" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f1e80fc05426522af7056b8bda13f8598d68ae9 [INFO] checking eightfx/FTX_to_MySQL against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eightfx/FTX_to_MySQL on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eightfx/FTX_to_MySQL [INFO] finished tweaking git repo https://github.com/eightfx/FTX_to_MySQL [INFO] tweaked toml for git repo https://github.com/eightfx/FTX_to_MySQL written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eightfx/FTX_to_MySQL 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hmac-sha256 v0.1.7 [INFO] [stderr] Downloaded tokio-tungstenite v0.14.0 [INFO] [stderr] Downloaded serde_with v1.11.0 [INFO] [stderr] Downloaded rust_decimal_macros v1.19.0 [INFO] [stderr] Downloaded mysqlclient-sys v0.2.4 [INFO] [stderr] Downloaded serde_with_macros v1.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a0018a1b43cb4e1887c19c9267f7587811b33803c9b4040d60d5711ffcac344 [INFO] running `Command { std: "docker" "start" "-a" "2a0018a1b43cb4e1887c19c9267f7587811b33803c9b4040d60d5711ffcac344", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a0018a1b43cb4e1887c19c9267f7587811b33803c9b4040d60d5711ffcac344", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a0018a1b43cb4e1887c19c9267f7587811b33803c9b4040d60d5711ffcac344", kill_on_drop: false }` [INFO] [stdout] 2a0018a1b43cb4e1887c19c9267f7587811b33803c9b4040d60d5711ffcac344 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a468b0ded23ddc8a8fcca4bd358c43877587a73b91e7c104fd4bf160ba5bcb53 [INFO] running `Command { std: "docker" "start" "-a" "a468b0ded23ddc8a8fcca4bd358c43877587a73b91e7c104fd4bf160ba5bcb53", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking hmac-sha256 v0.1.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling rust_decimal v1.19.0 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling rust_decimal_macros v1.19.0 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking tokio v1.15.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking tungstenite v0.13.0 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Checking diesel v1.4.8 [INFO] [stderr] Checking futures-executor v0.3.19 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-tungstenite v0.14.0 [INFO] [stderr] Checking h2 v0.3.10 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_qs v0.8.5 [INFO] [stderr] Checking serde_with v1.11.0 [INFO] [stderr] Checking hyper v0.14.16 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.8 [INFO] [stderr] Checking FTX_to_MySQL v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: crate `FTX_to_MySQL` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ftx_to_my_sql` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::fills::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::fills::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::spot_margin::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::spot_margin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketType` [INFO] [stdout] --> src/ftx/ws/model.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::ftx::rest::{Coin, Id, MarketType, OrderInfo, Side, Symbol}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::spot_margin::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::spot_margin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketType` [INFO] [stdout] --> src/ftx/ws/model.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::ftx::rest::{Coin, Id, MarketType, OrderInfo, Side, Symbol}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let x = future::join_all(tasks.into_iter()).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 24 | id: i32, [INFO] [stdout] 25 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Us` is never constructed [INFO] [stdout] --> src/ftx/options.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Endpoint { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Com, [INFO] [stdout] 6 | Us, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` 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 `rest` and `header_prefix` are never used [INFO] [stdout] --> src/ftx/options.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Endpoint { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn rest(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn header_prefix(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `us`, `from_env_us`, and `subaccount` are never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl Options { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn subaccount(mut self, subaccount: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rest` is never constructed [INFO] [stdout] --> src/ftx/rest/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Rest { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ftx/rest/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Rest { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 36 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn request(&self, req: R) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | pub async fn cancel_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/ftx/rest/error.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Api`, `PlacingLimitOrderRequiresPrice`, and `NoSecretConfigured` are never constructed [INFO] [stdout] --> src/ftx/rest/error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | #[error("Api error: {0}")] [INFO] [stdout] 8 | Api(String), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | PlacingLimitOrderRequiresPrice, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | NoSecretConfigured, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `path` is never used [INFO] [stdout] --> src/ftx/rest/model/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Request: Serialize { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 36 | fn path(&self) -> Cow<'_, str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `result` are never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct SuccessResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 43 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 44 | pub result: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SuccessResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `error` are never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ErrorResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 49 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 50 | pub error: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/account.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | pub backstop_provider: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub charge_interest_on_negative_usd: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub free_collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub liquidating: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub maker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub open_margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub position_limit: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub position_limit_used: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub taker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | pub total_account_value: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub total_position_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub use_ftt_collateral: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | pub leverage: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub positions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub spot_lending_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub spot_margin_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/account.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ChangeAccountLeverage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/common.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 109 | pub cost: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 110 | pub entry_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | pub estimated_liquidation_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | pub future: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 113 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | pub long_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | pub net_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 117 | pub open_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 118 | pub realized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 119 | pub short_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 121 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub unrealized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 123 | pub collateral_used: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/fills.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl GetFills { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Future { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub change1h: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub change24h: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | pub change_bod: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub volume_usd24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub volume: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | pub expired: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub expiry: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | pub imf_factor: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub lower_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub mark: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub perpetual: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub position_limit_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub underlying: Symbol, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub upper_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | #[serde(rename = "type")] [INFO] [stdout] 37 | pub market_type: FutureType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Future` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/futures.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl GetFuture { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(future_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `future`, `rate`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FundingRate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 82 | pub future: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | pub rate: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FundingRate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct FutureStats { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 104 | pub volume: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub next_funding_rate: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | pub next_funding_time: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | pub expiration_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | pub predicted_expiration_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 109 | pub strike_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | pub open_interest: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FutureStats` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | #[serde(rename = "type")] [INFO] [stdout] 13 | pub market_type: MarketType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pub underlying: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub restricted: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub min_provide_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub price: Option, // Sometimes, there is no price available? [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub high_leverage_fee_exempt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub change1h: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub change24h: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub change_bod: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub quote_volume24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub volume_usd24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl GetMarket { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asks` and `bids` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Orderbook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 78 | pub asks: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | pub bids: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_depth` are never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl GetOrderBook { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 92 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn with_depth(market_name: &str, depth: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, `price`, `side`, `size`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 122 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 123 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 124 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 149 | impl GetTrades { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 150 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `close`, `high`, `low`, `open`, `volume`, and `start_time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 173 | pub close: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 174 | pub high: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | pub low: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 176 | pub open: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | pub volume: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 178 | pub start_time: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Price` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 200 | impl GetHistoricalPrices { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/orders.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct OrderInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub r#type: OrderType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub price: Option, // null for new market orders [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub reduce_only: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub ioc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub post_only: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub status: OrderStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub filled_size: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub remaining_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub avg_fill_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub liquidation: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | pub client_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub retry_until_filled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub trigger_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub order_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub triggered_at: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `all_market` and `with_market` are never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GetOpenOrders { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 43 | pub fn all_market() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl GetOrder { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 120 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl CancelOrder { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 144 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 174 | impl CancelAllOrder { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 198 | impl CancelOrderByClientId { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl GetOrderByClientId { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `estimate`, and `previous` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LendingRate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 15 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub estimate: Decimal, // estimated hourly lending rate for the next spot margin cycle [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub previous: Decimal, // hourly lending rate in the previous spot margin cycle [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingRate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `proceeds`, `rate`, `size`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct MyLendingHistory { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 31 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub proceeds: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub rate: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyLendingHistory` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `lendable`, `locked`, `min_rate`, and `offered` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct LendingInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | pub lendable: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | pub locked: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 69 | pub min_rate: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub offered: Decimal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, `editable`, and `competition` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Subaccount { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 16 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub competition: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Subaccount` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl CreateSubaccount { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 39 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, and `editable` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Create { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 49 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Create` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ChangeSubaccountName { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 70 | pub fn new(nickname: &str, new_nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl DeleteSubaccount { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 93 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `free`, `total`, `spot_borrow`, and `available_without_borrow` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Balance { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 111 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 112 | pub free: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | pub total: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | pub spot_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 115 | pub available_without_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Balance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl GetSubaccountBalances { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 126 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `coin`, `size`, `time`, and `notes` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Transfer { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 148 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 149 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 150 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 151 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 152 | pub notes: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transfer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl TransferBetweenSubaccounts { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 165 | pub fn new(coin: &str, size: S, source: &str, destination: &str) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address` and `tag` are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WalletDepositAddress { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 12 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub tag: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletDepositAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `free`, `total`, `spot_borrow`, `available_without_borrow`, and `usd_value` are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WalletBalance { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 19 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | pub free: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub spot_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub available_without_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub usd_value: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletBalance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WalletDeposit { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 32 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 33 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub time: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub status: DepositStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub confirmations: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub confirmed_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub fee: Option, // fee, not included in size [INFO] [stdout] | ^^^ [INFO] [stdout] 40 | pub txid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | pub notes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletDeposit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_method` are never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl GetWalletDepositAddress { [INFO] [stdout] | ---------------------------- associated functions in this implementation [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CoinInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 120 | pub id: Coin, // "USDT" [INFO] [stdout] | ^^ [INFO] [stdout] 121 | pub name: String, // "USD Tether" [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub collateral: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 123 | pub usd_fungible: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 124 | pub is_etf: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 125 | pub is_token: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 126 | pub hidden: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 127 | pub can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 128 | pub can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 129 | pub can_convert: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 130 | pub has_tag: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 131 | pub collateral_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub fiat: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | pub methods: Vec, // ["omni", "erc20", "trx", "sol", "heco"] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 134 | pub erc20_contract: Option, // "0xdAC17F958D2ee523a2206206994597C13D831ec7" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 135 | pub bep2_asset: Option, // "ETHBEAR-B2B" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 136 | pub trc20_contract: Option, // "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 137 | pub spl_mint: Option, // "BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 138 | pub credit_to: Option, // "USDT" [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 139 | pub spot_margin: bool, // Not documented [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 140 | pub tokenized_equity: Option, // Not documented [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 141 | pub index_price: Decimal, // Not documented; note that ~8% return 1e-8 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct WalletWithdrawal { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 159 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 160 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 161 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 162 | pub time: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 163 | pub address: Option, // `None` for transfers between sub-accounts [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 164 | pub status: WithdrawStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 165 | pub fee: Option, // fee, not included in size [INFO] [stdout] | ^^^ [INFO] [stdout] 166 | pub txid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 167 | pub tag: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 168 | pub notes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletWithdrawal` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ENDPOINT`, `ENDPOINT_US`, `unsubscribe`, and `unsubscribe_all` are never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 36 | impl Ws { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub const ENDPOINT_US: &'static str = "wss://ftx.us/ws"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub async fn unsubscribe(&mut self, channels: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn unsubscribe_all(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotSubscribedToThisChannel` and `Disconnected` are never constructed [INFO] [stdout] --> src/ftx/ws/error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 9 | #[error("Not subscribed to this channel {0:?}")] [INFO] [stdout] 10 | NotSubscribedToThisChannel(Channel), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(Ticker), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | Fill(Fill), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 | Fill(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | Order(OrderInfo), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 69 | Order(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bid`, `ask`, `bid_size`, `ask_size`, `last`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Ticker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 76 | pub bid: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | pub ask: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | pub bid_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | pub ask_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 80 | pub last: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 82 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ticker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 88 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub time: DateTime, // API returns "2021-05-23T05:24:24.315884+00:00" [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `checksum` and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct OrderbookData { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 107 | pub checksum: Checksum, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 108 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 109 | pub time: DateTime, // API returns 1621740952.5079553 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 128 | pub symbol: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ftx/ws/model.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl Orderbook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn verify_checksum(&self, checksum: Checksum) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn bid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn ask_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn mid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn best_bid_and_ask(&self) -> Option<((Decimal, Decimal), (Decimal, Decimal))> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn quote(&self, side: Side, quantity: Decimal) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/ws/model.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct Fill { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 293 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 294 | pub market: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 295 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 296 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 297 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 298 | pub r#type: String, // e.g. "order" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 299 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 301 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 302 | pub order_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 303 | pub trade_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 304 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 305 | pub fee: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 306 | pub fee_rate: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 307 | pub fee_currency: Coin, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 308 | pub liquidity: Liquidity, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fill` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let x = future::join_all(tasks.into_iter()).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 24 | id: i32, [INFO] [stdout] 25 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Us` is never constructed [INFO] [stdout] --> src/ftx/options.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Endpoint { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Com, [INFO] [stdout] 6 | Us, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` 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 `us`, `from_env_us`, and `subaccount` are never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl Options { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn subaccount(mut self, subaccount: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ftx/rest/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl Rest { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | pub async fn cancel_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlacingLimitOrderRequiresPrice` is never constructed [INFO] [stdout] --> src/ftx/rest/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | PlacingLimitOrderRequiresPrice, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `success` is never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct SuccessResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SuccessResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `success` is never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ErrorResponse { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 49 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/account.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | pub backstop_provider: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub charge_interest_on_negative_usd: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub free_collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub liquidating: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub maker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub open_margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub position_limit: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub position_limit_used: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub taker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | pub total_account_value: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub total_position_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub use_ftt_collateral: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | pub leverage: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub positions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub spot_lending_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub spot_margin_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/account.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ChangeAccountLeverage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/common.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 109 | pub cost: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 110 | pub entry_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | pub estimated_liquidation_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | pub future: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 113 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | pub long_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | pub net_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 117 | pub open_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 118 | pub realized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 119 | pub short_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 121 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub unrealized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 123 | pub collateral_used: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Future { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub change1h: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub change24h: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | pub change_bod: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub volume_usd24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub volume: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | pub expired: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub expiry: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | pub imf_factor: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub lower_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub mark: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub perpetual: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub position_limit_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub underlying: Symbol, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub upper_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | #[serde(rename = "type")] [INFO] [stdout] 37 | pub market_type: FutureType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Future` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `future`, `rate`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FundingRate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 82 | pub future: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | pub rate: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FundingRate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct FutureStats { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 104 | pub volume: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub next_funding_rate: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | pub next_funding_time: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | pub expiration_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | pub predicted_expiration_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 109 | pub strike_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 110 | pub open_interest: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FutureStats` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | #[serde(rename = "type")] [INFO] [stdout] 13 | pub market_type: MarketType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pub underlying: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub restricted: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub min_provide_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub price: Option, // Sometimes, there is no price available? [INFO] [stdout] 28 | pub high_leverage_fee_exempt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub change1h: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub change24h: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub change_bod: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub quote_volume24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub volume_usd24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asks` and `bids` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Orderbook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 78 | pub asks: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | pub bids: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, `price`, `side`, `size`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 122 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 123 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 124 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `close`, `high`, `low`, `open`, `volume`, and `start_time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 173 | pub close: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 174 | pub high: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | pub low: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 176 | pub open: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | pub volume: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 178 | pub start_time: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Price` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 200 | impl GetHistoricalPrices { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/orders.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct OrderInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | pub id: Id, [INFO] [stdout] 13 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub r#type: OrderType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub reduce_only: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub ioc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub post_only: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub remaining_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub avg_fill_price: Option, [INFO] [stdout] 26 | pub liquidation: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | pub client_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub retry_until_filled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub trigger_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub order_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub triggered_at: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 174 | impl CancelAllOrder { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 198 | impl CancelOrderByClientId { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl GetOrderByClientId { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `estimate`, and `previous` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LendingRate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 15 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub estimate: Decimal, // estimated hourly lending rate for the next spot margin cycle [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub previous: Decimal, // hourly lending rate in the previous spot margin cycle [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingRate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `proceeds`, `rate`, `size`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct MyLendingHistory { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 31 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub proceeds: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub rate: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyLendingHistory` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `lendable`, `locked`, `min_rate`, and `offered` are never read [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct LendingInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | pub lendable: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | pub locked: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 69 | pub min_rate: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub offered: Decimal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LendingInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, `editable`, and `competition` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Subaccount { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 16 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub competition: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Subaccount` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, and `editable` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Create { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 49 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Create` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `free`, `total`, `spot_borrow`, and `available_without_borrow` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Balance { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 111 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 112 | pub free: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | pub total: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | pub spot_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 115 | pub available_without_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Balance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `coin`, `size`, `time`, and `notes` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Transfer { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 148 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 149 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 150 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 151 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 152 | pub notes: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transfer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address` and `tag` are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WalletDepositAddress { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 12 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub tag: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletDepositAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `free`, `total`, `spot_borrow`, `available_without_borrow`, and `usd_value` are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WalletBalance { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 19 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | pub free: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub spot_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub available_without_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub usd_value: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletBalance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WalletDeposit { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 32 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 33 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub time: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub status: DepositStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub confirmations: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub confirmed_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub fee: Option, // fee, not included in size [INFO] [stdout] | ^^^ [INFO] [stdout] 40 | pub txid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | pub notes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletDeposit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_method` are never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl GetWalletDepositAddress { [INFO] [stdout] | ---------------------------- associated functions in this implementation [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CoinInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 120 | pub id: Coin, // "USDT" [INFO] [stdout] | ^^ [INFO] [stdout] 121 | pub name: String, // "USD Tether" [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub collateral: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 123 | pub usd_fungible: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 124 | pub is_etf: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 125 | pub is_token: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 126 | pub hidden: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 127 | pub can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 128 | pub can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 129 | pub can_convert: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 130 | pub has_tag: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 131 | pub collateral_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub fiat: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | pub methods: Vec, // ["omni", "erc20", "trx", "sol", "heco"] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 134 | pub erc20_contract: Option, // "0xdAC17F958D2ee523a2206206994597C13D831ec7" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 135 | pub bep2_asset: Option, // "ETHBEAR-B2B" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 136 | pub trc20_contract: Option, // "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 137 | pub spl_mint: Option, // "BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 138 | pub credit_to: Option, // "USDT" [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 139 | pub spot_margin: bool, // Not documented [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 140 | pub tokenized_equity: Option, // Not documented [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 141 | pub index_price: Decimal, // Not documented; note that ~8% return 1e-8 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct WalletWithdrawal { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 159 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 160 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 161 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 162 | pub time: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 163 | pub address: Option, // `None` for transfers between sub-accounts [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 164 | pub status: WithdrawStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 165 | pub fee: Option, // fee, not included in size [INFO] [stdout] | ^^^ [INFO] [stdout] 166 | pub txid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 167 | pub tag: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 168 | pub notes: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletWithdrawal` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `ENDPOINT` and `ENDPOINT_US` are never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 36 | impl Ws { [INFO] [stdout] | ------- associated constants in this implementation [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub const ENDPOINT_US: &'static str = "wss://ftx.us/ws"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Disconnected` is never constructed [INFO] [stdout] --> src/ftx/ws/error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(Ticker), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | Fill(Fill), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 | Fill(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bid`, `ask`, `bid_size`, `ask_size`, `last`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Ticker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 76 | pub bid: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | pub ask: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | pub bid_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | pub ask_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 80 | pub last: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 82 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ticker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 88 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub time: DateTime, // API returns "2021-05-23T05:24:24.315884+00:00" [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct OrderbookData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 109 | pub time: DateTime, // API returns 1621740952.5079553 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 128 | pub symbol: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/ws/model.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct Fill { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 293 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 294 | pub market: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 295 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 296 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 297 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 298 | pub r#type: String, // e.g. "order" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 299 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 301 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 302 | pub order_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 303 | pub trade_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 304 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 305 | pub fee: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 306 | pub fee_rate: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 307 | pub fee_currency: Coin, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 308 | pub liquidity: Liquidity, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fill` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.44s [INFO] running `Command { std: "docker" "inspect" "a468b0ded23ddc8a8fcca4bd358c43877587a73b91e7c104fd4bf160ba5bcb53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a468b0ded23ddc8a8fcca4bd358c43877587a73b91e7c104fd4bf160ba5bcb53", kill_on_drop: false }` [INFO] [stdout] a468b0ded23ddc8a8fcca4bd358c43877587a73b91e7c104fd4bf160ba5bcb53