Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit a15902a

Browse files
committed
Adjusted recvWindow to 60000.
1 parent 9aabc01 commit a15902a

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

src/main/java/com/binance/api/client/constant/BinanceApiConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class BinanceApiConstants {
4242
/**
4343
* Default receiving window.
4444
*/
45-
public static final long DEFAULT_RECEIVING_WINDOW = 6_000_000L;
45+
public static final long DEFAULT_RECEIVING_WINDOW = 60_000L;
4646

4747
/**
4848
* Default ToStringStyle used by toString methods.

src/main/java/com/binance/api/client/domain/account/Trade.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public class Trade {
2727
*/
2828
private String qty;
2929

30+
31+
/**
32+
* Quote quantity for the trade (price * qty).
33+
*/
34+
private String quoteQty;
35+
3036
/**
3137
* Commission.
3238
*/
@@ -90,6 +96,14 @@ public void setQty(String qty) {
9096
this.qty = qty;
9197
}
9298

99+
public String getQuoteQty() {
100+
return quoteQty;
101+
}
102+
103+
public void setQuoteQty(String quoteQty) {
104+
this.quoteQty = quoteQty;
105+
}
106+
93107
public String getCommission() {
94108
return commission;
95109
}
@@ -161,6 +175,7 @@ public String toString() {
161175
.append("symbol", symbol)
162176
.append("price", price)
163177
.append("qty", qty)
178+
.append("quoteQty", quoteQty)
164179
.append("commission", commission)
165180
.append("commissionAsset", commissionAsset)
166181
.append("time", time)

src/test/java/com/binance/api/examples/AccountEndpointsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void main(String[] args) {
1717
BinanceApiRestClient client = factory.newRestClient();
1818

1919
// Get account balances
20-
Account account = client.getAccount(6000000L, System.currentTimeMillis());
20+
Account account = client.getAccount(60_000L, System.currentTimeMillis());
2121
System.out.println(account.getBalances());
2222
System.out.println(account.getAssetBalance("ETH"));
2323

0 commit comments

Comments
 (0)