This repository was archived by the owner on Oct 30, 2023. It is now read-only.
forked from joaopsilva/binance-java-api
-
Notifications
You must be signed in to change notification settings - Fork 599
Expand file tree
/
Copy pathAsset.java
More file actions
executable file
·92 lines (71 loc) · 2.18 KB
/
Asset.java
File metadata and controls
executable file
·92 lines (71 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.binance.api.client.domain.general;
import com.binance.api.client.constant.BinanceApiConstants;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* An asset Binance supports. Representing the provided Asset model. <a href=
* "https://binance-docs.github.io/apidocs/spot/en/#get-all-margin-assets-market_data">See
* Doku</a>
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Asset {
@JsonProperty("assetName")
private String assetName;
@JsonProperty("assetFullName")
private String assetFullName;
@JsonProperty("isBorrowable")
private boolean borrowable;
@JsonProperty("isMortgageable")
private boolean mortgageable;
@JsonProperty("userMinBorrow")
private double userMinBorrow;
@JsonProperty("userMinRepay")
private double userMinRepay;
public String getAssetName() {
return assetName;
}
public void setAssetName(String assetName) {
this.assetName = assetName;
}
public String getAssetFullName() {
return assetFullName;
}
public void setAssetFullName(String assetFullName) {
this.assetFullName = assetFullName;
}
public boolean isBorrowable() {
return borrowable;
}
public void setBorrowable(boolean borrowable) {
this.borrowable = borrowable;
}
public boolean isMortgageable() {
return mortgageable;
}
public void setMortgageable(boolean mortgageable) {
this.mortgageable = mortgageable;
}
public double getUserMinBorrow() {
return userMinBorrow;
}
public void setUserMinBorrow(double userMinBorrow) {
this.userMinBorrow = userMinBorrow;
}
public double getUserMinRepay() {
return userMinRepay;
}
public void setUserMinRepay(double userMinRepay) {
this.userMinRepay = userMinRepay;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE).append("assetName", assetName)
.append("assetFullName", assetFullName)
.append("isBorrowable", borrowable)
.append("isMortgageable", mortgageable)
.append("userMinBorrow", userMinBorrow)
.append("userMinRepay", userMinRepay)
.toString();
}
}