|
@@ -1,6 +1,7 @@
|
|
|
use std::collections::BTreeMap;
|
|
use std::collections::BTreeMap;
|
|
|
use std::sync::Arc;
|
|
use std::sync::Arc;
|
|
|
use std::sync::atomic::AtomicBool;
|
|
use std::sync::atomic::AtomicBool;
|
|
|
|
|
+use serde_json::json;
|
|
|
|
|
|
|
|
use tokio::sync::Mutex;
|
|
use tokio::sync::Mutex;
|
|
|
use tracing::trace;
|
|
use tracing::trace;
|
|
@@ -120,7 +121,9 @@ async fn rest_get_market_test() {
|
|
|
global::log_utils::init_log_with_trace();
|
|
global::log_utils::init_log_with_trace();
|
|
|
|
|
|
|
|
let mut ret = get_rest();
|
|
let mut ret = get_rest();
|
|
|
- let req_data = ret.get_market().await;
|
|
|
|
|
|
|
+ let req_data = ret.get_market(json!({
|
|
|
|
|
+ "symbol":"ETHBTC"
|
|
|
|
|
+ })).await;
|
|
|
println!("Coinsph--获取合约信息--{:?}", req_data);
|
|
println!("Coinsph--获取合约信息--{:?}", req_data);
|
|
|
}
|
|
}
|
|
|
|
|
|