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

# Get quote

> Get the current price quote for a token. **Requires API key.**

Pass `inputMint` to quote a non-SOL input route (e.g. USDC → token).




## OpenAPI

````yaml openapi-spec/trading.yaml get /swap/sol/quote/{mint}
openapi: 3.0.3
info:
  title: Raze Trading API
  description: >
    Trading endpoints for Solana token swaps — quote, buy, sell, and raw
    instructions.


    Runs on port 8082.


    **Auth methods**: `Authorization: Bearer sk_...` header, `X-API-Key: sk_...`
    header, or `?apiKey=sk_...` query param.
  version: 2.0.0
servers:
  - url: https://router.raze.bot
    description: >-
      Raze global trading router — GeoDNS routes to the nearest region
      automatically
security: []
paths:
  /swap/sol/quote/{mint}:
    get:
      summary: Get quote
      description: |
        Get the current price quote for a token. **Requires API key.**

        Pass `inputMint` to quote a non-SOL input route (e.g. USDC → token).
      operationId: getQuote
      parameters:
        - name: mint
          in: path
          required: true
          schema:
            type: string
          description: Token mint address
          example: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
        - name: inputMint
          in: query
          required: false
          schema:
            type: string
          description: Input token mint for non-SOL routes. Omit for SOL → token quotes.
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        - name: slippageBps
          in: query
          required: false
          schema:
            type: integer
            default: 500
          description: Slippage tolerance in basis points
        - name: amount
          in: query
          required: false
          schema:
            type: integer
            default: 1000000000
          description: Input amount in lamports (default 1 SOL)
      responses:
        '200':
          description: Quote retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/Quote'
              examples:
                solInput:
                  summary: SOL → token quote
                  value:
                    success: true
                    data:
                      mint: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
                      avgPrice: 1.2453e-8
                      amountIn: 1000000000
                      amountOut: 400000000
                      platform: Raydium
                      pool: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
                      timeTaken: 0.045
        '404':
          description: Token not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    Quote:
      type: object
      description: Quote result
      properties:
        mint:
          type: string
          example: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
        avgPrice:
          type: number
          example: 1.2453e-8
        amountIn:
          type: integer
          description: Input amount in lamports/base units
          example: 1000000000
        amountOut:
          type: integer
          description: Output amount in base units
          example: 400000000
        platform:
          type: string
          description: DEX/platform label used for the quote
          example: Raydium
        pool:
          type: string
          description: Pool address used for the quote
        timeTaken:
          type: number
          description: Time taken to fetch quote in seconds
          example: 0.045
      required:
        - mint
        - avgPrice
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        details:
          type: string
      required:
        - success
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````