> ## 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 Trades Distribution

> Using proprietary algorithm (Amberdata direction) that assess real initiator of a trade, we sum by the amounts of contracts and premium of the last 24 hours (default) according to put/call/bought/sold metrics.




## OpenAPI

````yaml get /analytics/trades-flow/put-call-distribution
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-distribution:
    get:
      summary: Put Call Trades Distribution
      description: >
        Using proprietary algorithm (Amberdata direction) that assess real
        initiator of a trade, we sum by the amounts of contracts and premium of
        the last 24 hours (default) according to put/call/bought/sold metrics.
      operationId: derivatives-trades-flow-put-call-trades-distribution
      parameters:
        - name: exchange
          in: query
          description: >
            **[Required]** The exchange for which to retrieve the listed option
            level 1 quotes. **[Examples]** `deribit | okex | bybit`
          required: true
          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: strike
          in: query
          description: >
            **[Optional]** The option instrument subset with a given strike
            price. **[Examples]** `100000 | 3500`
          schema:
            type: integer
            format: int32
        - name: expirationTimestamp
          in: query
          description: >
            **[Optional]** The option instrument subset with a given expiration
            date.
          schema:
            type: string
        - name: blockTradeId
          in: query
          description: >
            **[Optional]** This flag enables users to filter for only blockTrade
            or non-blockTrades. If the user wants everything returned they can
            choose to leave the parameter blank.
          schema:
            type: boolean
        - 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:
                            callsContractsBought:
                              type: number
                              example: 57457.100000000115
                            putContractsBought:
                              type: number
                              example: 40470.70000000006
                            callsContractsSold:
                              type: number
                              example: 57535.10000000011
                            putContractsSold:
                              type: number
                              example: 35622.60000000012
                            callsPremiumBought:
                              type: number
                              example: 106471710.98494382
                            putPremiumBought:
                              type: number
                              example: 45180478.74917743
                            callsPremiumSold:
                              type: number
                              example: 104654076.88302676
                            putPremiumSold:
                              type: number
                              example: 44623690.99527128
                            callsContractsBoughtExchangeDirection:
                              type: number
                              example: 55601.00000000013
                            putContractsBoughtExchangeDirection:
                              type: number
                              example: 39594.80000000007
                            callsContractsSoldExchangeDirection:
                              type: number
                              example: 59251.20000000009
                            putContractsSoldExchangeDirection:
                              type: number
                              example: 36498.5000000001
                            callsPremiumBoughtExchangeDirection:
                              type: number
                              example: 93552496.91739166
                            putPremiumBoughtExchangeDirection:
                              type: number
                              example: 48017408.59515418
                            callsPremiumSoldExchangeDirection:
                              type: number
                              example: 116283502.4950176
                            putPremiumSoldExchangeDirection:
                              type: number
                              example: 41786761.14929454
                      metadata:
                        type: object
                        properties:
                          api-version:
                            type: string
                            example: '2023-09-30'
              examples:
                success_response:
                  summary: Put call trades distribution response
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - callsContractsBought: 57457.100000000115
                          putContractsBought: 40470.70000000006
                          callsContractsSold: 57535.10000000011
                          putContractsSold: 35622.60000000012
                          callsPremiumBought: 106471710.98494382
                          putPremiumBought: 45180478.74917743
                          callsPremiumSold: 104654076.88302676
                          putPremiumSold: 44623690.99527128
                          callsContractsBoughtExchangeDirection: 55601.00000000013
                          putContractsBoughtExchangeDirection: 39594.80000000007
                          callsContractsSoldExchangeDirection: 59251.20000000009
                          putContractsSoldExchangeDirection: 36498.5000000001
                          callsPremiumBoughtExchangeDirection: 93552496.91739166
                          putPremiumBoughtExchangeDirection: 48017408.59515418
                          callsPremiumSoldExchangeDirection: 116283502.4950176
                          putPremiumSoldExchangeDirection: 41786761.14929454
                      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

````