O

Onesource · Deepstate Stats

by Onesource

GETBase

$0.005

per call · USD Coin on Base

Deepstate, the on-chain order-book exchange on Robinhood Chain. Rolling 24h / 7d / 30d volume and price change for a market.

Endpoint

GET https://api.onesource.io/deepstate/v1/stats/:book

50

Calls / 30d

29

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.onesource.io/deepstate/v1/stats/:book", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.onesource.io/deepstate/v1/stats/:book" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "base_token": {
    "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
    "decimals": 18,
    "symbol": "NVDA"
  },
  "block_number": 52685677,
  "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
  "book_label": "NVDA/USDG",
  "book_slug": "NVDA-USDG",
  "finality": "head",
  "last_price": 216.48219249,
  "last_price_raw": "216.48219249",
  "market_session": "regular",
  "quote_token": {
    "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "decimals": 6,
    "symbol": "USDG"
  },
  "windows": {
    "24h": {
      "change_pct": -1.82,
      "high_raw": "220.47999716",
      "low_raw": "215.70112004",
      "trades": 24,
      "volume_quote": 500000,
      "volume_quote_raw": "500000000000",
      "vwap_raw": "217.90441002"
    },
    "30d": {
      "change_pct": 8.77,
      "high_raw": "241.72004112",
      "low_raw": "198.03118022",
      "trades": 402,
      "volume_quote": 141900000,
      "volume_quote_raw": "141900000000000",
      "vwap_raw": "221.44120038"
    },
    "7d": {
      "change_pct": 2.41,
      "high_raw": "229.11004221",
      "low_raw": "210.44032118",
      "trades": 171,
      "volume_quote": 19800000,
      "volume_quote_raw": "19800000000000",
      "vwap_raw": "219.03881204"
    }
  }
}

Payment details

Pay to0x52e29e0d2aa49bfbfc548c0a9f2196f4aa51f3ea
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Onesource & similar services