-
Notifications
You must be signed in to change notification settings - Fork 0
/
BTCETicker.h
39 lines (33 loc) · 937 Bytes
/
BTCETicker.h
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
#ifndef BTCETICKER_H
#define BTCETICKER_H
#include "types.h"
#include <QJsonValue>
class BTCETicker
{
public:
BTCETicker();
BTCETicker(const QJsonValue &last, const QJsonValue &high, const QJsonValue &low,
const QJsonValue &avg, const QJsonValue &buy, const QJsonValue &sell,
const QJsonValue &vol, const QJsonValue &volCur, const QJsonValue &updated);
BigDecimal getLast() const;
BigDecimal getHigh() const;
BigDecimal getLow() const;
BigDecimal getAvg() const;
BigDecimal getBuy() const;
BigDecimal getSell() const;
BigDecimal getVol() const;
BigDecimal getVolCur() const;
long getUpdated() const;
String toString() const;
private:
BigDecimal last_;
BigDecimal high_;
BigDecimal low_;
BigDecimal avg_;
BigDecimal buy_;
BigDecimal sell_;
BigDecimal vol_;
BigDecimal volCur_;
long updated_;
};
#endif // BTCETICKER_H