|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace IndependentReserve\Object; |
|
4
|
|
|
|
|
5
|
|
|
use DateTime; |
|
6
|
|
|
|
|
7
|
|
|
class HistorySummaryItem extends AbstractObject |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* Average traded price during hour. |
|
11
|
|
|
* @return double |
|
12
|
|
|
*/ |
|
13
|
1 |
|
public function getAverageSecondaryCurrencyPrice() |
|
14
|
|
|
{ |
|
15
|
1 |
|
return $this->object->AverageSecondaryCurrencyPrice; |
|
16
|
|
|
} |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* Last traded price in hour. |
|
20
|
|
|
* @return double |
|
21
|
|
|
*/ |
|
22
|
1 |
|
public function getClosingSecondaryCurrencyPrice() |
|
23
|
|
|
{ |
|
24
|
1 |
|
return $this->object->ClosingSecondaryCurrencyPrice; |
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* Highest traded price during hour. |
|
29
|
|
|
* @return double |
|
30
|
|
|
*/ |
|
31
|
1 |
|
public function getHighestSecondaryCurrencyPrice() |
|
32
|
|
|
{ |
|
33
|
1 |
|
return $this->object->HighestSecondaryCurrencyPrice; |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Lowest traded price during hour. |
|
38
|
|
|
* @return double |
|
39
|
|
|
*/ |
|
40
|
1 |
|
public function getLowestSecondaryCurrencyPrice() |
|
41
|
|
|
{ |
|
42
|
1 |
|
return $this->object->LowestSecondaryCurrencyPrice; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* Number of trades executed during hour. |
|
47
|
|
|
* @return int |
|
48
|
|
|
*/ |
|
49
|
1 |
|
public function getNumberOfTrades() |
|
50
|
|
|
{ |
|
51
|
1 |
|
return $this->object->NumberOfTrades; |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* Opening traded price at start of hour. |
|
56
|
|
|
* @return double |
|
57
|
|
|
*/ |
|
58
|
1 |
|
public function getOpeningSecondaryCurrencyPrice() |
|
59
|
|
|
{ |
|
60
|
1 |
|
return $this->object->OpeningSecondaryCurrencyPrice; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Volume of primary currency trade during hour. |
|
65
|
|
|
* @return double |
|
66
|
|
|
*/ |
|
67
|
1 |
|
public function getPrimaryCurrencyVolume() |
|
68
|
|
|
{ |
|
69
|
1 |
|
return $this->object->PrimaryCurrencyVolume; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* Volume of secondary currency traded during hour. |
|
74
|
|
|
* @return double |
|
75
|
|
|
*/ |
|
76
|
1 |
|
public function getSecondaryCurrencyVolume() |
|
77
|
|
|
{ |
|
78
|
1 |
|
return $this->object->AverageSecondaryCurrencyPrice; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* UTC Start time of hour. |
|
83
|
|
|
* @return DateTime |
|
84
|
|
|
*/ |
|
85
|
1 |
|
public function getStartTimestamp() |
|
86
|
|
|
{ |
|
87
|
1 |
|
return new DateTime($this->object->StartTimestampUtc); |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* UTC End time of hour. |
|
92
|
|
|
* @return DateTime |
|
93
|
|
|
*/ |
|
94
|
1 |
|
public function getEndTimestamp() |
|
95
|
|
|
{ |
|
96
|
1 |
|
return new DateTime($this->object->EndTimestampUtc); |
|
97
|
|
|
} |
|
98
|
|
|
} |
|
99
|
|
|
|