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

Method parseTokenAndFeeTemp

ts/src/woo.ts:822–834  ·  view source on GitHub ↗
(item, feeTokenKeys, feeAmountKeys)

Source from the content-addressed store, hash-verified

820 }
821
822 parseTokenAndFeeTemp (item, feeTokenKeys, feeAmountKeys) {
823 const feeCost = this.safeStringN (item, feeAmountKeys);
824 let fee: NullableDict = undefined;
825 if (feeCost !== undefined) {
826 const feeCurrencyId = this.safeStringN (item, feeTokenKeys);
827 const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId);
828 fee = {
829 'cost': feeCost,
830 'currency': feeCurrencyCode,
831 };
832 }
833 return fee;
834 }
835
836 parseTradingFee (fee: Dict, market: Market = undefined): TradingFeeInterface {
837 const marketId = this.safeString (fee, 'symbol');

Callers 3

parseTradeMethod · 0.95
parseLedgerEntryMethod · 0.95
parseTransactionMethod · 0.95

Calls 2

safeStringNMethod · 0.45
safeCurrencyCodeMethod · 0.45

Tested by

no test coverage detected