# Position Funding Payments

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/account/futures/positions/{position_id}/funding-payments:
    get:
      summary: Position Funding Payments
      deprecated: false
      description: >-
        Returns an array of funding payment records for the specified position,
        sorted by timestamp in ascending order (oldest first). The endpoint is
        not paginated and returns at most 1,000 records. An unknown position ID
        returns an empty list.


        **Authentication:** Bearer token; any valid API key (no specific scope
        required). This endpoint is rate-limited.
      tags:
        - One Trading Public REST API/Futures
      parameters:
        - name: position_id
          in: path
          description: The position ID to fetch funding payments for (numeric string).
          required: true
          example: '2111199765938682'
          schema:
            type: string
      responses:
        '200':
          x-apidog-name: Success
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  funding_payments:
                    type: array
                    items:
                      $ref: '#/components/schemas/FundingPaymentPosition'
                    description: The position's funding payments, oldest first
                x-apidog-orders:
                  - funding_payments
                required:
                  - funding_payments
                x-apidog-refs: {}
                x-apidog-ignore-properties: []
              example:
                funding_payments:
                  - account_id: aaaba8bd-3195-4f72-87ff-98720a940f23
                    position_id: '2111199765938682'
                    instrument_code: BTC_USD_P
                    funding_rate: '0.0000179038'
                    mark_price: '89925.04'
                    funding_payment: '-0.0161'
                    cash_balance: '106882.4305'
                    time: '2026-01-28T12:00:01.054379456Z'
                  - account_id: aaaba8bd-3195-4f72-87ff-98720a940f23
                    position_id: '2111199765938682'
                    instrument_code: BTC_USD_P
                    funding_rate: '0.0000179029'
                    mark_price: '89390.01'
                    funding_payment: '-0.0144'
                    cash_balance: '106655.4032'
                    time: '2026-01-28T16:00:01.055094817Z'
                  - account_id: aaaba8bd-3195-4f72-87ff-98720a940f23
                    position_id: '2111199765938682'
                    instrument_code: BTC_USD_P
                    funding_rate: '0.0000179051'
                    mark_price: '89361.93'
                    funding_payment: '-0.0144'
                    cash_balance: '106628.0604'
                    time: '2026-01-28T20:00:01.055392483Z'
          headers: {}
        '400':
          description: ''
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema:
                oneOf:
                  - *ref_0
                  - $ref: '#/components/schemas/GatewayError'
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  error:
                    type: string
                    description: Reason
                x-apidog-orders:
                  - error
                required:
                  - error
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Forbidden
        '429':
          description: >-
            Rate limit exceeded. Limits are per account holder per minute: 600
            (retail), 2,000 (institutional), 10,000 (market maker).
          content:
            application/json:
              schema: *ref_0
              example:
                error: TOO_MANY_REQUESTS
                error_message: Too many requests
          headers: {}
          x-apidog-name: ''
        '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:
        - bearer: []
      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-3938928-run
components:
  schemas:
    FundingPaymentPosition:
      type: object
      properties:
        position_id:
          type: string
          description: The position ID the funding payment belongs to (numeric string).
        account_id: &ref_1
          type: string
          description: The account ID the funding payment belongs to
          format: uuid
        instrument_code: &ref_2
          type: string
          description: Instrument code of the futures market.
        time: &ref_3
          type: string
          description: >-
            Time of the funding payment (ISO 8601 UTC). Microsecond precision on
            `GET /v1/account/futures/funding-payments` (see `time_nanos` there
            for nanoseconds); nanosecond precision on the per-position endpoint.
          format: date-time
        funding_payment: &ref_4
          type: string
          description: >-
            The funding payment amount in the settlement currency (positive =
            received, negative = paid), up to 4 decimal places.
        cash_balance: &ref_5
          type: string
          description: Cash balance after the payment, up to 4 decimal places.
        funding_rate: &ref_6
          type: string
          description: >-
            Funding rate applied (up to 10 decimal places). `null` if no funding
            rate record is found within 2 minutes of the payment.
          nullable: true
        mark_price: &ref_7
          type: string
          description: >-
            Mark price used for the funding calculation. `null` if no funding
            rate record is found within 2 minutes of the payment.
          nullable: true
      x-apidog-orders:
        - position_id
        - 01K5TMPGSFEA4FW4MKVQCGYXPA
      required:
        - position_id
        - account_id
        - instrument_code
        - time
        - funding_payment
        - cash_balance
        - funding_rate
        - mark_price
      x-apidog-refs:
        01K5TMPGSFEA4FW4MKVQCGYXPA:
          $ref: '#/components/schemas/FuturesFundingPayment'
      x-apidog-folder: ''
      x-apidog-ignore-properties:
        - account_id
        - instrument_code
        - time
        - funding_payment
        - cash_balance
        - funding_rate
        - mark_price
    FuturesFundingPayment:
      type: object
      properties:
        account_id: *ref_1
        instrument_code: *ref_2
        time: *ref_3
        funding_payment: *ref_4
        cash_balance: *ref_5
        funding_rate: *ref_6
        mark_price: *ref_7
      x-apidog-orders:
        - account_id
        - instrument_code
        - time
        - funding_payment
        - cash_balance
        - funding_rate
        - mark_price
      required:
        - account_id
        - instrument_code
        - time
        - funding_payment
        - cash_balance
        - funding_rate
        - mark_price
      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: []
    GatewayError:
      type: object
      description: >-
        Returned by the API gateway itself when the bearer token is missing,
        invalid, expired or revoked, or the calling IP is not on the API key's
        allowlist.
      properties:
        message:
          type: string
          enum:
            - Forbidden
            - Unauthorized
      required:
        - message
      x-apidog-orders:
        - 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: http
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```