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

# List funding periods

> Finalized funding rates for one perpetual, newest first across every page. A market the venue does not serve returns 422 NotSupported.

> [!NOTE]
>
> **Check support**
>
> Read the venue with [List venues](https://docs.plurex.io/api-reference/platform/venues/list.md). In its `capabilities`
> :
>
> <ul />
>
> See [Venue capabilities](https://docs.plurex.io/capabilities/venue-capabilities.md) and
> [support values](https://docs.plurex.io/capabilities/overview.md#support-values).


## OpenAPI

````yaml /api-reference/platform/plurex-platform-api.yaml QUERY /api/v1/venues/query/ListFundingPeriods
openapi: 3.2.0
info:
  title: Plurex Platform API
  version: 1.0.0
  description: >-
    Command and query RPC over HTTP for cross-exchange trading and account
    management.
servers:
  - url: https://api.plurex.io
security:
  - ApiKey: []
    ApiSecret: []
tags:
  - name: venues
    summary: Market data
    description: Market data from the exchanges where markets trade.
    kind: nav
  - name: venue-markets
    summary: Venues and markets
    description: The venues and their markets, with the market data each market supports.
    parent: venues
    kind: nav
  - name: order-books
    summary: Order books
    description: >-
      A market's current bids and asks: L1 is the top of book, L2 the price
      levels.
    parent: venues
    kind: nav
  - name: public-trades
    summary: Public trades
    description: A market's recent public trades.
    parent: venues
    kind: nav
  - name: market-observations
    summary: Prices and market statistics
    description: Current prices, statistics, indicative funding and open interest.
    parent: venues
    kind: nav
  - name: candles
    summary: Candles
    description: Closed OHLC candles by price kind and interval, newest first.
    parent: venues
    kind: nav
  - name: funding-periods
    summary: Funding history
    description: Finalized funding rates of perpetuals, newest first.
    parent: venues
    kind: nav
  - name: hosts
    summary: Trading
    description: >-
      Trading on an account: each host's tradable markets and order rules,
      orders, fills, balances, positions, margin, market settings and
      transactions.
    kind: nav
  - name: host-markets
    summary: Hosts and markets
    description: >-
      The hosts and their tradable markets, with each market's order types,
      order rules and settings.
    parent: hosts
    kind: nav
  - name: orders
    summary: Orders
    description: Submit, cancel and read orders.
    parent: hosts
    kind: nav
  - name: fills
    summary: Fills
    description: The account's executions, by order, instrument or across the account.
    parent: hosts
    kind: nav
  - name: portfolio
    summary: Balances and positions
    description: Wallet balances, open positions, margin and per-market account state.
    parent: hosts
    kind: nav
  - name: market-settings
    summary: Leverage and position mode
    description: Read and set the account's leverage and position mode for a market.
    parent: hosts
    kind: nav
  - name: transactions
    summary: Transactions
    description: 'Balance postings: fees, funding payments, deposits and so on.'
    parent: hosts
    kind: nav
  - name: accounts
    summary: Accounts
    description: Connect, list and manage a tenant's exchange, broker and paper accounts.
    kind: nav
  - name: paper
    summary: Paper trading
    description: >-
      Create, fund and draw down paper accounts and set their fees. Trade them
      through the hosts operations like any other account.
    kind: nav
  - name: paper-accounts
    summary: Paper accounts
    description: Create, fund and draw down paper accounts.
    parent: paper
    kind: nav
  - name: paper-fees
    summary: Paper fees
    description: Choose the fee tier a paper account is charged.
    parent: paper
    kind: nav
  - name: optional
    summary: Check capabilities
    description: >-
      Not every host or venue supports this operation; check its capabilities
      first or expect 422 NotSupported.
    kind: badge
  - name: paged
    summary: Paged
    description: Returns pages; follow nextCursor until null.
    kind: badge
  - name: batch
    summary: Batch
    description: Takes a list of identifiers and handles them in one call.
    kind: badge
  - name: not-repeat-safe
    summary: Not safe to repeat
    description: >-
      Repeating the call repeats its effect; if the outcome is unclear, check
      before retrying. Commands without this badge are safe to repeat.
    kind: badge
paths:
  /api/v1/venues/query/ListFundingPeriods:
    query:
      tags:
        - funding-periods
        - optional
        - paged
      summary: List funding periods
      description: >-
        Finalized funding rates for one perpetual, newest first across every
        page. A market the venue does not serve returns 422 NotSupported.
      operationId: venuesListFundingPeriods
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListFundingPeriodsQuery'
            examples:
              Latest:
                summary: Latest BTC/USDT perpetual funding
                value:
                  venueId: bybit
                  query:
                    type: ByInstrument
                    instrument:
                      type: Perp
                      base: BTC
                      quote: USDT
                  cursor: null
      responses:
        '200':
          description: Successful result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponseFundingPeriod'
              examples:
                Page:
                  summary: Finalized funding periods, newest first
                  value:
                    items:
                      - fundingTime: '2026-10-26T08:00:00Z'
                        rate: '0.0001'
                      - fundingTime: '2026-10-26T00:00:00Z'
                        rate: '-0.000025'
                    nextCursor: eyJjb250aW51YXRpb24iOiJjdXJzb3ItMiJ9
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Rejected'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/UnexpectedError'
        '502':
          $ref: '#/components/responses/UpstreamFailure'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/UpstreamTimeout'
components:
  schemas:
    ListFundingPeriodsQuery:
      type: object
      properties:
        venueId:
          type: string
        query:
          $ref: '#/components/schemas/ListFundingPeriods'
        cursor:
          type:
            - string
            - 'null'
          description: >-
            nextCursor from the previous page, valid only with the same query;
            null or omitted for the first page.
      required:
        - venueId
        - query
      description: >-
        Lists finalized funding periods of one perpetual on a venue, newest
        first.
    PageResponseFundingPeriod:
      type: object
      description: >-
        One page of results; the server sets the page size. Send nextCursor as
        cursor for the next page. Pages are read live, so items can change while
        you page.
      required:
        - items
        - nextCursor
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FundingPeriod'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as cursor to get the next page; null on the last page.
    ListFundingPeriods:
      oneOf:
        - $ref: '#/components/schemas/ListFundingPeriodsByInstrument'
      discriminator:
        propertyName: type
        mapping:
          ByInstrument: '#/components/schemas/ListFundingPeriodsByInstrument'
      description: Which funding periods to list.
    FundingPeriod:
      type: object
      properties:
        fundingTime:
          type: string
          format: date-time
          description: When the funding applied.
        rate:
          $ref: '#/components/schemas/Decimal'
          description: >-
            Fraction of position value paid per funding; positive rates mean
            longs pay shorts.
      required:
        - fundingTime
        - rate
      description: A finalized funding rate of one perpetual at one funding time.
    ErrorEnvelope:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
      required:
        - code
        - message
      description: >-
        The body of every error response, at every HTTP status; code gives the
        reason. An error alone does not prove a command had no effect.
    ListFundingPeriodsByInstrument:
      title: ByInstrument
      type: object
      properties:
        instrument:
          $ref: '#/components/schemas/Instrument'
        type:
          type: string
          enum:
            - ByInstrument
      required:
        - type
        - instrument
      description: Lists the market's funding periods from the most recent one backwards.
    Decimal:
      type: string
      pattern: ^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
      description: An exact decimal number encoded as a string.
    ErrorCode:
      type: string
      enum:
        - InvalidRequest
        - Unauthenticated
        - Forbidden
        - AccountNotFound
        - OrderNotFound
        - NotFound
        - MethodNotAllowed
        - DuplicateClientOrderId
        - OrderAlreadyClosed
        - UnsupportedMediaType
        - ValidationFailed
        - InsufficientFunds
        - InvalidProviderCredentials
        - ProviderAccessDenied
        - AccountLimit
        - NotSupported
        - Rejected
        - RateLimited
        - UnexpectedError
        - CancelAllFailed
        - UpstreamFailure
        - Unavailable
        - UpstreamTimeout
      description: >-
        Stable error reason; each code has a fixed HTTP status. InvalidRequest
        (400): the body or cursor cannot be read as the request: malformed JSON,
        wrong types, unknown fields or enum values, or missing fields.
        Unauthenticated (401): missing or invalid API key headers. Forbidden
        (403): no access to the account or operation. AccountNotFound (404): the
        accountId does not exist. OrderNotFound (404): the order identifier does
        not exist on the account. NotFound (404): unknown path, host or venue.
        MethodNotAllowed (405): a command sent other than as POST, or a query or
        stream sent as neither QUERY nor POST. DuplicateClientOrderId (409): the
        host holds another order with this clientOrderId. OrderAlreadyClosed
        (409): the order is filled, cancelled or rejected. UnsupportedMediaType
        (415): the request is not Content-Type application/json.
        ValidationFailed (422): one or more values break a rule of the request
        or the market; the message names each. InsufficientFunds (422): the
        account cannot fund the order or withdrawal. InvalidProviderCredentials
        (422): the provider rejected the credentials (invalid, expired or
        revoked). ProviderAccessDenied (422): the credentials lack the access
        needed. AccountLimit (422): an account limit was reached. NotSupported
        (422): the host does not support this operation, variant or instrument.
        Rejected (422): the request is valid, but the host or the current state
        of the account refuses it. RateLimited (429): the provider rate limited
        the request. UnexpectedError (500): unexpected server failure.
        CancelAllFailed (502): at least one cancel failed; reconcile with
        ListOpenOrders. UpstreamFailure (502): the provider failed or returned
        an unusable response. Unavailable (503): the service or provider is
        temporarily unavailable. UpstreamTimeout (504): the provider did not
        respond in time. New codes may be added; handle an unknown code by its
        HTTP status.
    Instrument:
      oneOf:
        - $ref: '#/components/schemas/InstrumentFuture'
        - $ref: '#/components/schemas/InstrumentFutureInv'
        - $ref: '#/components/schemas/InstrumentOption'
        - $ref: '#/components/schemas/InstrumentPerp'
        - $ref: '#/components/schemas/InstrumentPerpInv'
        - $ref: '#/components/schemas/InstrumentSpot'
      discriminator:
        propertyName: type
        mapping:
          Future: '#/components/schemas/InstrumentFuture'
          FutureInv: '#/components/schemas/InstrumentFutureInv'
          Option: '#/components/schemas/InstrumentOption'
          Perp: '#/components/schemas/InstrumentPerp'
          PerpInv: '#/components/schemas/InstrumentPerpInv'
          Spot: '#/components/schemas/InstrumentSpot'
      description: An instrument, identified by its fields rather than a venue symbol.
    InstrumentFuture:
      title: Future
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        expiry:
          type: string
          format: date
          description: Contract expiry date (YYYY-MM-DD).
        type:
          type: string
          enum:
            - Future
      required:
        - type
        - base
        - quote
        - expiry
      description: A linear dated future, quoted and settled in the quote asset.
    InstrumentFutureInv:
      title: FutureInv
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        expiry:
          type: string
          format: date
          description: Contract expiry date (YYYY-MM-DD).
        type:
          type: string
          enum:
            - FutureInv
      required:
        - type
        - base
        - quote
        - expiry
      description: >-
        An inverse dated future, quoted in the quote asset and settled in the
        base asset.
    InstrumentOption:
      title: Option
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        expiry:
          type: string
          format: date
          description: Contract expiry date (YYYY-MM-DD).
        strike:
          type: string
          pattern: ^(?:0|[1-9][0-9]*)(?:\.[0-9]*[1-9])?$
          description: >-
            Positive strike price in the quote asset, as a plain decimal with no
            exponent or trailing fractional zeros (50000, not 50000.0 or 5E4).
        right:
          $ref: '#/components/schemas/OptionRight'
        type:
          type: string
          enum:
            - Option
      required:
        - type
        - base
        - quote
        - expiry
        - strike
        - right
      description: >-
        An option contract. Options are not listed or tradable; they appear only
        in account activity a host reports.
    InstrumentPerp:
      title: Perp
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        type:
          type: string
          enum:
            - Perp
      required:
        - type
        - base
        - quote
      description: A linear perpetual swap, quoted and settled in the quote asset.
    InstrumentPerpInv:
      title: PerpInv
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        type:
          type: string
          enum:
            - PerpInv
      required:
        - type
        - base
        - quote
      description: >-
        An inverse perpetual swap, quoted in the quote asset and settled in the
        base asset.
    InstrumentSpot:
      title: Spot
      type: object
      properties:
        base:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        quote:
          type: string
          pattern: ^[A-Z0-9.]{1,32}$
        type:
          type: string
          enum:
            - Spot
      required:
        - type
        - base
        - quote
      description: 'A spot pair: buying or selling the base asset for the quote asset.'
    OptionRight:
      type: string
      enum:
        - Call
        - Put
      description: >-
        Whether an option gives the right to buy (Call) or to sell (Put) the
        underlying at the strike.
  responses:
    BadRequest:
      description: 400 BadRequest; code is InvalidRequest.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            InvalidRequest:
              summary: The body or cursor cannot be read as this request
              value:
                code: InvalidRequest
                message: Invalid cursor
    Unauthenticated:
      description: 401 Unauthenticated; code is Unauthenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            Unauthenticated:
              summary: The API key headers are missing or invalid
              value:
                code: Unauthenticated
                message: Unauthorized
    NotFound:
      description: 404 NotFound; code is AccountNotFound, OrderNotFound or NotFound.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            AccountNotFound:
              summary: The accountId does not exist
              value:
                code: AccountNotFound
                message: 'Account not found: acc_123'
            OrderNotFound:
              summary: The account exists, but the order identifier does not
              value:
                code: OrderNotFound
                message: 'Order not found: ord_456'
            NotFound:
              summary: Unknown path, host or venue
              value:
                code: NotFound
                message: Not Found
    UnsupportedMediaType:
      description: 415 UnsupportedMediaType; code is UnsupportedMediaType.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            UnsupportedMediaType:
              summary: The request is not Content-Type application/json
              value:
                code: UnsupportedMediaType
                message: Content type text/plain is not supported
    Rejected:
      description: >-
        422 Rejected; code is ValidationFailed, InsufficientFunds,
        InvalidProviderCredentials, ProviderAccessDenied, AccountLimit,
        NotSupported or Rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            ValidationFailed:
              summary: One or more values break a rule of the request or the market
              value:
                code: ValidationFailed
                message: >-
                  Size must be at least 0.001; Trigger price must be a multiple
                  of 0.1
            InsufficientFunds:
              summary: The account cannot fund the order or withdrawal
              value:
                code: InsufficientFunds
                message: Insufficient Funds
            InvalidProviderCredentials:
              summary: The provider did not accept the credentials
              value:
                code: InvalidProviderCredentials
                message: API key is invalid
            ProviderAccessDenied:
              summary: >-
                The provider accepted the credentials, but they lack the access
                needed
              value:
                code: ProviderAccessDenied
                message: The credentials do not grant the access this account needs
            AccountLimit:
              summary: An account limit was reached
              value:
                code: AccountLimit
                message: System limit reached
            NotSupported:
              summary: The host does not support this operation, variant or instrument
              value:
                code: NotSupported
                message: Unprocessable Entity
            Rejected:
              summary: >-
                The request is valid, but the host or the account's current
                state refuses it
              value:
                code: Rejected
                message: >-
                  Cannot change leverage with an open position or order on this
                  market
    RateLimited:
      description: 429 RateLimited; code is RateLimited.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            RateLimited:
              summary: The provider rate limited the request
              value:
                code: RateLimited
                message: Provider rate limited
    UnexpectedError:
      description: 500 UnexpectedError; code is UnexpectedError.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            UnexpectedError:
              summary: Unexpected server failure
              value:
                code: UnexpectedError
                message: Internal Server Error
    UpstreamFailure:
      description: 502 UpstreamFailure; code is UpstreamFailure or CancelAllFailed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            UpstreamFailure:
              summary: The host or venue failed or returned something unreadable
              value:
                code: UpstreamFailure
                message: Bad Gateway
            CancelAllFailed:
              summary: At least one sub-cancel failed; reconcile with ListOpenOrders
              value:
                code: CancelAllFailed
                message: Bad Gateway
    Unavailable:
      description: 503 Unavailable; code is Unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            Unavailable:
              summary: The service or provider is temporarily unavailable
              value:
                code: Unavailable
                message: Service Unavailable
    UpstreamTimeout:
      description: 504 UpstreamTimeout; code is UpstreamTimeout.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            UpstreamTimeout:
              summary: The provider did not respond in time
              value:
                code: UpstreamTimeout
                message: Gateway Timeout
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Belongs to one tenant and reaches only that tenant's resources.
    ApiSecret:
      type: apiKey
      in: header
      name: X-API-SECRET

````

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