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

# Ticker Price



## OpenAPI

````yaml openapi.json GET /gateway/v1/exchange/price
openapi: 3.1.0
info:
  title: Hermod
  version: 0.0.1
servers:
  - url: https://api.asksurf.ai
security: []
paths:
  /gateway/v1/exchange/price:
    get:
      tags:
        - Exchange
      summary: Exchange Ticker Price
      description: >-
        Returns the real-time ticker for a trading pair.


        **Included fields:** last price, bid/ask, 24h high/low, 24h volume, 24h
        price change.


        Set `type=swap` to query perpetual contract prices instead of spot. For
        historical price trends, use `/market/price`.
      operationId: exchange-price
      parameters:
        - description: Trading pair (e.g. BTC/USDT)
          explode: false
          in: query
          name: pair
          required: true
          schema:
            description: Trading pair (e.g. BTC/USDT)
            examples:
              - BTC/USDT
            type: string
        - description: 'Market type: spot for spot trading, swap for perpetual contracts'
          explode: false
          in: query
          name: type
          schema:
            default: spot
            description: 'Market type: spot for spot trading, swap for perpetual contracts'
            enum:
              - spot
              - swap
            examples:
              - spot
            type: string
        - description: Exchange identifier
          explode: false
          in: query
          name: exchange
          schema:
            default: binance
            description: Exchange identifier
            enum:
              - binance
              - okx
              - bybit
              - bitget
              - coinbase
              - kraken
              - gate
              - htx
              - kucoin
              - mexc
              - upbit
              - bitfinex
              - bitstamp
              - deribit
              - bitmex
              - bithumb
            examples:
              - binance
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleListResponseExchangePriceItem'
          description: OK
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataAPIError'
          description: Error
      security:
        - AccessToken: []
components:
  schemas:
    SimpleListResponseExchangePriceItem:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - >-
              https://example.com/schemas/SimpleListResponseExchangePriceItem.json
          format: uri
          readOnly: true
          type: string
        data:
          items:
            $ref: '#/components/schemas/ExchangePriceItem'
          type:
            - array
            - 'null'
        meta:
          $ref: '#/components/schemas/ObjectResponseMeta'
      required:
        - data
        - meta
      type: object
    DataAPIError:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataAPIError.json
          format: uri
          readOnly: true
          type: string
        error:
          $ref: '#/components/schemas/DataAPIErrorDetail'
      required:
        - error
      type: object
    ExchangePriceItem:
      additionalProperties: false
      properties:
        ask:
          description: Best ask price
          format: double
          type:
            - number
            - 'null'
        bid:
          description: Best bid price
          format: double
          type:
            - number
            - 'null'
        change_24h_pct:
          description: Price change percentage in 24h
          format: double
          type:
            - number
            - 'null'
        exchange:
          description: Exchange identifier like binance, okx
          type: string
        high_24h:
          description: 24h high price
          format: double
          type:
            - number
            - 'null'
        last:
          description: Last traded price
          format: double
          type:
            - number
            - 'null'
        low_24h:
          description: 24h low price
          format: double
          type:
            - number
            - 'null'
        pair:
          description: Trading pair like BTC/USDT
          type: string
        timestamp:
          description: Unix timestamp in seconds
          format: int64
          type:
            - integer
            - 'null'
        volume_24h_base:
          description: 24h trading volume in base currency units
          format: double
          type:
            - number
            - 'null'
      required:
        - exchange
        - pair
        - last
        - bid
        - ask
        - high_24h
        - low_24h
        - volume_24h_base
        - change_24h_pct
        - timestamp
      type: object
    ObjectResponseMeta:
      additionalProperties: false
      properties:
        cached:
          description: Whether this response was served from cache
          type: boolean
        credits_used:
          description: Credits deducted for this request
          format: int64
          type: integer
      required:
        - credits_used
        - cached
      type: object
    DataAPIErrorDetail:
      additionalProperties: false
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object

````