fix: 优化
This commit is contained in:
@@ -285,16 +285,16 @@ public class RefinitivConsumer implements ApplicationRunner {
|
||||
interval = "PT1M";
|
||||
resourceEndpoint = baseURLToday + symbol;
|
||||
}else
|
||||
if(StringUtils.equals("3m",resolution)){
|
||||
if(StringUtils.equals("5m",resolution)){
|
||||
start = DateTimeUtil.getDayOfMorning(start,0);
|
||||
countback = 150;
|
||||
interval = "PT3M";
|
||||
interval = "PT5M";
|
||||
resourceEndpoint = baseURLToday + symbol;
|
||||
}else
|
||||
if(StringUtils.equals("15m",resolution)){
|
||||
if(StringUtils.equals("10m",resolution)){
|
||||
start = DateTimeUtil.getDayOfMorning(start,0);
|
||||
countback = 50;
|
||||
interval = "PT15M";
|
||||
interval = "PT10M";
|
||||
resourceEndpoint = baseURLToday + symbol;
|
||||
}else
|
||||
if(StringUtils.equals("30m",resolution)){
|
||||
@@ -347,6 +347,9 @@ public class RefinitivConsumer implements ApplicationRunner {
|
||||
List<Double> v = new ArrayList<>();//交易量
|
||||
for(int i = 0; i < dateArray.size(); i++){
|
||||
JSONArray date = dateArray.getJSONArray(i);
|
||||
if(date.get(1) == null){
|
||||
continue;
|
||||
}
|
||||
if(StringUtils.equals("D",resolution) || StringUtils.equals("W",resolution) || StringUtils.equals("M",resolution)){
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date d = formatter.parse(date.get(0).toString());
|
||||
|
||||
Reference in New Issue
Block a user