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

Method fetchOpenInterest

js/src/pacifica.js:2678–2683  ·  view source on GitHub ↗

* @method * @name pacifica#fetchOpenInterest * @description retrieves the open interest of a contract trading pair * @param {string} symbol unified CCXT market symbol * @param {object} [params] exchange specific parameters * @returns {object} an [open interest structure]{@li

(symbol, params = {})

Source from the content-addressed store, hash-verified

2676 * @returns {object} an [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
2677 */
2678 async fetchOpenInterest(symbol, params = {}) {
2679 symbol = this.symbol(symbol);
2680 await this.loadMarkets();
2681 const ois = await this.fetchOpenInterests([symbol], params);
2682 return ois[symbol];
2683 }
2684 parseOpenInterest(interest, market = undefined) {
2685 //
2686 // {

Callers

nothing calls this directly

Calls 3

fetchOpenInterestsMethod · 0.95
symbolMethod · 0.45
loadMarketsMethod · 0.45

Tested by

no test coverage detected