# DopamineDesk Crypto Candles API

> DopamineDesk Crypto Candles API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns daily OHLC-style price candles for a cryptocurrency ticker sourced from CoinGecko via x402 pay-per-use settlement.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/candles
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-crypto-candles-api-97cd0489
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WwuKBMZ64kQMikMq_QK0R

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 dopaminedesk-crypto-candles-api-97cd0489
```

Example prompt: Can you pull the daily price candles for bitcoin from CoinGecko so I can see recent price intervals?

## When to prefer this

Choose this endpoint when you need structured daily candlestick price data for major cryptocurrencies (BTC, ETH, SOL, and other CoinGecko-supported coins) via a pay-per-use x402 USDC model without requiring a CoinGecko API key or subscription.

## Known failure modes

- Invalid or unrecognized ticker returns an error or empty candles array
- Missing required query parameter 'ticker' may result in a bad request response
- CoinGecko upstream unavailability could cause a failed or stale response
- Payment failure via x402 USDC settlement blocks the request entirely

## How this service works

Fetch recent cryptocurrency USD daily OHLCV candles from Coinbase Exchange, with CoinGecko fallback coverage.

## Output

Returns a JSON object containing success status, the data source ('CoinGecko'), and a data object with the ticker name, interval (e.g. '1d'), and an array of candle objects each containing a timestamp and price 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",
     "properties": {
      "ticker": {
       "type": "string",
       "description": "CoinGecko coin ID or supported alias such as bitcoin, btc, ethereum, eth, solana, or sol."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "data",
      "marketplace_metadata"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "ticker",
        "product_id",
        "interval",
        "candles"
       ],
       "properties": {
        "ticker": {
         "type": "string"
        },
        "candles": {
         "type": "array",
         "items": {
          "type": "object"
         }
        },
        "interval": {
         "type": "string"
        },
        "product_id": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "source": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "marketplace_metadata": {
       "type": "object",
       "required": [
        "data_mode",
        "billable",
        "availability",
        "source"
       ],
       "properties": {
        "source": {
         "type": "string"
        },
        "billable": {
         "type": "boolean"
        },
        "data_mode": {
         "type": "string"
        },
        "availability": {
         "type": "string"
        }
       },
       "additionalProperties": true
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "ticker": "bitcoin",
   "candles": [
    {
     "low": "62210.14",
     "high": "64032.43",
     "open": "63499.49",
     "close": "63466.51",
     "price": "63466.51",
     "volume": 7086.70328594,
     "timestamp": "2026-08-03T00:00:00.000Z"
    },
    {
     "low": "63250.00",
     "high": "64497.24",
     "open": "63466.51",
     "close": "64050.51",
     "price": "64050.51",
     "volume": 6227.77436334,
     "timestamp": "2026-08-04T00:00:00.000Z"
    }
   ],
   "interval": "1d",
   "product_id": "BTC-USD"
  },
  "source": "Coinbase Exchange API",
  "success": true,
  "marketplace_metadata": {
   "source": "Coinbase Exchange candles API with CoinGecko fallback",
   "billable": true,
   "data_mode": "live_source",
   "availability": "operational"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-crypto-candles-api-97cd0489/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
