Skip to content

Commit 1f20d13

Browse files
committed
ActiveOrders再実装に伴い使用例を更新
1 parent c61bc9c commit 1f20d13

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,14 @@ fn main() {
8989
.access_key(access_key.clone())
9090
.currency_pair(Some("zaif_jpy".to_string()))
9191
.finalize();
92-
println!("{}", api.exec().unwrap());
92+
for (order_id, order) in api.exec().unwrap().iter() {
93+
println!(
94+
"order_id: {}, currency_pair: {}, action: {}, amount: {}, price: {}",
95+
order_id,
96+
order.currency_pair,
97+
order.action,
98+
order.amount,
99+
order.price
100+
);
101+
}
93102
}

0 commit comments

Comments
 (0)