use kraken_book::l3::{L3Book, L3Order, L3Side};fn analyze_queue(book: &L3Book, my_order_id: &str) { if let Some(pos) = book.queue_position(my_order_id) { // Check if we're near the front if pos.position <= 3 { println!("Near front of queue - high fill probability"); } // Check volume ahead if pos.volume_ahead > dec!(10.0) { println!("Warning: {} BTC ahead of us", pos.volume_ahead); } // Estimate fill probability if pos.fill_probability > 0.8 { println!("Good queue position - likely to fill"); } else if pos.fill_probability < 0.2 { println!("Poor queue position - consider repricing"); } }}