FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitso-java/src/main/java/com/bitso/BitsoTrade.java at master · bitsoex/bitso-java · GitHub
bitsoex
/
bitso-java
Public
Notifications
You must be signed in to change notification settings
Fork
33
Star
40
Code
Issues
6
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bitso-java
/
src
/
main
/
java
/
com
/
bitso
/
BitsoTrade.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
146 lines (116 loc) · 3.35 KB
Breadcrumbs
bitso-java
/
src
/
main
/
java
/
com
/
bitso
/
BitsoTrade.java
Copy path
File metadata and controls
146 lines (116 loc) · 3.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
package
com
.
bitso
;
import
java
.
math
.
BigDecimal
;
import
java
.
util
.
Date
;
import
org
.
json
.
JSONObject
;
import
com
.
bitso
.
helpers
.
Helpers
;
public
class
BitsoTrade
{
// TODO:
// Check how long the tradeId would be, in order
// to save it in an int or long type
private
int
mTid
;
private
String
mOid
;
private
String
mSide
;
private
String
mMinorCurrency
;
private
String
mMajorCurrency
;
private
String
mBook
;
private
String
mFeesCurrency
;
private
BigDecimal
mFeesAmount
;
private
BigDecimal
mPrice
;
private
BigDecimal
mMajor
;
private
BigDecimal
mMinor
;
private
Date
mTradeDate
;
public
BitsoTrade
() {
mMajor
=
BigDecimal
.
ZERO
;
mMinor
=
BigDecimal
.
ZERO
;
}
public
BitsoTrade
(
JSONObject
o
) {
this
.
mBook
=
Helpers
.
getString
(
o
,
"book"
);
this
.
mMajor
=
Helpers
.
getBD
(
o
,
"major"
);
this
.
mTradeDate
=
Helpers
.
getZonedDatetime
(
o
,
"created_at"
);
this
.
mMinor
=
Helpers
.
getBD
(
o
,
"minor"
);
this
.
mFeesAmount
=
Helpers
.
getBD
(
o
,
"fees_amount"
);
this
.
mFeesCurrency
=
Helpers
.
getString
(
o
,
"fees_currency"
);
this
.
mPrice
=
Helpers
.
getBD
(
o
,
"price"
);
this
.
mTid
=
Helpers
.
getInteger
(
o
,
"tid"
);
this
.
mOid
=
Helpers
.
getString
(
o
,
"oid"
);
this
.
mSide
=
Helpers
.
getString
(
o
,
"side"
);
this
.
mMinorCurrency
=
Helpers
.
getString
(
o
,
"minor_currency"
);
this
.
mMajorCurrency
=
Helpers
.
getString
(
o
,
"major_currency"
);
}
public
int
getTid
() {
return
mTid
;
}
public
void
setTid
(
int
mTid
) {
this
.
mTid
=
mTid
;
}
public
String
getOid
() {
return
mOid
;
}
public
void
setOid
(
String
mOid
) {
this
.
mOid
=
mOid
;
}
public
String
getSide
() {
return
mSide
;
}
public
void
setSide
(
String
mSide
) {
this
.
mSide
=
mSide
;
}
public
String
getMinorCurrency
() {
return
mMinorCurrency
;
}
public
void
setMinorCurrency
(
String
mMinorCurrency
) {
this
.
mMinorCurrency
=
mMinorCurrency
;
}
public
String
getMajorCurrency
() {
return
mMajorCurrency
;
}
public
void
setMajorCurrency
(
String
mMajorCurrency
) {
this
.
mMajorCurrency
=
mMajorCurrency
;
}
public
String
getBook
() {
return
mBook
;
}
public
void
setBook
(
String
mBook
) {
this
.
mBook
=
mBook
;
}
public
String
getFeesCurrency
() {
return
mFeesCurrency
;
}
public
void
setFeesCurrency
(
String
mFeesCurrency
) {
this
.
mFeesCurrency
=
mFeesCurrency
;
}
public
BigDecimal
getFeesAmount
() {
return
mFeesAmount
;
}
public
void
setFeesAmount
(
BigDecimal
mFeesAmount
) {
this
.
mFeesAmount
=
mFeesAmount
;
}
public
BigDecimal
getPrice
() {
return
mPrice
;
}
public
void
setPrice
(
BigDecimal
mPrice
) {
this
.
mPrice
=
mPrice
;
}
public
BigDecimal
getMajor
() {
return
mMajor
;
}
public
void
setMajor
(
BigDecimal
mMajor
) {
this
.
mMajor
=
mMajor
;
}
public
BigDecimal
getMinor
() {
return
mMinor
;
}
public
void
setMinor
(
BigDecimal
mMinor
) {
this
.
mMinor
=
mMinor
;
}
public
Date
getTradeDate
() {
return
mTradeDate
;
}
public
void
setTradeDate
(
Date
mTradeDate
) {
this
.
mTradeDate
=
mTradeDate
;
}
@
Override
public
String
toString
() {
return
Helpers
.
fieldPrinter
(
this
,
BitsoTrade
.
class
);
}
}
Back
|
FazBrowse Home
|
New Git URL