Skip to content

Commit d63938b

Browse files
committed
Implementation of OCO order
1 parent 7d0a20b commit d63938b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ public class SubAccountTransfer {
3333
*/
3434
private String qty;
3535

36+
/**
37+
* Type of from account
38+
*/
39+
private String fromAccountType;
40+
41+
/**
42+
* Type of to account
43+
*/
44+
private String toAccountType;
45+
3646
/**
3747
* Transfer status
3848
*/
@@ -69,6 +79,10 @@ public void setQty(String qty) {
6979
this.qty = qty;
7080
}
7181

82+
public void setFromAccountType(String fromAccountType) { this.fromAccountType = fromAccountType; }
83+
84+
public void setToAccountType(String toAccountType) { this.toAccountType = toAccountType; }
85+
7286
public void setStatus(String status) {
7387
this.status = status;
7488
}
@@ -102,6 +116,10 @@ public String getQty() {
102116
return this.qty;
103117
}
104118

119+
public String getFromAccountType() { return this.fromAccountType; }
120+
121+
public String getToAccountType() { return this.toAccountType; }
122+
105123
public String getStatus() {
106124
return this.status;
107125
}
@@ -122,6 +140,8 @@ public String toString() {
122140
.append("type", this.type)
123141
.append("asset", this.asset)
124142
.append("qty", this.qty)
143+
.append("fromAccountType", this.fromAccountType)
144+
.append("toAccountType", this.toAccountType)
125145
.append("status", this.status)
126146
.append("tranId", this.tranId)
127147
.append("time", this.time)

0 commit comments

Comments
 (0)