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

Commit

Permalink
Merge pull request #159 from pahgo/master
Browse files Browse the repository at this point in the history
Fixed #157: Add symbol parameter to trades API.
  • Loading branch information
joaopsilva authored Jul 20, 2018
2 parents 84adddb + 137cfd4 commit 59bf8ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/com/binance/api/client/domain/account/Trade.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public class Trade {
*/
private long time;

/**
* The symbol of the trade.
*/
private String symbol;

@JsonProperty("isBuyer")
private boolean buyer;

Expand Down Expand Up @@ -107,6 +112,14 @@ public void setTime(long time) {
this.time = time;
}

public String getSymbol() {
return symbol;
}

public void setSymbol(String symbol) {
this.symbol = symbol;
}

public boolean isBuyer() {
return buyer;
}
Expand Down Expand Up @@ -143,6 +156,7 @@ public void setOrderId(String orderId) {
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("id", id)
.append("symbol", symbol)
.append("price", price)
.append("qty", qty)
.append("commission", commission)
Expand Down

0 comments on commit 59bf8ff

Please sign in to comment.