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

# Get Rates

> Resolve cross-rates for trading pairs from the collected ticker pool.

Rates are resolved via direct, reverse or bridged paths. When ``connector`` is set, only
that exchange's tickers are used; otherwise the merged multi-exchange pool is used.



## OpenAPI

````yaml /api-reference/openapi.json post /market-data/rates
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /market-data/rates:
    post:
      tags:
        - Market Data
      summary: Get Rates
      description: >-
        Resolve cross-rates for trading pairs from the collected ticker pool.


        Rates are resolved via direct, reverse or bridged paths. When
        ``connector`` is set, only

        that exchange's tickers are used; otherwise the merged multi-exchange
        pool is used.
      operationId: get_rates_market_data_rates_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RatesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    RateRequest:
      properties:
        trading_pairs:
          items:
            type: string
          type: array
          title: Trading Pairs
          description: Trading pairs to price (e.g., ['BTC-USDT', 'ETH-USDT'])
        connector:
          anyOf:
            - type: string
            - type: 'null'
          title: Connector
          description: If set, resolve rates using only this connector's tickers
      type: object
      required:
        - trading_pairs
      title: RateRequest
      description: Request for cross-rates from the ticker pool.
    RatesResponse:
      properties:
        quote_token:
          type: string
          title: Quote Token
          description: Configured global quote token
        connector:
          anyOf:
            - type: string
            - type: 'null'
          title: Connector
          description: Connector used, if scoped
        rates:
          additionalProperties:
            anyOf:
              - type: number
              - type: 'null'
          type: object
          title: Rates
          description: Trading pair to rate mapping (None if not resolvable)
      type: object
      required:
        - quote_token
        - rates
      title: RatesResponse
      description: Cross-rates for the requested trading pairs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````