This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
main/java/com/binance/api/client
test/java/com/binance/api/examples Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments