|
|
@@ -116,7 +116,13 @@ impl GateSwapRest {
|
|
|
// 创建新的子账户密钥对
|
|
|
pub async fn create_keys(&mut self, user_id: i64) -> ResponseData {
|
|
|
let params = serde_json::json!({
|
|
|
- "name": "futures"
|
|
|
+ "name": format!("mm_{}", user_id),
|
|
|
+ "perms": [
|
|
|
+ {
|
|
|
+ "name": "futures",
|
|
|
+ "read_only": false
|
|
|
+ }
|
|
|
+ ]
|
|
|
});
|
|
|
let data = self.request("POST".to_string(),
|
|
|
"/api/v4".to_string(),
|