> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whitebit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query market fee

> Get the maker and taker fee rates for a specific spot market via the WhiteBIT V4 API.

* [Query all market fees](/api-reference/spot-trading/query-all-market-fees) — get fee rates for all markets


## OpenAPI

````yaml /openapi/private/http-trade-v4.yaml POST /api/v4/market/fee
openapi: 3.0.3
info:
  title: Private HTTP API V4 - Collateral Trading
  description: |
    WhiteBIT Private HTTP API V4 for collateral/margin trading operations.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.

    Authentication required for all endpoints.
  version: 4.0.0
  license:
    name: WhiteBIT Terms of Service
    url: https://whitebit.com/terms
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Collateral Trading
    description: Endpoints for collateral/margin trading operations
  - name: Spot Trading
    description: Endpoints for spot trading operations
  - name: Market Fee
    description: Endpoints for querying trading fees
paths:
  /api/v4/market/fee:
    post:
      tags:
        - Market Fee
      summary: Query Market Fee
      description: >
        Returns maker and taker fees for a specific market.


        The `maker` and `taker` fields represent spot trading fees. The
        `futures_maker` and `futures_taker` fields represent futures trading
        fees.


        The system calculates the effective futures fee as the lower value
        between the user-specific custom fee and the market-specific fee.


        When the market fee is lower than the assigned custom fee, the system
        returns the market fee.


        Example: If the custom futures taker fee equals `0.026` and the market
        fee equals `0.02`, the response returns `0.02`.
      operationId: getMarketFee
      parameters:
        - name: market
          in: query
          required: false
          description: >-
            Optional. Currently ignored by the API — all market fees are
            returned regardless of the value provided. Retained for backward
            compatibility. Example: BTC_USDT
          schema:
            type: string
            example: BTC_USDT
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                x-fern-type-name: GetMarketFeeResponse
                properties:
                  error:
                    type: string
                    nullable: true
                    example: null
                  taker:
                    type: string
                    description: Taker fee percentage
                    example: '0.1'
                  maker:
                    type: string
                    description: Maker fee percentage
                    example: '0.1'
                  futures_taker:
                    type: string
                    description: >
                      Effective futures taker fee rate for the specified market.
                      The system returns the lower value between the custom fee
                      (if assigned) and the default market fee.
                    example: '0.0002'
                  futures_maker:
                    type: string
                    description: >
                      Effective futures maker fee rate for the specified market.
                      The system returns the lower value between the custom fee
                      (if assigned) and the default market fee.
                    example: '0.0001'
        '422':
          description: Validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
          PayloadAuth: []
          SignatureAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code
          example: 30
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed error information
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````