# Losbeto Pyth Price Feed

> Losbeto Pyth Price Feed is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Fetches real-time asset price data from the Pyth Network oracle for use in AI trading and DeFi applications.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/pyth-price
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-pyth-price-feed-081424a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4_QBmSDHoURXeW0tPcbhK

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 losbeto-pyth-price-feed-081424a6
```

Example prompt: What is the current Pyth Network price for SOL/USD right now? I need the live oracle price for my trading bot.

## When to prefer this

Choose this endpoint when you need real-time, oracle-grade crypto asset prices sourced directly from the Pyth Network, especially for Solana-ecosystem or Base-chain DeFi applications requiring sub-cent micropayment access. Prefer over CoinGecko or exchange APIs when you need decentralized, manipulation-resistant price feeds for on-chain use cases.

## Known failure modes

- Unknown or unsupported asset symbol returns an error or empty response
- Pyth Network oracle downtime may result in stale or unavailable price data
- Malformed or missing query parameters may return a 400-level error
- Payment failure via x402 USDC micropayment results in 402 response blocking data access

## How this service works

Losbeto: 67 endpoints x402 monetizados. Solana + Base. USDC micropayments para AI agents. Preços a partir de $0.003.

## Output

Returns a JSON object containing the current asset price from the Pyth Network oracle, typically including the price value, confidence interval, and timestamp of the price feed update.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string",
       "description": "Response format (json)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Real-time SOL/USD from the Pyth Network oracle with its confidence interval and publish slot. Sub-second freshness, straight from the on-chain price account. [Wrapper over a free public source (https://hermes.pyth.network (public, free)) — you pay for one schema, one payment rail, signed receipts and monitored uptime.]"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": 1785019396,
  "source": "Pyth Network",
  "symbol": "SOL",
  "provider": "Losbeto/Pyth",
  "price_usd": 74.330076,
  "confidence": 0.035062
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-pyth-price-feed-081424a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
