Explorar o código

bitget 新增接口

875428575@qq.com %!s(int64=2) %!d(string=hai) anos
pai
achega
7409660901
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(),