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

# Get Funding Rate Data

> [OpenAPI JSON Spec](/docs/output/v1_crypto_funding-rate_get.json)
**Feature Overview**
Get funding rate data for a specific trading pair with required time range filtering.

**Main Use Cases**
- **Perpetual Futures Trading**: Monitor funding rates for perpetual futures contracts
- **Trading Strategy**: Use funding rates as a market sentiment indicator
- **Risk Management**: Monitor funding costs for positions
- **Technical Analysis**: Analyze funding rate trends over time

**Query Parameters & Logic**

**Required Parameters:**
- `symbol`: Trading pair symbol (e.g., BTCUSDT)
- `exchange`: Exchange name (currently only supports `binance`)
- `start_time`: Start timestamp (Unix seconds) - required
- `end_time`: End timestamp (Unix seconds) - required, must be after start_time
- `limit`: Maximum number of results to return (1-1000, required)

**Validation Rules:**
- Symbol is required and must be a valid trading pair
- Exchange must be `binance`
- start_time must be before end_time
- Limit range: 1-1000, required

**Response Data Structure**

- `data` ([]FundingRateData): Array of funding rate data points
- `count` (int32): Actual number of data points returned
- `latest_time` (string): Timestamp of the most recent data point (Unix seconds as string)

**FundingRateData fields:**
- `symbol` (string): Trading pair symbol (e.g., "BTCUSDT")
- `funding_rate` (string): Funding rate in string format
- `timestamp` (string): Unix timestamp in seconds as string (e.g., "1763978100")

**Usage Examples**

1. **Get funding rate data for specific time range**: `?symbol=BTCUSDT&exchange=binance&start_time=1761502255&end_time=1764094255&limit=100`
2. **Get maximum data points**: `?symbol=ETHUSDT&exchange=binance&start_time=1761502255&end_time=1764094255&limit=1000`

**Important Notes**

- All parameters are required
- Results are ordered by timestamp in descending order (latest first)
- Funding rate represents the periodic payment between long and short positions
- Funding rates are settled by the exchange at fixed intervals (every 8 hours for Binance)
- No interval parameter needed as settlement times are predetermined by the exchange



## OpenAPI

````yaml /api-reference/openapi.json get /v1/crypto/funding-rate
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Welcome to Arrays!


    Arrays is a unified financial data layer for both financial institutions and
    retail users, delivering comprehensive market data across crypto and equity
    markets. Our datasets cover fundamentals, ETFs, options, crypto, and more.


    Visit [arrays.org](https://arrays.org) to request an API key and start your
    free trial. You can explore our full API offerings in the documentation
    below.


    For any questions regarding APIs or pricing, please contact
    support@arrays.org.
  title: Arrays API
  version: '1.0'
servers:
  - url: https://data-tools.prd.arrays.org/api
security: []
paths:
  /v1/crypto/funding-rate:
    get:
      tags:
        - Crypto
      summary: Get Funding Rate Data
      description: >-
        [OpenAPI JSON Spec](/docs/output/v1_crypto_funding-rate_get.json)

        **Feature Overview**

        Get funding rate data for a specific trading pair with required time
        range filtering.


        **Main Use Cases**

        - **Perpetual Futures Trading**: Monitor funding rates for perpetual
        futures contracts

        - **Trading Strategy**: Use funding rates as a market sentiment
        indicator

        - **Risk Management**: Monitor funding costs for positions

        - **Technical Analysis**: Analyze funding rate trends over time


        **Query Parameters & Logic**


        **Required Parameters:**

        - `symbol`: Trading pair symbol (e.g., BTCUSDT)

        - `exchange`: Exchange name (currently only supports `binance`)

        - `start_time`: Start timestamp (Unix seconds) - required

        - `end_time`: End timestamp (Unix seconds) - required, must be after
        start_time

        - `limit`: Maximum number of results to return (1-1000, required)


        **Validation Rules:**

        - Symbol is required and must be a valid trading pair

        - Exchange must be `binance`

        - start_time must be before end_time

        - Limit range: 1-1000, required


        **Response Data Structure**


        - `data` ([]FundingRateData): Array of funding rate data points

        - `count` (int32): Actual number of data points returned

        - `latest_time` (string): Timestamp of the most recent data point (Unix
        seconds as string)


        **FundingRateData fields:**

        - `symbol` (string): Trading pair symbol (e.g., "BTCUSDT")

        - `funding_rate` (string): Funding rate in string format

        - `timestamp` (string): Unix timestamp in seconds as string (e.g.,
        "1763978100")


        **Usage Examples**


        1. **Get funding rate data for specific time range**:
        `?symbol=BTCUSDT&exchange=binance&start_time=1761502255&end_time=1764094255&limit=100`

        2. **Get maximum data points**:
        `?symbol=ETHUSDT&exchange=binance&start_time=1761502255&end_time=1764094255&limit=1000`


        **Important Notes**


        - All parameters are required

        - Results are ordered by timestamp in descending order (latest first)

        - Funding rate represents the periodic payment between long and short
        positions

        - Funding rates are settled by the exchange at fixed intervals (every 8
        hours for Binance)

        - No interval parameter needed as settlement times are predetermined by
        the exchange
      parameters:
        - description: Crypto token symbol (e.g., BTC, ETH, SOL)
          in: query
          name: symbol
          required: true
          schema:
            type: string
        - description: Start timestamp (Unix seconds)
          in: query
          name: start_time
          required: true
          schema:
            type: integer
            format: int64
        - description: End timestamp (Unix seconds)
          in: query
          name: end_time
          required: true
          schema:
            type: integer
            format: int64
        - description: 'Maximum number of results (1-1000, default: 30)'
          in: query
          name: limit
          schema:
            type: integer
            format: int32
            default: 30
        - description: 'Exchange name (only binance supported, default: binance)'
          in: query
          name: exchange
          schema:
            type: string
            enum:
              - binance
            default: binance
      responses:
        '200':
          description: Successfully returns funding rate data
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.FundingRateData'
                        type: array
                    type: object
        '400':
          description: Parameter validation error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '404':
          description: Trading pair not found
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '500':
          description: Internal server error - gRPC service failure
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
      security:
        - ApiKeyAuth: []
components:
  schemas:
    model.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/model.APIError'
        metadata: {}
        pagination: {}
        request_id:
          type: string
        success:
          type: boolean
      type: object
    model.FundingRateData:
      properties:
        funding_rate:
          description: 资金费率
          type: number
        symbol:
          description: 交易对符号
          type: string
        time:
          description: Formatted time (YYYY-MM-DD hh:mm:ss, UTC+0)
          type: string
        timestamp:
          description: Unix时间戳（秒）
          type: integer
      type: object
    model.APIError:
      properties:
        code:
          example: RESOURCE_NOT_FOUND
          type: string
        details:
          items:
            $ref: '#/components/schemas/model.APIErrorDetail'
          type: array
        docs_url:
          type: string
        examples:
          items:
            type: string
          type: array
        hint:
          type: string
        message:
          example: The requested resource was not found.
          type: string
        suggestions:
          items:
            type: string
          type: array
      type: object
    model.APIErrorDetail:
      properties:
        field:
          type: string
        got:
          type: string
        reason:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: 'API Key authentication. Example: "your-api-key-here"'
      in: header
      name: X-API-Key
      type: apiKey

````