{
  "x402Version": 2,
  "id": 65,
  "slug": "65",
  "resource": "https://api.onesource.io/deepstate/v1/candles/:book",
  "description": "Deepstate, the on-chain order-book exchange on Robinhood Chain. OHLCV candles for a market.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 3600
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {
            "book": "NVDA-USDG"
          },
          "queryParams": {
            "tf": "1h"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "base_token": {
              "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
              "decimals": 18,
              "symbol": "NVDA"
            },
            "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
            "book_label": "NVDA/USDG",
            "book_slug": "NVDA-USDG",
            "candles": [
              {
                "close_raw": "216.47999901",
                "high_raw": "220.47999716",
                "low_raw": "215.70112004",
                "market_session": "regular",
                "open_bucket": false,
                "open_raw": "216.43128523",
                "t": "2026-09-02T14:00:00Z",
                "trades": 14,
                "volume_base_raw": "1904773188220000000000",
                "volume_quote_raw": "412330119842"
              }
            ],
            "quote_token": {
              "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
              "decimals": 6,
              "symbol": "USDG"
            },
            "tf": "1h"
          },
          "type": "json"
        }
      },
      "routeTemplate": "/deepstate/v1/candles/: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": {
                  "from": {
                    "type": "string"
                  },
                  "tf": {
                    "enum": [
                      "1m",
                      "5m",
                      "15m",
                      "30m",
                      "1h",
                      "4h",
                      "1d",
                      "1w"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "tf"
                ],
                "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"
                  },
                  "candles": {
                    "items": {
                      "properties": {
                        "close_raw": {
                          "type": "string"
                        },
                        "high_raw": {
                          "type": "string"
                        },
                        "low_raw": {
                          "type": "string"
                        },
                        "market_session": {
                          "type": "string"
                        },
                        "open_bucket": {
                          "type": "boolean"
                        },
                        "open_raw": {
                          "type": "string"
                        },
                        "t": {
                          "type": "string"
                        },
                        "trades": {
                          "type": "integer"
                        },
                        "volume_base_raw": {
                          "type": "string"
                        },
                        "volume_quote_raw": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "quote_token": {
                    "properties": {
                      "address": {
                        "type": "string"
                      },
                      "decimals": {
                        "type": "integer"
                      },
                      "symbol": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "tf": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.onesource.io",
  "lastUpdated": "2026-09-18T21:55:05.958Z",
  "quality": {
    "calls30d": 329,
    "uniquePayers30d": 195,
    "lastCalledAt": "2026-09-18T18:44:08.814Z"
  },
  "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"
  }
}