diff --git a/examples/fetch_orders.rs b/examples/fetch_orders.rs index 0d601db..e3394a5 100644 --- a/examples/fetch_orders.rs +++ b/examples/fetch_orders.rs @@ -15,7 +15,7 @@ async fn main() { } }; - if let Some(order) = result.orders.get(0) { + if let Some(order) = result.orders.first() { println!("{:#?}", order); } else { println!("No orders found"); diff --git a/examples/fetch_orders_history.rs b/examples/fetch_orders_history.rs index 9d2e31d..e330714 100644 --- a/examples/fetch_orders_history.rs +++ b/examples/fetch_orders_history.rs @@ -42,7 +42,7 @@ async fn main() { for mut order in order_response.orders { // normalize timestamps. Not all timestamps are in seconds if order.created_at > 9999999999u64 { - order.created_at = order.created_at / 1000; + order.created_at /= 1000; } // Implement your own logic here }