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

# Get position funding events

> ### Parameters

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| account | yes | string (hex) | Ethereum-style account address for the sub-account context. |
| pagination_data | yes | object | Pagination segment containing `pageNumber` and `pageSize` (serialized per gateway contract). |

### Response fields

| Parameter | Required | Type | Description |
| --------- | -------- | ---- | ----------- |
| `events` | no | object[] | — |
| `pageNumber` | yes | integer | — |
| `pageSize` | yes | integer | — |

### Response example

A sample **`200`** JSON body is attached to this operation as an OpenAPI **example** (Mintlify shows it in the example panel, similar to other exchange API docs).



## OpenAPI

````yaml /specs/openapi.json get /position-funding-events
openapi: 3.1.0
info:
  title: RocketFi REST API
  description: REST API for Rocket Chain / RocketFi integrations.
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://beta.rocketfi.io
    description: Beta
  - url: https://testnet.rocket-cluster-1.com
    description: Testnet
  - url: https://devnet.rocket-cluster-1.com
    description: Devnet
security: []
tags:
  - name: Service
    description: Health and availability.
  - name: Market data
    description: Instruments, candles, fees, leverage, and funding data.
  - name: Account
    description: Account nonce, fees, collateral, positions, and orders.
  - name: Trading
    description: Transactions and order activity.
  - name: Vault and bridge
    description: Vaults, history, and bridge events.
  - name: Faucet (testnet)
    description: Testnet faucet for development.
paths:
  /position-funding-events:
    get:
      tags:
        - Market data
      summary: Get position funding events
      description: >-
        ### Parameters


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | account | yes | string (hex) | Ethereum-style account address for the
        sub-account context. |

        | pagination_data | yes | object | Pagination segment containing
        `pageNumber` and `pageSize` (serialized per gateway contract). |


        ### Response fields


        | Parameter | Required | Type | Description |

        | --------- | -------- | ---- | ----------- |

        | `events` | no | object[] | — |

        | `pageNumber` | yes | integer | — |

        | `pageSize` | yes | integer | — |


        ### Response example


        A sample **`200`** JSON body is attached to this operation as an OpenAPI
        **example** (Mintlify shows it in the example panel, similar to other
        exchange API docs).
      operationId: get_position_funding_events
      parameters:
        - name: account
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/AccountAddress'
          description: Ethereum-style account address for the sub-account context.
        - name: pagination_data
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/PaginationData'
          description: >-
            Pagination segment containing `pageNumber` and `pageSize`
            (serialized per gateway contract).
      responses:
        '200':
          description: All position funding events for an account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPositionFundingEventsResponse'
              example:
                events: null
                pageNumber: 0
                pageSize: 25
components:
  schemas:
    AccountAddress:
      type: string
      format: hex
      description: An Ethereum-style account address (20 bytes).
    PaginationData:
      type: object
      properties:
        pageNumber:
          $ref: '#/components/schemas/usize'
        pageSize:
          $ref: '#/components/schemas/usize'
    GetPositionFundingEventsResponse:
      type: object
      required:
        - pageNumber
        - pageSize
      properties:
        events:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PositionFundingEventsClientViewSet'
        pageNumber:
          $ref: '#/components/schemas/usize'
        pageSize:
          $ref: '#/components/schemas/usize'
    usize:
      type: integer
      minimum: 0
    PositionFundingEventsClientViewSet:
      type: array
      items:
        $ref: '#/components/schemas/PositionFundingEventView'
    PositionFundingEventView:
      type: object
      required:
        - fundingRate
        - timestamp
        - round
        - instrumentId
        - pnl
        - account
        - positionQuantity
        - instrumentMarkPrice
      properties:
        account:
          $ref: '#/components/schemas/AccountAddress'
        fundingRate:
          type: string
        instrumentId:
          $ref: '#/components/schemas/InstrumentId'
        instrumentMarkPrice:
          type: string
        pnl:
          type: string
        positionQuantity:
          type: string
        round:
          type: integer
          format: int64
          minimum: 0
        timestamp:
          $ref: '#/components/schemas/u64'
    InstrumentId:
      type: integer
      format: int64
      description: An instrument identifier (8-byte hash).
      minimum: 0
    u64:
      type: integer
      format: int64
      minimum: 0

````