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

# Funding history

> Historical funding values for a specific market

Use this endpoint to fetch funding history for a specific `marketId`.

<Note>
  History updates after the actual funding payout is published. Refresh timing depends on the market's funding period.
</Note>


## OpenAPI

````yaml GET /api/v1/public/funding/markets/{marketId}/history
openapi: 3.1.0
info:
  title: bendbasis Public API
  description: >-
    Public funding endpoints for markets, arbitrage opportunities, and funding
    history.
  version: 1.0.0
servers:
  - url: https://bendbasis.com
security: []
paths:
  /api/v1/public/funding/markets/{marketId}/history:
    get:
      summary: Funding history
      description: Historical funding values for one market.
      operationId: getFundingHistory
      parameters:
        - name: marketId
          in: path
          required: true
          description: Target market ID.
          schema:
            type: integer
            minimum: 1
        - name: days
          in: query
          required: false
          description: 'History window size. Allowed range: 1..30. Default: 30.'
          schema:
            type: integer
            minimum: 1
            maximum: 30
            default: 30
      responses:
        '200':
          description: Funding history response
          headers:
            X-API-Version:
              schema:
                type: string
              example: v1
            Cache-Control:
              schema:
                type: string
              example: public, max-age=0, s-maxage=600, stale-while-revalidate=60
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/HistoryRow'
              example:
                - funding_time: '2026-03-04T12:00:00+00:00'
                  apr: 10.95
                - funding_time: '2026-03-04T08:00:00+00:00'
                  apr: 3.09
components:
  schemas:
    HistoryRow:
      type: object
      properties:
        funding_time:
          type: string
          format: date-time
        apr:
          type: number

````