1 | <?php |
||
15 | class Account extends Api |
||
16 | { |
||
17 | /** |
||
18 | * @param bool|null $needSequence |
||
19 | * @return array |
||
20 | * @throws GuzzleException |
||
21 | * @throws TransformResponseException |
||
22 | */ |
||
23 | 1 | public function getBalances(?bool $needSequence = null): array |
|
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | * @throws GuzzleException |
||
31 | * @throws TransformResponseException |
||
32 | */ |
||
33 | 1 | public function headBalances(): int |
|
38 | |||
39 | /** |
||
40 | * @param string $currency |
||
41 | * @param bool|null $needSequence |
||
42 | * @return array |
||
43 | * @throws GuzzleException |
||
44 | * @throws TransformResponseException |
||
45 | */ |
||
46 | 1 | public function getBalance(string $currency, ?bool $needSequence = null): array |
|
50 | |||
51 | /** |
||
52 | * @param string $currency |
||
53 | * @return array |
||
54 | * @throws Exception|GuzzleException |
||
55 | */ |
||
56 | 1 | public function getDepositAddress(string $currency): array |
|
60 | |||
61 | /** |
||
62 | * @param string $currency |
||
63 | * @return array |
||
64 | * @throws Exception|GuzzleException |
||
65 | */ |
||
66 | 1 | public function setDepositAddress(string $currency): array |
|
72 | |||
73 | /** |
||
74 | * @param string $currency |
||
75 | * @param float $quantity |
||
76 | * @param string $address |
||
77 | * @param string|null $paymentId |
||
78 | * @return array |
||
79 | * @throws Exception|GuzzleException |
||
80 | */ |
||
81 | 1 | public function withdraw(string $currency, float $quantity, string $address, ?string $paymentId = null): array |
|
96 | |||
97 | /** |
||
98 | * @param string $uuid |
||
99 | * @return array |
||
100 | * @throws Exception|GuzzleException |
||
101 | */ |
||
102 | 1 | public function getOrder(string $uuid): array |
|
106 | |||
107 | /** |
||
108 | * @param string|null $marketSymbol |
||
109 | * @param int|null $pageSize |
||
110 | * @param string|null $startDate |
||
111 | * @param string|null $endDate |
||
112 | * @param string|null $nextPageToken |
||
113 | * @param string|null $previousPageToken |
||
114 | * @return array |
||
115 | * @throws GuzzleException |
||
116 | * @throws TransformResponseException |
||
117 | */ |
||
118 | 1 | public function getOrderHistory(?string $marketSymbol = null, ?int $pageSize = null, ?string $startDate = null, ?string $endDate = null, ?string $nextPageToken = null, ?string $previousPageToken = null): array |
|
130 | |||
131 | /** |
||
132 | * @param string|null $currencySymbol |
||
133 | * @param string|null $status |
||
134 | * @return array |
||
135 | * @throws Exception|GuzzleException |
||
136 | */ |
||
137 | 1 | public function getWithdrawalHistory(?string $currencySymbol = null, ?string $status = null): array |
|
141 | |||
142 | /** |
||
143 | * @param string $whatHistory |
||
144 | * @param string $currencySymbol |
||
145 | * @param string $status |
||
146 | * @return array |
||
147 | * @throws Exception|GuzzleException |
||
148 | */ |
||
149 | 2 | private function getHistory(string $whatHistory, ?string $currencySymbol, ?string $status): array |
|
158 | |||
159 | /** |
||
160 | * @param string|null $currencySymbol |
||
161 | * @param string|null $status |
||
162 | * @return array |
||
163 | * @throws Exception|GuzzleException |
||
164 | */ |
||
165 | 1 | public function getDepositHistory(?string $currencySymbol = null, ?string $status = null): array |
|
169 | } |