# Funding Schedule

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/funding-rate/schedule:
    get:
      summary: Funding Schedule
      deprecated: false
      description: >-
        Returns the funding schedule for futures instruments, sorted
        alphabetically by instrument code.


        - `FIXED_INTERVAL` instruments (e.g. crypto perpetuals) fund at the end
        of each fixed period, shifted by the instrument's market offset. Only
        `next_funding_time` is given; `sessions` is `null`.

        - `SESSION_BASED` instruments (equity futures) fund only during NASDAQ
        cash-session hours. `sessions` lists the upcoming sessions with their
        concrete funding periods, which vary with early closes and holidays.


        An instrument code is the `id` property from the
        [Instruments](https://docs.onetrading.com/rest/public/instruments.md)
        endpoint.


        :::info[]

        Funding is only available for futures markets.

        :::
      tags:
        - One Trading Public REST API/Futures
      parameters:
        - name: instrument_code
          in: query
          description: >-
            Instrument code (e.g. `BTC_USD_P`), or a comma-separated list of
            codes. If not provided, returns the schedule for all futures
            instruments.
          required: false
          example: BTC_USD_P
          schema:
            type: string
        - name: days
          in: query
          description: >-
            Number of upcoming sessions to return for `SESSION_BASED`
            instruments.
          required: false
          example: 2
          schema:
            type: integer
            minimum: 1
            maximum: 14
            default: 2
      responses:
        '200':
          x-apidog-name: Success
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    instrument_code:
                      type: string
                      description: The unique identifier for the instrument.
                    funding_schedule:
                      description: >-
                        How funding is scheduled for the instrument; `null` if
                        the instrument has no explicit schedule.
                      oneOf:
                        - $ref: '#/components/schemas/FixedIntervalFundingSchedule'
                        - $ref: '#/components/schemas/SessionBasedFundingSchedule'
                        - type: 'null'
                    next_funding_time:
                      type: string
                      format: date-time
                      description: >-
                        Next funding time (ISO 8601, UTC), including the market
                        offset. `null` if it cannot be determined (no funding
                        period is known, or no session period remains within the
                        requested `days`).
                      nullable: true
                    sessions:
                      type: array
                      items:
                        type: object
                        properties:
                          date:
                            type: string
                            format: date
                            description: New York session calendar date (YYYY-MM-DD).
                          periods:
                            type: array
                            items:
                              type: object
                              properties:
                                period_number:
                                  type: integer
                                  enum:
                                    - 1
                                    - 2
                                  description: >-
                                    Period within the session (a full session is
                                    split into two; early closes have one).
                                start:
                                  type: string
                                  format: date-time
                                  description: >-
                                    Period start (ISO 8601, UTC), including the
                                    instrument's market offset.
                                end:
                                  type: string
                                  format: date-time
                                  description: >-
                                    Period end, i.e. the funding time (ISO 8601,
                                    UTC), including the instrument's market
                                    offset.
                                duration_minutes:
                                  type: integer
                                  description: Length of the period in minutes.
                              required:
                                - period_number
                                - start
                                - end
                                - duration_minutes
                              x-apidog-orders:
                                - period_number
                                - start
                                - end
                                - duration_minutes
                              x-apidog-ignore-properties: []
                        required:
                          - date
                          - periods
                        x-apidog-orders:
                          - date
                          - periods
                        x-apidog-ignore-properties: []
                      description: >-
                        Upcoming trading sessions and their funding periods for
                        `SESSION_BASED` instruments; `null` for all other
                        instruments.
                      nullable: true
                  required:
                    - instrument_code
                    - funding_schedule
                    - next_funding_time
                    - sessions
                  x-apidog-orders:
                    - instrument_code
                    - funding_schedule
                    - next_funding_time
                    - sessions
                  x-apidog-ignore-properties: []
              examples:
                '1':
                  summary: Success Example
                  value:
                    instrument_code: NVDA_USD_P
                    funding_schedule:
                      type: SESSION_BASED
                      calendar: NASDAQ
                      max_periods_per_day: 2
                      split: SESSION_MIDPOINT
                    next_funding_time: '2026-09-28T16:45:00.000Z'
                    sessions:
                      - date: '2026-09-28'
                        periods:
                          - period_number: 1
                            start: '2026-09-28T13:30:00.000Z'
                            end: '2026-09-28T16:45:00.000Z'
                            duration_minutes: 195
                          - period_number: 2
                            start: '2026-09-28T16:45:00.000Z'
                            end: '2026-09-28T20:00:00.000Z'
                            duration_minutes: 195
                '2':
                  summary: Success Example
                  value:
                    instrument_code: BTC_USD_P
                    funding_schedule:
                      type: FIXED_INTERVAL
                      period_minutes: 240
                    next_funding_time: '2026-09-28T12:00:00.000Z'
                    sessions: null
          headers: {}
        '400':
          description: >-
            Invalid request. Possible codes: `INVALID_PARAMETERS` (`days` not an
            integer between 1 and 14), `INVALID_INSTRUMENT_CODE`,
            `DUPLICATE_INSTRUMENT_CODES`, `MISSING_INSTRUMENT_CODE`. Unknown
            query parameters are ignored.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                '3':
                  summary: INVALID_PARAMETERS
                  value:
                    error: INVALID_PARAMETERS
                    error_message: 'days: Too big: expected number to be <=14'
                '4':
                  summary: INVALID_INSTRUMENT_CODE
                  value:
                    error: INVALID_INSTRUMENT_CODE
                    error_message: >-
                      Invalid instrument codes: FOO_USD_P. Valid codes:
                      BTC_USD_P, ETH_USD_P
                '5':
                  summary: DUPLICATE_INSTRUMENT_CODES
                  value:
                    error: DUPLICATE_INSTRUMENT_CODES
                    error_message: 'Duplicate instrument codes: BTC_USD_P'
          headers: {}
          x-apidog-name: Bad Request
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema: *ref_0
              example:
                error: SERVER_ERROR
                error_message: An internal server error occurred
          headers: {}
          x-apidog-name: Server Error
      security: []
      x-apidog-folder: One Trading Public REST API/Futures
      x-apidog-status: developing
      x-run-in-apidog: https://app.eu.apidog.com/web/project/349694/apis/api-4522240-run
components:
  schemas:
    SessionBasedFundingSchedule:
      type: object
      properties:
        type:
          type: string
          const: SESSION_BASED
          description: Funding periods follow the trading sessions of a market calendar.
        calendar:
          type: string
          description: Market calendar governing session hours
          enum:
            - NASDAQ
          x-apidog-enum:
            - value: NASDAQ
              name: ''
              description: ''
        max_periods_per_day:
          type: integer
          description: Periods on a full session (early closes yield fewer)
        split:
          type: string
          description: How a full session is divided into periods
          enum:
            - SESSION_MIDPOINT
          x-apidog-enum:
            - value: SESSION_MIDPOINT
              name: ''
              description: ''
      x-apidog-orders:
        - type
        - calendar
        - max_periods_per_day
        - split
      required:
        - type
        - calendar
        - max_periods_per_day
        - split
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    FixedIntervalFundingSchedule:
      type: object
      properties:
        type:
          type: string
          const: FIXED_INTERVAL
          description: Funding runs on a fixed clock interval.
        period_minutes:
          type: integer
          description: Funding cycle length in minutes (e.g. 240 = every 4 hours).
      x-apidog-orders:
        - type
        - period_minutes
      required:
        - type
        - period_minutes
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    ErrorResponse:
      type: object
      description: >-
        Error body. `error` is a machine-readable code (e.g.
        `INVALID_INSTRUMENT_CODE`) on most endpoints; a few older endpoints
        return a human-readable message in `error` instead and omit
        `error_message`.
      properties:
        error:
          type: string
          description: Error code (or, on older endpoints, a human-readable message).
        error_message:
          type: string
          description: >-
            Human-readable detail. Present on endpoints that return an error
            code in `error`.
      required:
        - error
      x-apidog-orders:
        - error
        - error_message
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
      description: >-
        API key issued to the account holder, sent as `Authorization: Bearer
        <token>`. The key must hold the `SUBACCOUNT_TRANSFER` scope.
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```