90trust / 100

Analytics Depth History

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 3 h ago

Deepstate, the on-chain order-book exchange on Robinhood Chain. Depth heatmap - resting order size by price level over time for a market.

GET https://api.onesource.io/deepstate/v1/analytics/depth-history

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
148 ms typical, 148 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.onesource.io/deepstate/v1/analytics/depth-history?book=NVDA-USDG"
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.onesource.io%2Fdeepstate%2Fv1%2Fanalytics%2Fdepth-history
const res = await pay("https://api.onesource.io/deepstate/v1/analytics/depth-history?book=NVDA-USDG");
console.log(await res.json());

Example input

{
  "book": "NVDA-USDG"
}

Example output

{
  "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
  "book_label": "NVDA/USDG",
  "book_slug": "NVDA-USDG",
  "coverage": {
    "denominated_order_count": 129,
    "order_count": 253
  },
  "from": "2026-09-02T15:00:00Z",
  "points": [
    {
      "block_number": 52661600,
      "bucket": "2026-09-02T15:00:00Z",
      "denominated_order_count": 4,
      "finality": "safe",
      "market_session": "regular",
      "order_count": 4,
      "price_raw": "216.480000000000000000",
      "side": "bid",
      "size_raw": "5213000000"
    },
    {
      "block_number": 52661600,
      "bucket": "2026-09-02T15:00:00Z",
      "denominated_order_count": 0,
      "finality": "safe",
      "market_session": "regular",
      "order_count": 3,
      "price_raw": "220.480000000000000000",
      "side": "ask"
    }
  ],
  "resolution": "1h",
  "size_token": {
    "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "decimals": 6,
    "symbol": "USDG"
  },
  "to": "2026-09-02T16:00:00Z"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402148 ms$0.02