| 1 | <?php |
||
| 13 | class PublicApi extends Api |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | * @throws Exception |
||
| 18 | */ |
||
| 19 | 1 | public function getMarkets(): array |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | * @throws Exception |
||
| 27 | */ |
||
| 28 | 1 | public function getCurrencies(): array |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $market |
||
| 35 | * @return array |
||
| 36 | * @throws Exception |
||
| 37 | */ |
||
| 38 | 1 | public function getTicker(string $market): array |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return array |
||
| 45 | * @throws Exception |
||
| 46 | */ |
||
| 47 | 1 | public function getMarketSummaries(): array |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $market |
||
| 54 | * @return array |
||
| 55 | * @throws Exception |
||
| 56 | */ |
||
| 57 | 1 | public function getMarketSummary(string $market): array |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $market |
||
| 64 | * @param int $depth |
||
| 65 | * @return array |
||
| 66 | * @throws Exception |
||
| 67 | */ |
||
| 68 | 1 | public function getOrderBook(string $market, $depth = 25): array |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @param string $market |
||
| 77 | * @return array |
||
| 78 | * @throws Exception |
||
| 79 | */ |
||
| 80 | 1 | public function getMarketHistory(string $market) |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return array |
||
| 87 | * @throws Exception |
||
| 88 | */ |
||
| 89 | 1 | public function ping(): array |
|
| 93 | |||
| 94 | } |
||
| 95 |