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

Method loadAccountSettings

js/src/pacifica.js:740–747  ·  view source on GitHub ↗
(refresh = false, params = {})

Source from the content-addressed store, hash-verified

738 return this.parseAccountSettings(this.safeList(response, 'data', []));
739 }
740 async loadAccountSettings(refresh = false, params = {}) {
741 let settings = this.handleOption('loadAccountSettings', 'settings', undefined);
742 if ((settings === undefined) || (refresh === true)) {
743 this.options['settings'] = this.createSafeDictionary();
744 settings = await this.fetchAccountSettings(params);
745 this.options['settings'] = settings;
746 }
747 }
748 parseAccountSettings(settings) {
749 const settingsLen = settings.length;
750 if (settingsLen === 0) {

Callers 3

fetchMarketsMethod · 0.95
fetchLeverageMethod · 0.95
fetchMarginModeMethod · 0.95

Calls 3

fetchAccountSettingsMethod · 0.95
handleOptionMethod · 0.45
createSafeDictionaryMethod · 0.45

Tested by

no test coverage detected