From 741f5b845a67c9fa0c26572fe989650374ec811c Mon Sep 17 00:00:00 2001 From: Superbroker <245620949+superbroker1@users.noreply.github.com> Date: Fri, 23 Oct 2026 02:32:44 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20orderbook=20display=20to=20show=20best=20?= =?UTF-8?q?prices=20first=20=E2=80=94=20src/output/clob/books.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/output/clob/books.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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