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

# Market

> Retrieve a market by ID

```bash theme={null}
curl "https://api.bendbasis.com/v1/markets/15036"
```


## OpenAPI

````yaml GET /v1/markets/{market_id}
openapi: 3.1.0
info:
  title: bendbasis API
  description: Funding market and arbitrage data from bendbasis.
  version: 1.0.0-preview
servers:
  - url: https://api.bendbasis.com
security: []
tags:
  - name: Portfolio
    description: Read-only access to your portfolios and positions.
paths:
  /v1/markets/{market_id}:
    get:
      summary: Market
      description: Returns current data for one active funding market.
      operationId: getMarket
      parameters:
        - name: market_id
          in: path
          required: true
          description: Unique market ID.
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: Funding market
          headers:
            X-API-Version:
              schema:
                type: string
              example: v1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketResponse'
              example:
                data:
                  market_id: 15036
                  exchange: binance
                  symbol: BTCUSDT
                  base_asset: BTC
                  quote_asset: USDT
                  funding_interval: 8
                  funding_rate_apr:
                    live: 2.83
                    1d: 5.96
                    3d: 6.75
                    7d: 5.44
                    15d: 7.17
                    30d: 7.53
                  open_interest: 8214551820.078431
                  volume_24h: 10213075002.28
        '400':
          description: Invalid market ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '404':
          description: Market not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    MarketResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/FundingMarket'
    ValidationError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - VALIDATION_ERROR
        message:
          type: string
      example:
        code: VALIDATION_ERROR
        message: Invalid parameter
    NotFoundError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - NOT_FOUND
        message:
          type: string
      example:
        code: NOT_FOUND
        message: Funding market not found
    FundingMarket:
      type: object
      required:
        - market_id
        - exchange
        - symbol
        - base_asset
        - quote_asset
        - funding_interval
        - funding_rate_apr
        - open_interest
        - volume_24h
      properties:
        market_id:
          type: integer
        exchange:
          type: string
        symbol:
          type:
            - string
            - 'null'
        base_asset:
          type: string
        quote_asset:
          type: string
        funding_interval:
          type:
            - integer
            - 'null'
          description: Funding interval in hours.
        funding_rate_apr:
          $ref: '#/components/schemas/FundingRateApr'
        open_interest:
          type:
            - number
            - 'null'
          description: Current open interest in comparable USD or quote notional.
        volume_24h:
          type:
            - number
            - 'null'
          description: Rolling 24-hour volume in comparable USD or quote notional.
    FundingRateApr:
      type: object
      description: >-
        Annualized funding rates in percent. Each historical field uses the
        named rolling window.
      required:
        - live
        - 1d
        - 3d
        - 7d
        - 15d
        - 30d
      properties:
        live:
          type:
            - number
            - 'null'
        1d:
          type:
            - number
            - 'null'
        3d:
          type:
            - number
            - 'null'
        7d:
          type:
            - number
            - 'null'
        15d:
          type:
            - number
            - 'null'
        30d:
          type:
            - number
            - 'null'
  responses:
    RateLimited:
      description: Rate limit exceeded.

````