(item: Dict, currency: Currency = undefined)
| 348 | } |
| 349 | |
| 350 | parseLedgerEntry (item: Dict, currency: Currency = undefined): LedgerEntry { |
| 351 | // |
| 352 | // { |
| 353 | // "eid": "2510b3e2bc1c87f584500a18084f35ed", |
| 354 | // "created_at": "2022-06-08T12:21:42+0000", |
| 355 | // "balance_updates": [{ |
| 356 | // "amount": "0.00080000", |
| 357 | // "currency": "btc" |
| 358 | // }], |
| 359 | // "operation": "funding", |
| 360 | // "details": { |
| 361 | // "network": "btc", |
| 362 | // "method": "btc", |
| 363 | // "method_name": "Bitcoin", |
| 364 | // "asset": "btc", |
| 365 | // "protocol": "btc", |
| 366 | // "integration": "bitgo-v2", |
| 367 | // "fid": "6112c6369100d6ecceb7f54f17cf0511" |
| 368 | // } |
| 369 | // } |
| 370 | // |
| 371 | // trade |
| 372 | // { |
| 373 | // "eid": "8976c6053f078f704f037d82a813678a", |
| 374 | // "created_at": "2022-06-08T17:01:48+0000", |
| 375 | // "balance_updates": [{ |
| 376 | // "amount": "59.21320500", |
| 377 | // "currency": "mxn" |
| 378 | // }, |
| 379 | // { |
| 380 | // "amount": "-0.00010000", |
| 381 | // "currency": "btc" |
| 382 | // } |
| 383 | // ], |
| 384 | // "operation": "trade", |
| 385 | // "details": { |
| 386 | // "tid": "72145428", |
| 387 | // "oid": "JO5TZmMZjzjlZDyT" |
| 388 | // } |
| 389 | // } |
| 390 | // |
| 391 | // fee |
| 392 | // { |
| 393 | // "eid": "cbbb3c8d4e41723d25d2850dcb7c3c74", |
| 394 | // "created_at": "2022-06-08T17:01:48+0000", |
| 395 | // "balance_updates": [{ |
| 396 | // "amount": "-0.38488583", |
| 397 | // "currency": "mxn" |
| 398 | // }], |
| 399 | // "operation": "fee", |
| 400 | // "details": { |
| 401 | // "tid": "72145428", |
| 402 | // "oid": "JO5TZmMZjzjlZDyT" |
| 403 | // } |
| 404 | // } |
| 405 | const operation = this.safeString (item, 'operation'); |
| 406 | const type = this.parseLedgerEntryType (operation); |
| 407 | const balanceUpdates = this.safeValue (item, 'balance_updates', []); |
nothing calls this directly
no test coverage detected