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

Method parseAccountSettings

js/src/pacifica.js:748–761  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

746 }
747 }
748 parseAccountSettings(settings) {
749 const settingsLen = settings.length;
750 if (settingsLen === 0) {
751 return {};
752 }
753 const settingsBySymbol = {};
754 for (let i = 0; i < settings.length; i++) {
755 const marketId = settings[i]['symbol'];
756 const market = this.safeMarket(marketId);
757 const symbol = market['symbol'];
758 settingsBySymbol[symbol] = settings[i];
759 }
760 return settingsBySymbol;
761 }
762 /**
763 * @method
764 * @name pacifica#fetchMarginMode

Callers 1

fetchAccountSettingsMethod · 0.95

Calls 1

safeMarketMethod · 0.45

Tested by

no test coverage detected