(self, transfer: dict, currency: Currency = None)
| 2408 | return self.parse_transfers(rows, currency, since, limit, params) |
| 2409 | |
| 2410 | def parse_transfer(self, transfer: dict, currency: Currency = None) -> TransferEntry: |
| 2411 | # |
| 2412 | # { |
| 2413 | # "id": "3085014", |
| 2414 | # "asset_id": 3, |
| 2415 | # "amount": "11.000000", |
| 2416 | # "fee": "0.000000", |
| 2417 | # "timestamp": 1766387292752, |
| 2418 | # "type": "L2TransferOutflow", |
| 2419 | # "from_l1_address": "0x15f43D1f2DeE81424aFd891943262aa90F22cc2A", |
| 2420 | # "to_l1_address": "0x15f43D1f2DeE81424aFd891943262aa90F22cc2A", |
| 2421 | # "from_account_index": 1077, |
| 2422 | # "to_account_index": 281474976710608, |
| 2423 | # "from_route": "spot", |
| 2424 | # "to_route": "spot", |
| 2425 | # "tx_hash": "d8e96178273d0938f9ede556edffc0aab8def9ec70c46a65791905291a2f5792af18625406102c80" |
| 2426 | # } |
| 2427 | # |
| 2428 | currencyId = self.safe_string(transfer, 'asset_id') |
| 2429 | code = self.safe_currency_code(currencyId, currency) |
| 2430 | timestamp = self.safe_integer(transfer, 'timestamp') |
| 2431 | fromAccount = self.safe_dict(transfer, 'from', {}) |
| 2432 | toAccount = self.safe_dict(transfer, 'to', {}) |
| 2433 | return { |
| 2434 | 'id': self.safe_string(transfer, 'id'), |
| 2435 | 'timestamp': timestamp, |
| 2436 | 'datetime': self.iso8601(timestamp), |
| 2437 | 'currency': code, |
| 2438 | 'amount': self.safe_number(transfer, 'amount'), |
| 2439 | 'fromAccount': self.safe_string(fromAccount, 'from_account_index'), |
| 2440 | 'toAccount': self.safe_string(toAccount, 'to_account_index'), |
| 2441 | 'status': None, |
| 2442 | 'info': transfer, |
| 2443 | } |
| 2444 | |
| 2445 | def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]: |
| 2446 | """ |
no test coverage detected