---
title: Historical data
full: true
_openapi:
  preload:
    - https://rest.coinapi.io/swagger/v1/swagger.json
  method: GET
  webhook: false
  toc: []
  structuredData:
    headings: []
    contents:
      - content: >-
          Get historical order book snapshots for a specific symbol within time
          range, returned in time ascending order.
                      
          :::info

          The historical order book data via the REST API is currently limited
          by a number of updates and to the maximum number of 50 levels.

          :::
                      
          This endpoint supports hourly granularity for APITP data with
          automatic fallback to daily data for older records.

          Timestamps are normalized to hour boundaries, and data is fetched per
          hour with precise filtering to your exact time range.
                      
          :::tip

          For querying a full day of data, use the 'date' parameter. For
          specific time ranges (including cross-day or multi-hour queries), use
          'time_start' and 'time_end'.

          :::
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { OpenAPIPage } = props.components ?? {};
  return (
    <>
      {props.children}
      <OpenAPIPage document="https://rest.coinapi.io/swagger/v1/swagger.json" operations={[{"path":"/v1/orderbooks/{symbol_id}/history","method":"get"}]} showDescription />
    </>
  );
}