# ETH BTC Ratio

> ETH BTC Ratio is a paid API for AI agents from earn-pulse.haiqingm58.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current ETH/BTC price ratio derived from Hyperliquid mark prices

## Facts

- Endpoint: GET https://earn-pulse.haiqingm58.workers.dev/ratio
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eth-btc-ratio-8de4824b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ASaipbMPxTwK-pt5nnHTh

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 eth-btc-ratio-8de4824b
```

Example prompt: What's the current ETH/BTC ratio from Hyperliquid mark prices?

## When to prefer this

Use this endpoint when you need a single clean ETH/BTC ratio derived from Hyperliquid's perpetuals mark prices rather than spot exchange prices. Prefer this over general crypto price APIs when your workflow is already integrated with Hyperliquid data (e.g., alongside HL Mark or HL Tape endpoints) or when you want a derivatives-market perspective on ETH/BTC relative value.

## Known failure modes

- Hyperliquid mark price feed unavailable — returns error or stale data
- Network timeout to the Cloudflare Worker — HTTP 5xx response
- Payment not processed correctly — HTTP 402 response requiring x402 payment
- Unexpected response format if upstream Hyperliquid API changes

## How this service works

ETH/BTC ratio from Hyperliquid marks. No parameters.

## Output

A numeric ETH/BTC ratio computed from Hyperliquid's mark prices for ETH and BTC, representing how much BTC one ETH is currently worth in the perpetuals market.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eth-btc-ratio-8de4824b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from earn-pulse.haiqingm58.workers.dev](https://www.zero.xyz/host/earn-pulse.haiqingm58.workers.dev/llms.txt)
