Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The detailed document [https://docs.kucoin.com](https://docs.kucoin.com).
<dependency>
<groupId>com.kucoin</groupId>
<artifactId>kucoin-java-sdk</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
</dependency>
```
## Usage
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/kucoin/sdk/rest/response/SymbolResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package com.kucoin.sdk.rest.response;

import java.math.BigDecimal;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

Expand Down Expand Up @@ -45,4 +46,17 @@ public class SymbolResponse {
private Boolean enableTrading;

private Boolean isMarginEnabled;

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SymbolResponse that = (SymbolResponse) o;
return Objects.equals(symbol, that.symbol) && Objects.equals(market, that.market);
}

@Override
public int hashCode() {
return Objects.hash(symbol, market);
}
}