Skip to content

Commit 96d7126

Browse files
committed
Fixed some failing test cases
1 parent e37b32a commit 96d7126

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

crypto-crawler/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crypto-crawler"
3-
version = "4.5.4"
3+
version = "4.5.5"
44
authors = ["soulmachine <[email protected]>"]
55
edition = "2021"
66
description = "A rock-solid cryprocurrency crawler."
@@ -11,19 +11,19 @@ keywords = ["cryptocurrency", "blockchain", "trading"]
1111
[dependencies]
1212
crypto-markets = "1.3.2"
1313
crypto-market-type = "1.1.1"
14-
crypto-msg-parser = "2.6.5"
14+
crypto-msg-parser = "2.6.6"
1515
crypto-msg-type = "1.0.8"
1616
crypto-pair = "2.2.12"
17-
crypto-rest-client = "0.9.4"
17+
crypto-rest-client = "0.9.5"
1818
crypto-ws-client = "4.11.8"
1919
fslock = "0.2.1"
2020
once_cell = "1.13.0"
2121
log = "0.4.17"
2222
rand = "0.8.5"
2323
reqwest = { version = "0.11.11", features = ["blocking", "gzip"] }
24-
serde = { version = "1.0.138", features = ["derive"] }
24+
serde = { version = "1.0.139", features = ["derive"] }
2525
serde_json = "1.0.82"
26-
tokio = { version = "1.19.2", features = ["macros", "rt-multi-thread", "sync", "time"] }
26+
tokio = { version = "1.20.0", features = ["macros", "rt-multi-thread", "sync", "time"] }
2727

2828
[dev_dependencies]
2929
env_logger = "0.9"

crypto-msg-parser/tests/okx_v3.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ mod trade {
176176
.unwrap()
177177
);
178178

179-
assert_eq!(trade.quantity_base, 0.1 * 4.0);
180-
assert_eq!(trade.quantity_quote, 0.1 * 4.0 * 0.1545);
179+
assert_eq!(trade.quantity_base, 1.0 * 4.0);
180+
assert_eq!(trade.quantity_quote, 1.0 * 4.0 * 0.1545);
181181
assert_eq!(trade.quantity_contract, Some(4.0));
182182
assert_eq!(trade.side, TradeSide::Buy);
183183

@@ -202,8 +202,8 @@ mod trade {
202202
.unwrap()
203203
);
204204

205-
assert_eq!(trade.quantity_base, 0.1 * 10.0);
206-
assert_eq!(trade.quantity_quote, 0.1 * 10.0 * 0.0255);
205+
assert_eq!(trade.quantity_base, 1.0 * 10.0);
206+
assert_eq!(trade.quantity_quote, 1.0 * 10.0 * 0.0255);
207207
assert_eq!(trade.quantity_contract, Some(10.0));
208208
assert_eq!(trade.side, TradeSide::Sell);
209209
}
@@ -481,8 +481,8 @@ mod l2_event {
481481
assert_eq!(orderbook.timestamp, 1622726335745);
482482

483483
assert_eq!(orderbook.asks[0].price, 0.0015);
484-
assert_eq!(orderbook.asks[0].quantity_base, 0.1 * 906.0);
485-
assert_eq!(orderbook.asks[0].quantity_quote, 0.1 * 906.0 * 0.0015);
484+
assert_eq!(orderbook.asks[0].quantity_base, 1.0 * 906.0);
485+
assert_eq!(orderbook.asks[0].quantity_quote, 1.0 * 906.0 * 0.0015);
486486
assert_eq!(orderbook.asks[0].quantity_contract.unwrap(), 906.0);
487487
}
488488
}

crypto-rest-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crypto-rest-client"
3-
version = "0.9.4"
3+
version = "0.9.5"
44
authors = ["soulmachine <[email protected]>"]
55
edition = "2021"
66
description = "An RESTful client for all cryptocurrency exchanges."

crypto-rest-client/src/exchanges/zb/zb_spot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::super::utils::http_get;
22
use crate::error::Result;
33
use std::collections::BTreeMap;
44

5-
const BASE_URL: &str = "https://api.zbex.site";
5+
const BASE_URL: &str = "https://api.zb.com";
66

77
/// The RESTful client for ZB spot market.
88
///

0 commit comments

Comments
 (0)