{
  "x402Version": 2,
  "id": 62,
  "slug": "62",
  "resource": "https://api.onesource.io/deepstate/v1/analytics/cost-to-quote",
  "description": "Deepstate, the on-chain order-book exchange on Robinhood Chain. Gas spent resting and cancelling orders for a market.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 3600
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "book": "NVDA-USDG"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "book": {
                    "type": "string"
                  },
                  "from": {
                    "type": "string"
                  },
                  "res": {
                    "enum": [
                      "1h",
                      "1d"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "book"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "description": "Endpoint-specific response payload",
                "properties": {
                  "book_id": {
                    "type": "string"
                  },
                  "book_label": {
                    "type": "string"
                  },
                  "book_slug": {
                    "type": "string"
                  },
                  "buckets": {
                    "items": {
                      "properties": {
                        "bucket": {
                          "type": "string"
                        },
                        "cancels": {
                          "type": "integer"
                        },
                        "l1_fee_raw": {
                          "type": "string"
                        },
                        "l1_share_pct": {
                          "type": "number"
                        },
                        "market_session": {
                          "type": "string"
                        },
                        "median_fee_raw": {
                          "type": "string"
                        },
                        "rests": {
                          "type": "integer"
                        },
                        "total_fee_raw": {
                          "type": "string"
                        },
                        "tx_count": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "from": {
                    "type": "string"
                  },
                  "resolution": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "totals": {
                    "properties": {
                      "cancels": {
                        "type": "integer"
                      },
                      "l1_fee_raw": {
                        "type": "string"
                      },
                      "l1_share_pct": {
                        "type": "number"
                      },
                      "median_fee_raw": {
                        "type": "string"
                      },
                      "rests": {
                        "type": "integer"
                      },
                      "total_fee_raw": {
                        "type": "string"
                      },
                      "tx_count": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.onesource.io",
  "lastUpdated": "2026-09-18T21:55:20.845Z",
  "quality": {
    "calls30d": 140,
    "uniquePayers30d": 140,
    "lastCalledAt": "2026-09-18T13:37:51.275Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.onesource.io",
    "manifest_name": "api.onesource.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}