| File was renamed from bitgetsClient/src/main/java/org/example/bitgetsclient/WsBean/MexcWsBean.java |
| | |
| | | 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; |
| | |
| | | */ |
| | | @Slf4j |
| | | @Configuration |
| | | public class MexcWsBean { |
| | | public class BitgetsWsBean { |
| | | |
| | | @Autowired |
| | | private CurrencySerivceImpl currencyService; |
| | |
| | | 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); |
| | | }); |