{
  "id": "surf.exchange.price",
  "object": "tool",
  "name": "Exchange Ticker Price",
  "summary": "Returns the real-time ticker for a trading pair.",
  "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.\n\nRaw surf#exchange/price endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.asksurf.ai/data-api/exchange/price).",
  "category": "lookup",
  "hosted_by": "Surf",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "surf",
      "name": "Surf",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "surf_exchange_price",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "pair": {
            "type": "string",
            "minLength": 1,
            "description": "Trading pair (e.g. BTC/USDT). Example: BTC/USDT."
          },
          "type": {
            "default": "spot",
            "type": "string",
            "enum": [
              "spot",
              "swap",
              "perpetual",
              "perp"
            ],
            "description": "Market type: spot for spot trading, swap/perpetual/perp for perpetual contracts. Example: spot. Defaults to \"spot\"."
          },
          "exchange": {
            "default": "binance",
            "type": "string",
            "enum": [
              "binance",
              "okx",
              "bybit",
              "bitget",
              "coinbase",
              "kraken",
              "gate",
              "htx",
              "kucoin",
              "mexc",
              "upbit",
              "bitfinex",
              "bitstamp",
              "deribit",
              "bitmex",
              "bithumb",
              "hyperliquid"
            ],
            "description": "Exchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid. Example: binance. Defaults to \"binance\"."
          }
        },
        "required": [
          "pair"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "queryParams"
    ],
    "additionalProperties": false
  },
  "kind": "endpoint"
}