Skip to content

Commit

Permalink
Update to 6.2-1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Petersoj committed Jun 17, 2021
1 parent f4d8f93 commit 84e9c89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand All @@ -33,7 +33,7 @@ If you are using Maven as your build tool, add the following dependency to your
<dependency>
<groupId>net.jacobpeterson</groupId>
<artifactId>iqfeed4j</artifactId>
<version>6.2-1.2</version>
<version>6.2-1.3</version>
<scope>compile</scope>
</dependency>
```
Expand Down Expand Up @@ -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();
}
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 84e9c89

Please sign in to comment.