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

# Get Funding Rate History

> Query for historical funding rates. Each symbol has a different funding interval. For example, if the interval is 8 hours and the current time is UTC 12, then it returns the last funding rate, which settled at UTC 8.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/market/funding/history
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/market/funding/history:
    get:
      tags:
        - Market
      summary: Get Funding Rate History
      description: >-
        Query for historical funding rates. Each symbol has a different funding
        interval. For example, if the interval is 8 hours and the current time
        is UTC 12, then it returns the last funding rate, which settled at UTC
        8.
      operationId: get_funding_rate_history
      parameters:
        - name: symbol
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Symbol'
        - name: start_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: end_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int32
            minimum: 0
      responses:
        '200':
          description: Funding rate history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetFundingRateHistoryResponse'
components:
  schemas:
    Symbol:
      type: string
      example: BTCUSDC
    GetFundingRateHistoryResponse:
      type: object
      description: Funding rate history response.
      required:
        - list
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/FundingRateHistory'
    FundingRateHistory:
      type: object
      required:
        - symbol
        - funding_rate
        - funding_time
      properties:
        funding_rate:
          type: string
        funding_time:
          type: string
          format: date-time
          example: '1672531200000'
        symbol:
          $ref: '#/components/schemas/Symbol'

````