1
zj
2024-08-05 edaa364ccc37fe5372bca577482dd5d7142425cd
bitgetsClient/src/main/java/org/example/bitgetsclient/WsBean/BitgetsWsBean.java
File was renamed from bitgetsClient/src/main/java/org/example/bitgetsclient/WsBean/MexcWsBean.java
@@ -3,22 +3,11 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.example.bitgetsclient.pojo.Currency;
import org.example.bitgetsclient.server.impl.CurrencySerivceImpl;
import org.example.bitgetsclient.wsClient.BitgetClient;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
@@ -39,7 +28,7 @@
 */
@Slf4j
@Configuration
public class MexcWsBean {
public class BitgetsWsBean {
    @Autowired
    private CurrencySerivceImpl currencyService;
@@ -79,7 +68,7 @@
        symbolList.forEach(f->{
            Map<String, String> argsMap = new HashMap<>();
            argsMap.put("instType", "SPOT");
            argsMap.put("channel", "books15");
            argsMap.put("channel", "books1");
            argsMap.put("instId", f);
            mapList.add(argsMap);
        });