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

Method fetchTradingFee

ts/src/woo.ts:860–880  ·  view source on GitHub ↗

* @method * @name woo#fetchTradingFee * @description fetch the trading fees for a market * @see https://developer.woox.io/api-reference/endpoint/trading/get_tradingFee * @param {string} symbol unified market symbol * @param {object} [params] extra parameters specific to the

(symbol: string, params = {})

Source from the content-addressed store, hash-verified

858 * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
859 */
860 async fetchTradingFee (symbol: string, params = {}): Promise<TradingFeeInterface> {
861 await this.loadMarkets ();
862 const market = this.market (symbol);
863 const request: Dict = {
864 'symbol': market['id'],
865 };
866 const response = await this.v3PrivateGetTradeTradingFee (this.extend (request, params));
867 //
868 // {
869 // "success": true,
870 // "data": {
871 // "symbol": "SPOT_BTC_USDT",
872 // "takerFee": "10",
873 // "makerFee": "8"
874 // },
875 // "timestamp": 1751858977368
876 // }
877 //
878 const data = this.safeDict (response, 'data', {});
879 return this.parseTradingFee (data, market);
880 }
881
882 /**
883 * @method

Callers 2

Calls 6

parseTradingFeeMethod · 0.95
loadMarketsMethod · 0.45
marketMethod · 0.45
extendMethod · 0.45
safeDictMethod · 0.45

Tested by

no test coverage detected