Skip to content

Commit 0309d35

Browse files
committed
return etf in ticker
1 parent 9430436 commit 0309d35

9 files changed

Lines changed: 121 additions & 121 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Gate API v4
44

5-
- API version: 4.18.3
6-
- SDK version: 5.18.3
5+
- API version: 4.18.4
6+
- SDK version: 5.18.4
77

88
APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
99

@@ -65,7 +65,7 @@ Add this dependency to your project's POM:
6565
<dependency>
6666
<groupId>io.gate</groupId>
6767
<artifactId>gate-api</artifactId>
68-
<version>5.18.3</version>
68+
<version>5.18.4</version>
6969
<scope>compile</scope>
7070
</dependency>
7171
```
@@ -75,7 +75,7 @@ Add this dependency to your project's POM:
7575
Add this dependency to your project's build file:
7676

7777
```groovy
78-
compile "io.gate:gate-api:5.18.3"
78+
compile "io.gate:gate-api:5.18.4"
7979
```
8080

8181
### Others
@@ -88,7 +88,7 @@ mvn clean package
8888

8989
Then manually install the following JARs:
9090

91-
* `target/gate-api-5.18.3.jar`
91+
* `target/gate-api-5.18.4.jar`
9292
* `target/lib/*.jar`
9393

9494
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'io.gate'
6-
version = '5.18.3'
6+
version = '5.18.4'
77

88
buildscript {
99
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.gate",
44
name := "gate-api",
5-
version := "5.18.3",
5+
version := "5.18.4",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CurrencyPair.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Name | Type | Description | Notes
1616
**amountPrecision** | **Integer** | Amount scale | [optional]
1717
**precision** | **Integer** | Price scale | [optional]
1818
**tradeStatus** | [**TradeStatusEnum**](#TradeStatusEnum) | How currency pair can be traded - untradable: cannot be bought or sold - buyable: can be bought - sellable: can be sold - tradable: can be bought or sold | [optional]
19-
**etfNetValue** | **String** | ETF net value | [optional]
20-
**etfPreNetValue** | **String** | ETF previous net value at re-balancing time | [optional]
21-
**etfPreTimestamp** | **Long** | ETF previous re-balancing time | [optional]
22-
**etfLeverage** | **String** | ETF current leverage | [optional]
2319

2420
## Enum: TradeStatusEnum
2521

docs/Ticker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ Name | Type | Description | Notes
1414
**quoteVolume** | **String** | Quote currency trade volume | [optional]
1515
**high24h** | **String** | Highest price in 24h | [optional]
1616
**low24h** | **String** | Lowest price in 24h | [optional]
17+
**etfNetValue** | **String** | ETF net value | [optional]
18+
**etfPreNetValue** | **String** | ETF previous net value at re-balancing time | [optional]
19+
**etfPreTimestamp** | **Long** | ETF previous re-balancing time | [optional]
20+
**etfLeverage** | **String** | ETF current leverage | [optional]
1721

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>gate-api</artifactId>
66
<packaging>jar</packaging>
77
<name>gate-api</name>
8-
<version>5.18.3</version>
8+
<version>5.18.4</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>Java client for gateapi</description>
1111
<scm>

src/main/java/io/gate/gateapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void init() {
113113
json = new JSON();
114114

115115
// Set default User-Agent.
116-
setUserAgent("OpenAPI-Generator/5.18.3/java");
116+
setUserAgent("OpenAPI-Generator/5.18.4/java");
117117

118118
authentications = new HashMap<String, Authentication>();
119119
}

src/main/java/io/gate/gateapi/models/CurrencyPair.java

Lines changed: 2 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,6 @@ public TradeStatusEnum read(final JsonReader jsonReader) throws IOException {
110110
@SerializedName(SERIALIZED_NAME_TRADE_STATUS)
111111
private TradeStatusEnum tradeStatus;
112112

113-
public static final String SERIALIZED_NAME_ETF_NET_VALUE = "etf_net_value";
114-
@SerializedName(SERIALIZED_NAME_ETF_NET_VALUE)
115-
private String etfNetValue;
116-
117-
public static final String SERIALIZED_NAME_ETF_PRE_NET_VALUE = "etf_pre_net_value";
118-
@SerializedName(SERIALIZED_NAME_ETF_PRE_NET_VALUE)
119-
private String etfPreNetValue;
120-
121-
public static final String SERIALIZED_NAME_ETF_PRE_TIMESTAMP = "etf_pre_timestamp";
122-
@SerializedName(SERIALIZED_NAME_ETF_PRE_TIMESTAMP)
123-
private Long etfPreTimestamp;
124-
125-
public static final String SERIALIZED_NAME_ETF_LEVERAGE = "etf_leverage";
126-
@SerializedName(SERIALIZED_NAME_ETF_LEVERAGE)
127-
private String etfLeverage;
128-
129113

130114
public CurrencyPair id(String id) {
131115

@@ -306,86 +290,6 @@ public TradeStatusEnum getTradeStatus() {
306290
public void setTradeStatus(TradeStatusEnum tradeStatus) {
307291
this.tradeStatus = tradeStatus;
308292
}
309-
310-
public CurrencyPair etfNetValue(String etfNetValue) {
311-
312-
this.etfNetValue = etfNetValue;
313-
return this;
314-
}
315-
316-
/**
317-
* ETF net value
318-
* @return etfNetValue
319-
**/
320-
@javax.annotation.Nullable
321-
public String getEtfNetValue() {
322-
return etfNetValue;
323-
}
324-
325-
326-
public void setEtfNetValue(String etfNetValue) {
327-
this.etfNetValue = etfNetValue;
328-
}
329-
330-
public CurrencyPair etfPreNetValue(String etfPreNetValue) {
331-
332-
this.etfPreNetValue = etfPreNetValue;
333-
return this;
334-
}
335-
336-
/**
337-
* ETF previous net value at re-balancing time
338-
* @return etfPreNetValue
339-
**/
340-
@javax.annotation.Nullable
341-
public String getEtfPreNetValue() {
342-
return etfPreNetValue;
343-
}
344-
345-
346-
public void setEtfPreNetValue(String etfPreNetValue) {
347-
this.etfPreNetValue = etfPreNetValue;
348-
}
349-
350-
public CurrencyPair etfPreTimestamp(Long etfPreTimestamp) {
351-
352-
this.etfPreTimestamp = etfPreTimestamp;
353-
return this;
354-
}
355-
356-
/**
357-
* ETF previous re-balancing time
358-
* @return etfPreTimestamp
359-
**/
360-
@javax.annotation.Nullable
361-
public Long getEtfPreTimestamp() {
362-
return etfPreTimestamp;
363-
}
364-
365-
366-
public void setEtfPreTimestamp(Long etfPreTimestamp) {
367-
this.etfPreTimestamp = etfPreTimestamp;
368-
}
369-
370-
public CurrencyPair etfLeverage(String etfLeverage) {
371-
372-
this.etfLeverage = etfLeverage;
373-
return this;
374-
}
375-
376-
/**
377-
* ETF current leverage
378-
* @return etfLeverage
379-
**/
380-
@javax.annotation.Nullable
381-
public String getEtfLeverage() {
382-
return etfLeverage;
383-
}
384-
385-
386-
public void setEtfLeverage(String etfLeverage) {
387-
this.etfLeverage = etfLeverage;
388-
}
389293
@Override
390294
public boolean equals(java.lang.Object o) {
391295
if (this == o) {
@@ -403,16 +307,12 @@ public boolean equals(java.lang.Object o) {
403307
Objects.equals(this.minQuoteAmount, currencyPair.minQuoteAmount) &&
404308
Objects.equals(this.amountPrecision, currencyPair.amountPrecision) &&
405309
Objects.equals(this.precision, currencyPair.precision) &&
406-
Objects.equals(this.tradeStatus, currencyPair.tradeStatus) &&
407-
Objects.equals(this.etfNetValue, currencyPair.etfNetValue) &&
408-
Objects.equals(this.etfPreNetValue, currencyPair.etfPreNetValue) &&
409-
Objects.equals(this.etfPreTimestamp, currencyPair.etfPreTimestamp) &&
410-
Objects.equals(this.etfLeverage, currencyPair.etfLeverage);
310+
Objects.equals(this.tradeStatus, currencyPair.tradeStatus);
411311
}
412312

413313
@Override
414314
public int hashCode() {
415-
return Objects.hash(id, base, quote, fee, minBaseAmount, minQuoteAmount, amountPrecision, precision, tradeStatus, etfNetValue, etfPreNetValue, etfPreTimestamp, etfLeverage);
315+
return Objects.hash(id, base, quote, fee, minBaseAmount, minQuoteAmount, amountPrecision, precision, tradeStatus);
416316
}
417317

418318

@@ -429,10 +329,6 @@ public String toString() {
429329
sb.append(" amountPrecision: ").append(toIndentedString(amountPrecision)).append("\n");
430330
sb.append(" precision: ").append(toIndentedString(precision)).append("\n");
431331
sb.append(" tradeStatus: ").append(toIndentedString(tradeStatus)).append("\n");
432-
sb.append(" etfNetValue: ").append(toIndentedString(etfNetValue)).append("\n");
433-
sb.append(" etfPreNetValue: ").append(toIndentedString(etfPreNetValue)).append("\n");
434-
sb.append(" etfPreTimestamp: ").append(toIndentedString(etfPreTimestamp)).append("\n");
435-
sb.append(" etfLeverage: ").append(toIndentedString(etfLeverage)).append("\n");
436332
sb.append("}");
437333
return sb.toString();
438334
}

src/main/java/io/gate/gateapi/models/Ticker.java

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@ public class Ticker {
5959
@SerializedName(SERIALIZED_NAME_LOW24H)
6060
private String low24h;
6161

62+
public static final String SERIALIZED_NAME_ETF_NET_VALUE = "etf_net_value";
63+
@SerializedName(SERIALIZED_NAME_ETF_NET_VALUE)
64+
private String etfNetValue;
65+
66+
public static final String SERIALIZED_NAME_ETF_PRE_NET_VALUE = "etf_pre_net_value";
67+
@SerializedName(SERIALIZED_NAME_ETF_PRE_NET_VALUE)
68+
private String etfPreNetValue;
69+
70+
public static final String SERIALIZED_NAME_ETF_PRE_TIMESTAMP = "etf_pre_timestamp";
71+
@SerializedName(SERIALIZED_NAME_ETF_PRE_TIMESTAMP)
72+
private Long etfPreTimestamp;
73+
74+
public static final String SERIALIZED_NAME_ETF_LEVERAGE = "etf_leverage";
75+
@SerializedName(SERIALIZED_NAME_ETF_LEVERAGE)
76+
private String etfLeverage;
77+
6278

6379
public Ticker currencyPair(String currencyPair) {
6480

@@ -239,6 +255,86 @@ public String getLow24h() {
239255
public void setLow24h(String low24h) {
240256
this.low24h = low24h;
241257
}
258+
259+
public Ticker etfNetValue(String etfNetValue) {
260+
261+
this.etfNetValue = etfNetValue;
262+
return this;
263+
}
264+
265+
/**
266+
* ETF net value
267+
* @return etfNetValue
268+
**/
269+
@javax.annotation.Nullable
270+
public String getEtfNetValue() {
271+
return etfNetValue;
272+
}
273+
274+
275+
public void setEtfNetValue(String etfNetValue) {
276+
this.etfNetValue = etfNetValue;
277+
}
278+
279+
public Ticker etfPreNetValue(String etfPreNetValue) {
280+
281+
this.etfPreNetValue = etfPreNetValue;
282+
return this;
283+
}
284+
285+
/**
286+
* ETF previous net value at re-balancing time
287+
* @return etfPreNetValue
288+
**/
289+
@javax.annotation.Nullable
290+
public String getEtfPreNetValue() {
291+
return etfPreNetValue;
292+
}
293+
294+
295+
public void setEtfPreNetValue(String etfPreNetValue) {
296+
this.etfPreNetValue = etfPreNetValue;
297+
}
298+
299+
public Ticker etfPreTimestamp(Long etfPreTimestamp) {
300+
301+
this.etfPreTimestamp = etfPreTimestamp;
302+
return this;
303+
}
304+
305+
/**
306+
* ETF previous re-balancing time
307+
* @return etfPreTimestamp
308+
**/
309+
@javax.annotation.Nullable
310+
public Long getEtfPreTimestamp() {
311+
return etfPreTimestamp;
312+
}
313+
314+
315+
public void setEtfPreTimestamp(Long etfPreTimestamp) {
316+
this.etfPreTimestamp = etfPreTimestamp;
317+
}
318+
319+
public Ticker etfLeverage(String etfLeverage) {
320+
321+
this.etfLeverage = etfLeverage;
322+
return this;
323+
}
324+
325+
/**
326+
* ETF current leverage
327+
* @return etfLeverage
328+
**/
329+
@javax.annotation.Nullable
330+
public String getEtfLeverage() {
331+
return etfLeverage;
332+
}
333+
334+
335+
public void setEtfLeverage(String etfLeverage) {
336+
this.etfLeverage = etfLeverage;
337+
}
242338
@Override
243339
public boolean equals(java.lang.Object o) {
244340
if (this == o) {
@@ -256,12 +352,16 @@ public boolean equals(java.lang.Object o) {
256352
Objects.equals(this.baseVolume, ticker.baseVolume) &&
257353
Objects.equals(this.quoteVolume, ticker.quoteVolume) &&
258354
Objects.equals(this.high24h, ticker.high24h) &&
259-
Objects.equals(this.low24h, ticker.low24h);
355+
Objects.equals(this.low24h, ticker.low24h) &&
356+
Objects.equals(this.etfNetValue, ticker.etfNetValue) &&
357+
Objects.equals(this.etfPreNetValue, ticker.etfPreNetValue) &&
358+
Objects.equals(this.etfPreTimestamp, ticker.etfPreTimestamp) &&
359+
Objects.equals(this.etfLeverage, ticker.etfLeverage);
260360
}
261361

262362
@Override
263363
public int hashCode() {
264-
return Objects.hash(currencyPair, last, lowestAsk, highestBid, changePercentage, baseVolume, quoteVolume, high24h, low24h);
364+
return Objects.hash(currencyPair, last, lowestAsk, highestBid, changePercentage, baseVolume, quoteVolume, high24h, low24h, etfNetValue, etfPreNetValue, etfPreTimestamp, etfLeverage);
265365
}
266366

267367

@@ -278,6 +378,10 @@ public String toString() {
278378
sb.append(" quoteVolume: ").append(toIndentedString(quoteVolume)).append("\n");
279379
sb.append(" high24h: ").append(toIndentedString(high24h)).append("\n");
280380
sb.append(" low24h: ").append(toIndentedString(low24h)).append("\n");
381+
sb.append(" etfNetValue: ").append(toIndentedString(etfNetValue)).append("\n");
382+
sb.append(" etfPreNetValue: ").append(toIndentedString(etfPreNetValue)).append("\n");
383+
sb.append(" etfPreTimestamp: ").append(toIndentedString(etfPreTimestamp)).append("\n");
384+
sb.append(" etfLeverage: ").append(toIndentedString(etfLeverage)).append("\n");
281385
sb.append("}");
282386
return sb.toString();
283387
}

0 commit comments

Comments
 (0)