OKX Announces Updates to the 'Get Fee Rates' API Interface

ยท

Dear OKX API Users,

Following the recent fee rate adjustments (OKX Fee Rate System Upgrade), we're implementing changes to the Live Trading platform effective May 7, 2022. These updates streamline fee structures across all currency pairs while introducing new parameters for clearer rate differentiation.

Key Interface Changes

1. Structural Simplification

2. Enhanced Rate Transparency

๐Ÿ‘‰ Explore OKX's updated fee structure

Technical Specifications

Endpoint Details

Name: Get fee rates
HTTP Request: GET /api/v5/account/trade-fee

Request Parameters

ParameterTypeRequiredDescription
instTypeStringYesSPOT, MARGIN, SWAP, FUTURES, OPTION
instIdStringNoInstrument ID (BTC-USDT)
ulyStringNoUnderlying (BTC-USD)

Response Parameters

ParameterTypeDescription
takerStringCrypto-margined taker rate
makerStringCrypto-margined maker rate
takerUStringUSDT-margined taker rate (new)
makerUStringUSDT-margined maker rate (new)
deliveryStringDelivery fee rate
exerciseStringOption exercise fee
levelStringFee tier level
instTypeStringInstrument type
tsStringTimestamp (Unix milliseconds)

Implementation Recommendations

  1. Test environments first: Validate all trading strategies with the new parameters
  2. Update documentation: Reference the new takerU/makerU fields
  3. Monitor rate differences: Note the separation between USDT and crypto rates

๐Ÿ‘‰ Need API support? Contact OKX developers

FAQ Section

Q: Will existing API calls break after this change?
A: No, all current calls will remain functional. The category parameter will simply be ignored.

Q: How do I identify USDT-margined rates now?
A: Use the new takerU and makerU fields specifically for USDT-margined contracts.

Q: Are spot trading fees affected?
A: No, these changes primarily impact futures and perpetual contracts.

Q: When should we complete the migration?
A: We recommend updating your systems before May 7, 2022 to ensure seamless transition.

Q: Where can I find examples of the new response format?
A: Check our updated API documentation for sample responses including the new fields.

Important Notes