|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace IndependentReserve\Object; |
|
4
|
|
|
|
|
5
|
|
|
class MarketSummary extends AbstractTimestampedObject |
|
6
|
|
|
{ |
|
7
|
|
|
/** |
|
8
|
|
|
* Current highest bid on order book. |
|
9
|
|
|
* @return float |
|
10
|
|
|
*/ |
|
11
|
2 |
|
public function getCurrentHighestBidPrice() |
|
12
|
|
|
{ |
|
13
|
2 |
|
return $this->object->CurrentHighestBidPrice; |
|
14
|
|
|
} |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* Current lowest offer on order book. |
|
18
|
|
|
* @return float |
|
19
|
|
|
*/ |
|
20
|
2 |
|
public function getCurrentLowestOfferPrice() |
|
21
|
|
|
{ |
|
22
|
2 |
|
return $this->object->CurrentLowestOfferPrice; |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* Weighted average traded price over last 24 hours. |
|
27
|
|
|
* @return double |
|
28
|
|
|
*/ |
|
29
|
2 |
|
public function getDayAveragePrice() |
|
30
|
|
|
{ |
|
31
|
2 |
|
return $this->object->DayAvgPrice; |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* Highest traded price over last 24 hours. |
|
36
|
|
|
* @return double |
|
37
|
|
|
*/ |
|
38
|
2 |
|
public function getDayHighestPrice() |
|
39
|
|
|
{ |
|
40
|
2 |
|
return $this->object->DayHighestPrice; |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Lowest traded price over last 24 hours. |
|
45
|
|
|
* @return double |
|
46
|
|
|
*/ |
|
47
|
2 |
|
public function getDayLowestPrice() |
|
48
|
|
|
{ |
|
49
|
2 |
|
return $this->object->DayLowestPrice; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* Volume of primary currency traded in last 24 hours. |
|
54
|
|
|
* @return double |
|
55
|
|
|
*/ |
|
56
|
2 |
|
public function getDayVolumeXbt() |
|
57
|
|
|
{ |
|
58
|
2 |
|
return $this->object->DayVolumeXbt; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* Last traded price. |
|
63
|
|
|
* @return double |
|
64
|
|
|
*/ |
|
65
|
2 |
|
public function getLastPrice() |
|
66
|
|
|
{ |
|
67
|
2 |
|
return $this->object->LastPrice; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* The primary currency being summarised. |
|
72
|
|
|
* @return string |
|
73
|
|
|
*/ |
|
74
|
2 |
|
public function getPrimaryCurrencyCode() |
|
75
|
|
|
{ |
|
76
|
2 |
|
return $this->object->PrimaryCurrencyCode; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* The secondary currency being used for pricing. |
|
81
|
|
|
* @return string |
|
82
|
|
|
*/ |
|
83
|
2 |
|
public function getSecondaryCurrencyCode() |
|
84
|
|
|
{ |
|
85
|
2 |
|
return $this->object->SecondaryCurrencyCode; |
|
86
|
|
|
} |
|
87
|
|
|
} |
|
88
|
|
|
|