-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrade.java
More file actions
58 lines (44 loc) · 910 Bytes
/
Trade.java
File metadata and controls
58 lines (44 loc) · 910 Bytes
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
public class Trade {
private String symbol;
private int time_trade;
private String side;
private double price;
private int quantity;
public Trade(String s,int t,String si,double p,int q){
this.setSymbol(s);
this.setTime_trade(t);
this.setSide(si);
this.setPrice(p);
this.setQuantity(q);
}
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public int getTime_trade() {
return time_trade;
}
public void setTime_trade(int time_trade) {
this.time_trade = time_trade;
}
public String getSide() {
return side;
}
public void setSide(String side) {
this.side = side;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
}