# Phemex Ticker Data

> Phemex Ticker Data is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches real-time 24-hour ticker and derivatives data for a given Phemex contract symbol, including price, volume, funding rate, and open interest.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/finance/phemex-tickers?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phemex-ticker-data-77e4f680
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0MWN7sLNnsa13PLowzWNx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability phemex-ticker-data-77e4f680
```

Example prompt: What's the current mark price, funding rate, and 24-hour volume for BTCUSDT on Phemex right now?

## When to prefer this

Choose this endpoint when you need real-time Phemex-specific derivatives data including funding rates, open interest, mark/index prices, and 24h volume — especially for perpetual contract monitoring, funding arbitrage analysis, or position management on Phemex. Prefer over generic price feeds when Phemex-specific derivatives metrics are required.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty response
- Network timeout from upstream Phemex API causing delayed or failed response
- Symbol format mismatch (e.g. BTC-USD instead of BTCUSDT) resulting in no data
- Phemex API downtime causing unavailable data

## How this service works

Phemex perpetual-contract ticker for one symbol (e.g. BTCUSDT): last price, mark and index price, funding rate, open interest and 24h volume, from Phemex's public md/v2 endpoint.

## Output

A JSON object containing real-time ticker data for the requested Phemex contract, including last traded price, 24h open/high/low, mark price, index price, funding rate, predicted funding rate, open interest, 24h volume and turnover, and the timestamp of the data fetch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Phemex contract symbol, e.g. BTCUSDT"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "last": 81599.6,
  "open": 81756.8,
  "low24h": 80900.2,
  "source": "https://api.phemex.com/md/v2/ticker/24hr",
  "symbol": "BTCUSDT",
  "high24h": 82132.6,
  "checkedAt": "2026-10-23T09:36:18.603Z",
  "markPrice": 81603.6,
  "volume24h": 1001.634,
  "indexPrice": 81634.72386919,
  "fundingRate": 0.00006727,
  "turnover24h": 81683113.3887,
  "openInterest": 2291.7747323,
  "predictedFundingRate": 0.00006727
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phemex-ticker-data-77e4f680/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
