# Quartermaster Token Price API

> Quartermaster Token Price API is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current USD price for major crypto tokens by symbol or any Base ERC-20 by contract address, with automatic source failover.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-token-price-api-04047bf5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5QiTCGcyJQrzcMm7wkmRG

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 quartermaster-token-price-api-04047bf5
```

Example prompt: What's the current USD price of ETH? Also check the price for the Base ERC-20 token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.

## When to prefer this

Use this endpoint when you need a quick, reliable USD price for a major crypto token (ETH, BTC, SOL, USDC, etc.) or any ERC-20 token deployed on Base, especially when you need source failover reliability and are already operating within the x402/Bazaar ecosystem. Prefer this over general-purpose price APIs when working with Base-native ERC-20 tokens by contract address.

## Known failure modes

- Unknown token symbol returns an error or null price
- Invalid or non-Base contract address returns an error
- Token with no price feed available returns an error
- All price sources are unavailable triggers failover exhaustion error
- Malformed query parameter returns 400-level error

## How this service works

USD price for major tokens by symbol or any Base ERC-20 by contract address, with source failover.

## Output

A USD price value for the requested token, sourced from multiple providers with automatic failover if one source is unavailable. Returns the current market price as a numeric value.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Symbol (eth, btc, usdc, sol, ...) or a Base ERC-20 contract address"
      }
     }
    }
   },
   "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/quartermaster-token-price-api-04047bf5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
