(refresh = false, params = {})
| 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) { |
no test coverage detected