(self, transaction: dict, currency: Currency = None)
| 2213 | return self.safe_string(statuses, status, status) |
| 2214 | |
| 2215 | def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction: |
| 2216 | # |
| 2217 | # fetchDepositsWithdrawals |
| 2218 | # |
| 2219 | # { |
| 2220 | # "dt": 1461841192, |
| 2221 | # "type": "deposit", |
| 2222 | # "curr": "RUB", |
| 2223 | # "status": "processing", |
| 2224 | # "provider": "Qiwi(LA) [12345]", |
| 2225 | # "amount": "1", |
| 2226 | # "account": "", |
| 2227 | # "txid": "ec46f784ad976fd7f7539089d1a129fe46...", |
| 2228 | # } |
| 2229 | # |
| 2230 | # fetchWithdrawals |
| 2231 | # |
| 2232 | # { |
| 2233 | # "operation_id": 47412538520634344, |
| 2234 | # "created": 1573760013, |
| 2235 | # "updated": 1573760013, |
| 2236 | # "type": "withdraw", |
| 2237 | # "currency": "DOGE", |
| 2238 | # "status": "Paid", |
| 2239 | # "amount": "300", |
| 2240 | # "provider": "DOGE", |
| 2241 | # "commission": "0", |
| 2242 | # "account": "DOGE: DBVy8pF1f8yxaCVEHqHeR7kkcHecLQ8nRS", |
| 2243 | # "order_id": 69670170, |
| 2244 | # "provider_type": "crypto", |
| 2245 | # "crypto_address": "DBVy8pF1f8yxaCVEHqHeR7kkcHecLQ8nRS", |
| 2246 | # "card_number": "", |
| 2247 | # "wallet_address": "", |
| 2248 | # "email": "", |
| 2249 | # "phone": "", |
| 2250 | # "extra": { |
| 2251 | # "txid": "f2b66259ae1580f371d38dd27e31a23fff8c04122b65ee3ab5a3f612d579c792", |
| 2252 | # "confirmations": null, |
| 2253 | # "excode": "", |
| 2254 | # "invoice": "" |
| 2255 | # }, |
| 2256 | # "error": "" |
| 2257 | # } |
| 2258 | # |
| 2259 | # withdraw |
| 2260 | # |
| 2261 | # { |
| 2262 | # "result": True, |
| 2263 | # "error": "", |
| 2264 | # "task_id": 11775077 |
| 2265 | # } |
| 2266 | # |
| 2267 | timestamp = self.safe_timestamp_2(transaction, 'dt', 'created') |
| 2268 | amountString = self.safe_string(transaction, 'amount') |
| 2269 | if amountString is not None: |
| 2270 | amountString = Precise.string_abs(amountString) |
| 2271 | txid = self.safe_string(transaction, 'txid') |
| 2272 | if txid is None: |
no test coverage detected