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

# Get a perpetual contract's current funding rate

> Requires `marketdata:read`. Queries one perpetual contract on one of the user's connected exchanges through Portfobit. The response includes the actual source and any settlement times provided by the exchange.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml get /market-data/funding-rate
openapi: 3.1.0
info:
  title: Portfobit Open API
  version: 0.1.0
  description: >
    Public REST API for direct API clients, CI, scripts, service accounts,
    third-party agents, and developer integrations.

    Examples use "<source>" as a placeholder for the opaque source identifier.
    The source_venue field identifies the exchange.

    Public REST requests use scoped Portfobit Open API keys. OAuth access tokens
    issued for the Portfobit MCP resource are not accepted by `/api/v1/*`
    endpoints.

    Portfobit is crypto-CEX-only. Financial values are decimal strings and
    timestamps are RFC 3339 UTC strings.

    The API never supports withdrawals, external-address transfers,
    cross-exchange transfers, or P2P transfers.
servers:
  - url: https://api.portfobit.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Context
  - name: Accounts
  - name: Portfolios
  - name: Valuation
  - name: Activity
  - name: Trading
  - name: Audit
  - name: Market data
  - name: Support
paths:
  /market-data/funding-rate:
    get:
      tags:
        - Market data
      summary: Get a perpetual contract's current funding rate
      description: >-
        Requires `marketdata:read`. Queries one perpetual contract on one of the
        user's connected exchanges through Portfobit. The response includes the
        actual source and any settlement times provided by the exchange.
      operationId: getMarketFundingRate
      parameters:
        - $ref: '#/components/parameters/MarketFundingSymbol'
        - $ref: '#/components/parameters/MarketVenue'
      responses:
        '200':
          description: Current market funding rate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketFundingRateEnvelope'
        '400':
          $ref: '#/components/responses/InvalidMarketFundingRateQueryResponse'
        '401':
          $ref: '#/components/responses/AuthenticationRequiredResponse'
        '403':
          $ref: '#/components/responses/MarketCatalogForbiddenResponse'
        '404':
          $ref: '#/components/responses/MarketVenueUnavailableResponse'
        '412':
          $ref: '#/components/responses/MarketFundingRateUnsupportedResponse'
        '429':
          $ref: '#/components/responses/MarketRateLimitedResponse'
        '503':
          $ref: '#/components/responses/MarketDataUnavailableResponse'
components:
  parameters:
    MarketFundingSymbol:
      name: symbol
      in: query
      required: true
      schema:
        type: string
      description: Unified perpetual contract symbol, for example `BTC/USDT:USDT`.
    MarketVenue:
      name: venue
      in: query
      schema:
        type: string
      description: >-
        Optional connected CEX venue. When supplied, it is a strict source
        constraint; when omitted, one healthy connected venue is selected.
  schemas:
    MarketFundingRateEnvelope:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          allOf:
            - $ref: '#/components/schemas/MarketFundingRateSource'
            - type: object
              required:
                - funding_rate
                - funding_time
                - next_funding_time
                - interval
              properties:
                funding_rate:
                  type:
                    - string
                    - 'null'
                  description: Decimal ratio. "0.0001" means 0.01%.
                funding_time:
                  type:
                    - string
                    - 'null'
                  format: date-time
                next_funding_time:
                  type:
                    - string
                    - 'null'
                  format: date-time
                interval:
                  type:
                    - string
                    - 'null'
                  example: 8h
        meta:
          $ref: '#/components/schemas/MarketFundingRateMeta'
    MarketFundingRateSource:
      type: object
      required:
        - symbol
        - source
        - source_venue
        - fetched_at
      properties:
        symbol:
          type: string
          example: BTC/USDT:USDT
        source:
          type: string
          description: Opaque source identifier.
        source_venue:
          type: string
        fetched_at:
          type: string
          format: date-time
          description: Portfobit's retrieval time.
    MarketFundingRateMeta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          $ref: '#/components/schemas/Error'
        meta:
          $ref: '#/components/schemas/Meta'
    AuthenticationRequiredResponseSchema:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
              const: authentication_required
            message:
              type: string
            details:
              type:
                - object
                - 'null'
        meta:
          $ref: '#/components/schemas/Meta'
      example:
        error:
          code: authentication_required
          message: A valid Portfobit Open API key is required.
          details: null
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-09-13T08:00:00Z'
    MarketVenueUnavailableResponseSchema:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              required:
                - venue
              properties:
                venue:
                  type: string
        meta:
          type: object
          required:
            - request_id
            - generated_at
          properties:
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        error:
          code: market_venue_not_available
          message: The requested market venue is not available.
          details:
            venue: binance
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-08T08:00:00Z'
    MarketRateLimitedResponseSchema:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              required: []
              properties: {}
        meta:
          type: object
          required:
            - request_id
            - generated_at
          properties:
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        error:
          code: market_upstream_rate_limited
          message: The market-data provider is rate limited.
          details: {}
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-08T08:00:00Z'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
    Meta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
  responses:
    InvalidMarketFundingRateQueryResponse:
      description: >-
        Invalid symbol, time bounds, or limit (invalid_market_symbol,
        invalid_funding_rate_range, or invalid_funding_rate_limit).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    AuthenticationRequiredResponse:
      description: >-
        The Open API key is missing or invalid, or an MCP-resource OAuth token
        was sent directly to the public REST API.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthenticationRequiredResponseSchema'
    MarketCatalogForbiddenResponse:
      description: >-
        The key lacks marketdata:read (insufficient_scope), or existing
        connector read eligibility is explicitly denied
        (provider_permission_denied).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    MarketVenueUnavailableResponse:
      description: >-
        No eligible connected CEX is available for the request
        (market_venue_not_available). If a venue is specified, only that venue
        is considered.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MarketVenueUnavailableResponseSchema'
    MarketFundingRateUnsupportedResponse:
      description: >-
        The market is not a perpetual contract or the selected exchange does not
        support the requested funding rate query
        (market_funding_rate_unsupported).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    MarketRateLimitedResponse:
      description: The selected CEX rate-limited the market-data request.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until another request may be attempted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MarketRateLimitedResponseSchema'
    MarketDataUnavailableResponse:
      description: >-
        The selected CEX or its dependency is temporarily unavailable. The API
        does not retry against another venue or return a stale cached result.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              code: unavailable
              message: market data is unavailable
              details: {}
            meta:
              request_id: req_01J2K8B7QW
              generated_at: '2026-08-14T08:00:00Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Portfobit Open API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.