Skip to content

Commit 79abdf5

Browse files
author
方佳
committed
Merge branch 'main_merge_1102' into 'main'
fix: delete quotes queryPageInstruments interface See merge request webull/openapi-java-sdk!4
2 parents e0aed7a + a4f374c commit 79abdf5

12 files changed

Lines changed: 8 additions & 32 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<groupId>com.webull.openapi</groupId>
2222
<artifactId>webull-java-sdk</artifactId>
2323
<packaging>pom</packaging>
24-
<version>0.2.7</version>
24+
<version>0.2.8</version>
2525

2626
<name>webull-java-sdk</name>
2727
<url>https://github.com/webull-inc/openapi-java-sdk/</url>

webull-java-sdk-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.webull.openapi</groupId>
2121
<artifactId>webull-java-sdk</artifactId>
22-
<version>0.2.7</version>
22+
<version>0.2.8</version>
2323
</parent>
2424

2525
<modelVersion>4.0.0</modelVersion>

webull-java-sdk-core/src/main/java/com/webull/openapi/config/ProjectReaderHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private ProjectReaderHelper() {
2424

2525
private static final String APPLICATION_VERSION = "application.version";
2626

27-
private static final String DEFAULT_APPLICATION_VERSION = "0.2.7";
27+
private static final String DEFAULT_APPLICATION_VERSION = "0.2.8";
2828

2929
private static final String APPLICATION_NAME = "application.name";
3030

webull-java-sdk-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.webull.openapi</groupId>
2121
<artifactId>webull-java-sdk</artifactId>
22-
<version>0.2.7</version>
22+
<version>0.2.8</version>
2323
</parent>
2424

2525
<modelVersion>4.0.0</modelVersion>

webull-java-sdk-example/src/main/java/com/webull/openapi/example/quotes/QuotesHttpApi.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public static void main(String[] args) {
5353
List<Instrument> instruments = quotesApiClient.getInstruments(symbols, Category.US_STOCK.name());
5454
logger.info("Instruments: {}", instruments);
5555

56-
// get instruments page
57-
List<Instrument> pageInstruments = quotesApiClient.queryPageInstruments(913303964, 10);
58-
logger.info("Page Instruments: {}", pageInstruments);
59-
6056
// get end of day market
6157
List<EodBars> eodBars = quotesApiClient.getEodBars(instrumentIds, "2023-01-01", 10);
6258
logger.info("Eod bars: {}", eodBars);

webull-java-sdk-grpc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.webull.openapi</groupId>
2121
<artifactId>webull-java-sdk</artifactId>
22-
<version>0.2.7</version>
22+
<version>0.2.8</version>
2323
</parent>
2424

2525
<modelVersion>4.0.0</modelVersion>

webull-java-sdk-quotes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.webull.openapi</groupId>
2121
<artifactId>webull-java-sdk</artifactId>
22-
<version>0.2.7</version>
22+
<version>0.2.8</version>
2323
</parent>
2424

2525
<modelVersion>4.0.0</modelVersion>

webull-java-sdk-quotes/src/main/java/com/webull/openapi/quotes/api/QuotesApiClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ static QuotesApiClientBuilder builder() {
3737

3838
List<Instrument> getInstruments(Set<String> symbols, String category);
3939

40-
/**
41-
* Only for Webull JP
42-
*/
43-
List<Instrument> queryPageInstruments(Integer lastInstrumentId, Integer pageSize);
44-
4540
default List<Bar> getBars(String symbol, String category, String timespan) {
4641
return getBars(symbol, category, timespan, 200);
4742
}

webull-java-sdk-quotes/src/main/java/com/webull/openapi/quotes/internal/grpc/GrpcQuotesApiClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ public List<EodBars> getEodBars(Set<String> instrumentIds, String date, Integer
203203
throw new UnsupportedOperationException(NOT_SUPPORT_MSG);
204204
}
205205

206-
@Override
207-
public List<Instrument> queryPageInstruments(Integer lastInstrumentId, Integer pageSize){
208-
throw new UnsupportedOperationException(NOT_SUPPORT_MSG);
209-
}
210-
211206
@Override
212207
public List<CorpAction> getCorpAction(CorpActionRequest action){
213208
throw new UnsupportedOperationException(NOT_SUPPORT_MSG);

webull-java-sdk-quotes/src/main/java/com/webull/openapi/quotes/internal/http/HttpQuotesApiClient.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ public List<Instrument> getInstruments(Set<String> symbols, String category) {
6868
return apiClient.request(request).responseType(new TypeToken<List<Instrument>>() {}.getType()).doAction();
6969
}
7070

71-
@Override
72-
public List<Instrument> queryPageInstruments(Integer lastInstrumentId, Integer pageSize){
73-
HttpRequest request = new HttpRequest("/instrument/query-page", Versions.V1, HttpMethod.GET);
74-
Map<String, Object> params = new HashMap<>();
75-
params.put(ArgNames.LAST_INSTRUMENT_ID, lastInstrumentId == null ? 0 : lastInstrumentId);
76-
params.put(ArgNames.PAGE_SIZE, pageSize == null ? 20 : pageSize);
77-
request.setQuery(params);
78-
return apiClient.request(request).responseType(new TypeToken<List<Instrument>>() {}.getType()).doAction();
79-
}
80-
8171
@Override
8272
public List<Bar> getBars(String symbol, String category, String timespan, int count) {
8373
Assert.notBlank(Arrays.asList(ArgNames.SYMBOL, ArgNames.CATEGORY, ArgNames.TIMESPAN), symbol, category, timespan);

0 commit comments

Comments
 (0)