|
@@ -5,10 +5,8 @@ use exchanges::gate_swap_rest::GateSwapRest;
|
|
|
async fn test_import() {
|
|
async fn test_import() {
|
|
|
//gate-rest -账户信息
|
|
//gate-rest -账户信息
|
|
|
let mut btree_map: BTreeMap<String, String> = BTreeMap::new();
|
|
let mut btree_map: BTreeMap<String, String> = BTreeMap::new();
|
|
|
- btree_map.insert("access_key".to_string(), "4181c882718a95e72122ac1d52c88533".to_string());
|
|
|
|
|
- btree_map.insert("secret_key".to_string(), "de82d1507b843ff08d81a0e9b878b721359f274937216b307834b570b676fa3c".to_string());
|
|
|
|
|
- // btree_map.insert("access_key".to_string(), "dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83".to_string());
|
|
|
|
|
- // btree_map.insert("secret_key".to_string(), "2b5eb11e18796d12d88f13dc27dbbd02c2cc51ff7059765ed9821957d82bb4d9".to_string());
|
|
|
|
|
|
|
+ btree_map.insert("access_key".to_string(), "".to_string());
|
|
|
|
|
+ btree_map.insert("secret_key".to_string(), "".to_string());
|
|
|
|
|
|
|
|
let gate_exc = GateSwapRest::new(false, true, btree_map);
|
|
let gate_exc = GateSwapRest::new(false, true, btree_map);
|
|
|
// let req_data = gate_exc.get_account("usdt".to_string()).await;
|
|
// let req_data = gate_exc.get_account("usdt".to_string()).await;
|
|
@@ -17,6 +15,9 @@ use exchanges::gate_swap_rest::GateSwapRest;
|
|
|
// println!("gate-rest -持仓信息{:?}", req_data);
|
|
// println!("gate-rest -持仓信息{:?}", req_data);
|
|
|
// let req_data = gate_exc.get_ticker("usdt".to_string()).await;
|
|
// let req_data = gate_exc.get_ticker("usdt".to_string()).await;
|
|
|
// println!("gate-rest -ticker{:?}", req_data);
|
|
// println!("gate-rest -ticker{:?}", req_data);
|
|
|
- let req_data = gate_exc.get_market_details("usdt".to_string()).await;
|
|
|
|
|
- println!("gate-rest -market_details{:?}", req_data);
|
|
|
|
|
|
|
+ // let req_data = gate_exc.get_market_details("usdt".to_string()).await;
|
|
|
|
|
+ // println!("gate-rest -market_details{:?}", req_data);
|
|
|
|
|
+ let req_data = gate_exc.get_server_time().await;
|
|
|
|
|
+ println!("gate-rest -market_details{:?}", req_data);
|
|
|
|
|
+
|
|
|
}
|
|
}
|