81trust / 100

Market Orderbook

by dt0ur.online in Markets & finance

x402 APIPassing, checked 50 min ago

Live order book for a Coinbase spot pair: best bid/ask, mid price, spread in bps, USD liquidity within 1% of mid on each side, and the top bid/ask levels (up to 50). Useful for slippage and execution checks.

POST https://dt0ur.online/api/market/orderbook

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
264 ms typical, 264 ms slowest 5%
Last check
50 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/market/orderbook" \
  -H "content-type: application/json" \
  -d '{"depth":2,"product":"ETH-USD"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdt0ur.online%2Fapi%2Fmarket%2Forderbook
const res = await pay("https://dt0ur.online/api/market/orderbook", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"depth":2,"product":"ETH-USD"}),
});
console.log(await res.json());

Example input

{
  "depth": 2,
  "product": "ETH-USD"
}

Example output

{
  "ask_depth_1pct_usd": 532652,
  "asks": [
    {
      "price": 2751.32,
      "size": 0.11012407
    },
    {
      "price": 2751.56,
      "size": 0.50420025
    }
  ],
  "best_ask": 2751.32,
  "best_bid": 2751.31,
  "bid_depth_1pct_usd": 550067,
  "bids": [
    {
      "price": 2751.31,
      "size": 0.74956691
    },
    {
      "price": 2751.29,
      "size": 0.54455653
    }
  ],
  "depth_note": "Depth sums only the levels fetched (up to 50 per side).",
  "mid": 2751.315,
  "product": "ETH-USD",
  "source": "coinbase",
  "spread": 0.01,
  "spread_bps": 0.036,
  "time": "2026-09-22T18:08:45.476474Z"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
50 min agoPassed402309 ms$0.01
6 h agoPassed402264 ms$0.01