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

> Get current prices for specified trading pairs from a connector.

Args:
    request: Price request with connector name and trading pairs
    market_data_manager: Injected market data feed manager
    
Returns:
    Current prices for the specified trading pairs
    
Raises:
    HTTPException: 500 if there's an error fetching prices



## OpenAPI

````yaml /api-reference/openapi.json post /market-data/prices
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/prices:
    post:
      tags:
        - Market Data
      summary: Get Prices
      description: |-
        Get current prices for specified trading pairs from a connector.

        Args:
            request: Price request with connector name and trading pairs
            market_data_manager: Injected market data feed manager
            
        Returns:
            Current prices for the specified trading pairs
            
        Raises:
            HTTPException: 500 if there's an error fetching prices
      operationId: get_prices_market_data_prices_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PriceRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    PriceRequest:
      properties:
        connector_name:
          type: string
          title: Connector Name
          description: Name of the connector
        trading_pairs:
          items:
            type: string
          type: array
          title: Trading Pairs
          description: List of trading pairs to get prices for
      type: object
      required:
        - connector_name
        - trading_pairs
      title: PriceRequest
      description: Request model for getting prices
    PricesResponse:
      properties:
        connector:
          type: string
          title: Connector
          description: Connector name
        prices:
          additionalProperties:
            type: number
          type: object
          title: Prices
          description: Trading pair to price mapping
        timestamp:
          type: number
          title: Timestamp
          description: Response timestamp
      type: object
      required:
        - connector
        - prices
        - timestamp
      title: PricesResponse
      description: Response for prices data
    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

````