[INFO] cloning repository https://github.com/marketcalls/openalgo-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marketcalls/openalgo-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarketcalls%2Fopenalgo-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarketcalls%2Fopenalgo-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0b580a27e5dbe046a782f4c3e6a4032105f024d1
[INFO] testing marketcalls/openalgo-rust against 1.97.0-beta.6 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarketcalls%2Fopenalgo-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/marketcalls/openalgo-rust
[INFO] removed 0 missing examples
[INFO] finished tweaking git repo https://github.com/marketcalls/openalgo-rust
[INFO] tweaked toml for git repo https://github.com/marketcalls/openalgo-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/marketcalls/openalgo-rust on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/marketcalls/openalgo-rust 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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-test v0.4.4
[INFO] [stderr]   Downloaded itoa v1.0.16
[INFO] [stderr]   Downloaded zmij v0.1.8
[INFO] [stderr]   Downloaded ryu v1.0.21
[INFO] [stderr]   Downloaded cc v1.2.50
[INFO] [stderr]   Downloaded tokio-util v0.7.17
[INFO] [stderr]   Downloaded serde_json v1.0.147
[INFO] [stderr]   Downloaded tokio v1.48.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062
[INFO] running `Command { std: "docker" "start" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]    Compiling libc v0.2.178
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling find-msvc-tools v0.1.5
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling bytes v1.11.0
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling pin-project-lite v0.2.16
[INFO] [stderr]    Compiling itoa v1.0.16
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling zerocopy v0.8.31
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling slab v0.4.11
[INFO] [stderr]    Compiling indexmap v2.12.1
[INFO] [stderr]    Compiling cc v1.2.50
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling cpufeatures v0.2.17
[INFO] [stderr]    Compiling serde_json v1.0.147
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling zmij v0.1.8
[INFO] [stderr]    Compiling ryu v1.0.21
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling signal-hook-registry v1.4.7
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling tungstenite v0.21.0
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-tungstenite v0.21.0
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling openalgo v1.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.39s
[INFO] running `Command { std: "docker" "inspect" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling is-terminal v0.4.17
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stderr]    Compiling humantime v2.3.0
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling env_logger v0.10.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling tungstenite v0.21.0
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling tokio-tungstenite v0.21.0
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling openalgo v1.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 49.33s
[INFO] running `Command { std: "docker" "inspect" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openalgo-adaa7a1970eddadd)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests openalgo
[INFO] [stdout] 
[INFO] [stdout] running 53 tests
[INFO] [stdout] test src/lib.rs - OpenAlgo::interval (line 467) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::funds (line 615) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::margin (line 665) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::analyzer_toggle (line 789) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::cancel_order (line 310) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - (line 7) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::expiry (line 582) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::intervals (line 457) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::holdings (line 655) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::instruments (line 597) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::depth (line 411) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::modify_order (line 285) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::cancel_all_order (line 324) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::holidays (line 686) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::history (line 425) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::close_position (line 337) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::analyzer_status (line 779) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::history_range (line 440) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::open_position (line 364) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::option_chain (line 480) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::basket_order (line 246) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::options_order (line 199) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::orderbook (line 625) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::place_sl_order (line 154) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::options_multi_order (line 224) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::option_greeks (line 561) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::place_order (line 108) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::quotes (line 384) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::place_limit_order (line 131) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::telegram (line 714) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::timings (line 700) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::positionbook (line 645) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::option_symbol (line 524) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::place_smart_order (line 176) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::multi_quotes (line 398) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::search (line 509) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::split_order (line 265) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::whatsapp_to (line 762) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::order_status (line 350) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::whatsapp_message (line 749) - compile ... ok
[INFO] [stdout] test src/whatsapp.rs - whatsapp::WhatsAppAPI::whatsapp (line 72) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::symbol (line 495) - compile ... FAILED
[INFO] [stdout] test src/strategy.rs - strategy::Strategy (line 25) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::synthetic_future (line 545) - compile ... FAILED
[INFO] [stdout] test src/whatsapp.rs - whatsapp::WhatsAppAPI::whatsapp_to (line 140) - compile ... ok
[INFO] [stdout] test src/lib.rs - OpenAlgo::tradebook (line 635) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - OpenAlgo::telegram_priority (line 728) - compile ... FAILED
[INFO] [stdout] test src/whatsapp.rs - whatsapp::WhatsAppAPI::whatsapp_message (line 121) - compile ... ok
[INFO] [stdout] test src/types.rs - types::OptionsLeg::new (line 129) ... ok
[INFO] [stdout] test src/types.rs - types::BasketOrderItem::new (line 211) ... ok
[INFO] [stdout] test src/types.rs - types::MarginPosition::new (line 845) ... ok
[INFO] [stdout] test src/types.rs - types::WsInstrument::new (line 1221) ... ok
[INFO] [stdout] test src/types.rs - types::OptionsLeg::with_expiry (line 146) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::funds (line 615) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:616:13
[INFO] [stdout]     |
[INFO] [stdout] 616 | let funds = client.funds().await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:616:28
[INFO] [stdout]     |
[INFO] [stdout] 615 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_615_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 616 | let funds = client.funds().await?;
[INFO] [stdout]     |                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::margin (line 665) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:671:14
[INFO] [stdout]     |
[INFO] [stdout] 671 | let margin = client.margin(positions).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:671:39
[INFO] [stdout]     |
[INFO] [stdout] 666 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_665_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 671 | let margin = client.margin(positions).await?;
[INFO] [stdout]     |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::analyzer_toggle (line 789) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:790:14
[INFO] [stdout]     |
[INFO] [stdout] 790 | let result = client.analyzer_toggle(true).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:790:43
[INFO] [stdout]     |
[INFO] [stdout] 789 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_789_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 790 | let result = client.analyzer_toggle(true).await?;
[INFO] [stdout]     |                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::cancel_order (line 310) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:311:14
[INFO] [stdout]     |
[INFO] [stdout] 311 | let result = client.cancel_order("1234567890", "Strategy1").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:311:61
[INFO] [stdout]     |
[INFO] [stdout] 310 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_310_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 311 | let result = client.cancel_order("1234567890", "Strategy1").await?;
[INFO] [stdout]     |                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::expiry (line 582) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:583:16
[INFO] [stdout]     |
[INFO] [stdout] 583 | let expiries = client.expiry("NIFTY", "NFO", "OPT").await?;
[INFO] [stdout]     |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:583:53
[INFO] [stdout]     |
[INFO] [stdout] 582 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_582_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 583 | let expiries = client.expiry("NIFTY", "NFO", "OPT").await?;
[INFO] [stdout]     |                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::intervals (line 457) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:458:17
[INFO] [stdout]     |
[INFO] [stdout] 458 | let intervals = client.intervals().await?;
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:458:36
[INFO] [stdout]     |
[INFO] [stdout] 457 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_457_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 458 | let intervals = client.intervals().await?;
[INFO] [stdout]     |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::holdings (line 655) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:656:16
[INFO] [stdout]     |
[INFO] [stdout] 656 | let holdings = client.holdings().await?;
[INFO] [stdout]     |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:656:34
[INFO] [stdout]     |
[INFO] [stdout] 655 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_655_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 656 | let holdings = client.holdings().await?;
[INFO] [stdout]     |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::instruments (line 597) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:598:19
[INFO] [stdout]     |
[INFO] [stdout] 598 | let instruments = client.instruments(Some("NSE")).await?;
[INFO] [stdout]     |                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:599:23
[INFO] [stdout]     |
[INFO] [stdout] 599 | let all_instruments = client.instruments(None).await?;
[INFO] [stdout]     |                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:598:51
[INFO] [stdout]     |
[INFO] [stdout] 597 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_597_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 598 | let instruments = client.instruments(Some("NSE")).await?;
[INFO] [stdout]     |                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:599:48
[INFO] [stdout]     |
[INFO] [stdout] 597 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_597_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 598 | let instruments = client.instruments(Some("NSE")).await?;
[INFO] [stdout] 599 | let all_instruments = client.instruments(None).await?;
[INFO] [stdout]     |                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::depth (line 411) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:412:13
[INFO] [stdout]     |
[INFO] [stdout] 412 | let depth = client.depth("RELIANCE", "NSE").await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:412:45
[INFO] [stdout]     |
[INFO] [stdout] 411 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_411_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 412 | let depth = client.depth("RELIANCE", "NSE").await?;
[INFO] [stdout]     |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::modify_order (line 285) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:286:14
[INFO] [stdout]     |
[INFO] [stdout] 286 | let result = client.modify_order("1234567890", "Strategy1", "RELIANCE", "BUY", "NSE", "LIMIT", "MIS", "1", "2550.00", None, None, N...
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:286:137
[INFO] [stdout]     |
[INFO] [stdout] 285 | ...e_case)] fn _doctest_main_src_lib_rs_285_0() {
[INFO] [stdout]     |             ----------------------------------- this is not `async`
[INFO] [stdout] 286 | ...rder("1234567890", "Strategy1", "RELIANCE", "BUY", "NSE", "LIMIT", "MIS", "1", "2550.00", None, None, None).await?;
[INFO] [stdout]     |                                                                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::cancel_all_order (line 324) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:325:14
[INFO] [stdout]     |
[INFO] [stdout] 325 | let result = client.cancel_all_order("Strategy1").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:325:51
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_324_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 325 | let result = client.cancel_all_order("Strategy1").await?;
[INFO] [stdout]     |                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::holidays (line 686) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:687:16
[INFO] [stdout]     |
[INFO] [stdout] 687 | let holidays = client.holidays(Some(2024)).await?;
[INFO] [stdout]     |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:688:26
[INFO] [stdout]     |
[INFO] [stdout] 688 | let holidays_this_year = client.holidays(None).await?;
[INFO] [stdout]     |                          ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:687:44
[INFO] [stdout]     |
[INFO] [stdout] 686 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_686_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 687 | let holidays = client.holidays(Some(2024)).await?;
[INFO] [stdout]     |                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:688:48
[INFO] [stdout]     |
[INFO] [stdout] 686 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_686_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 687 | let holidays = client.holidays(Some(2024)).await?;
[INFO] [stdout] 688 | let holidays_this_year = client.holidays(None).await?;
[INFO] [stdout]     |                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::history (line 425) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:426:15
[INFO] [stdout]     |
[INFO] [stdout] 426 | let history = client.history("RELIANCE", "NSE", "5m").await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:426:55
[INFO] [stdout]     |
[INFO] [stdout] 425 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_425_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 426 | let history = client.history("RELIANCE", "NSE", "5m").await?;
[INFO] [stdout]     |                                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::close_position (line 337) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:338:14
[INFO] [stdout]     |
[INFO] [stdout] 338 | let result = client.close_position("Strategy1").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:338:49
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_337_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 338 | let result = client.close_position("Strategy1").await?;
[INFO] [stdout]     |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::analyzer_status (line 779) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:780:14
[INFO] [stdout]     |
[INFO] [stdout] 780 | let status = client.analyzer_status().await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:780:39
[INFO] [stdout]     |
[INFO] [stdout] 779 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_779_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 780 | let status = client.analyzer_status().await?;
[INFO] [stdout]     |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::history_range (line 440) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:441:15
[INFO] [stdout]     |
[INFO] [stdout] 441 | let history = client.history_range("RELIANCE", "NSE", "5m", "2024-01-01", "2024-01-31").await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:441:89
[INFO] [stdout]     |
[INFO] [stdout] 440 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_440_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 441 | let history = client.history_range("RELIANCE", "NSE", "5m", "2024-01-01", "2024-01-31").await?;
[INFO] [stdout]     |                                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::open_position (line 364) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:365:16
[INFO] [stdout]     |
[INFO] [stdout] 365 | let position = client.open_position("Strategy1", "RELIANCE", "NSE", "MIS").await?;
[INFO] [stdout]     |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:365:76
[INFO] [stdout]     |
[INFO] [stdout] 364 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_364_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 365 | let position = client.open_position("Strategy1", "RELIANCE", "NSE", "MIS").await?;
[INFO] [stdout]     |                                                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::option_chain (line 480) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:481:13
[INFO] [stdout]     |
[INFO] [stdout] 481 | let chain = client.option_chain("NIFTY", "NFO", "241226").await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:481:59
[INFO] [stdout]     |
[INFO] [stdout] 480 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_480_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 481 | let chain = client.option_chain("NIFTY", "NFO", "241226").await?;
[INFO] [stdout]     |                                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::basket_order (line 246) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:253:14
[INFO] [stdout]     |
[INFO] [stdout] 253 | let result = client.basket_order("Strategy1", orders).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:253:55
[INFO] [stdout]     |
[INFO] [stdout] 247 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_246_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 253 | let result = client.basket_order("Strategy1", orders).await?;
[INFO] [stdout]     |                                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:250:52
[INFO] [stdout]     |
[INFO] [stdout] 250 |     BasketOrderItem::new("RELIANCE", "NSE", "BUY", "1", "MARKET", "MIS"),
[INFO] [stdout]     |     --------------------                           ^^^ expected `i32`, found `&str`
[INFO] [stdout]     |     |
[INFO] [stdout]     |     arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/types.rs:215:12
[INFO] [stdout]     |
[INFO] [stdout] 215 |     pub fn new(symbol: &str, exchange: &str, action: &str, quantity: i32, pricetype: &str, product: &str) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:251:47
[INFO] [stdout]     |
[INFO] [stdout] 251 |     BasketOrderItem::new("TCS", "NSE", "BUY", "1", "MARKET", "MIS"),
[INFO] [stdout]     |     --------------------                      ^^^ expected `i32`, found `&str`
[INFO] [stdout]     |     |
[INFO] [stdout]     |     arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/types.rs:215:12
[INFO] [stdout]     |
[INFO] [stdout] 215 |     pub fn new(symbol: &str, exchange: &str, action: &str, quantity: i32, pricetype: &str, product: &str) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::options_order (line 199) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:200:13
[INFO] [stdout]     |
[INFO] [stdout] 200 | let order = client.options_order("Strategy1", "NIFTY", "NFO", "0", "CE", "BUY", "50", "MARKET", "MIS", Some("241226"), None, None)....
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:200:132
[INFO] [stdout]     |
[INFO] [stdout] 199 | ...ake_case)] fn _doctest_main_src_lib_rs_199_0() {
[INFO] [stdout]     |               ----------------------------------- this is not `async`
[INFO] [stdout] 200 | ..._order("Strategy1", "NIFTY", "NFO", "0", "CE", "BUY", "50", "MARKET", "MIS", Some("241226"), None, None).await?;
[INFO] [stdout]     |                                                                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::orderbook (line 625) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:626:17
[INFO] [stdout]     |
[INFO] [stdout] 626 | let orderbook = client.orderbook().await?;
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:626:36
[INFO] [stdout]     |
[INFO] [stdout] 625 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_625_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 626 | let orderbook = client.orderbook().await?;
[INFO] [stdout]     |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::place_sl_order (line 154) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 | let order = client.place_sl_order("Strategy1", "RELIANCE", "BUY", "NSE", "MIS", "1", "2500.00", "2490.00", None).await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:155:114
[INFO] [stdout]     |
[INFO] [stdout] 154 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_154_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 155 | let order = client.place_sl_order("Strategy1", "RELIANCE", "BUY", "NSE", "MIS", "1", "2500.00", "2490.00", None).await?;
[INFO] [stdout]     |                                                                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::options_multi_order (line 224) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:231:13
[INFO] [stdout]     |
[INFO] [stdout] 231 | let order = client.options_multi_order("Strategy1", "NIFTY", "NFO", "241226", legs).await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:231:85
[INFO] [stdout]     |
[INFO] [stdout] 225 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_224_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 231 | let order = client.options_multi_order("Strategy1", "NIFTY", "NFO", "241226", legs).await?;
[INFO] [stdout]     |                                                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::option_greeks (line 561) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:562:14
[INFO] [stdout]     |
[INFO] [stdout] 562 | let greeks = client.option_greeks("NIFTY24DEC24000CE", "NFO", Some(6.5), None, Some("NIFTY"), Some("NSE"), None, None).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:562:120
[INFO] [stdout]     |
[INFO] [stdout] 561 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_561_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 562 | let greeks = client.option_greeks("NIFTY24DEC24000CE", "NFO", Some(6.5), None, Some("NIFTY"), Some("NSE"), None, None).await?;
[INFO] [stdout]     |                                                                                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::place_order (line 108) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 | let order = client.place_order("Strategy1", "RELIANCE", "BUY", "NSE", "MARKET", "MIS", "1", None).await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:109:99
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 109 | let order = client.place_order("Strategy1", "RELIANCE", "BUY", "NSE", "MARKET", "MIS", "1", None).await?;
[INFO] [stdout]     |                                                                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::quotes (line 384) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:385:14
[INFO] [stdout]     |
[INFO] [stdout] 385 | let quotes = client.quotes("RELIANCE", "NSE").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:385:47
[INFO] [stdout]     |
[INFO] [stdout] 384 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_384_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 385 | let quotes = client.quotes("RELIANCE", "NSE").await?;
[INFO] [stdout]     |                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::place_limit_order (line 131) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:132:13
[INFO] [stdout]     |
[INFO] [stdout] 132 | let order = client.place_limit_order("Strategy1", "RELIANCE", "BUY", "NSE", "MIS", "1", "2500.00", None).await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:132:106
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_131_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 132 | let order = client.place_limit_order("Strategy1", "RELIANCE", "BUY", "NSE", "MIS", "1", "2500.00", None).await?;
[INFO] [stdout]     |                                                                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::telegram (line 714) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:715:14
[INFO] [stdout]     |
[INFO] [stdout] 715 | let result = client.telegram("username", "Hello from OpenAlgo!").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:715:66
[INFO] [stdout]     |
[INFO] [stdout] 714 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_714_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 715 | let result = client.telegram("username", "Hello from OpenAlgo!").await?;
[INFO] [stdout]     |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::timings (line 700) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:701:15
[INFO] [stdout]     |
[INFO] [stdout] 701 | let timings = client.timings(Some("2024-12-25")).await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:702:22
[INFO] [stdout]     |
[INFO] [stdout] 702 | let todays_timings = client.timings(None).await?;
[INFO] [stdout]     |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:701:50
[INFO] [stdout]     |
[INFO] [stdout] 700 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_700_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 701 | let timings = client.timings(Some("2024-12-25")).await?;
[INFO] [stdout]     |                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:702:43
[INFO] [stdout]     |
[INFO] [stdout] 700 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_700_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 701 | let timings = client.timings(Some("2024-12-25")).await?;
[INFO] [stdout] 702 | let todays_timings = client.timings(None).await?;
[INFO] [stdout]     |                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::positionbook (line 645) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:646:17
[INFO] [stdout]     |
[INFO] [stdout] 646 | let positions = client.positionbook().await?;
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:646:39
[INFO] [stdout]     |
[INFO] [stdout] 645 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_645_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 646 | let positions = client.positionbook().await?;
[INFO] [stdout]     |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::option_symbol (line 524) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:525:14
[INFO] [stdout]     |
[INFO] [stdout] 525 | let symbol = client.option_symbol("NIFTY", "NFO", "0", "CE", Some("241226"), None, None, None).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:525:96
[INFO] [stdout]     |
[INFO] [stdout] 524 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_524_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 525 | let symbol = client.option_symbol("NIFTY", "NFO", "0", "CE", Some("241226"), None, None, None).await?;
[INFO] [stdout]     |                                                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::place_smart_order (line 176) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:177:13
[INFO] [stdout]     |
[INFO] [stdout] 177 | let order = client.place_smart_order("Strategy1", "RELIANCE", "BUY", "NSE", "MARKET", "MIS", "1", "5").await?;
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:177:104
[INFO] [stdout]     |
[INFO] [stdout] 176 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_176_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 177 | let order = client.place_smart_order("Strategy1", "RELIANCE", "BUY", "NSE", "MARKET", "MIS", "1", "5").await?;
[INFO] [stdout]     |                                                                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::multi_quotes (line 398) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:399:14
[INFO] [stdout]     |
[INFO] [stdout] 399 | let quotes = client.multi_quotes(&[("RELIANCE", "NSE"), ("TCS", "NSE")]).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:399:74
[INFO] [stdout]     |
[INFO] [stdout] 398 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_398_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 399 | let quotes = client.multi_quotes(&[("RELIANCE", "NSE"), ("TCS", "NSE")]).await?;
[INFO] [stdout]     |                                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::search (line 509) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:510:15
[INFO] [stdout]     |
[INFO] [stdout] 510 | let results = client.search("RELI", Some("NSE"), None).await?;
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:510:56
[INFO] [stdout]     |
[INFO] [stdout] 509 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_509_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 510 | let results = client.search("RELI", Some("NSE"), None).await?;
[INFO] [stdout]     |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::split_order (line 265) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:266:14
[INFO] [stdout]     |
[INFO] [stdout] 266 | let result = client.split_order("Strategy1", "RELIANCE", "BUY", "NSE", 100, 25, "MARKET", "MIS").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:266:98
[INFO] [stdout]     |
[INFO] [stdout] 265 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_265_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 266 | let result = client.split_order("Strategy1", "RELIANCE", "BUY", "NSE", 100, 25, "MARKET", "MIS").await?;
[INFO] [stdout]     |                                                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::order_status (line 350) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:351:14
[INFO] [stdout]     |
[INFO] [stdout] 351 | let status = client.order_status("1234567890", "Strategy1").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:351:61
[INFO] [stdout]     |
[INFO] [stdout] 350 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_350_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 351 | let status = client.order_status("1234567890", "Strategy1").await?;
[INFO] [stdout]     |                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::symbol (line 495) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:496:12
[INFO] [stdout]     |
[INFO] [stdout] 496 | let info = client.symbol("RELIANCE", "NSE").await?;
[INFO] [stdout]     |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:496:45
[INFO] [stdout]     |
[INFO] [stdout] 495 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_495_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 496 | let info = client.symbol("RELIANCE", "NSE").await?;
[INFO] [stdout]     |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::synthetic_future (line 545) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:546:14
[INFO] [stdout]     |
[INFO] [stdout] 546 | let future = client.synthetic_future("NIFTY", "NFO", "241226").await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:546:64
[INFO] [stdout]     |
[INFO] [stdout] 545 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_545_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 546 | let future = client.synthetic_future("NIFTY", "NFO", "241226").await?;
[INFO] [stdout]     |                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::tradebook (line 635) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:636:17
[INFO] [stdout]     |
[INFO] [stdout] 636 | let tradebook = client.tradebook().await?;
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:636:36
[INFO] [stdout]     |
[INFO] [stdout] 635 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_635_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 636 | let tradebook = client.tradebook().await?;
[INFO] [stdout]     |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - OpenAlgo::telegram_priority (line 728) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:729:14
[INFO] [stdout]     |
[INFO] [stdout] 729 | let result = client.telegram_priority("username", "Urgent alert!", 10).await?;
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:729:72
[INFO] [stdout]     |
[INFO] [stdout] 728 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_728_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 729 | let result = client.telegram_priority("username", "Urgent alert!", 10).await?;
[INFO] [stdout]     |                                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - OpenAlgo::analyzer_status (line 779)
[INFO] [stdout]     src/lib.rs - OpenAlgo::analyzer_toggle (line 789)
[INFO] [stdout]     src/lib.rs - OpenAlgo::basket_order (line 246)
[INFO] [stdout]     src/lib.rs - OpenAlgo::cancel_all_order (line 324)
[INFO] [stdout]     src/lib.rs - OpenAlgo::cancel_order (line 310)
[INFO] [stdout]     src/lib.rs - OpenAlgo::close_position (line 337)
[INFO] [stdout]     src/lib.rs - OpenAlgo::depth (line 411)
[INFO] [stdout]     src/lib.rs - OpenAlgo::expiry (line 582)
[INFO] [stdout]     src/lib.rs - OpenAlgo::funds (line 615)
[INFO] [stdout]     src/lib.rs - OpenAlgo::history (line 425)
[INFO] [stdout]     src/lib.rs - OpenAlgo::history_range (line 440)
[INFO] [stdout]     src/lib.rs - OpenAlgo::holdings (line 655)
[INFO] [stdout]     src/lib.rs - OpenAlgo::holidays (line 686)
[INFO] [stdout]     src/lib.rs - OpenAlgo::instruments (line 597)
[INFO] [stdout]     src/lib.rs - OpenAlgo::intervals (line 457)
[INFO] [stdout]     src/lib.rs - OpenAlgo::margin (line 665)
[INFO] [stdout]     src/lib.rs - OpenAlgo::modify_order (line 285)
[INFO] [stdout]     src/lib.rs - OpenAlgo::multi_quotes (line 398)
[INFO] [stdout]     src/lib.rs - OpenAlgo::open_position (line 364)
[INFO] [stdout]     src/lib.rs - OpenAlgo::option_chain (line 480)
[INFO] [stdout]     src/lib.rs - OpenAlgo::option_greeks (line 561)
[INFO] [stdout]     src/lib.rs - OpenAlgo::option_symbol (line 524)
[INFO] [stdout]     src/lib.rs - OpenAlgo::options_multi_order (line 224)
[INFO] [stdout]     src/lib.rs - OpenAlgo::options_order (line 199)
[INFO] [stdout]     src/lib.rs - OpenAlgo::order_status (line 350)
[INFO] [stdout]     src/lib.rs - OpenAlgo::orderbook (line 625)
[INFO] [stdout]     src/lib.rs - OpenAlgo::place_limit_order (line 131)
[INFO] [stdout]     src/lib.rs - OpenAlgo::place_order (line 108)
[INFO] [stdout]     src/lib.rs - OpenAlgo::place_sl_order (line 154)
[INFO] [stdout]     src/lib.rs - OpenAlgo::place_smart_order (line 176)
[INFO] [stdout]     src/lib.rs - OpenAlgo::positionbook (line 645)
[INFO] [stdout]     src/lib.rs - OpenAlgo::quotes (line 384)
[INFO] [stdout]     src/lib.rs - OpenAlgo::search (line 509)
[INFO] [stdout]     src/lib.rs - OpenAlgo::split_order (line 265)
[INFO] [stdout]     src/lib.rs - OpenAlgo::symbol (line 495)
[INFO] [stdout]     src/lib.rs - OpenAlgo::synthetic_future (line 545)
[INFO] [stdout]     src/lib.rs - OpenAlgo::telegram (line 714)
[INFO] [stdout]     src/lib.rs - OpenAlgo::telegram_priority (line 728)
[INFO] [stdout]     src/lib.rs - OpenAlgo::timings (line 700)
[INFO] [stdout]     src/lib.rs - OpenAlgo::tradebook (line 635)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 13 passed; 40 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.88s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062", kill_on_drop: false }`
[INFO] [stdout] 47ccb18c878bf89abfe0110386dd4ecad75b449a5b00350c0e6930509ae70062
