Compiling solana_rust_bot v0.1.0 (C:\solana_rust_bot)
warning: solana_rust_bot@0.1.0: Using Python at: C:\Users\Orsen\anaconda3\envs\pytorch_cuda\python.exe    
warning: solana_rust_bot@0.1.0: Conda prefix: C:\Users\Orsen\anaconda3\envs\pytorch_cuda
error[E0432]: unresolved import `quantum_trading_core`
 --> src/main.rs:3:5
  |
3 | use quantum_trading_core::{MarketMonitor, PerformanceMonitor, HealthMonitor};
  |     ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `quantum_trading_core`

error[E0428]: the name `TradeMetrics` is defined multiple times
  --> src\lib.rs:60:1
   |
23 | struct TradeMetrics {
   | ------------------- previous definition of the type `TradeMetrics` here
...
60 | pub struct TradeMetrics {
   | ^^^^^^^^^^^^^^^^^^^^^^^ `TradeMetrics` redefined here
   |
   = note: `TradeMetrics` must be defined only once in the type namespace of this module

error[E0428]: the name `TurboTrader` is defined multiple times
  --> src\lib.rs:81:1
   |
72 | pub struct TurboTrader {
   | ---------------------- previous definition of the type `TurboTrader` here
...
81 | pub struct TurboTrader {
   | ^^^^^^^^^^^^^^^^^^^^^^ `TurboTrader` redefined here
   |
   = note: `TurboTrader` must be defined only once in the type namespace of this module

error[E0428]: the name `solana_rust_bot` is defined multiple times
   --> src\lib.rs:412:1
    |
182 |     fn solana_rust_bot(_py: Python, m: &PyModule) -> PyResult<()> {
    |     ------------------------------------------------------------- previous definition of the value `solana_rust_bot` here
...
412 | fn solana_rust_bot(_py: Python, m: &PyModule) -> PyResult<()> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `solana_rust_bot` redefined here      
    |
    = note: `solana_rust_bot` must be defined only once in the value namespace of this module

error[E0428]: the name `solana_rust_bot` is defined multiple times
   --> src\lib.rs:411:1
    |
181 | #[pymodule]
    | ----------- previous definition of the module `solana_rust_bot` here
...
411 | #[pymodule]
    | ^^^^^^^^^^^ `solana_rust_bot` redefined here
    |
    = note: `solana_rust_bot` must be defined only once in the type namespace of this module
    = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `self` parameter is only allowed in associated functions
   --> src\lib.rs:187:27
    |
187 |     fn get_market_metrics(&self) -> PyResult<String> {
    |                           ^^^^^ not semantically valid as function parameter
    |
    = note: associated functions are those in `impl` or `trait` definitions

For more information about this error, try `rustc --explain E0432`.
The following warnings were emitted during compilation:

warning: solana_rust_bot@0.1.0: Using Python at: C:\Users\Orsen\anaconda3\envs\pytorch_cuda\python.exe    
warning: solana_rust_bot@0.1.0: Conda prefix: C:\Users\Orsen\anaconda3\envs\pytorch_cuda

error: could not compile `solana_rust_bot` (bin "solana_rust_bot") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: cannot find derive macro `Error` in this scope
  --> src\lib.rs:30:10
   |
30 | #[derive(Error, Debug)]
   |          ^^^^^

error: cannot find attribute `error` in this scope
  --> src\lib.rs:32:7
   |
32 |     #[error("Insufficient balance: required {required} SOL, have {available} SOL")]
   |       ^^^^^

error: cannot find attribute `error` in this scope
  --> src\lib.rs:35:7
   |
35 |     #[error("Price impact too high: {0}%")]
   |       ^^^^^

error: cannot find attribute `error` in this scope
  --> src\lib.rs:38:7
   |
38 |     #[error("Network error: {0}")]
   |       ^^^^^

error: cannot find attribute `error` in this scope
  --> src\lib.rs:41:7
   |
41 |     #[error("Transaction error: {0}")]
   |       ^^^^^

error: cannot find attribute `error` in this scope
  --> src\lib.rs:44:7
   |
44 |     #[error("Safety check failed: {0}")]
   |       ^^^^^

error: cannot find macro `warn` in this scope
   --> src\lib.rs:230:21
    |
230 |                     warn!("Attempt {} failed: {}", attempt + 1, e);
    |                     ^^^^
    |
    = note: `warn` is in scope, but it is an attribute: `#[warn]`
help: consider importing this macro
    |
1   + use log::warn;
    |

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:455:24
    |
455 |             timestamp: chrono::Utc::now().timestamp(),
    |                        ^^^^^^ use of undeclared crate or module `chrono`

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:530:29
    |
530 |         metrics.timestamp = chrono::Utc::now().timestamp();
    |                             ^^^^^^ use of undeclared crate or module `chrono`

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:586:24
    |
586 |             timestamp: chrono::Utc::now().timestamp(),
    |                        ^^^^^^ use of undeclared crate or module `chrono`

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:600:28
    |
600 |         health.timestamp = chrono::Utc::now().timestamp();
    |                            ^^^^^^ use of undeclared crate or module `chrono`

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:611:28
    |
611 |         health.timestamp = chrono::Utc::now().timestamp();
    |                            ^^^^^^ use of undeclared crate or module `chrono`

error[E0433]: failed to resolve: use of undeclared crate or module `chrono`
   --> src\lib.rs:619:28
    |
619 |         health.timestamp = chrono::Utc::now().timestamp();
    |                            ^^^^^^ use of undeclared crate or module `chrono`

error[E0412]: cannot find type `HashMap` in this scope
  --> src\lib.rs:77:19
   |
77 |     market_cache: HashMap<String, (Instant, serde_json::Value)>,
   |                   ^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use std::collections::HashMap;
   |

error[E0433]: failed to resolve: use of undeclared type `Duration`
   --> src\lib.rs:232:40
    |
232 |                     std::thread::sleep(Duration::from_millis(500));
    |                                        ^^^^^^^^ use of undeclared type `Duration`
    |
help: consider importing one of these structs
    |
1   + use std::time::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0412]: cannot find type `Duration` in this scope
   --> src\lib.rs:377:31
    |
377 |         const CACHE_DURATION: Duration = Duration::from_millis(500);
    |                               ^^^^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::time::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0433]: failed to resolve: use of undeclared type `Duration`
   --> src\lib.rs:377:42
    |
377 |         const CACHE_DURATION: Duration = Duration::from_millis(500);
    |                                          ^^^^^^^^ use of undeclared type `Duration`
    |
help: consider importing one of these structs
    |
1   + use std::time::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0412]: cannot find type `Duration` in this scope
   --> src\lib.rs:394:31
    |
394 |         const CACHE_DURATION: Duration = Duration::from_secs(60);
    |                               ^^^^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::time::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0433]: failed to resolve: use of undeclared type `Duration`
   --> src\lib.rs:394:42
    |
394 |         const CACHE_DURATION: Duration = Duration::from_secs(60);
    |                                          ^^^^^^^^ use of undeclared type `Duration`
    |
help: consider importing one of these structs
    |
1   + use std::time::Duration;
    |
1   + use tokio::time::Duration;
    |

error[E0412]: cannot find type `Arc` in this scope
   --> src\lib.rs:420:13
    |
420 |     trader: Arc<Mutex<TurboTrader>>,
    |             ^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0412]: cannot find type `Mutex` in this scope
   --> src\lib.rs:420:17
    |
420 |     trader: Arc<Mutex<TurboTrader>>,
    |                 ^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::sync::Mutex;
    |
1   + use tokio::sync::Mutex;
    |

error[E0412]: cannot find type `Arc` in this scope
   --> src\lib.rs:421:12
    |
421 |     state: Arc<RwLock<MarketState>>,
    |            ^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0412]: cannot find type `RwLock` in this scope
   --> src\lib.rs:421:16
    |
421 |     state: Arc<RwLock<MarketState>>,
    |                ^^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> src\lib.rs:428:22
    |
428 |         let trader = Arc::new(Mutex::new(TurboTrader::new()?));
    |                      ^^^ use of undeclared type `Arc`
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0433]: failed to resolve: use of undeclared type `Mutex`
   --> src\lib.rs:428:31
    |
428 |         let trader = Arc::new(Mutex::new(TurboTrader::new()?));
    |                               ^^^^^ use of undeclared type `Mutex`
    |
help: consider importing one of these structs
    |
1   + use std::sync::Mutex;
    |
1   + use tokio::sync::Mutex;
    |

error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> src\lib.rs:429:21
    |
429 |         let state = Arc::new(RwLock::new(MarketState {
    |                     ^^^ use of undeclared type `Arc`
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0433]: failed to resolve: use of undeclared type `RwLock`
   --> src\lib.rs:429:30
    |
429 |         let state = Arc::new(RwLock::new(MarketState {
    |                              ^^^^^^ use of undeclared type `RwLock`
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0412]: cannot find type `Arc` in this scope
   --> src\lib.rs:483:14
    |
483 |     metrics: Arc<RwLock<PerformanceMetrics>>,
    |              ^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0412]: cannot find type `RwLock` in this scope
   --> src\lib.rs:483:18
    |
483 |     metrics: Arc<RwLock<PerformanceMetrics>>,
    |                  ^^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0412]: cannot find type `Arc` in this scope
   --> src\lib.rs:484:18
    |
484 |     error_count: Arc<Mutex<u64>>,
    |                  ^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0412]: cannot find type `Mutex` in this scope
   --> src\lib.rs:484:22
    |
484 |     error_count: Arc<Mutex<u64>>,
    |                      ^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::sync::Mutex;
    |
1   + use tokio::sync::Mutex;
    |

error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> src\lib.rs:492:23
    |
492 |         let metrics = Arc::new(RwLock::new(PerformanceMetrics {
    |                       ^^^ use of undeclared type `Arc`
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0433]: failed to resolve: use of undeclared type `RwLock`
   --> src\lib.rs:492:32
    |
492 |         let metrics = Arc::new(RwLock::new(PerformanceMetrics {
    |                                ^^^^^^ use of undeclared type `RwLock`
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> src\lib.rs:502:26
    |
502 |             error_count: Arc::new(Mutex::new(0)),
    |                          ^^^ use of undeclared type `Arc`
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0433]: failed to resolve: use of undeclared type `Mutex`
   --> src\lib.rs:502:35
    |
502 |             error_count: Arc::new(Mutex::new(0)),
    |                                   ^^^^^ use of undeclared type `Mutex`
    |
help: consider importing one of these structs
    |
1   + use std::sync::Mutex;
    |
1   + use tokio::sync::Mutex;
    |

error[E0412]: cannot find type `HashMap` in this scope
   --> src\lib.rs:560:28
    |
560 |     pub components_status: HashMap<String, bool>,
    |                            ^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::collections::HashMap;
    |

error[E0412]: cannot find type `Arc` in this scope
   --> src\lib.rs:568:13
    |
568 |     health: Arc<RwLock<SystemHealth>>,
    |             ^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0412]: cannot find type `RwLock` in this scope
   --> src\lib.rs:568:17
    |
568 |     health: Arc<RwLock<SystemHealth>>,
    |                 ^^^^^^ not found in this scope
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0433]: failed to resolve: use of undeclared type `HashMap`
   --> src\lib.rs:576:37
    |
576 |         let mut components_status = HashMap::new();
    |                                     ^^^^^^^ use of undeclared type `HashMap`
    |
help: consider importing this struct
    |
1   + use std::collections::HashMap;
    |

error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> src\lib.rs:582:22
    |
582 |         let health = Arc::new(RwLock::new(SystemHealth {
    |                      ^^^ use of undeclared type `Arc`
    |
help: consider importing this struct
    |
1   + use std::sync::Arc;
    |

error[E0433]: failed to resolve: use of undeclared type `RwLock`
   --> src\lib.rs:582:31
    |
582 |         let health = Arc::new(RwLock::new(SystemHealth {
    |                               ^^^^^^ use of undeclared type `RwLock`
    |
help: consider importing one of these structs
    |
1   + use std::sync::RwLock;
    |
1   + use tokio::sync::RwLock;
    |

error[E0119]: conflicting implementations of trait `Debug` for type `TradeMetrics`
  --> src\lib.rs:59:10
   |
22 | #[derive(Debug, Serialize, Deserialize)]
   |          ----- first implementation here
...
59 | #[derive(Debug, Clone, Serialize, Deserialize)]
   |          ^^^^^ conflicting implementation for `TradeMetrics`
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `Serialize` for type `TradeMetrics`
  --> src\lib.rs:59:24
   |
22 | #[derive(Debug, Serialize, Deserialize)]
   |                 --------- first implementation here
...
59 | #[derive(Debug, Clone, Serialize, Deserialize)]
   |                        ^^^^^^^^^ conflicting implementation for `TradeMetrics`
   |
   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `Deserialize<'_>` for type `TradeMetrics`
  --> src\lib.rs:59:35
   |
22 | #[derive(Debug, Serialize, Deserialize)]
   |                            ----------- first implementation here
...
59 | #[derive(Debug, Clone, Serialize, Deserialize)]
   |                                   ^^^^^^^^^^^ conflicting implementation for `TradeMetrics`
   |
   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `PyTypeInfo` for type `TurboTrader`
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `PyClass` for type `TurboTrader`
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `PyFunctionArgument<'_, '_>` for type `&TurboTrader`   
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `&TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `PyFunctionArgument<'_, '_>` for type `&mut TurboTrader`
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `&mut TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `IntoPy<Py<PyAny>>` for type `TurboTrader`
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `PyClassImpl` for type `TurboTrader`
  --> src\lib.rs:80:1
   |
71 | #[pyclass]
   | ---------- first implementation here
...
80 | #[pyclass]
   | ^^^^^^^^^^ conflicting implementation for `TurboTrader`
   |
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0034]: multiple applicable items in scope
   --> src\lib.rs:181:1
    |
181 | #[pymodule]
    | ^^^^^^^^^^^ multiple `make_def` found
    |
note: candidate #1 is defined in an impl for the type `solana_rust_bot::MakeDef`
   --> src\lib.rs:181:1
    |
181 | #[pymodule]
    | ^^^^^^^^^^^
note: candidate #2 is defined in an impl for the type `solana_rust_bot::MakeDef`
   --> src\lib.rs:411:1
    |
411 | #[pymodule]
    | ^^^^^^^^^^^
    = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `make_def` found for struct `solana_rust_bot::MakeDef` in the current scope
   --> src\lib.rs:411:1
    |
411 | #[pymodule]
    | ^^^^^^^^^^^
    | |
    | function or associated item not found in `MakeDef`
    | function or associated item `make_def` not found for this struct
    |
help: there is an associated function `make` with a similar name
   --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\yoke-0.7.4\src\yokeable.rs:128:5
    |
128 |     unsafe fn make(from: Self::Output) -> Self;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0592]: duplicate definitions with name `make_def`
   --> src\lib.rs:181:1
    |
181 | #[pymodule]
    | ^^^^^^^^^^^ duplicate definitions for `make_def`
...
411 | #[pymodule]
    | ----------- other definition for `make_def`
    |
    = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0609]: no field `liquidity_score` on type `&TradeMetrics`
  --> src\lib.rs:65:5
   |
65 |     liquidity_score: f64,
   |     ^^^^^^^^^^^^^^^ unknown field
   |
   = note: available fields are: `execution_time_us`, `success`, `signature`, `price_impact`

error[E0609]: no field `volume_24h` on type `&TradeMetrics`
  --> src\lib.rs:66:5
   |
66 |     volume_24h: f64,
   |     ^^^^^^^^^^ unknown field
   |
   = note: available fields are: `execution_time_us`, `success`, `signature`, `price_impact`

error[E0609]: no field `market_depth` on type `&TradeMetrics`
  --> src\lib.rs:67:5
   |
67 |     market_depth: f64,
   |     ^^^^^^^^^^^^ unknown field
   |
   = note: available fields are: `execution_time_us`, `success`, `signature`, `price_impact`

error[E0609]: no field `bid_ask_spread` on type `&TradeMetrics`
  --> src\lib.rs:68:5
   |
68 |     bid_ask_spread: f64,
   |     ^^^^^^^^^^^^^^ unknown field
   |
   = note: available fields are: `execution_time_us`, `success`, `signature`, `price_impact`

error[E0560]: struct `TradeMetrics` has no field named `liquidity_score`
  --> src\lib.rs:65:5
   |
65 |     liquidity_score: f64,
   |     ^^^^^^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `volume_24h`
  --> src\lib.rs:66:5
   |
66 |     volume_24h: f64,
   |     ^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `market_depth`
  --> src\lib.rs:67:5
   |
67 |     market_depth: f64,
   |     ^^^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `bid_ask_spread`
  --> src\lib.rs:68:5
   |
68 |     bid_ask_spread: f64,
   |     ^^^^^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `liquidity_score`
  --> src\lib.rs:65:5
   |
65 |     liquidity_score: f64,
   |     ^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `volume_24h`
  --> src\lib.rs:66:5
   |
66 |     volume_24h: f64,
   |     ^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `market_depth`
  --> src\lib.rs:67:5
   |
67 |     market_depth: f64,
   |     ^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `bid_ask_spread`
  --> src\lib.rs:68:5
   |
68 |     bid_ask_spread: f64,
   |     ^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
   |
   = note: all struct fields are already assigned

error[E0599]: the method `get_or_init` exists for reference `&LazyTypeObject<TurboTrader>`, but its trait bounds were not satisfied
  --> src\lib.rs:71:1
   |
71 | #[pyclass]
   | ^^^^^^^^^^ method cannot be called on `&LazyTypeObject<TurboTrader>` due to unsatisfied trait bounds 
72 | pub struct TurboTrader {
   | ---------------------- doesn't satisfy `TurboTrader: Sized`
   |
   = note: the following trait bounds were not satisfied:
           `{type error}: Sized`
           which is required by `TurboTrader: Sized`
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the function or associated item `new` exists for struct `PyClassImplCollector<TurboTrader>`, but its trait bounds were not satisfied
  --> src\lib.rs:71:1
   |
71 | #[pyclass]
   | ^^^^^^^^^^ function or associated item cannot be called on `PyClassImplCollector<TurboTrader>` due to unsatisfied trait bounds
72 | pub struct TurboTrader {
   | ---------------------- doesn't satisfy `TurboTrader: Sized`
   |
   = note: the following trait bounds were not satisfied:
           `{type error}: Sized`
           which is required by `TurboTrader: Sized`
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the method `get_or_init` exists for reference `&LazyTypeObject<TurboTrader>`, but its trait bounds were not satisfied
  --> src\lib.rs:80:1
   |
72 | pub struct TurboTrader {
   | ---------------------- doesn't satisfy `TurboTrader: Sized`
...
80 | #[pyclass]
   | ^^^^^^^^^^ method cannot be called on `&LazyTypeObject<TurboTrader>` due to unsatisfied trait bounds 
   |
   = note: the following trait bounds were not satisfied:
           `{type error}: Sized`
           which is required by `TurboTrader: Sized`
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the function or associated item `new` exists for struct `PyClassImplCollector<TurboTrader>`, but its trait bounds were not satisfied
  --> src\lib.rs:80:1
   |
72 | pub struct TurboTrader {
   | ---------------------- doesn't satisfy `TurboTrader: Sized`
...
80 | #[pyclass]
   | ^^^^^^^^^^ function or associated item cannot be called on `PyClassImplCollector<TurboTrader>` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `{type error}: Sized`
           which is required by `TurboTrader: Sized`
   = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0063]: missing fields `last_metrics` and `market_cache` in initializer of `TurboTrader`
  --> src\lib.rs:97:12
   |
97 |         Ok(Self {
   |            ^^^^ missing `last_metrics` and `market_cache`

error[E0282]: type annotations needed
   --> src\lib.rs:111:13
    |
111 |         let quote = self.http_client
    |             ^^^^^
...
166 |             price_impact: quote["priceImpact"].as_f64().unwrap_or(0.0),
    |                           ----- type must be known at this point
    |
help: consider giving `quote` an explicit type
    |
111 |         let quote: /* Type */ = self.http_client
    |                  ++++++++++++

error[E0599]: no method named `convert` found for enum `Result` in the current scope
  --> src\lib.rs:87:1
   |
87 | #[pymethods]
   | ^^^^^^^^^^^^ method not found in `Result<TurboTrader, PyErr>`
   |
note: the method `convert` exists on the type `pyo3::PyErr`
  --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.19.2\src\callback.rs:31:5
   |
31 |     fn convert(self, py: Python<'_>) -> PyResult<Target>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the `?` operator to extract the `pyo3::PyErr` value, propagating a `Result::Err` value to the caller
   |
87 | #[pymethods]?
   |             +

error[E0560]: struct `TradeMetrics` has no field named `liquidity_score`
   --> src\lib.rs:291:13
    |
291 |             liquidity_score,
    |             ^^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
    |
    = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `volume_24h`
   --> src\lib.rs:292:13
    |
292 |             volume_24h,
    |             ^^^^^^^^^^ `TradeMetrics` does not have this field
    |
    = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `market_depth`
   --> src\lib.rs:293:13
    |
293 |             market_depth,
    |             ^^^^^^^^^^^^ `TradeMetrics` does not have this field
    |
    = note: all struct fields are already assigned

error[E0560]: struct `TradeMetrics` has no field named `bid_ask_spread`
   --> src\lib.rs:294:13
    |
294 |             bid_ask_spread: spread,
    |             ^^^^^^^^^^^^^^ `TradeMetrics` does not have this field
    |
    = note: all struct fields are already assigned

error[E0599]: the method `get_or_init` exists for reference `&LazyTypeObject<MarketMonitor>`, but its trait bounds were not satisfied
   --> src\lib.rs:418:1
    |
418 | #[pyclass]
    | ^^^^^^^^^^ method cannot be called on `&LazyTypeObject<MarketMonitor>` due to unsatisfied trait bounds
419 | pub struct MarketMonitor {
    | ------------------------ doesn't satisfy `MarketMonitor: Sized`
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `MarketMonitor: Sized`
    = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: the function or associated item `new` exists for struct `PyClassImplCollector<MarketMonitor>`, but its trait bounds were not satisfied
   --> src\lib.rs:418:1
    |
418 | #[pyclass]
    | ^^^^^^^^^^ function or associated item cannot be called on `PyClassImplCollector<MarketMonitor>` due to unsatisfied trait bounds
419 | pub struct MarketMonitor {
    | ------------------------ doesn't satisfy `MarketMonitor: Sized`
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `MarketMonitor: Sized`
    = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `convert` found for enum `Result` in the current scope
   --> src\lib.rs:424:1
    |
424 | #[pymethods]
    | ^^^^^^^^^^^^ method not found in `Result<MarketMonitor, PyErr>`
    |
note: the method `convert` exists on the type `pyo3::PyErr`
   --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.19.2\src\callback.rs:31:5
    |
31  |     fn convert(self, py: Python<'_>) -> PyResult<Target>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the `?` operator to extract the `pyo3::PyErr` value, propagating a `Result::Err` value to the caller
    |
424 | #[pymethods]?
    |             +

error[E0716]: temporary value dropped while borrowed
   --> src\lib.rs:302:68
    |
302 |                 let bids = orderbook["bids"].as_array().unwrap_or(&Vec::new());
    |                                                                    ^^^^^^^^^^ - temporary value is freed at the end of this statement
    |                                                                    |
    |                                                                    creates a temporary value which is freed while still in use
...
305 |                 let bid_sum: f64 = bids.iter()
    |                                    ---- borrow later used here
    |
    = note: consider using a `let` binding to create a longer lived value

error[E0716]: temporary value dropped while borrowed
   --> src\lib.rs:303:68
    |
303 |                 let asks = orderbook["asks"].as_array().unwrap_or(&Vec::new());
    |                                                                    ^^^^^^^^^^ - temporary value is freed at the end of this statement
    |                                                                    |
    |                                                                    creates a temporary value which is freed while still in use
...
312 |                 let ask_sum: f64 = asks.iter()
    |                                    ---- borrow later used here
    |
    = note: consider using a `let` binding to create a longer lived value

Some errors have detailed explanations: E0034, E0063, E0119, E0282, E0412, E0428, E0433, E0560, E0592... 
For more information about an error, try `rustc --explain E0034`.
The following warnings were emitted during compilation:

warning: solana_rust_bot@0.1.0: Using Python at: C:\Users\Orsen\anaconda3\envs\pytorch_cuda\python.exe    
warning: solana_rust_bot@0.1.0: Conda prefix: C:\Users\Orsen\anaconda3\envs\pytorch_cuda

error: could not compile `solana_rust_bot` (lib) due to 86 previous errors