90trust / 100

Deepstate Stats

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 2 h ago

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

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
277 ms typical, 277 ms slowest 5%
Last check
2 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/stats/:book"
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%2Fstats%2F%3Abook
const res = await pay("https://api.onesource.io/deepstate/v1/stats/:book");
console.log(await res.json());

Example input

{}

Example output

{
  "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"
    }
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402277 ms$0.005