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

# Put Call Ratio

> This endpoint returns the Put Call Ratio for open interest and volume. The users can request the data in daily or hourly granularity.




## OpenAPI

````yaml get /analytics/trades-flow/put-call-ratio
openapi: 3.1.0
info:
  title: derivatives-api
  version: '2'
servers:
  - url: https://api.amberdata.com/markets/derivatives
security:
  - sec0: []
paths:
  /analytics/trades-flow/put-call-ratio:
    get:
      summary: Put Call Ratio
      description: >
        This endpoint returns the Put Call Ratio for open interest and volume.
        The users can request the data in daily or hourly granularity.
      operationId: derivatives-trades-flow-put-call-ratio
      parameters:
        - name: exchange
          in: query
          description: >
            **[Optional]** The exchange for which to retrieve the listed option
            level 1 quotes. **[Examples]** `deribit | okex | bybit`
          schema:
            type: string
            default: deribit
        - name: currency
          in: query
          description: >
            **[Required]** The underlying currency for which there are listed
            option instruments. **[Examples]** `BTC | SOL_USDC` Note: inverse
            options have underlying currencies formatted as (BTC, ETH) while
            linear option currency formats include the stable coin in the same
            (SOL_USDC)
          required: true
          schema:
            type: string
            default: BTC
        - name: startDate
          in: query
          description: >
            **[Optional]** Payload only includes data after this date
            (inclusive). **[Formats]** `seconds | milliseconds | iso8601`
            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          schema:
            type: string
            format: date-time
            default: '2024-05-21'
        - name: endDate
          in: query
          description: >
            **[Required]** Payload only includes data before this date
            (exclusive). **[Formats]** `seconds | milliseconds | iso8601`
            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          schema:
            type: string
            default: '2024-06-01'
        - name: timeInterval
          in: query
          description: >
            **[Optional]** This controls the granularity of the data. The user
            can input hour or day.
          schema:
            type: string
            default: day
        - name: timeFormat
          in: query
          description: >
            **[Optional]** Time format of the timestamps in the return payload.
            **[Defaults]** `milliseconds | ms* | iso | iso8601 | hr |
            human_readable`
          schema:
            type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            currency:
                              type: string
                              example: BTC
                            exchange:
                              type: string
                              example: deribit
                            putCallRatioOpenInterest:
                              type: number
                              example: 0.57
                            putCallRatioVolume24hr:
                              type: number
                              example: 0.57
                            timestamp:
                              type: integer
                              example: 1732233600000
                      metadata:
                        type: object
                        properties:
                          api-version:
                            type: string
                            example: '2023-09-30'
              examples:
                success_response:
                  summary: Put call ratio response
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.57
                          putCallRatioVolume24hr: 0.57
                          timestamp: 1732233600000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.55
                          putCallRatioVolume24hr: 0.55
                          timestamp: 1732147200000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.55
                          putCallRatioVolume24hr: 0.55
                          timestamp: 1732060800000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.54
                          putCallRatioVolume24hr: 0.54
                          timestamp: 1731974400000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.53
                          putCallRatioVolume24hr: 0.53
                          timestamp: 1731888000000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.53
                          putCallRatioVolume24hr: 0.53
                          timestamp: 1731801600000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.53
                          putCallRatioVolume24hr: 0.53
                          timestamp: 1731715200000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.55
                          putCallRatioVolume24hr: 0.55
                          timestamp: 1731628800000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.55
                          putCallRatioVolume24hr: 0.55
                          timestamp: 1731542400000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.54
                          putCallRatioVolume24hr: 0.54
                          timestamp: 1731456000000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.52
                          putCallRatioVolume24hr: 0.52
                          timestamp: 1731369600000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.49
                          putCallRatioVolume24hr: 0.49
                          timestamp: 1731283200000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.49
                          putCallRatioVolume24hr: 0.49
                          timestamp: 1731196800000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.49
                          putCallRatioVolume24hr: 0.49
                          timestamp: 1731110400000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.51
                          putCallRatioVolume24hr: 0.51
                          timestamp: 1731024000000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.5
                          putCallRatioVolume24hr: 0.5
                          timestamp: 1730937600000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.5
                          putCallRatioVolume24hr: 0.5
                          timestamp: 1730851200000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.49
                          putCallRatioVolume24hr: 0.49
                          timestamp: 1730764800000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.48
                          putCallRatioVolume24hr: 0.48
                          timestamp: 1730678400000
                        - currency: BTC
                          exchange: deribit
                          putCallRatioOpenInterest: 0.48
                          putCallRatioVolume24hr: 0.48
                          timestamp: 1730592000000
                      metadata:
                        api-version: '2023-09-30'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                error_response:
                  summary: Bad request example
                  value: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````