We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a595a commit 6bed0abCopy full SHA for 6bed0ab
src/main.rs
@@ -1,6 +1,7 @@
1
extern crate zaif_api;
2
extern crate serde_json;
3
4
+use std::{thread, time};
5
use serde_json::Value;
6
7
use zaif_api::AccessKey;
@@ -37,7 +38,10 @@ fn main() {
37
38
let order_id = json["return"]["order_id"].as_u64().unwrap();
39
let api = CancelOrderBuilder::new(access_key.clone())
40
.order_id(order_id)
41
+ .currency_pair("zaif_jpy")
42
.finalize();
43
+ let wait_time = time::Duration::from_secs(5);
44
+ thread::sleep(wait_time);
45
println!("{}", api.exec().unwrap());
46
},
47
_ => return,
0 commit comments