MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseLedgerEntryType

Method parseLedgerEntryType

js/src/woo.js:2663–2669  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

2661 }, currency);
2662 }
2663 parseLedgerEntryType(type) {
2664 const types = {
2665 'BALANCE': 'transaction', // Funds moved in/out wallet
2666 'COLLATERAL': 'transfer', // Funds moved between portfolios
2667 };
2668 return this.safeString(types, type, type);
2669 }
2670 getCurrencyFromChaincode(networkizedCode, currency) {
2671 if (currency !== undefined) {
2672 return currency;

Callers 1

parseLedgerEntryMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected