-
Notifications
You must be signed in to change notification settings - Fork 0
/
BTCEPairInfo.cpp
49 lines (41 loc) · 1.24 KB
/
BTCEPairInfo.cpp
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
#include "BTCEPairInfo.h"
BTCEPairInfo::BTCEPairInfo(const QJsonValue &decimals, const QJsonValue &minPrice,
const QJsonValue &maxPrice, const QJsonValue &minAmount,
const QJsonValue &hidden, const QJsonValue &fee)
: decimals_(decimals.toInt()), minPrice_(minPrice.toDouble()), maxPrice_(maxPrice.toDouble()),
minAmount_(minAmount.toDouble()), hidden_(hidden.toInt()), fee_(fee.toDouble())
{}
int BTCEPairInfo::getDecimals() const
{
return decimals_;
}
BigDecimal BTCEPairInfo::getMinPrice() const
{
return minPrice_;
}
BigDecimal BTCEPairInfo::getMaxPrice() const
{
return maxPrice_;
}
BigDecimal BTCEPairInfo::getMinAmount() const
{
return minAmount_;
}
int BTCEPairInfo::getHidden() const
{
return hidden_;
}
BigDecimal BTCEPairInfo::getFee() const
{
return fee_;
}
String BTCEPairInfo::toString() const
{
return "BTCEPairInfo [decimals=" + QString::number(decimals_)
+ ", minPrice=" + QString::number(minPrice_)
+ ", maxPrice=" + QString::number(maxPrice_)
+ ", minAmount=" + QString::number(minAmount_)
+ ", hidden=" + QString::number(hidden_)
+ ", fee=" + QString::number(fee_)
+ "]";
}