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

Method fetchOpenInterests

js/src/pacifica.js:2664–2669  ·  view source on GitHub ↗

* @method * @name pacifica#fetchOpenInterests * @description Retrieves the open interest for a list of symbols * @param {string[]} [symbols] Unified CCXT market symbol * @param {object} [params] exchange specific parameters * @returns {object} an open interest structure{@lin

(symbols = undefined, params = {})

Source from the content-addressed store, hash-verified

2662 * @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
2663 */
2664 async fetchOpenInterests(symbols = undefined, params = {}) {
2665 await this.loadMarkets();
2666 symbols = this.marketSymbols(symbols);
2667 const swapMarkets = await this.fetchSwapMarkets();
2668 return this.parseOpenInterests(swapMarkets, symbols);
2669 }
2670 /**
2671 * @method
2672 * @name pacifica#fetchOpenInterest

Callers 1

fetchOpenInterestMethod · 0.95

Calls 4

fetchSwapMarketsMethod · 0.95
loadMarketsMethod · 0.45
marketSymbolsMethod · 0.45
parseOpenInterestsMethod · 0.45

Tested by

no test coverage detected