{
  "x402Version": 2,
  "id": 25702,
  "slug": "25702",
  "resource": "https://api.onesource.io/deepstate/v1/trades/:book",
  "description": "Deepstate, the on-chain order-book exchange on Robinhood Chain. Trade tape for a market, newest first.",
  "type": "http",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 3600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "description": "Endpoint-specific response payload",
        "properties": {
          "base_token": {
            "properties": {
              "address": {
                "type": "string"
              },
              "decimals": {
                "type": "integer"
              },
              "symbol": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "book_id": {
            "type": "string"
          },
          "book_label": {
            "type": "string"
          },
          "book_slug": {
            "type": "string"
          },
          "next_before": {
            "type": "integer"
          },
          "quote_token": {
            "properties": {
              "address": {
                "type": "string"
              },
              "decimals": {
                "type": "integer"
              },
              "symbol": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "trades": {
            "items": {
              "properties": {
                "attribution": {
                  "type": "string"
                },
                "base_amount_raw": {
                  "type": "string"
                },
                "base_token": {
                  "type": "string"
                },
                "block_hash": {
                  "type": "string"
                },
                "block_number": {
                  "type": "integer"
                },
                "book_id": {
                  "type": "string"
                },
                "book_label": {
                  "type": "string"
                },
                "effective_gas_price_raw": {
                  "type": "string"
                },
                "fee_amount_raw": {
                  "type": "string"
                },
                "fee_recipient": {
                  "type": "string"
                },
                "finality": {
                  "type": "string"
                },
                "gas_used": {
                  "type": "integer"
                },
                "gas_used_for_l1": {
                  "type": "integer"
                },
                "is_bid_token0": {
                  "type": "boolean"
                },
                "maker_address": {
                  "type": "string"
                },
                "market_session": {
                  "type": "string"
                },
                "match_event": {
                  "type": "string"
                },
                "order_id": {
                  "type": "string"
                },
                "price": {
                  "type": "number"
                },
                "price_net_of_fee_raw": {
                  "type": "string"
                },
                "price_raw": {
                  "type": "string"
                },
                "quote_amount_raw": {
                  "type": "string"
                },
                "quote_token": {
                  "type": "string"
                },
                "side": {
                  "type": "string"
                },
                "taker_address": {
                  "type": "string"
                },
                "timestamp": {
                  "type": "integer"
                },
                "transaction_hash": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {
            "book": "NVDA-USDG"
          },
          "queryParams": {},
          "type": "http"
        },
        "output": {
          "example": {
            "base_token": {
              "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
              "decimals": 18,
              "symbol": "NVDA"
            },
            "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
            "book_label": "NVDA/USDG",
            "book_slug": "NVDA-USDG",
            "next_before": 52685331,
            "quote_token": {
              "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
              "decimals": 6,
              "symbol": "USDG"
            },
            "trades": [
              {
                "attribution": "exact",
                "base_amount_raw": "7381992258086111446",
                "base_token": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
                "block_hash": "0x2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f",
                "block_number": 52685331,
                "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
                "book_label": "NVDA/USDG",
                "effective_gas_price_raw": "485000000",
                "fee_amount_raw": "1598069",
                "fee_recipient": "0xbfb7b3Ff3D498a559b946B836d26F0E168f273D5",
                "finality": "head",
                "gas_used": 412903,
                "gas_used_for_l1": 287441,
                "is_bid_token0": false,
                "maker_address": "0x884a1B2c3D4e5F60718293a4B5c6D7e8F90A1b2C",
                "market_session": "regular",
                "match_event": "BidMatched",
                "order_id": "0x2ace85d500000000000000000000000000000000db5ac90000000000fffbb01b",
                "price": 216.47999901,
                "price_net_of_fee_raw": "216.26352901",
                "price_raw": "216.47999901",
                "quote_amount_raw": "1598069869",
                "quote_token": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
                "side": "bid",
                "taker_address": "0x2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d",
                "timestamp": 1788362840,
                "transaction_hash": "0xa1c3e5b7d9f02a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c"
              }
            ]
          },
          "type": "json"
        }
      },
      "routeTemplate": "/deepstate/v1/trades/:book",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "pathParams": {
                "properties": {
                  "book": {
                    "type": "string"
                  }
                },
                "required": [
                  "book"
                ],
                "type": "object"
              },
              "queryParams": {
                "properties": {
                  "before": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "limit": {
                    "maximum": 500,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "description": "Endpoint-specific response payload",
                "properties": {
                  "base_token": {
                    "properties": {
                      "address": {
                        "type": "string"
                      },
                      "decimals": {
                        "type": "integer"
                      },
                      "symbol": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "book_id": {
                    "type": "string"
                  },
                  "book_label": {
                    "type": "string"
                  },
                  "book_slug": {
                    "type": "string"
                  },
                  "next_before": {
                    "type": "integer"
                  },
                  "quote_token": {
                    "properties": {
                      "address": {
                        "type": "string"
                      },
                      "decimals": {
                        "type": "integer"
                      },
                      "symbol": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "trades": {
                    "items": {
                      "properties": {
                        "attribution": {
                          "type": "string"
                        },
                        "base_amount_raw": {
                          "type": "string"
                        },
                        "base_token": {
                          "type": "string"
                        },
                        "block_hash": {
                          "type": "string"
                        },
                        "block_number": {
                          "type": "integer"
                        },
                        "book_id": {
                          "type": "string"
                        },
                        "book_label": {
                          "type": "string"
                        },
                        "effective_gas_price_raw": {
                          "type": "string"
                        },
                        "fee_amount_raw": {
                          "type": "string"
                        },
                        "fee_recipient": {
                          "type": "string"
                        },
                        "finality": {
                          "type": "string"
                        },
                        "gas_used": {
                          "type": "integer"
                        },
                        "gas_used_for_l1": {
                          "type": "integer"
                        },
                        "is_bid_token0": {
                          "type": "boolean"
                        },
                        "maker_address": {
                          "type": "string"
                        },
                        "market_session": {
                          "type": "string"
                        },
                        "match_event": {
                          "type": "string"
                        },
                        "order_id": {
                          "type": "string"
                        },
                        "price": {
                          "type": "number"
                        },
                        "price_net_of_fee_raw": {
                          "type": "string"
                        },
                        "price_raw": {
                          "type": "string"
                        },
                        "quote_amount_raw": {
                          "type": "string"
                        },
                        "quote_token": {
                          "type": "string"
                        },
                        "side": {
                          "type": "string"
                        },
                        "taker_address": {
                          "type": "string"
                        },
                        "timestamp": {
                          "type": "integer"
                        },
                        "transaction_hash": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.onesource.io",
  "lastUpdated": "2026-10-04T22:12:05.421Z",
  "quality": {
    "calls30d": 295,
    "uniquePayers30d": 295,
    "lastCalledAt": "2026-10-04T22:12:05.274Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "pathParams": {
              "book": "NVDA-USDG"
            },
            "queryParams": {},
            "type": "http"
          },
          "output": {
            "example": {
              "base_token": {
                "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
                "decimals": 18,
                "symbol": "NVDA"
              },
              "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
              "book_label": "NVDA/USDG",
              "book_slug": "NVDA-USDG",
              "next_before": 52685331,
              "quote_token": {
                "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
                "decimals": 6,
                "symbol": "USDG"
              },
              "trades": [
                {
                  "attribution": "exact",
                  "base_amount_raw": "7381992258086111446",
                  "base_token": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
                  "block_hash": "0x2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d2f4a6c8e0b2d4f",
                  "block_number": 52685331,
                  "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
                  "book_label": "NVDA/USDG",
                  "effective_gas_price_raw": "485000000",
                  "fee_amount_raw": "1598069",
                  "fee_recipient": "0xbfb7b3Ff3D498a559b946B836d26F0E168f273D5",
                  "finality": "head",
                  "gas_used": 412903,
                  "gas_used_for_l1": 287441,
                  "is_bid_token0": false,
                  "maker_address": "0x884a1B2c3D4e5F60718293a4B5c6D7e8F90A1b2C",
                  "market_session": "regular",
                  "match_event": "BidMatched",
                  "order_id": "0x2ace85d500000000000000000000000000000000db5ac90000000000fffbb01b",
                  "price": 216.47999901,
                  "price_net_of_fee_raw": "216.26352901",
                  "price_raw": "216.47999901",
                  "quote_amount_raw": "1598069869",
                  "quote_token": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
                  "side": "bid",
                  "taker_address": "0x2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a4c6e8b0d",
                  "timestamp": 1788362840,
                  "transaction_hash": "0xa1c3e5b7d9f02a4c6e8b0d2f4a6c8e0b2d4f6a8c0e2b4d6f8a0c2e4b6d8f0a2c"
                }
              ]
            },
            "type": "json"
          }
        },
        "routeTemplate": "/deepstate/v1/trades/:book",
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "pathParams": {
                  "properties": {
                    "book": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "book"
                  ],
                  "type": "object"
                },
                "queryParams": {
                  "properties": {
                    "before": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "limit": {
                      "maximum": 500,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "description": "Endpoint-specific response payload",
                  "properties": {
                    "base_token": {
                      "properties": {
                        "address": {
                          "type": "string"
                        },
                        "decimals": {
                          "type": "integer"
                        },
                        "symbol": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "book_id": {
                      "type": "string"
                    },
                    "book_label": {
                      "type": "string"
                    },
                    "book_slug": {
                      "type": "string"
                    },
                    "next_before": {
                      "type": "integer"
                    },
                    "quote_token": {
                      "properties": {
                        "address": {
                          "type": "string"
                        },
                        "decimals": {
                          "type": "integer"
                        },
                        "symbol": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "trades": {
                      "items": {
                        "properties": {
                          "attribution": {
                            "type": "string"
                          },
                          "base_amount_raw": {
                            "type": "string"
                          },
                          "base_token": {
                            "type": "string"
                          },
                          "block_hash": {
                            "type": "string"
                          },
                          "block_number": {
                            "type": "integer"
                          },
                          "book_id": {
                            "type": "string"
                          },
                          "book_label": {
                            "type": "string"
                          },
                          "effective_gas_price_raw": {
                            "type": "string"
                          },
                          "fee_amount_raw": {
                            "type": "string"
                          },
                          "fee_recipient": {
                            "type": "string"
                          },
                          "finality": {
                            "type": "string"
                          },
                          "gas_used": {
                            "type": "integer"
                          },
                          "gas_used_for_l1": {
                            "type": "integer"
                          },
                          "is_bid_token0": {
                            "type": "boolean"
                          },
                          "maker_address": {
                            "type": "string"
                          },
                          "market_session": {
                            "type": "string"
                          },
                          "match_event": {
                            "type": "string"
                          },
                          "order_id": {
                            "type": "string"
                          },
                          "price": {
                            "type": "number"
                          },
                          "price_net_of_fee_raw": {
                            "type": "string"
                          },
                          "price_raw": {
                            "type": "string"
                          },
                          "quote_amount_raw": {
                            "type": "string"
                          },
                          "quote_token": {
                            "type": "string"
                          },
                          "side": {
                            "type": "string"
                          },
                          "taker_address": {
                            "type": "string"
                          },
                          "timestamp": {
                            "type": "integer"
                          },
                          "transaction_hash": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "base_token": {
        "address": "string",
        "decimals": 0,
        "symbol": "string"
      },
      "book_id": "string",
      "book_label": "string",
      "book_slug": "string",
      "next_before": 0,
      "quote_token": {
        "address": "string",
        "decimals": 0,
        "symbol": "string"
      },
      "trades": [
        {
          "attribution": "string",
          "base_amount_raw": "string",
          "base_token": "string",
          "block_hash": "string",
          "block_number": 0,
          "book_id": "string",
          "book_label": "string",
          "effective_gas_price_raw": "string",
          "fee_amount_raw": "string",
          "fee_recipient": "string",
          "finality": "string",
          "gas_used": 0,
          "gas_used_for_l1": 0,
          "is_bid_token0": true,
          "maker_address": "string",
          "market_session": "string",
          "match_event": "string",
          "order_id": "string",
          "price": 0,
          "price_net_of_fee_raw": "string",
          "price_raw": "string",
          "quote_amount_raw": "string",
          "quote_token": "string",
          "side": "string",
          "taker_address": "string",
          "timestamp": 0,
          "transaction_hash": "string"
        }
      ]
    },
    "type": "string"
  }
}