1 | <?php |
||
13 | class Account extends Api |
||
14 | { |
||
15 | /** |
||
16 | * @return array |
||
17 | * @throws Exception |
||
18 | */ |
||
19 | 1 | public function getBalances(): array |
|
23 | |||
24 | /** |
||
25 | * @param string $currency |
||
26 | * @return array |
||
27 | * @throws Exception |
||
28 | */ |
||
29 | 1 | public function getBalance(string $currency): array |
|
33 | |||
34 | /** |
||
35 | * @param string $currency |
||
36 | * @return array |
||
37 | * @throws Exception |
||
38 | */ |
||
39 | 1 | public function getDepositAddress(string $currency): array |
|
43 | |||
44 | /** |
||
45 | * @param string $currency |
||
46 | * @param float $quantity |
||
47 | * @param string $address |
||
48 | * @param string|null $paymentId |
||
49 | * @return array |
||
50 | * @throws Exception |
||
51 | */ |
||
52 | 1 | public function withdraw(string $currency, float $quantity, string $address, ?string $paymentId = null): array |
|
66 | |||
67 | /** |
||
68 | * @param string $uuid |
||
69 | * @return array |
||
70 | * @throws Exception |
||
71 | */ |
||
72 | 1 | public function getOrder(string $uuid): array |
|
76 | |||
77 | /** |
||
78 | * @param string|null $marketSymbol |
||
79 | * @return array |
||
80 | * @throws Exception |
||
81 | */ |
||
82 | 1 | public function getOrderHistory(?string $marketSymbol = null): array |
|
90 | |||
91 | |||
92 | /** |
||
93 | * @param string $whatHistory |
||
94 | * @param string $currencySymbol |
||
95 | * @param string $status |
||
96 | * @return array |
||
97 | * @throws Exception |
||
98 | */ |
||
99 | 2 | private function getHistory(string $whatHistory, ?string $currencySymbol, ?string $status): array |
|
108 | /** |
||
109 | * @param string|null $currencySymbol |
||
110 | * @param string|null $status |
||
111 | * @return array |
||
112 | * @throws Exception |
||
113 | */ |
||
114 | 1 | public function getWithdrawalHistory(?string $currencySymbol = null, ?string $status = null): array |
|
118 | |||
119 | /** |
||
120 | * @param string|null $currencySymbol |
||
121 | * @param string|null $status |
||
122 | * @return array |
||
123 | * @throws Exception |
||
124 | */ |
||
125 | 1 | public function getDepositHistory(?string $currencySymbol = null, ?string $status = null): array |
|
129 | } |
||
130 |