OKX Updates the 'Get Fee Rates' API Interface

·

Dear OKX API users,

Following recent adjustments to the fee rate system, OKX has implemented changes to the 'Get fee rates' interface to streamline fee rate categories and enhance transparency. This update ensures consistency across all currency pairs while introducing clearer distinctions for futures and perpetual contracts based on margin types. These modifications will take effect on May 7, 2022.


Key Interface Changes

1. Removal of the 'Category' Field

2. New Return Parameters


Technical Specifications

Endpoint Details

Request Parameters

ParameterTypeRequiredDescription
instTypeStringYesInstrument type (SPOT, MARGIN, SWAP, etc.).
instIdStringNoInstrument ID (e.g., BTC-USDT).
ulyStringNoUnderlying (e.g., BTC-USD).

Return Parameters

ParameterTypeDescription
takerStringTaker fee rate (crypto-margined contracts).
makerStringMaker fee rate (crypto-margined contracts).
takerUStringTaker fee rate (USDT-margined contracts).
makerUStringMaker fee rate (USDT-margined contracts).
levelStringFee rate tier.
tsStringTimestamp (Unix millisecond format).

Action Required

👉 Explore OKX API documentation for advanced integration tips.


FAQ

Q1: Will historical API calls break after this update?

A: No. The category field removal is backward-compatible.

Q2: How do I identify USDT-margined vs. crypto-margined rates?

A: Use takerU/makerU for USDT rates; taker/maker for crypto rates.

Q3: Are spot trading fees affected?

A: No. Changes apply only to futures/perpetual contracts.


For further assistance, contact OKX support or refer to the official API documentation.