diff --git a/src/output/clob/books.rs b/src/output/clob/books.rs index aaecf33..9fa8b09 100644 --- a/src/output/clob/books.rs +++ b/src/output/clob/books.rs @@ -38,6 +38,7 @@ pub fn print_order_book( let rows: Vec = result .bids .iter() + .rev() .map(|o| Row { price: o.price.to_string(), size: o.size.to_string(), @@ -56,6 +57,7 @@ pub fn print_order_book( let rows: Vec = result .asks .iter() + .rev() .map(|o| Row { price: o.price.to_string(), size: o.size.to_string(), @@ -157,4 +159,4 @@ pub fn print_last_trades_prices( } } Ok(()) -} +} \ No newline at end of file