(transaction: Dict, currency: Currency = undefined)
| 2343 | } |
| 2344 | |
| 2345 | parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction { |
| 2346 | // |
| 2347 | // fetchDepositsWithdrawals |
| 2348 | // |
| 2349 | // { |
| 2350 | // "dt": 1461841192, |
| 2351 | // "type": "deposit", |
| 2352 | // "curr": "RUB", |
| 2353 | // "status": "processing", |
| 2354 | // "provider": "Qiwi (LA) [12345]", |
| 2355 | // "amount": "1", |
| 2356 | // "account": "", |
| 2357 | // "txid": "ec46f784ad976fd7f7539089d1a129fe46...", |
| 2358 | // } |
| 2359 | // |
| 2360 | // fetchWithdrawals |
| 2361 | // |
| 2362 | // { |
| 2363 | // "operation_id": 47412538520634344, |
| 2364 | // "created": 1573760013, |
| 2365 | // "updated": 1573760013, |
| 2366 | // "type": "withdraw", |
| 2367 | // "currency": "DOGE", |
| 2368 | // "status": "Paid", |
| 2369 | // "amount": "300", |
| 2370 | // "provider": "DOGE", |
| 2371 | // "commission": "0", |
| 2372 | // "account": "DOGE: DBVy8pF1f8yxaCVEHqHeR7kkcHecLQ8nRS", |
| 2373 | // "order_id": 69670170, |
| 2374 | // "provider_type": "crypto", |
| 2375 | // "crypto_address": "DBVy8pF1f8yxaCVEHqHeR7kkcHecLQ8nRS", |
| 2376 | // "card_number": "", |
| 2377 | // "wallet_address": "", |
| 2378 | // "email": "", |
| 2379 | // "phone": "", |
| 2380 | // "extra": { |
| 2381 | // "txid": "f2b66259ae1580f371d38dd27e31a23fff8c04122b65ee3ab5a3f612d579c792", |
| 2382 | // "confirmations": null, |
| 2383 | // "excode": "", |
| 2384 | // "invoice": "" |
| 2385 | // }, |
| 2386 | // "error": "" |
| 2387 | // } |
| 2388 | // |
| 2389 | // withdraw |
| 2390 | // |
| 2391 | // { |
| 2392 | // "result": true, |
| 2393 | // "error": "", |
| 2394 | // "task_id": 11775077 |
| 2395 | // } |
| 2396 | // |
| 2397 | const timestamp = this.safeTimestamp2 (transaction, 'dt', 'created'); |
| 2398 | let amountString = this.safeString (transaction, 'amount'); |
| 2399 | if (amountString !== undefined) { |
| 2400 | amountString = Precise.stringAbs (amountString); |
| 2401 | } |
| 2402 | let txid = this.safeString (transaction, 'txid'); |
no test coverage detected