Ver Fonte

bitget 新增接口

875428575@qq.com há 2 anos atrás
pai
commit
7409660901
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      exchanges/src/bitget_spot_rest.rs

+ 1 - 1
exchanges/src/bitget_spot_rest.rs

@@ -550,7 +550,7 @@ impl BitgetSpotRest {
         if symbol.len() > 0 {
             params.as_object_mut().unwrap().insert("symbol".parse().unwrap(), serde_json::Value::from(symbol));
         }
-        if symbol.len() > 0 {
+        if client_oid.len() > 0 {
             params.as_object_mut().unwrap().insert("clientOid".parse().unwrap(), serde_json::Value::from(client_oid));
         }
         let data = self.request("GET".to_string(),