| 1 | <?php |
||
| 13 | class PublicApi extends Api |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | * @throws Exception |
||
| 18 | */ |
||
| 19 | public function getMarkets(): array |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | * @throws Exception |
||
| 27 | */ |
||
| 28 | public function getCurrencies(): array |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $market |
||
| 35 | * @return array |
||
| 36 | * @throws Exception |
||
| 37 | */ |
||
| 38 | public function getTicker(string $market): array |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | * @throws Exception |
||
| 48 | */ |
||
| 49 | public function getMarketSummaries(): array |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $market |
||
| 56 | * @return array |
||
| 57 | * @throws Exception |
||
| 58 | */ |
||
| 59 | public function getMarketSummary(string $market): array |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param string $market |
||
| 68 | * @param string $type |
||
| 69 | * @return array |
||
| 70 | * @throws Exception |
||
| 71 | */ |
||
| 72 | public function getOrderBook(string $market, $type = 'both'): array |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $market |
||
| 81 | * @return array |
||
| 82 | * @throws Exception |
||
| 83 | */ |
||
| 84 | public function getMarketHistory(string $market) |
||
| 90 | } |
||
| 91 |