* @method * @name pacifica#fetchMarkets * @description retrieves data on all markets for pacifica * @param {object} [params] extra parameters specific to the exchange API endpoint * @returns {object[]} an array of objects representing market data
(params = {})
| 416 | * @returns {object[]} an array of objects representing market data |
| 417 | */ |
| 418 | async fetchMarkets(params = {}) { |
| 419 | if (this.checkRequiredCredentials(false)) { |
| 420 | await this.initializeClient(); |
| 421 | await this.loadAccountSettings(); |
| 422 | } |
| 423 | const swapMarkets = await this.fetchSwapMarkets(params); |
| 424 | return swapMarkets; |
| 425 | } |
| 426 | /** |
| 427 | * @method |
| 428 | * @name pacifica#fetchSwapMarkets |
nothing calls this directly
no test coverage detected