# OneSource TSR Bid Decision API

> OneSource TSR Bid Decision API is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-18).

Returns a composite bid decision for acquiring STANDARD token licenses on The Standard Reserve (TSR) protocol on Robinhood Chain, including queue position, price crossing state, and fill execution details.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/decisions/bid?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-tsr-bid-decision-api-7698cbdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kou2fdCqDri4ACy4MgLNj

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 onesource-tsr-bid-decision-api-7698cbdf
```

Example prompt: Check the TSR bid decision for charter 471 — I'm willing to pay up to 5000 STANDARD tokens per license and want to know if 1 license will cross at today's price or if I need to wait until tomorrow.

## When to prefer this

Use this endpoint when you need a pre-bid decision composite for The Standard Reserve (TSR) on Robinhood Chain — specifically to evaluate queue position, price crossing state, and daily supply before committing to a bid transaction. Prefer this over raw RPC reads when you want aggregated, decision-ready analytics rather than raw blockchain state.

## Known failure modes

- Missing required max_unit_price parameter returns validation error
- Invalid charter_id (non-existent or negative) may return empty or error response
- count exceeding maximum of 3 returns schema validation failure
- On-chain data unavailability or RPC node lag may return stale or error response
- Payment failure via x402 or MPP returns 402 Payment Required

## How this service works

Three data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics), plus The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain (supply, policy, epochs, auctions, branches, vaults, exit pressure). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.

## Output

A composite JSON object including: current auction price, bid queue stats (bids and licenses ahead, supply remaining today), crossing state (immediate vs next-day, timestamp), charter-specific headroom and pending bid details, fill execution history and permissionless fill flag, assumptions list, and block/timestamp references. Provides a full decision surface for whether and when to place a bid.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "max_unit_price"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "default": 1,
       "maximum": 3,
       "minimum": 1
      },
      "charter_id": {
       "type": "integer",
       "minimum": 0
      },
      "max_unit_price": {
       "type": "string",
       "pattern": "^[0-9]+(\\.[0-9]{1,18})?$",
       "description": "the ceiling per license, in whole STANDARD tokens as a decimal string, up to 18 decimal places"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "basis": {
       "type": "string"
      },
      "parts": {
       "type": "object"
      },
      "queue": {
       "type": "object"
      },
      "inputs": {
       "type": "object"
      },
      "network": {
       "type": "string"
      },
      "summary": {
       "type": "object"
      },
      "as_of_ts": {
       "type": "string"
      },
      "chain_id": {
       "type": "integer"
      },
      "crossing": {
       "type": "object"
      },
      "as_of_basis": {
       "type": "string"
      },
      "as_of_block": {
       "type": "integer"
      },
      "assumptions": {
       "type": "array"
      },
      "this_charter": {
       "type": "object"
      },
      "fill_execution": {
       "type": "object"
      },
      "parts_as_of_blocks": {
       "type": "object"
      }
     },
     "description": "Endpoint-specific response payload"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": "decision_composite",
  "parts": {
   "bid_book": {
    "data": {
     "book": {
      "daily_supply": 40,
      "open_bid_count": 115,
      "remaining_today": 0
     },
     "basis": "measured"
    },
    "status": "ok"
   },
   "auctions_current": {
    "data": {
     "license": {
      "daily_supply": 40,
      "price_now_raw": "4353175572757758380883"
     }
    },
    "status": "ok"
   },
   "license_headroom": {
    "data": {
     "charter_id": 471,
     "remaining_in_window_raw": "3"
    },
    "status": "ok"
   }
  },
  "queue": {
   "basis": "derived",
   "ahead_bids": 78,
   "ahead_licenses": 90,
   "remaining_today": 0,
   "supply_left_at_crossing": 0,
   "licenses_ahead_beyond_supply": 90,
   "supply_left_at_next_day_crossing": 0,
   "licenses_ahead_beyond_next_day_supply": 50
  },
  "inputs": {
   "count": 1,
   "charter_id": 471,
   "max_unit_price": "5000",
   "max_unit_price_raw": "5000000000000000000000"
  },
  "network": "robinhood",
  "summary": {
   "count": 1,
   "ahead_bids": 78,
   "price_now_raw": "4353175572757758380883",
   "ahead_licenses": 90,
   "crossing_state": "at_or_below_now",
   "remaining_today": 0,
   "max_unit_price_raw": "5000000000000000000000",
   "supply_left_at_crossing": 0,
   "window_cap_covers_count": true,
   "pending_covers_cost_at_max": true,
   "licenses_ahead_beyond_supply": 90,
   "existing_bid_would_be_replaced": true
  },
  "as_of_ts": "2026-10-03T03:32:04Z",
  "chain_id": 4663,
  "crossing": {
   "basis": "derived",
   "state": "at_or_below_now",
   "next_day": {
    "state": "next_day",
    "crosses_at_ts": "2026-10-03T15:03:54Z",
    "seconds_until": 41510
   },
   "seconds_until": 0,
   "price_at_crossing_raw": "4353175572757758380883"
  },
  "as_of_basis": "bid_book",
  "as_of_block": 78769048,
  "assumptions": [
   "A fill is a separate transaction that anyone may send; this response cannot say…"
  ],
  "this_charter": {
   "basis": "measured",
   "available": true,
   "charter_id": 471,
   "pending_raw": "8280964996814257449315",
   "existing_bid": {
    "count": 3,
    "max_unit_price_raw": "8500000000000000000000"
   },
   "window_cap_covers_count": true,
   "pending_covers_cost_at_max": true
  },
  "fill_execution": {
   "fill_history": {
    "basis": "measured",
    "last_fill_at": "2026-10-03T01:31:23Z",
    "fills_to_date": 125,
    "distinct_fillers": 1
   },
   "fill_is_permissionless": true,
   "ordering_enforced_on_chain": false
  },
  "parts
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-tsr-bid-decision-api-7698cbdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
