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

# Get quotes for markets

> Authorization is optional: without a valid session, quotes are returned with `liquidationPrice` set to null.



## OpenAPI

````yaml https://vooi-api-app.fly.dev/swagger/json get /exchange/quotes
openapi: 3.1.0
info:
  title: VOOI API
  description: Unified perps API
  version: '1.0'
  contact: {}
servers:
  - url: https://perps-api.vooi.io
security: []
tags: []
paths:
  /exchange/quotes:
    get:
      tags:
        - Exchange
      summary: Get quotes for markets
      description: >-
        Authorization is optional: without a valid session, quotes are returned
        with `liquidationPrice` set to null.
      operationId: ExchangeController_getQuotes
      parameters:
        - name: asset
          required: true
          in: query
          schema:
            type: string
            minLength: 1
            example: ETH
          description: >-
            Asset identifier: a base symbol (e.g. `ETH`), a full pair (e.g.
            `ETHUSDC`), or a common short name (e.g. `gold`, `sp500`,
            `1000pepe`) for cross-venue lookup. Tickers vary across venues for
            the same underlying — if you only have a common name, pass it as
            lowercase with no spaces or punctuation. Look up an unfamiliar
            market with `get_markets({ query: "<name>" })` first if needed.
        - name: exchanges
          required: false
          in: query
          schema:
            anyOf:
              - type: string
                enum:
                  - aster
                  - binance
                  - bybit
                  - extended
                  - gate
                  - hyperliquid
                  - lighter
                  - mexc
                  - ondo
                  - robinhood
                description: Supported perpetual exchange
              - type: array
                items:
                  type: string
                  enum:
                    - aster
                    - binance
                    - bybit
                    - extended
                    - gate
                    - hyperliquid
                    - lighter
                    - mexc
                    - ondo
                    - robinhood
                  description: Supported perpetual exchange
          description: One or more exchanges to get quotes from
        - name: leverage
          required: true
          in: query
          schema:
            example: '10'
            type: string
            pattern: \d+(\.\d+)?
          description: >-
            Leverage multiplier used to estimate the liquidation price for
            isolated margin positions.
        - name: marginMode
          required: false
          in: query
          schema:
            default: cross
            type: string
            enum:
              - cross
              - isolated
          description: >-
            Margin mode used to estimate the liquidation price. Defaults to
            cross.
        - name: quoteSize
          required: true
          in: query
          schema:
            example: '1000.00'
            type: string
            pattern: \d+(\.\d+)?
          description: Order size in quote currency (USD)
        - name: side
          required: true
          in: query
          schema:
            type: string
            enum:
              - buy
              - sell
          description: 'Order side: buy (long) or sell (short)'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GetQuotesDto'
        '503':
          description: ExchangeApiError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDTO'
      security:
        - bearer: []
components:
  schemas:
    GetQuotesDto:
      type: object
      properties:
        exchange:
          type: string
          enum:
            - aster
            - binance
            - bybit
            - extended
            - gate
            - hyperliquid
            - lighter
            - mexc
            - ondo
            - robinhood
          description: Perpetual exchange
        quote:
          anyOf:
            - type: object
              properties:
                averageExecutionPrice:
                  type: string
                  description: Average execution price in quote currency
                  example: '1850.50'
                baseSize:
                  type: string
                  description: Estimated size of the received base tokens
                  example: '0.001'
                baseSymbol:
                  type: string
                  description: Base asset symbol
                  example: ETH
                feesBps:
                  type: string
                  description: Trading fees in bps
                  example: '4.5'
                fundingRateBps:
                  type: string
                  description: Current hourly funding rate for the market in bps
                  example: '0.12'
                liquidationPrice:
                  description: >-
                    Estimated liquidation price in quote currency. Always null
                    when the request is not authorized.
                  example: '1650.25'
                  type:
                    - string
                    - 'null'
                nextFundingTime:
                  description: Next funding settlement time
                  example: '2025-01-15T12:00:00.000Z'
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                quoteSymbol:
                  type: string
                  description: Quote currency symbol
                  example: USDC
                slippageBps:
                  type: string
                  description: Estimated slippage in bps
                  example: '1.2'
              required:
                - averageExecutionPrice
                - baseSize
                - baseSymbol
                - feesBps
                - fundingRateBps
                - liquidationPrice
                - nextFundingTime
                - quoteSymbol
                - slippageBps
              title: Quote
            - type: 'null'
          description: Quote result or null if unavailable
      required:
        - exchange
        - quote
      title: GetQuotesItem
    ErrorResponseDTO:
      type: object
      properties:
        message:
          type: string
          example: 'Invalid order id: 123'
        statusCode:
          example: 503
          type: number
      required:
        - message
      title: ErrorResponse
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.