1 | <?php |
||
15 | class Account extends Api |
||
16 | { |
||
17 | /** |
||
18 | * @return array |
||
19 | * @throws GuzzleException |
||
20 | * @throws TransformResponseException |
||
21 | */ |
||
22 | 1 | public function getVolume(): array |
|
26 | |||
27 | /** |
||
28 | * @param bool|null $needSequence |
||
29 | * @return array |
||
30 | * @throws GuzzleException |
||
31 | * @throws TransformResponseException |
||
32 | */ |
||
33 | 1 | public function getBalances(?bool $needSequence = null): array |
|
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | * @throws GuzzleException |
||
41 | * @throws TransformResponseException |
||
42 | */ |
||
43 | 1 | public function headBalances(): int |
|
48 | |||
49 | /** |
||
50 | * @param string $currency |
||
51 | * @param bool|null $needSequence |
||
52 | * @return array |
||
53 | * @throws GuzzleException |
||
54 | * @throws TransformResponseException |
||
55 | */ |
||
56 | 1 | public function getBalance(string $currency, ?bool $needSequence = null): array |
|
60 | |||
61 | /** |
||
62 | * @param string $currency |
||
63 | * @return array |
||
64 | * @throws Exception|GuzzleException |
||
65 | */ |
||
66 | 1 | public function getDepositAddress(string $currency): array |
|
70 | |||
71 | /** |
||
72 | * @param string $currency |
||
73 | * @return array |
||
74 | * @throws Exception|GuzzleException |
||
75 | */ |
||
76 | 1 | public function setDepositAddress(string $currency): array |
|
82 | |||
83 | /** |
||
84 | * @param string $currency |
||
85 | * @param float $quantity |
||
86 | * @param string $address |
||
87 | * @param string|null $paymentId |
||
88 | * @return array |
||
89 | * @throws Exception|GuzzleException |
||
90 | */ |
||
91 | 1 | public function withdraw(string $currency, float $quantity, string $address, ?string $paymentId = null): array |
|
106 | |||
107 | /** |
||
108 | * @param string $uuid |
||
109 | * @return array |
||
110 | * @throws Exception|GuzzleException |
||
111 | */ |
||
112 | 1 | public function getOrder(string $uuid): array |
|
116 | |||
117 | /** |
||
118 | * @param string|null $marketSymbol |
||
119 | * @param array|null $pagination |
||
120 | * @return array |
||
121 | * @throws GuzzleException |
||
122 | * @throws TransformResponseException |
||
123 | */ |
||
124 | 1 | public function getOrderHistory(?string $marketSymbol = null, ?array $pagination = null): array |
|
134 | |||
135 | /** |
||
136 | * @param string|null $currencySymbol |
||
137 | * @param string|null $status |
||
138 | * @return array |
||
139 | * @throws Exception|GuzzleException |
||
140 | */ |
||
141 | 1 | public function getWithdrawalHistory(?string $currencySymbol = null, ?string $status = null): array |
|
145 | |||
146 | /** |
||
147 | * @param string $whatHistory |
||
148 | * @param string $currencySymbol |
||
149 | * @param string $status |
||
150 | * @return array |
||
151 | * @throws Exception|GuzzleException |
||
152 | */ |
||
153 | 2 | private function getHistory(string $whatHistory, ?string $currencySymbol, ?string $status): array |
|
162 | |||
163 | /** |
||
164 | * @param string|null $currencySymbol |
||
165 | * @param string|null $status |
||
166 | * @return array |
||
167 | * @throws Exception|GuzzleException |
||
168 | */ |
||
169 | 1 | public function getDepositHistory(?string $currencySymbol = null, ?string $status = null): array |
|
173 | } |