> ## 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 Taker Buy Sell Volume Data

> **Feature Overview**
[OpenAPI JSON Spec](/docs/output/v1_crypto_taker-buy-sell-volume_get.json)
Get taker buy sell volume data for a specific trading pair symbol with optional time range filtering.

**Main Use Cases**
- **Market Sentiment Analysis**: Track the ratio of taker buy to sell volume over time
- **Trading Strategy**: Use buy/sell volume ratio as a market sentiment indicator
- **Risk Management**: Monitor extreme buying or selling pressure in the market
- **Technical Analysis**: Combine with price action for comprehensive analysis

**Query Parameters & Logic**

**Required Parameters:**
- `symbol`: Trading pair symbol (e.g., BTCUSDT)
- `period`: Data period (currently only supports `1d`)

**Optional Parameters:**
- `start_time`: Start timestamp (Unix seconds) - if not provided, returns recent data
- `end_time`: End timestamp (Unix seconds) - if not provided, returns up to current time
- `limit`: Maximum number of results to return (1-500, default: 30)

**Supported Periods:**
- `1d`: 1-day intervals

**Validation Rules:**
- Symbol is required and must be a valid trading pair
- If both start_time and end_time are provided, start_time must be before end_time
- Period must be `1d`
- Limit range: 1-500, default is 30

**Response Data Structure**

- `data` ([]TakerBuySellVolumeData): Array of taker buy sell volume data points (latest first, reverse chronological order)
- `count` (int32): Actual number of data points returned (0-1000)

**TakerBuySellVolumeData fields:**
- `buy_vol` (string): Taker buy volume in string format
- `sell_vol` (string): Taker sell volume in string format
- `buy_sell_ratio` (string): Buy/Sell ratio in string format (e.g., "1.5" means buy volume is 1.5x sell volume)
- `timestamp` (string): Unix timestamp in seconds as string (e.g., "1763978100")

**Data Interpretation:**
- buySellRatio > 1.0: More buying pressure (bullish sentiment)
- buySellRatio = 1.0: Equal buy and sell volume (neutral)
- buySellRatio < 1.0: More selling pressure (bearish sentiment)

**Usage Examples**

1. **Get latest 5 data points**: `?symbol=BTCUSDT&period=1d&limit=5`
2. **Get latest 100 data points**: `?symbol=BTCUSDT&period=1d&limit=100`
3. **Get data for specific time range**: `?symbol=BTCUSDT&start_time=1733270400&end_time=1733356800&period=1d&limit=200`
4. **Get maximum data points**: `?symbol=ETHUSDT&period=1d&limit=500`

**Important Notes**

- If start_time and end_time are not provided, returns the most recent data
- Results are ordered by timestamp in descending order (latest first)
- Higher buy/sell ratio indicates more bullish sentiment
- Data is provided in 1-day intervals



## OpenAPI

````yaml /api-reference/openapi.json get /v1/crypto/taker-buy-sell-volume
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/taker-buy-sell-volume:
    get:
      tags:
        - Crypto
      summary: Get Taker Buy Sell Volume Data
      description: >-
        **Feature Overview**

        [OpenAPI JSON
        Spec](/docs/output/v1_crypto_taker-buy-sell-volume_get.json)

        Get taker buy sell volume data for a specific trading pair symbol with
        optional time range filtering.


        **Main Use Cases**

        - **Market Sentiment Analysis**: Track the ratio of taker buy to sell
        volume over time

        - **Trading Strategy**: Use buy/sell volume ratio as a market sentiment
        indicator

        - **Risk Management**: Monitor extreme buying or selling pressure in the
        market

        - **Technical Analysis**: Combine with price action for comprehensive
        analysis


        **Query Parameters & Logic**


        **Required Parameters:**

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

        - `period`: Data period (currently only supports `1d`)


        **Optional Parameters:**

        - `start_time`: Start timestamp (Unix seconds) - if not provided,
        returns recent data

        - `end_time`: End timestamp (Unix seconds) - if not provided, returns up
        to current time

        - `limit`: Maximum number of results to return (1-500, default: 30)


        **Supported Periods:**

        - `1d`: 1-day intervals


        **Validation Rules:**

        - Symbol is required and must be a valid trading pair

        - If both start_time and end_time are provided, start_time must be
        before end_time

        - Period must be `1d`

        - Limit range: 1-500, default is 30


        **Response Data Structure**


        - `data` ([]TakerBuySellVolumeData): Array of taker buy sell volume data
        points (latest first, reverse chronological order)

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


        **TakerBuySellVolumeData fields:**

        - `buy_vol` (string): Taker buy volume in string format

        - `sell_vol` (string): Taker sell volume in string format

        - `buy_sell_ratio` (string): Buy/Sell ratio in string format (e.g.,
        "1.5" means buy volume is 1.5x sell volume)

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


        **Data Interpretation:**

        - buySellRatio > 1.0: More buying pressure (bullish sentiment)

        - buySellRatio = 1.0: Equal buy and sell volume (neutral)

        - buySellRatio < 1.0: More selling pressure (bearish sentiment)


        **Usage Examples**


        1. **Get latest 5 data points**: `?symbol=BTCUSDT&period=1d&limit=5`

        2. **Get latest 100 data points**: `?symbol=BTCUSDT&period=1d&limit=100`

        3. **Get data for specific time range**:
        `?symbol=BTCUSDT&start_time=1733270400&end_time=1733356800&period=1d&limit=200`

        4. **Get maximum data points**: `?symbol=ETHUSDT&period=1d&limit=500`


        **Important Notes**


        - If start_time and end_time are not provided, returns the most recent
        data

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

        - Higher buy/sell ratio indicates more bullish sentiment

        - Data is provided in 1-day intervals
      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: 'Time interval (only 1d supported, default: 1d)'
          in: query
          name: interval
          schema:
            type: string
            enum:
              - 1d
            default: 1d
        - description: 'Exchange name (only binance supported, default: binance)'
          in: query
          name: exchange
          schema:
            type: string
            enum:
              - binance
            default: binance
      responses:
        '200':
          description: Successfully returns taker buy sell volume data
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.TakerBuySellVolumeData'
                        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.TakerBuySellVolumeData:
      properties:
        buy_sell_ratio:
          description: 买卖比率
          type: number
        buy_vol:
          description: 买入成交量
          type: number
        sell_vol:
          description: 卖出成交量
          type: number
        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

````