> ## 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.

# Trade Pressure

> This endpoint provides net trade data (buy aggressors minus sell aggressors) to help users identify which side of the market is more aggressive. Users can also filter by "orderSizeCategoryUsd" to analyze behavior across different market segments. Other details revolve around trade count.



## OpenAPI

````yaml get /trade/pressure
openapi: 3.1.0
info:
  title: spot-analytics
  version: '2'
servers:
  - url: https://api.amberdata.com/markets/spot/analytics
security:
  - sec0: []
paths:
  /trade/pressure:
    get:
      summary: Trade Pressure
      description: >-
        This endpoint provides net trade data (buy aggressors minus sell
        aggressors) to help users identify which side of the market is more
        aggressive. Users can also filter by "orderSizeCategoryUsd" to analyze
        behavior across different market segments. Other details revolve around
        trade count.
      operationId: spot-analytics-trade-pressure
      parameters:
        - name: exchange
          in: query
          description: >-
            **[Optional]** The exchange for which to retrieve listed spot
            instruments.

            **[Examples]** ` gdax | okex | binance | binanceus`
          schema:
            type: string
            default: gdax
        - name: pair
          in: query
          description: |-
            **[Required]** The currency pair for the spot instrument.
            **[Examples]** ` btc_usd | btc_usdc | eth_usd `
          required: true
          schema:
            type: string
            default: btc_usd
        - name: fuzzyMatch
          in: query
          description: >-
            **[Required]** This parameter allows users to return either a
            specific pair, such as btc_usd, when set to FALSE, or return every
            pair related to an underlying asset, such as BTC, when set to TRUE
            (ex: btc_eur, btc_usd, btc_usdt, etc)
          required: true
          schema:
            type: boolean
            default: false
        - name: orderSizeCategoryUsd
          in: query
          description: >-
            **[Optional]** Users can specify to return all aggregated trades or
            only trades that fit a specific size threshold (0-1k, 1k-10k,
            10k-100k, 100k+, ALL).
             Users can specify by passing the lower threshold flag ` 0 | 1k | 10k | 100k | All `
          schema:
            type: string
        - name: startDate
          in: query
          description: >-
            **[Optional]** Payload only includes data after this date
            (inclusive).

            **[Formats]** `seconds | milliseconds | iso8601` 

            **[Examples]** `1578531600 | 1578531600000 | 2025-02-27`
          schema:
            type: string
            default: '2025-04-15'
        - name: endDate
          in: query
          description: >-
            **[Optional]** Payload only includes data up to this date
            (exclusive).

            **[Formats]** `seconds | milliseconds | iso8601` 

            **[Examples]** `1578531600 | 1578531600000 | 2025-02-28`
          schema:
            type: string
            default: '2025-04-16'
        - name: timeInterval
          in: query
          description: >-
            **[Optional]** Time interval of data frequency for the selected date
            range. 

            **[Examples]** ` minute | hour | day`
          schema:
            type: string
        - 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
            default: hr
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - close: 83622.17
                          exchange: gdax
                          high: 86491.4
                          low: 83592.77
                          netBuyTradeCount: 64529
                          netBuyVolumeCoin: 2.5356237300000544
                          netBuyVolumeUsd: 516634.4543056437
                          open: 84590.37
                          orderSizeCategoryUsd: All
                          pair: btc_usd
                          timestamp: 2025-04-15 00:00:00 000
                          totalVolumeCoin: 6461.770244209999
                          totalVolumeUsd: 549390273.3037565
                        - close: 83603.53
                          exchange: gdax
                          high: 83622.52
                          low: 83593.72
                          netBuyTradeCount: -20
                          netBuyVolumeCoin: -2.2689633999999996
                          netBuyVolumeUsd: -189697.15606547246
                          open: 83610.81
                          orderSizeCategoryUsd: All
                          pair: btc_usd
                          timestamp: 2025-04-16 00:00:00 000
                          totalVolumeCoin: 5.332700320000002
                          totalVolumeUsd: 445841.5172556046
                      metadata:
                        api-version: '2023-09-30'
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            close:
                              type: number
                              example: 83622.17
                              description: The time interval closing price
                            exchange:
                              type: string
                              example: gdax
                              description: >-
                                The subject exchange used for calculating trade
                                pressure
                            high:
                              type: number
                              example: 86491.4
                              description: The time interval high price
                            low:
                              type: number
                              example: 83592.77
                              description: The time interval low price
                            netBuyTradeCount:
                              type: integer
                              example: 64529
                              description: >-
                                The buy order count minus sell order count. Buy
                                and sell counts are measured by aggressor
                                behaviour
                            netBuyVolumeCoin:
                              type: number
                              example: 2.5356237300000544
                              description: >-
                                The buy order volume minus sell order volume in
                                coin (base) terms. Buy and sell counts are
                                measured by aggressor behaviour
                            netBuyVolumeUsd:
                              type: number
                              example: 516634.4543056437
                              escription: >-
                                The buy order volume minus sell order volume in
                                USD (quote) terms. Buy and sell counts are
                                measured by aggressor behaviour. Note some pairs
                                may note be quoted in USD, in that case, quote
                                currency
                            open:
                              type: number
                              example: 84590.37
                              description: The time interval open price
                            orderSizeCategoryUsd:
                              type: string
                              example: All
                              description: >-
                                The trade size threshold in quote terms (often
                                USD) used for the calculation
                            pair:
                              type: string
                              example: btc_usd
                              description: The pair used for the calculation
                            timestamp:
                              type: string
                              example: 2025-04-15 00:00:00 000
                              description: The timestamp used for the calculation
                            totalVolumeCoin:
                              type: number
                              example: 6461.770244209999
                              description: >-
                                The total base (often crypto) volume used for
                                the calculation
                            totalVolumeUsd:
                              type: number
                              example: 549390273.3037565
                              description: >-
                                The total quote (often USD) volume used for the
                                calculation
                      metadata:
                        type: object
                        properties:
                          api-version:
                            type: string
                            example: '2023-09-30'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````