* @method * @name cryptocom#fetchTradingFees * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-fee-rate * @description fetch the trading fees for multiple markets * @param {object} [params] extra parameters specific to the exchange API endpoint
(params = {})
| 3448 | * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols |
| 3449 | */ |
| 3450 | async fetchTradingFees (params = {}): Promise<TradingFees> { |
| 3451 | await this.loadMarkets (); |
| 3452 | const response = await this.v1PrivatePostPrivateGetFeeRate (params); |
| 3453 | // |
| 3454 | // { |
| 3455 | // "id": 1, |
| 3456 | // "method": "/private/get-fee-rate", |
| 3457 | // "code": 0, |
| 3458 | // "result": { |
| 3459 | // "spot_tier": "3", |
| 3460 | // "deriv_tier": "3", |
| 3461 | // "effective_spot_maker_rate_bps": "6.5", |
| 3462 | // "effective_spot_taker_rate_bps": "6.9", |
| 3463 | // "effective_deriv_maker_rate_bps": "1.1", |
| 3464 | // "effective_deriv_taker_rate_bps": "3" |
| 3465 | // } |
| 3466 | // } |
| 3467 | // |
| 3468 | const result = this.safeDict (response, 'result', {}); |
| 3469 | return this.parseTradingFees (result); |
| 3470 | } |
| 3471 | |
| 3472 | parseTradingFees (response) { |
| 3473 | // |
nothing calls this directly
no test coverage detected