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

# Get user hourly funding

> Handles `GET /v1/users/{user_pubkey}/funding-hourly` via `get.v1.users.by_user_pubkey.funding_hourly`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json get /v1/users/{user_pubkey}/funding-hourly
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/users/{user_pubkey}/funding-hourly:
    get:
      tags:
        - Trader
      summary: Get user hourly funding
      description: >-
        Handles `GET /v1/users/{user_pubkey}/funding-hourly` via
        `get.v1.users.by_user_pubkey.funding_hourly`.
      operationId: get.v1.users.by_user_pubkey.funding_hourly
      parameters:
        - name: user_pubkey
          in: path
          description: User public key (base58 encoded)
          required: true
          schema:
            type: string
        - name: traderPdaIndex
          in: query
          description: Trader PDA index (default 0)
          required: false
          schema:
            type: integer
            format: int32
        - name: symbol
          in: query
          description: Optional market symbol (e.g., 'SOL-PERP')
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: 'Number of hourly rows to return (1-200, default: 50)'
          required: false
          schema:
            type: integer
            format: int64
        - name: cursor
          in: query
          description: Opaque pagination cursor (base64url-encoded; do not parse)
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingHourlyHistoryResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    FundingHourlyHistoryResponse:
      type: object
      description: Response containing hourly funding accruals
      required:
        - events
        - hasMore
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/FundingHourlyEvent'
        hasMore:
          type: boolean
        nextCursor:
          type:
            - string
            - 'null'
          description: Cursor for fetching older items (for pagination)
        prevCursor:
          type:
            - string
            - 'null'
          description: Cursor for fetching newer items (for polling)
    FundingHourlyEvent:
      type: object
      description: Individual hourly funding accrual entry
      required:
        - timestamp
        - symbol
        - fundingPayment
        - fundingRatePercentage
        - positionSize
        - positionSide
      properties:
        fundingPayment:
          type: string
          description: >-
            Funding payment amount in USDC (negative = paid, positive =
            received)
        fundingRatePercentage:
          type: string
          description: Funding rate applied for the hour (percentage of USD notional)
        positionSide:
          type: string
          description: Position side ("Long", "Short", or "Flat")
        positionSize:
          type: string
          description: Position size in base units
        symbol:
          type: string
          description: Market symbol (e.g., "SOL-PERP")
        timestamp:
          type: string
          format: date-time
          description: Formatted datetime string (ISO 8601).
  securitySchemes:
    PhoenixBearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by `/v1/auth/*` login endpoints.

````