90trust / 100

Analytics Cost To Quote

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 3 h ago

Deepstate, the on-chain order-book exchange on Robinhood Chain. Gas spent resting and cancelling orders for a market.

GET https://api.onesource.io/deepstate/v1/analytics/cost-to-quote

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
129 ms typical, 129 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/cost-to-quote?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%2Fcost-to-quote
const res = await pay("https://api.onesource.io/deepstate/v1/analytics/cost-to-quote?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",
  "buckets": [
    {
      "bucket": "2026-09-02T14:00:00Z",
      "cancels": 198,
      "l1_fee_raw": "9186100000000000",
      "l1_share_pct": 18.75,
      "market_session": "regular",
      "median_fee_raw": "118000000000000",
      "rests": 219,
      "total_fee_raw": "48973600000000000",
      "tx_count": 402
    }
  ],
  "from": "2026-09-02T14:00:00Z",
  "resolution": "1h",
  "to": "2026-09-02T16:00:00Z",
  "totals": {
    "cancels": 385,
    "l1_fee_raw": "19018200000000000",
    "l1_share_pct": 18.99,
    "median_fee_raw": "119700000000000",
    "rests": 427,
    "total_fee_raw": "100178400000000000",
    "tx_count": 790
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402129 ms$0.02