From 84e9c89bc0bce652a1675dcb0356931895df9f71 Mon Sep 17 00:00:00 2001 From: Jacob Peterson Date: Thu, 17 Jun 2021 12:30:49 -0600 Subject: [PATCH] Update to 6.2-1.3 --- README.md | 26 +++++++++---------- build.gradle | 2 +- .../iqfeed4j/feed/AbstractFeed.java | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 6588e1a..e31e905 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ If you are using Gradle as your build tool, add the following dependency to your ``` dependencies { - implementation group: 'net.jacobpeterson', name: 'iqfeed4j', version: '6.2-1.2' + implementation group: 'net.jacobpeterson', name: 'iqfeed4j', version: '6.2-1.3' } ``` @@ -33,7 +33,7 @@ If you are using Maven as your build tool, add the following dependency to your net.jacobpeterson iqfeed4j - 6.2-1.2 + 6.2-1.3 compile ``` @@ -89,11 +89,11 @@ The following example will change what fields are sent when a `SummaryUpdate` oc ```java try { iqFeed4j.getLevel1Feed().selectUpdateFieldNames( - SummaryUpdateField.LAST, - SummaryUpdateField.LAST_SIZE, - SummaryUpdateField.LAST_MARKET_CENTER, - SummaryUpdateField.LAST_DATE, - SummaryUpdateField.LAST_TIME); + SummaryUpdateField.MOST_RECENT_TRADE, + SummaryUpdateField.MOST_RECENT_TRADE_SIZE, + SummaryUpdateField.MOST_RECENT_TRADE_MARKET_CENTER, + SummaryUpdateField.MOST_RECENT_TRADE_DATE, + SummaryUpdateField.MOST_RECENT_TRADE_TIME); } catch (IOException exception) { exception.printStackTrace(); } @@ -114,12 +114,12 @@ try { public void onMessageReceived(SummaryUpdate summaryUpdate) { System.out.printf("AAPL trade occurred with %d shares at $%.4f with the market center code" + " %d at %s %s with a latency of %s milliseconds.\n", - summaryUpdate.getLastSize(), - summaryUpdate.getLast(), - summaryUpdate.getLastMarketCenter(), - summaryUpdate.getLastDate(), - summaryUpdate.getLastTime(), - ChronoUnit.MILLIS.between(summaryUpdate.getLastTime(), LocalTime.now(ZoneId.of("America/New_York")))); + summaryUpdate.getMostRecentTradeSize(), + summaryUpdate.getMostRecentTrade(), + summaryUpdate.getMostRecentTradeMarketCenter(), + summaryUpdate.getMostRecentTradeDate(), + summaryUpdate.getMostRecentTradeTime(), + ChronoUnit.MILLIS.between(summaryUpdate.getMostRecentTradeTime(), LocalTime.now(ZoneId.of("America/New_York")))); } }); } catch (IOException exception) { diff --git a/build.gradle b/build.gradle index 42745c0..2362305 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ apply plugin: 'jsonschema2pojo' tasks.getByName('generateJsonSchema2Pojo').enabled(false) // Disable default 'jsonSchema2Pojo' task group 'net.jacobpeterson' -version '6.2-1.2-SNAPSHOT' +version '6.2-1.3-SNAPSHOT' repositories { mavenCentral() diff --git a/src/main/java/net/jacobpeterson/iqfeed4j/feed/AbstractFeed.java b/src/main/java/net/jacobpeterson/iqfeed4j/feed/AbstractFeed.java index 85e12cf..57c665c 100644 --- a/src/main/java/net/jacobpeterson/iqfeed4j/feed/AbstractFeed.java +++ b/src/main/java/net/jacobpeterson/iqfeed4j/feed/AbstractFeed.java @@ -199,7 +199,7 @@ public void run() { cleanupState(); return; } else { - // Removed in production for version 6.2-1.2 + // Removed in production for version 6.2-1.3 LOGGER.trace("Received message line: {}", line); String[] csv = csvSplitter.splitToList(line).toArray(new String[0]);