Query stored BTCUSDT dollar, volume, tick, and imbalance bars.
custom_bars returns market-data bars generated from stored Binance Futures BTCUSDT individual aggTrades.Call custom_bars_catalog first when the application does not already know the stored threshold and date range. Current production tick-bar examples use threshold 1000; older test-only thresholds should not be assumed to exist.
This is a complete answer for the requested filters. Do not automatically remove the threshold, widen the date range, or fetch alternatives unless the user asks.
Custom bars are market-data observations, not BUY, SELL, ENTER, or execution instructions.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Meridian","description":"Normalized crypto futures, spot, and custom trade-bar data for developers and agents.","colors":{"primary":"#3B82F6","light":"#8EBCFF","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/meridian-8f4232c2/GuX7nVwFuFEYL7yj/logo/light.svg?fit=max\u0026auto=format\u0026n=GuX7nVwFuFEYL7yj\u0026q=85\u0026s=87e034096bae4d137ac7b0f7a73c5b78","dark":"https://mintcdn.com/meridian-8f4232c2/GuX7nVwFuFEYL7yj/logo/dark.svg?fit=max\u0026auto=format\u0026n=GuX7nVwFuFEYL7yj\u0026q=85\u0026s=f77f3387daf3130313863afa9f67265e","href":"https://meridiandata.xyz"},"favicon":"https://mintcdn.com/meridian-8f4232c2/GuX7nVwFuFEYL7yj/favicon.svg?fit=max\u0026auto=format\u0026n=GuX7nVwFuFEYL7yj\u0026q=85\u0026s=adc7a126889adaee365e5ed37a98f77d","background":{"decoration":"gradient","color":{"light":"#F6F8FC","dark":"#0B1B33"}},"navbar":{"links":[{"href":"https://meridiandata.xyz","label":"Website"},{"href":"https://docs.meridiandata.xyz/operations/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Get an API key","href":"https://ctxprotocol.com/settings"}},"seo":{"metatags":{"canonical":"https://docs.meridiandata.xyz"}},"fonts":{"heading":{"family":"Zalando Sans Expanded","weight":700},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Meridian","icon":"chart-candlestick","href":"https://meridiandata.xyz"},{"anchor":"Context Protocol","icon":"network-wired","href":"https://docs.ctxprotocol.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meridian-8f4232c2","hasAudioNarration":false,"actualSubdomain":"meridian-8f4232c2","customDomains":["docs.meridiandata.xyz"],"gitSource":{"type":"github","owner":"banga-agents","repo":"meridianv2","deployBranch":"main","contentDirectory":"website/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95be862209e0b20b91167:success","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Custom Bars","count":6},{"language":"default","tag":"Data Catalog","count":6},{"language":"default","tag":"Tool Reference","count":5},{"language":"default","tag":"Context Integration","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Operations","count":3},{"language":"default","tag":"Overview","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"reference/custom-bars","slug":"/reference/custom-bars","pageMetadata":{"title":"custom_bars","description":"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.","icon":"chart-column","href":"/reference/custom-bars"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`custom_bars`}),` returns market-data bars generated from stored Binance Futures BTCUSDT individual aggTrades.`]}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`custom_bars_catalog`}),` first when the application does not already know the stored threshold and date range. Current production tick-bar examples use threshold `,_jsx(_components.code,{children:`1000`}),`; older test-only thresholds should not be assumed to exist.`]}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Argument`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`exchange`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`binance`}),` or `,_jsx(_components.code,{children:`binance-futures`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Initially `,_jsx(_components.code,{children:`BTCUSDT`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bar_type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`dollar`}),`, `,_jsx(_components.code,{children:`volume`}),`, `,_jsx(_components.code,{children:`tick`}),`, or `,_jsx(_components.code,{children:`imbalance`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`begin`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Inclusive start`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`end`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Exclusive end`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`threshold`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Exact stored threshold filter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`threshold_key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Exact configuration key returned by the catalog`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`1 to 10,000 rows; default 5,000`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Integer page offset`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Coverage, provenance, column metadata, and optional redacted source manifest`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`return_next_cursor`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`MCP-only explicit pagination switch; defaults to false`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example-arguments`,children:`Example arguments`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exchange\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"binance-futures\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BTCUSDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bar_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tick\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"begin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-02T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coverage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provenance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"column_metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_manifest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`exact-no-results-behavior`,children:`Exact no-results behavior`}),`\n`,_jsx(_components.p,{children:`A valid exact query can complete with zero rows:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query_complete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data_gap\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"retry_recommended\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"alternative_query_required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"no_results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"no_results_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"no_stored_rows_matched_request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rows\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This is a complete answer for the requested filters. Do not automatically remove the threshold, widen the date range, or fetch alternatives unless the user asks.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Custom bars are market-data observations, not BUY, SELL, ENTER, or execution instructions.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"custom_bars","description":"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.","icon":"chart-column","href":"/reference/custom-bars"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Example arguments","slug":"example-arguments","depth":2,"children":[]},{"title":"Exact no-results behavior","slug":"exact-no-results-behavior","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"meridian-8f4232c2","siteName":"Meridian","title":"custom_bars - Meridian","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-07T03:07:39.196Z","originalFileLocation":"reference/custom-bars.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Meridian\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"custom_bars - Meridian\">\u003cmeta data-mint-head property=\"og:description\" content=\"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Meridian\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.meridiandata.xyz/reference/custom-bars\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meridian-8f4232c2.mintlify.site/_mintlify/api/og/v2?division=Tool+Reference\u0026amp;title=custom_bars\u0026amp;description=Query+stored+BTCUSDT+dollar%2C+volume%2C+tick%2C+and+imbalance+bars.\u0026amp;theme=b94d84be5ab4c05870869f5c\u0026amp;signature=e82c6b8fee7c776060c874fb1613f1e7f53a3a6593a4a13d78ee61acdc15bf0a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"custom_bars - Meridian\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meridian-8f4232c2.mintlify.site/_mintlify/api/og/v2?division=Tool+Reference\u0026amp;title=custom_bars\u0026amp;description=Query+stored+BTCUSDT+dollar%2C+volume%2C+tick%2C+and+imbalance+bars.\u0026amp;theme=b94d84be5ab4c05870869f5c\u0026amp;signature=e82c6b8fee7c776060c874fb1613f1e7f53a3a6593a4a13d78ee61acdc15bf0a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meridian-8f4232c2/jo3jYT63SDGyI5_9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Meridian\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.meridiandata.xyz/reference/custom-bars\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/custom-bars.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.meridiandata.xyz/#organization\",\"name\":\"Meridian\",\"url\":\"https://docs.meridiandata.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meridian-8f4232c2/GuX7nVwFuFEYL7yj/logo/light.svg?fit=max\u0026auto=format\u0026n=GuX7nVwFuFEYL7yj\u0026q=85\u0026s=87e034096bae4d137ac7b0f7a73c5b78\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.meridiandata.xyz#website\",\"name\":\"Meridian\",\"url\":\"https://docs.meridiandata.xyz\",\"publisher\":{\"@id\":\"https://docs.meridiandata.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.meridiandata.xyz/reference/custom-bars#webpage\",\"url\":\"https://docs.meridiandata.xyz/reference/custom-bars\",\"name\":\"custom_bars\",\"description\":\"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\",\"dateModified\":\"2026-08-07T03:07:39.196Z\",\"isPartOf\":{\"@id\":\"https://docs.meridiandata.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.meridiandata.xyz/reference/custom-bars#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.meridiandata.xyz/reference/custom-bars#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tool Reference\",\"item\":\"https://docs.meridiandata.xyz/reference/futures\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"custom_bars\",\"item\":\"https://docs.meridiandata.xyz/reference/custom-bars\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.meridiandata.xyz/reference/custom-bars#article\",\"headline\":\"custom_bars\",\"name\":\"custom_bars\",\"description\":\"Query stored BTCUSDT dollar, volume, tick, and imbalance bars.\",\"url\":\"https://docs.meridiandata.xyz/reference/custom-bars\",\"mainEntityOfPage\":{\"@id\":\"https://docs.meridiandata.xyz/reference/custom-bars#webpage\"},\"dateModified\":\"2026-08-07T03:07:39.196Z\",\"publisher\":{\"@id\":\"https://docs.meridiandata.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.meridiandata.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Meridian\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Meridian","nav":{"global":{"anchors":[{"anchor":"Meridian","icon":"chart-candlestick","href":"https://meridiandata.xyz"},{"anchor":"Context Protocol","icon":"network-wired","href":"https://docs.ctxprotocol.com"}]},"pages":[{"group":"Overview","pages":[{"title":"Meridian documentation","icon":"chart-candlestick","href":"/index"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Getting Started","pages":[{"title":"Authentication and billing","icon":"key","href":"/getting-started/authentication"},{"title":"Query mode and Execute mode","icon":"route","href":"/getting-started/query-vs-execute"},{"title":"Pricing and request limits","icon":"badge-dollar","href":"/getting-started/pricing"}]},{"group":"Context Integration","pages":[{"title":"Tool ID and methods","icon":"fingerprint","href":"/reference/tool-id"},{"title":"TypeScript SDK","icon":"code","href":"/integrations/typescript"},{"title":"Python SDK","icon":"code","href":"/integrations/python"},{"title":"Official MCP endpoint","icon":"plug","href":"/integrations/mcp"}]},{"group":"Tool Reference","pages":[{"title":"futures","icon":"chart-candlestick","href":"/reference/futures"},{"title":"spot","icon":"circle-dollar","href":"/reference/spot"},{"title":"custom_bars_catalog","description":"Discover stored custom-bar configurations, thresholds, ranges, and source runs.","icon":"list-tree","href":"/reference/custom-bars-catalog"},{"title":"custom_bars","icon":"chart-column","href":"/reference/custom-bars"},{"title":"Response contract","description":"Understand Meridian rows, metadata, coverage, provenance, warnings, and completion states.","icon":"brackets-curly","href":"/reference/response-contract"}]},{"group":"Data Catalog","pages":[{"title":"Instruments and aliases","icon":"coins","href":"/data/instruments"},{"title":"Futures columns","icon":"table-columns","href":"/data/futures-columns"},{"title":"Spot columns","icon":"table-columns","href":"/data/spot-columns"},{"title":"Custom-bar columns","icon":"table-columns","href":"/data/custom-bar-columns"},{"title":"Coverage","icon":"grid-2-plus","href":"/data/coverage"},{"title":"Provenance","icon":"route","href":"/data/provenance"}]},{"group":"Custom Bars","pages":[{"title":"Custom bars overview","icon":"chart-column","href":"/custom-bars/overview"},{"title":"Dollar bars","icon":"dollar-sign","href":"/custom-bars/dollar-bars"},{"title":"Volume bars","icon":"scale-balanced","href":"/custom-bars/volume-bars"},{"title":"Tick bars","icon":"list-ol","href":"/custom-bars/tick-bars"},{"title":"Imbalance bars","icon":"scale-unbalanced-flip","href":"/custom-bars/imbalance-bars"},{"title":"Worked examples","icon":"flask","href":"/custom-bars/worked-example"}]},{"group":"Operations","pages":[{"title":"Pagination and large results","icon":"pages","href":"/operations/pagination"},{"title":"Errors and empty results","icon":"triangle-exclamation","href":"/operations/errors"},{"title":"Changelog","icon":"clock-rotate-left","href":"/operations/changelog"}]}]},"basePath":"","title":"custom_bars - Meridian","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}