1 | <?php |
||
14 | class PublicApi extends Api |
||
15 | { |
||
16 | /** |
||
17 | * @return array |
||
18 | * @throws Exception|GuzzleException |
||
19 | */ |
||
20 | 1 | public function getMarkets(): array |
|
21 | { |
||
22 | 1 | return $this->rest('GET', '/markets'); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return array |
||
27 | * @throws Exception|GuzzleException |
||
28 | */ |
||
29 | 1 | public function getCurrencies(): array |
|
30 | { |
||
31 | 1 | return $this->rest('GET', '/currencies'); |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return array |
||
36 | * @throws Exception|GuzzleException |
||
37 | */ |
||
38 | 1 | public function getTickers(): array |
|
42 | |||
43 | /** |
||
44 | * @param string $market |
||
45 | * @return array |
||
46 | * @throws Exception|GuzzleException |
||
47 | */ |
||
48 | 1 | public function getTicker(string $market): array |
|
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | * @throws Exception|GuzzleException |
||
56 | */ |
||
57 | 1 | public function getMarketSummaries(): array |
|
61 | |||
62 | /** |
||
63 | * @param string $market |
||
64 | * @return array |
||
65 | * @throws Exception|GuzzleException |
||
66 | */ |
||
67 | 1 | public function getMarketSummary(string $market): array |
|
71 | |||
72 | /** |
||
73 | * @param string $market |
||
74 | * @param int $depth |
||
75 | * @return array |
||
76 | * @throws Exception|GuzzleException |
||
77 | */ |
||
78 | 1 | public function getOrderBook(string $market, $depth = 25): array |
|
84 | |||
85 | /** |
||
86 | * @param string $market |
||
87 | * @return array |
||
88 | * @throws Exception|GuzzleException |
||
89 | */ |
||
90 | 1 | public function getMarketHistory(string $market) |
|
94 | |||
95 | /** |
||
96 | * @return array |
||
97 | * @throws Exception|GuzzleException |
||
98 | */ |
||
99 | 1 | public function ping(): array |
|
103 | |||
104 | } |