|
|
@@ -3,21 +3,21 @@ use exchanges::gate_swap_rest::GateSwapRest;
|
|
|
|
|
|
#[tokio::test]
|
|
|
async fn test_import() {
|
|
|
- //gate-rest -账户信息
|
|
|
- let mut btree_map: BTreeMap<String, String> = BTreeMap::new();
|
|
|
- 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 req_data = gate_exc.get_account("usdt".to_string()).await;
|
|
|
- // println!("gate-rest -账户信息{:?}", req_data);
|
|
|
- // let req_data = gate_exc.get_position("usdt".to_string(), "BTC_USDT".to_string()).await;
|
|
|
- // println!("gate-rest -持仓信息{:?}", req_data);
|
|
|
- // let req_data = gate_exc.get_ticker("usdt".to_string()).await;
|
|
|
- // 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_server_time().await;
|
|
|
- println!("gate-rest -market_details{:?}", req_data);
|
|
|
+ // //gate-rest -账户信息
|
|
|
+ // let mut btree_map: BTreeMap<String, String> = BTreeMap::new();
|
|
|
+ // 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 res_data = gate_exc.get_account("usdt".to_string()).await;
|
|
|
+ // // println!("gate-rest -账户信息{:?}", res_data);
|
|
|
+ // // let res_data = gate_exc.get_position("usdt".to_string(), "BTC_USDT".to_string()).await;
|
|
|
+ // // println!("gate-rest -持仓信息{:?}", res_data);
|
|
|
+ // // let res_data = gate_exc.get_ticker("usdt".to_string()).await;
|
|
|
+ // // println!("gate-rest -ticker{:?}", res_data);
|
|
|
+ // // let res_data = gate_exc.get_market_details("usdt".to_string()).await;
|
|
|
+ // // println!("gate-rest -market_details{:?}", res_data);
|
|
|
+ // let res_data = gate_exc.get_server_time().await;
|
|
|
+ // println!("gate-rest -market_details{:?}", res_data);
|
|
|
|
|
|
}
|