This endpoint displays trade data based on filters set in the arguments.
This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments.
The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch.
The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.
var StellarSdk = require("@stellar/stellar-sdk");
var server = new StellarSdk.Horizon.Server(
"https://horizon-testnet.stellar.org",
);
var base = new StellarSdk.Asset.native();
var counter = new StellarSdk.Asset(
"EURT",
"GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
);
var startTime = 1582156800000;
var endTime = 1582178400000;
var resolution = 3600000;
var offset = 0;
server
.tradeAggregation(base, counter, startTime, endTime, resolution, offset)
.call()
.then(function (resp) {
console.log(resp);
})
.catch(function (err) {
console.error(err);
});
Segments can be offset using this parameter. Expressed in milliseconds. Can only be used if the resolution is greater than 1 hour. Value must be in whole hours, less than the provided resolution, and less than 24 hours.
A designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
var StellarSdk = require("@stellar/stellar-sdk");
var server = new StellarSdk.Horizon.Server(
"https://horizon-testnet.stellar.org",
);
var base = new StellarSdk.Asset.native();
var counter = new StellarSdk.Asset(
"EURT",
"GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
);
var startTime = 1582156800000;
var endTime = 1582178400000;
var resolution = 3600000;
var offset = 0;
server
.tradeAggregation(base, counter, startTime, endTime, resolution, offset)
.call()
.then(function (resp) {
console.log(resp);
})
.catch(function (err) {
console.error(err);
});
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Stellar Developer Docs","colors":{"primary":"#6E56CF","light":"#9E8CFC","dark":"#5746AF"},"logo":{"light":"https://mintcdn.com/stellardevelopmentfoundation/hmWBKBicbGG4DTu6/logo/light.svg?fit=max\u0026auto=format\u0026n=hmWBKBicbGG4DTu6\u0026q=85\u0026s=8a00b2dfbc97a739a34cae5bce195900","dark":"https://mintcdn.com/stellardevelopmentfoundation/hmWBKBicbGG4DTu6/logo/dark.svg?fit=max\u0026auto=format\u0026n=hmWBKBicbGG4DTu6\u0026q=85\u0026s=b2a86569d59daaff5b90fac7f8998e27","href":"https://developers.stellar.org"},"favicon":"https://mintcdn.com/stellardevelopmentfoundation/hmWBKBicbGG4DTu6/favicon.png?fit=max\u0026auto=format\u0026n=hmWBKBicbGG4DTu6\u0026q=85\u0026s=28de029047b9a3eab8113ee2e529d345","appearance":{"default":"light"},"background":{"color":{"light":"#fcfcfc","dark":"#161616"}},"navbar":{"primary":{"type":"button","label":"For agents","href":"#for-agents"}},"seo":{"metatags":{"canonical":"https://developers.stellar.org"}},"fonts":{"family":"Inter"},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"integrations":{"gtm":{"tagId":"GTM-M2JLH37"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","cursor","vscode","devin-mcp","download-spec"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"users","href":"https://stellar.org/community"},{"anchor":"Blog","icon":"newspaper","href":"https://stellar.org/blog"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/zVYdY3ktTn"},{"anchor":"X","icon":"x-twitter","href":"https://twitter.com/StellarOrg"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@StellarDevelopmentFoundation"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"stellardevelopmentfoundation","hasAudioNarration":false,"actualSubdomain":"stellardevelopmentfoundation","customDomains":["developers.stellar.org"],"gitSource":{"type":"github","owner":"stellar","repo":"stellar-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6ad90e5997846f200aac452e"},"chroma":{"liveDeploymentHistoryId":"6ae370416dca5a83b8f3b0ca","collectionId":"290de167-50df-4a44-9db7-7c93c68b2aae","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae370416dca5a83b8f3b0ca"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae370416dca5a83b8f3b0ca","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Data","count":244},{"language":"default","tag":"API Reference","count":243},{"language":"default","tag":"Build","count":162},{"language":"default","tag":"Platforms","count":160},{"language":"default","tag":"APIs Overview","count":147},{"language":"default","tag":"Horizon","count":122},{"language":"default","tag":"Stellar Disbursement Platform","count":106},{"language":"default","tag":"Meeting Notes","count":92},{"language":"default","tag":"Tools","count":86},{"language":"default","tag":"How-To Guides","count":83}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@keyframes fa-slide-in{0%{transform:translateX(100%)}to{transform:translateX(0)}}:root{--stellar-accent:#7d73b2;--stellar-accent-hover:#6c629f;--stellar-accent-contrast:#ffffff;--stellar-accent-soft:rgba(125, 115, 178, 0.12);--stellar-accent-border:rgba(125, 115, 178, 0.24)}html.dark,html[data-theme=dark]{--stellar-accent:#ffda00;--stellar-accent-hover:#ffe34d;--stellar-accent-contrast:#0a0a0a;--stellar-accent-soft:rgba(255, 218, 0, 0.12);--stellar-accent-border:rgba(255, 218, 0, 0.24)}.stellar-hero-base{background:radial-gradient(circle at 16% 52%,rgba(125,115,178,.18) 0,rgba(125,115,178,.08) 24%,rgba(255,255,255,0) 56%),linear-gradient(180deg,#fcfbff 0,#fff 56%,#f6f4ff 100%)}.stellar-hero-base-dark{background:radial-gradient(circle at 16% 52%,rgba(255,218,0,.12) 0,rgba(255,218,0,.06) 24%,rgba(10,10,10,0) 56%),linear-gradient(180deg,#040404 0,#09090b 56%,#0f172a 100%)}.stellar-hero-wash-light{background:linear-gradient(90deg,rgba(255,255,255,.92) 0,rgba(255,255,255,.74) 34%,rgba(255,255,255,.24) 68%,rgba(255,255,255,0) 100%)}.stellar-hero-wash-dark{background:linear-gradient(90deg,rgba(2,6,23,.86) 0,rgba(2,6,23,.68) 34%,rgba(2,6,23,.2) 68%,rgba(2,6,23,0) 100%)}.stellar-accent-button,.stellar-accent-button:hover{background-color:var(--stellar-accent);color:var(--stellar-accent-contrast)}.stellar-accent-button:hover{background-color:var(--stellar-accent-hover)}.stellar-accent-outline-button{border-color:rgba(23,23,23,.14);background-color:rgba(255,255,255,.7);color:#171717}.stellar-accent-outline-button:hover{border-color:var(--stellar-accent);background-color:var(--stellar-accent-soft);color:var(--stellar-accent)}html.dark .stellar-accent-outline-button,html[data-theme=dark] .stellar-accent-outline-button{border-color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.05);color:#fff}.stellar-accent-panel{border:1px solid var(--stellar-accent-border);background:linear-gradient(90deg,rgba(125,115,178,.16) 0,#fff 52%,rgba(125,115,178,.06) 100%)}html.dark .stellar-accent-panel,html[data-theme=dark] .stellar-accent-panel{background:linear-gradient(90deg,rgba(255,218,0,.1) 0,#0a0a0a 52%,#0f172a 100%)}@media (max-width:767px){.stellar-hero-wash-light{background:linear-gradient(180deg,rgba(255,255,255,.92) 0,rgba(255,255,255,.82) 38%,rgba(255,255,255,.64) 100%)}.stellar-hero-wash-dark{background:linear-gradient(180deg,rgba(2,6,23,.88) 0,rgba(2,6,23,.78) 38%,rgba(2,6,23,.62) 100%)}.stellar-accent-panel{background:linear-gradient(180deg,rgba(125,115,178,.14) 0,#fff 46%,rgba(125,115,178,.06) 100%)}html.dark .stellar-accent-panel,html[data-theme=dark] .stellar-accent-panel{background:linear-gradient(180deg,rgba(255,218,0,.1) 0,#0a0a0a 46%,#0f172a 100%)}}div:has(>ul>li>a.nav-anchor){display:flex;flex-direction:column}ul:has(>li>a.nav-anchor){order:99;margin-top:2rem;border-top:1px solid rgba(125,115,178,.24);margin-top:auto;padding-top:1rem}div:has(>ul>li>a.nav-anchor)>div.mt-6{margin-top:0}#navigation-items>div.pt-6{padding-top:.5rem}#navigation-items [data-component-part=scroll-area-content]{min-height:100%;display:flex;flex-direction:column}#navigation-items [data-component-part=scroll-area-content]>div{flex:1}.callout{--Notification-bg:var(--sds-clr-lilac-01);--Notification-border:var(--sds-clr-lilac-06);--Notification-icon:var(--sds-clr-lilac-09);--Notification-svg:url(\"/img/sds-icons/icons-info-circle.svg\");font-family:var(--sds-ff-base);background-color:var(--Notification-bg)!important;border:1px solid var(--Notification-border)!important;border-radius:.5rem!important;padding:.75rem!important;gap:.75rem!important;color:var(--sds-clr-gray-11);font-size:.875rem;line-height:1.25rem}.callout[data-callout-type=check],.callout[data-callout-type=tip]{--Notification-bg:var(--sds-clr-green-01);--Notification-border:var(--sds-clr-green-06);--Notification-icon:var(--sds-clr-green-09);--Notification-svg:url(\"/img/sds-icons/icons-check-circle.svg\")}.callout[data-callout-type=warning]{--Notification-bg:var(--sds-clr-amber-01);--Notification-border:var(--sds-clr-amber-06);--Notification-icon:var(--sds-clr-amber-09);--Notification-svg:url(\"/img/sds-icons/icons-alert-triangle.svg\")}.callout[data-callout-type=danger]{--Notification-bg:var(--sds-clr-red-01);--Notification-border:var(--sds-clr-red-06);--Notification-icon:var(--sds-clr-red-09);--Notification-svg:url(\"/img/sds-icons/icons-alert-circle.svg\")}[data-component-part=callout-icon]{width:1rem!important;margin-top:.125rem!important}#for-agents-panel[hidden],#navigation-items svg.transition-transform>path,#page-context-menu-button svg,.fa-link>span,[data-component-part=callout-icon] svg,[data-component-part=pagination-chevron]>path,[data-testid=copy-code-button] svg,[role=menu] [role=menuitem] .font-medium>svg>path{display:none}[data-component-part=callout-icon]::before{content:\"\";display:block;width:1rem;height:1rem;background-color:var(--Notification-icon);-webkit-mask:var(--Notification-svg) no-repeat center/contain;mask:var(--Notification-svg) no-repeat center/contain}#page-context-menu-button>div::before{content:\"\";display:block;width:1rem;height:1rem;flex-shrink:0;background-color:currentColor;-webkit-mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain;background-color:var(--sds-clr-gray-09)}#page-context-menu>button{font-family:var(--sds-ff-base);font-weight:var(--sds-fw-semi-bold)!important;transition:background-color var(--sds-anim-transition-default),border-color var(--sds-anim-transition-default);height:2.25rem!important;padding:.5rem .75rem!important;font-size:.875rem!important;line-height:1.25rem!important;font-weight:600!important;color:var(--sds-clr-gray-12)!important;background-color:var(--sds-clr-gray-01)!important;border:1px solid var(--sds-clr-gray-06)!important}#page-context-menu>button:hover{background-color:var(--sds-clr-gray-04)!important;border-color:var(--sds-clr-gray-07)!important}#page-context-menu-button{border-radius:.5rem 0 0 .5rem!important;border-right:0!important;border-right:1px solid var(--sds-clr-gray-06)!important;margin-right:-1px;position:relative;z-index:1}#page-context-menu>button:last-child{width:2.25rem!important;padding:0!important;justify-content:center;border-radius:0 .5rem .5rem 0!important;border-left:1px solid var(--sds-clr-gray-06)!important}#page-context-menu-button>div{gap:.25rem!important}#pagination a{border:0!important;border-radius:0!important;padding:0!important}#pagination a:hover [data-component-part=pagination-title]{color:var(--sds-clr-lilac-11)!important}[data-testid=copy-code-button]::before{content:\"\";display:block;width:1rem;height:1rem;background-color:var(--sds-clr-gray-09);-webkit-mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain}[data-testid=copy-code-button]:hover::before{background-color:var(--sds-clr-gray-11)}[data-testid=copy-code-button]:has(>svg.text-primary)::before{background-color:var(--sds-clr-lilac-09);-webkit-mask-image:url(/img/sds-icons/icons-check.svg);mask-image:url(/img/sds-icons/icons-check.svg)}#pagination a>div{display:flex;flex-direction:column-reverse;gap:.25rem}#pagination a>div>*{margin:0!important}#content-area,#content-container>div.flex-1{display:flex;flex-direction:column}#content-area{flex:1}#footer{margin-top:auto;padding-bottom:2rem!important}a[data-component-name=primary-header-button]{height:2rem;padding:.375rem .625rem!important;gap:.25rem;font-size:.875rem!important;line-height:1.375rem;font-weight:var(--sds-fw-semi-bold)!important;border:1px solid var(--sds-clr-lilac-09);border-radius:.375rem!important;box-shadow:none!important;opacity:1!important;color:var(--sds-clr-gray-12)!important;background-color:var(--sds-clr-gray-01)!important;border-color:var(--sds-clr-gray-06)!important}a[data-component-name=primary-header-button]:hover{background-color:var(--sds-clr-gray-04)!important;border-color:var(--sds-clr-gray-07)!important}a[data-component-name=primary-header-button]::before{content:\"\\2726\";font-size:.75rem;color:var(--sds-clr-gray-09)}#for-agents-panel{position:fixed;top:calc(var(--mintlify-slot-header-height, 6rem) + var(--banner-height, 0px) + .5rem);right:.75rem;bottom:.75rem;width:min(25rem,calc(100vw - 1.5rem));display:flex;flex-direction:column;font-family:var(--sds-ff-base);color:var(--sds-clr-gray-12);background-color:var(--sds-clr-gray-01);border:1px solid var(--sds-clr-gray-06);border-radius:.5rem;overflow:hidden;top:calc(var(--mintlify-slot-header-height, 6rem) + var(--banner-height, 0px));right:0;bottom:0;width:min(26rem,100vw);border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgba(0,0,0,.06);animation:fa-slide-in 180ms ease-out;top:calc(3rem + var(--banner-height, 0px));z-index:40}.fa-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--sds-clr-gray-06)}.fa-title{font-size:.875rem;line-height:1.25rem;color:var(--sds-clr-gray-11)}.fa-close{width:1.5rem;height:1.5rem;border:0;background:var(--sds-clr-gray-09);-webkit-mask:url(/img/sds-icons/icons-x-close.svg) no-repeat center/1rem;mask:url(/img/sds-icons/icons-x-close.svg) no-repeat center/1rem;cursor:pointer}.fa-close:hover{background:var(--sds-clr-gray-12)}.fa-body{overflow-y:auto;display:flex;flex-direction:column;gap:1.25rem}.fa-picker-label,.fa-section-title{display:block;margin:0 0 .5rem;font-size:.875rem;line-height:1.25rem;font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-12)}.fa-pills{display:flex;flex-wrap:wrap;gap:.5rem}.fa-pill{height:1.625rem;padding:.25rem .625rem;font-family:inherit;font-size:.75rem;line-height:1.125rem;font-weight:var(--sds-fw-semi-bold);color:var(--sds-clr-gray-12);background-color:var(--sds-clr-gray-01);border:1px solid var(--sds-clr-gray-06);border-radius:9999px;cursor:pointer;transition:background-color var(--sds-anim-transition-default),border-color var(--sds-anim-transition-default)}.fa-pill:hover{background-color:var(--sds-clr-gray-04);border-color:var(--sds-clr-gray-07)}.fa-pill.is-active{color:var(--sds-clr-base-00);background-color:var(--sds-clr-gray-12);border-color:var(--sds-clr-gray-12)}.fa-section{display:flex;flex-direction:column;gap:.5rem;padding-top:1.25rem;border-top:1px solid var(--sds-clr-gray-06)}.fa-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}.fa-section-head .fa-section-title{margin:0}.fa-desc,.fa-note{margin:0;font-size:.875rem;line-height:1.25rem;color:var(--sds-clr-gray-11)}.fa-note{font-size:.75rem;line-height:1.125rem}.fa-link{font-size:.875rem;line-height:1.25rem;font-weight:var(--sds-fw-medium);text-decoration:none;white-space:nowrap}.fa-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.25rem}.fa-copy{position:relative;border:1px solid var(--sds-clr-gray-06);border-radius:.375rem;background-color:var(--sds-clr-gray-02)}.fa-code{margin:0;padding:.625rem 2.5rem .625rem .75rem;font-family:var(--sds-ff-monospace);font-size:.8125rem;line-height:1.25rem;color:var(--sds-clr-gray-12);white-space:pre-wrap;word-break:break-all}.fa-copy-btn{position:absolute;top:.375rem;right:.375rem;width:1.75rem;height:1.75rem;border:0;border-radius:.375rem;background:0 0;cursor:pointer}.fa-copy-btn:hover{background:var(--sds-clr-gray-04)}.fa-copy-btn::before,.fa-link::after{content:\"\";display:block;width:1rem;height:1rem}.fa-copy-btn::before{margin:auto;background-color:var(--sds-clr-gray-09);-webkit-mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-copy-01.svg) no-repeat center/contain}.fa-copy-btn.is-copied::before{background-color:var(--sds-clr-lilac-09);-webkit-mask-image:url(/img/sds-icons/icons-check.svg);mask-image:url(/img/sds-icons/icons-check.svg)}.fa-header{padding:1rem 1.25rem}.fa-body{padding:1.25rem}.fa-link{display:inline-flex;align-items:center;gap:.125rem;color:var(--sds-clr-lilac-11);transition:color var(--sds-anim-transition-default)}.fa-link:hover{color:var(--sds-clr-lilac-12);text-decoration:none}.fa-link::after{background-color:currentColor;-webkit-mask:url(/img/sds-icons/icons-arrow-right.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-arrow-right.svg) no-repeat center/contain}#body-content .code-block{background-color:var(--sds-clr-gray-02)!important}#body-content [data-component-part=code-block-header-filename]{font-family:var(--sds-ff-base);color:var(--sds-clr-gray-11)}#navbar .bg-gray-50{background-color:var(--sds-clr-gray-02)!important}#navigation-items a,#navigation-items a[aria-current],#navigation-items button{text-shadow:none!important}#navigation-items svg.transition-transform{margin-right:0;color:var(--sds-clr-gray-09);background-color:currentColor}[data-component-part=pagination-chevron],[role=menu] [role=menuitem] .font-medium>svg{width:.875rem;height:.875rem;color:var(--sds-clr-gray-09);background-color:currentColor;-webkit-mask:url(/img/sds-icons/icons-arrow-up-right.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-arrow-up-right.svg) no-repeat center/contain}#navigation-items svg.transition-transform,[data-component-part=pagination-chevron]{width:1rem;height:1rem;-webkit-mask:url(/img/sds-icons/icons-chevron-right.svg) no-repeat center/contain;mask:url(/img/sds-icons/icons-chevron-right.svg) no-repeat center/contain}.pagination-prev [data-component-part=pagination-chevron]{-webkit-mask-image:url(/img/sds-icons/icons-chevron-left.svg);mask-image:url(/img/sds-icons/icons-chevron-left.svg);transform:none}#navigation-items [data-active=true]>button,#navigation-items a[aria-current],#navigation-items button.text-primary,#table-of-contents a[aria-current]{font-weight:var(--sds-fw-semi-bold)!important}#navigation-items .text-primary,#navigation-items [data-active=true]>div,#navigation-items a[aria-current],#table-of-contents .text-primary,#table-of-contents a[aria-current],[data-component-part=pagination-title]{color:var(--sds-clr-lilac-11)!important}#navbar .nav-tabs-item[aria-current=location]{color:var(--sds-clr-gray-12)!important;text-shadow:none!important;font-weight:var(--sds-fw-semi-bold)!important}#navbar .nav-tabs-item[aria-current=location]>div.bg-primary{background-color:var(--sds-clr-gray-12)!important}body:has(.stellar-hero-base) #navbar .nav-tabs-item[aria-current=location]{color:rgb(var(--gray-600))!important;font-weight:500!important}body:has(.stellar-hero-base) #navbar .nav-tabs-item[aria-current=location]:hover{color:rgb(var(--gray-800))!important}html.dark body:has(.stellar-hero-base) #navbar .nav-tabs-item[aria-current=location]{color:rgb(var(--gray-400))!important}html.dark body:has(.stellar-hero-base) #navbar .nav-tabs-item[aria-current=location]:hover{color:rgb(var(--gray-300))!important}body:has(.stellar-hero-base) #navbar .nav-tabs-item[aria-current=location]>div.bg-primary{display:none}#footer{border-top:0!important;padding-top:0!important}"},{"filePath":"sds-components.css","content":"#body-content .callout{--sds-n-bg:var(--sds-clr-lilac-01);--sds-n-border:var(--sds-clr-lilac-06);--sds-n-icon:var(--sds-clr-lilac-09);--sds-n-action:var(--sds-clr-lilac-11);background-color:var(--sds-n-bg);border:1px solid var(--sds-n-border);border-radius:.5rem;padding:.75rem;gap:.75rem;color:var(--sds-clr-gray-11);font-size:.875rem;line-height:1.25rem}#body-content .callout[data-callout-type=note]{--sds-n-bg:var(--sds-clr-gray-01);--sds-n-border:var(--sds-clr-gray-06);--sds-n-icon:var(--sds-clr-gray-09);--sds-n-action:var(--sds-clr-gray-12)}#body-content .callout[data-callout-type=check],#body-content .callout[data-callout-type=tip]{--sds-n-bg:var(--sds-clr-green-01);--sds-n-border:var(--sds-clr-green-06);--sds-n-icon:var(--sds-clr-green-09);--sds-n-action:var(--sds-clr-green-11)}#body-content .callout[data-callout-type=warning]{--sds-n-bg:var(--sds-clr-amber-01);--sds-n-border:var(--sds-clr-amber-06);--sds-n-icon:var(--sds-clr-amber-09);--sds-n-action:var(--sds-clr-amber-11)}#body-content .callout[data-callout-type=danger]{--sds-n-bg:var(--sds-clr-red-01);--sds-n-border:var(--sds-clr-red-06);--sds-n-icon:var(--sds-clr-red-09);--sds-n-action:var(--sds-clr-red-11)}#body-content .callout [data-component-part=callout-icon]{margin-top:.125rem;width:1rem}#body-content .callout [data-component-part=callout-icon] svg{color:var(--sds-n-icon);width:1rem;height:1rem}#body-content .callout [data-component-part=callout-content],#body-content .callout [data-component-part=callout-content] li,#body-content .callout [data-component-part=callout-content] p{color:var(--sds-clr-gray-11);font-size:.875rem;line-height:1.25rem}#body-content .callout [data-component-part=callout-content] strong{color:var(--sds-clr-gray-12);font-weight:var(--sds-fw-medium)}#body-content .callout [data-component-part=callout-content] a{color:var(--sds-n-action);font-weight:var(--sds-fw-medium);text-decoration:none;border-bottom:0;-webkit-text-fill-color:var(--sds-n-action);text-decoration-color:var(--sds-n-action)}#body-content .callout [data-component-part=callout-content] a:hover{text-decoration:underline}#body-content .card{background-color:var(--sds-clr-gray-01);border:1px solid var(--sds-clr-gray-06);border-radius:.5rem;box-shadow:none;transition:border-color var(--sds-anim-transition-default)}#body-content .card:hover{border-color:var(--sds-clr-gray-08)!important}#body-content .card [data-component-part=card-content-container]{padding:1.5rem}#body-content .card [data-component-part=card-icon]{width:1.25rem;height:1.25rem}#body-content .card [data-component-part=card-icon] svg{width:1.25rem;height:1.25rem;color:var(--sds-clr-gray-12)}#body-content .card [data-component-part=card-icon] svg[style*=mask-image]{background-color:var(--sds-clr-gray-12)}#body-content .card [data-component-part=card-title]{font-size:1rem;line-height:1.5rem;font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-12);margin-top:.75rem}#body-content .card [data-component-part=card-content],#body-content .card [data-component-part=card-content] p{font-size:.875rem;line-height:1.25rem;color:var(--sds-clr-gray-11);margin-top:.25rem}#body-content .card [data-component-part=card-cta],#body-content [data-badge]{color:var(--sds-clr-lilac-11);font-weight:var(--sds-fw-medium);font-size:.875rem}#body-content [data-badge]{--sds-b-text:var(--sds-clr-gray-12);--sds-b-bg:var(--sds-clr-gray-01);--sds-b-border:var(--sds-clr-gray-06);display:inline-flex;align-items:center;gap:.125rem;font-family:var(--sds-ff-base);line-height:1.25rem;letter-spacing:0;padding:.125rem .5rem;border-radius:6.25rem;border:1px solid var(--sds-b-border);background-color:var(--sds-b-bg);color:var(--sds-b-text)}#body-content [data-badge][data-color=blue],#body-content [data-badge][data-color=purple]{--sds-b-text:var(--sds-clr-lilac-11);--sds-b-bg:var(--sds-clr-lilac-02);--sds-b-border:var(--sds-clr-lilac-06)}#body-content [data-badge][data-color=green]{--sds-b-text:var(--sds-clr-green-11);--sds-b-bg:var(--sds-clr-green-02);--sds-b-border:var(--sds-clr-green-06)}#body-content [data-badge][data-color=red]{--sds-b-text:var(--sds-clr-red-11);--sds-b-bg:var(--sds-clr-red-02);--sds-b-border:var(--sds-clr-red-06)}#body-content [data-badge][data-color=amber],#body-content [data-badge][data-color=orange],#body-content [data-badge][data-color=yellow]{--sds-b-text:var(--sds-clr-amber-11);--sds-b-bg:var(--sds-clr-amber-02);--sds-b-border:var(--sds-clr-amber-06)}#body-content [data-badge][data-color=gray],#body-content [data-badge][data-color=grey]{--sds-b-text:var(--sds-clr-gray-11);--sds-b-bg:var(--sds-clr-gray-03);--sds-b-border:var(--sds-clr-gray-06)}#body-content .tabs [data-component-part=tabs-list]{border-bottom-color:var(--sds-clr-gray-06);gap:1.5rem}#body-content .tabs [data-component-part=tab-button]{font-size:var(--sds-fs-secondary);font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-11);border-bottom:2px solid transparent;padding-top:.5rem;padding-bottom:.625rem}#body-content .tabs [data-component-part=tab-button]:hover{color:var(--sds-clr-gray-12);border-bottom-color:var(--sds-clr-gray-06)}#body-content .tabs [data-component-part=tab-button][data-active=true]{color:var(--sds-clr-gray-12);border-bottom-color:var(--sds-clr-lilac-09)}#body-content .code-group{background-color:var(--sds-clr-gray-02)}#body-content .code-group [role=tab]{font-family:var(--sds-ff-base);font-size:.75rem;font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-11)}#body-content .code-group [role=tab][aria-selected=true],#body-content .code-group [role=tab][data-active]{color:var(--sds-clr-gray-12)}#body-content .code-group [role=tab] .bg-primary{background-color:var(--sds-clr-lilac-09)}#body-content .code-block,#body-content .code-group{border-radius:.5rem;border-color:var(--sds-clr-gray-06);overflow:hidden}#body-content .code-block [data-component-part=code-block-root],#body-content .code-group [data-component-part=code-block-root]{border-radius:inherit}#body-content .code-group .code-block{border:0;border-radius:0}#body-content .code-group{--rounded-xl:0.5rem}html.dark #body-content .code-block-background{background-color:var(--sds-clr-gray-02)!important}#body-content [data-fade-overlay]{--fade-color-dark:var(--sds-clr-gray-02)!important}#body-content .accordion,#body-content .accordion-group{border-radius:.5rem;border-color:var(--sds-clr-gray-06);background-color:var(--sds-clr-gray-01)}#body-content .accordion [data-component-part=accordion-button]{padding:.875rem 1rem}#body-content .accordion [data-component-part=accordion-button]:hover{background-color:var(--sds-clr-gray-02)}#body-content .accordion [data-component-part=accordion-title],#body-content .accordion [data-component-part=accordion-title] strong,#body-content [data-component-part=expandable-button]{color:var(--sds-clr-gray-12);font-size:var(--sds-fs-secondary);font-weight:var(--sds-fw-medium)}#body-content .accordion [data-component-part=accordion-caret-right] svg{color:var(--sds-clr-gray-09)}#body-content details.expandable{border-radius:.5rem;border-color:var(--sds-clr-gray-06)}#body-content [data-component-part=expandable-button]{color:var(--sds-clr-gray-11)}#body-content [data-component-part=expandable-button]:hover{color:var(--sds-clr-gray-12);background-color:var(--sds-clr-gray-02)}#body-content [data-component-part=expandable-content]{border-top-color:var(--sds-clr-gray-04)}#body-content .primitive-param-field{border-bottom-color:var(--sds-clr-gray-04)}#body-content [data-component-part=field-name]{color:var(--sds-clr-gray-12);font-family:var(--sds-ff-monospace);font-weight:var(--sds-fw-medium)}#body-content [data-component-part=field-info-pill],#body-content [data-component-part=field-required-pill]{font-family:var(--sds-ff-base);font-size:.75rem;line-height:1.125rem;font-weight:var(--sds-fw-medium);padding:.125rem .375rem;border-radius:6.25rem;border:1px solid var(--sds-clr-gray-06);background-color:var(--sds-clr-gray-03);color:var(--sds-clr-gray-11)}#body-content [data-component-part=field-required-pill]{border-color:var(--sds-clr-lilac-06);background-color:var(--sds-clr-lilac-02);color:var(--sds-clr-lilac-11)}#body-content pre,#body-content pre code{font-size:.9375rem}"},{"filePath":"sds-elements.css","content":"/* vietnamese */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 400;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyxq15Mjs.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 400;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyx615Mjs.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 400;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyya15.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 500;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyxq15Mjs.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 500;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyx615Mjs.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 500;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyya15.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 600;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyxq15Mjs.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 600;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyx615Mjs.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 600;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyya15.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 700;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyxq15Mjs.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 700;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyx615Mjs.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inconsolata';\n font-style: normal;\n font-weight: 700;\n font-stretch: 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyya15.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n.font-mono,code,kbd,pre{font-family:var(--sds-ff-monospace)}#content-area #page-title{font-family:var(--sds-ff-heading);font-size:2rem;line-height:2.5rem;font-weight:var(--sds-fw-medium);letter-spacing:-.02em;color:var(--sds-clr-gray-12)}#content-area .prose{font-size:var(--sds-fs-primary)}#content-area .prose,#content-area .prose li,#content-area .prose p{color:var(--sds-clr-gray-11);line-height:1.6}#content-area .prose b,#content-area .prose strong{color:var(--sds-clr-gray-12);font-weight:var(--sds-fw-semi-bold)}#content-area .prose h2,#content-area .prose h3,#content-area .prose h4,#content-area .prose h5{font-family:var(--sds-ff-heading);font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-12);letter-spacing:-.01em}#content-area .prose h5{font-size:1rem;line-height:1.5rem;font-weight:var(--sds-fw-semi-bold)}#content-area .prose h2{font-size:1.5rem;line-height:2rem;margin-top:2.5rem;margin-bottom:1rem}#content-area .prose h3{font-size:1.25rem;line-height:1.75rem;margin-top:2rem;margin-bottom:.75rem}#content-area .prose h4{font-size:1.125rem;line-height:1.625rem}#content-area .prose a.link:not(.sds *),#content-area .prose a:not([class*=card]):not([data-component-part]):not(.sds *){color:var(--sds-clr-lilac-11);font-weight:var(--sds-fw-medium);text-decoration:none;border-bottom:0;transition:color var(--sds-anim-transition-default)}#content-area .prose a.link:not(.sds *):hover,#content-area .prose a:not([class*=card]):not([data-component-part]):not(.sds *):hover{color:var(--sds-clr-lilac-12);text-decoration:underline;text-underline-offset:.2em}#content-area .prose :not(pre)>code{font-family:var(--sds-ff-monospace);font-size:.875em;font-weight:var(--sds-fw-regular);color:var(--sds-clr-gray-12);background-color:var(--sds-clr-gray-03);border:1px solid var(--sds-clr-gray-06);border-radius:.25rem;padding:.0625rem .25rem}#content-area .prose table{font-size:var(--sds-fs-secondary);line-height:1.25rem;border-collapse:collapse}#content-area .prose thead th{color:var(--sds-clr-gray-11);font-weight:var(--sds-fw-medium);font-size:.75rem;line-height:1.125rem;text-transform:uppercase;letter-spacing:.02em;border-bottom:1px solid var(--sds-clr-gray-06);padding:.5rem .75rem}#content-area .prose tbody td{color:var(--sds-clr-gray-12);border-bottom:1px solid var(--sds-clr-gray-04);padding:.625rem .75rem;vertical-align:top}#content-area .prose tbody tr:last-child td{border-bottom:0}#content-area .prose hr{border-color:var(--sds-clr-gray-04)}#content-area .prose blockquote{border-left:2px solid var(--sds-clr-gray-06);color:var(--sds-clr-gray-11);font-style:normal}#navigation-items a,#table-of-contents a{font-size:var(--sds-fs-secondary);font-weight:var(--sds-fw-medium);color:var(--sds-clr-gray-11)}#navigation-items a:hover,#navigation-items a[aria-current],#table-of-contents a:hover,#table-of-contents a[aria-current],.sds-inline-icon{color:var(--sds-clr-gray-12)}.sds-inline-icon{display:inline-flex;vertical-align:-.15em;width:1em;height:1em}.sds-inline-icon svg{width:100%;height:100%}"},{"filePath":"sds-icons.css","content":"[style*=\"/box-archive.svg\"],[style*=\"/file-lines.svg\"],[style*=\"/house.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-file-04.svg)!important;mask-image:url(/img/sds-icons/icons-file-04.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/box-archive.svg\"],[style*=\"/house.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-folder.svg)!important;mask-image:url(/img/sds-icons/icons-folder.svg)!important}[style*=\"/house.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-home-05.svg)!important;mask-image:url(/img/sds-icons/icons-home-05.svg)!important}[style*=\"/ellipsis-vertical.svg\"],[style*=\"/magnifying-glass.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-search-md.svg)!important;mask-image:url(/img/sds-icons/icons-search-md.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/ellipsis-vertical.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-dots-vertical.svg)!important;mask-image:url(/img/sds-icons/icons-dots-vertical.svg)!important}[style*=\"/angle-right.svg\"],[style*=\"/newspaper.svg\"],[style*=\"/play.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-chevron-right.svg)!important;mask-image:url(/img/sds-icons/icons-chevron-right.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/newspaper.svg\"],[style*=\"/play.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-play.svg)!important;mask-image:url(/img/sds-icons/icons-play.svg)!important}[style*=\"/newspaper.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-announcement-01.svg)!important;mask-image:url(/img/sds-icons/icons-announcement-01.svg)!important}[style*=\"/bolt.svg\"],[style*=\"/cube.svg\"],[style*=\"/mobile-screen.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-cube-01.svg)!important;mask-image:url(/img/sds-icons/icons-cube-01.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/bolt.svg\"],[style*=\"/mobile-screen.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-phone-01.svg)!important;mask-image:url(/img/sds-icons/icons-phone-01.svg)!important}[style*=\"/bolt.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-zap.svg)!important;mask-image:url(/img/sds-icons/icons-zap.svg)!important}[style*=\"/message.svg\"],[style*=\"/toolbox.svg\"],[style*=\"/wallet.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-wallet-02.svg)!important;mask-image:url(/img/sds-icons/icons-wallet-02.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/message.svg\"],[style*=\"/toolbox.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-tool-02.svg)!important;mask-image:url(/img/sds-icons/icons-tool-02.svg)!important}[style*=\"/message.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-message-square-01.svg)!important;mask-image:url(/img/sds-icons/icons-message-square-01.svg)!important}[style*=\"/code.svg\"],[style*=\"/discord.svg\"],[style*=\"/users.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-code-02.svg)!important;mask-image:url(/img/sds-icons/icons-code-02.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/discord.svg\"],[style*=\"/users.svg\"]{-webkit-mask-image:url(/img/sds-icons/icons-users-01.svg)!important;mask-image:url(/img/sds-icons/icons-users-01.svg)!important}[style*=\"/discord.svg\"]{-webkit-mask-image:url(/img/sds-icons/logos-discord.svg)!important;mask-image:url(/img/sds-icons/logos-discord.svg)!important}[style*=\"/linkedin.svg\"],[style*=\"/x-twitter.svg\"],[style*=\"/youtube.svg\"]{-webkit-mask-image:url(/img/sds-icons/logos-x-twitter.svg)!important;mask-image:url(/img/sds-icons/logos-x-twitter.svg)!important;-webkit-mask-size:contain!important;mask-size:contain!important}[style*=\"/linkedin.svg\"],[style*=\"/youtube.svg\"]{-webkit-mask-image:url(/img/sds-icons/logos-youtube.svg)!important;mask-image:url(/img/sds-icons/logos-youtube.svg)!important}[style*=\"/linkedin.svg\"]{-webkit-mask-image:url(/img/sds-icons/logos-linkedin.svg)!important;mask-image:url(/img/sds-icons/logos-linkedin.svg)!important}"},{"filePath":"sds-tokens.css","content":":root{--sds-version:\"4.0.2\";--sds-fs-primary:16px;--sds-fs-secondary:14px;--sds-fw-light:300;--sds-fw-regular:400;--sds-fw-medium:500;--sds-fw-semi-bold:600;--sds-fw-bold:700;--sds-ff-heading:\"Inter\", sans-serif;--sds-ff-base:\"Inter\", sans-serif;--sds-ff-monospace:\"Inconsolata\", monospace;--sds-z-index-tooltip:20;--sds-z-index-modal:30;--sds-opacity-disabled-button:0.6;--sds-window-width-min:360px;--sds-window-width-max:1296px;--sds-window-height-min:100vh;--sds-anim-transition-default:cubic-bezier(0.65, 0.05, 0.36, 1) 100ms;--sds-input-color-border-default:var(--sds-clr-gray-06);--sds-input-color-border-default-hover:var(--sds-clr-gray-06);--sds-input-color-border-default-focus:var(--sds-clr-gray-06);--sds-input-color-border-error:var(--sds-clr-red-06);--sds-input-color-border-error-hover:var(--sds-clr-red-06);--sds-input-color-border-error-focus:var(--sds-clr-red-06);--sds-input-color-border-disabled:var(--sds-clr-gray-07);--sds-input-color-border-disabled-hover:var(--sds-clr-gray-07);--sds-input-color-border-disabled-focus:var(--sds-clr-gray-07);--sds-input-color-background-default:var(--sds-clr-gray-01);--sds-input-color-background-error:var(--sds-clr-gray-01);--sds-input-color-background-disabled:var(--sds-clr-gray-03);--sds-input-color-text-default:var(--sds-clr-gray-12);--sds-input-color-text-placeholder:var(--sds-clr-gray-11);--sds-input-color-text-disabled:var(--sds-clr-gray-11);--sds-input-color-icon:var(--sds-clr-gray-11);--sds-input-box-shadow-color-default:var(--sds-clr-gray-04);--sds-input-box-shadow-color-error:var(--sds-clr-red-04);--sds-clr-gray-01:#fcfcfc;--sds-clr-gray-02:#f8f8f8;--sds-clr-gray-03:#f3f3f3;--sds-clr-gray-04:#ededed;--sds-clr-gray-05:#e8e8e8;--sds-clr-gray-06:#e2e2e2;--sds-clr-gray-07:#dbdbdb;--sds-clr-gray-08:#c7c7c7;--sds-clr-gray-09:#8f8f8f;--sds-clr-gray-10:#858585;--sds-clr-gray-11:#6f6f6f;--sds-clr-gray-12:#171717;--sds-clr-lilac-01:#fdfcfe;--sds-clr-lilac-02:#fbfaff;--sds-clr-lilac-03:#f5f2ff;--sds-clr-lilac-04:#ede9fe;--sds-clr-lilac-05:#e4defc;--sds-clr-lilac-06:#d7cff9;--sds-clr-lilac-07:#c4b8f3;--sds-clr-lilac-08:#aa99ec;--sds-clr-lilac-09:#6e56cf;--sds-clr-lilac-10:#644fc1;--sds-clr-lilac-11:#5746af;--sds-clr-lilac-12:#20134b;--sds-clr-base-00:#ffffff;--sds-clr-base-01:#000000;--sds-overlay-01:rgba(0, 0, 0, 0.1);--sds-overlay-02:rgba(0, 0, 0, 0.2);--sds-overlay-03:rgba(0, 0, 0, 0.3);--sds-overlay-04:rgba(0, 0, 0, 0.4);--sds-overlay-05:rgba(0, 0, 0, 0.5);--sds-overlay-06:rgba(0, 0, 0, 0.6);--sds-overlay-07:rgba(0, 0, 0, 0.7);--sds-overlay-08:rgba(0, 0, 0, 0.8);--sds-overlay-09:rgba(0, 0, 0, 0.9);--sds-overlay-10:rgba(0, 0, 0, 1);--sds-clr-green-01:#fbfefc;--sds-clr-green-02:#f2fcf5;--sds-clr-green-03:#e9f9ee;--sds-clr-green-04:#ddf3e4;--sds-clr-green-05:#ccebd7;--sds-clr-green-06:#b4dfc4;--sds-clr-green-07:#92ceac;--sds-clr-green-08:#5bb98c;--sds-clr-green-09:#30a46c;--sds-clr-green-10:#299764;--sds-clr-green-11:#18794e;--sds-clr-green-12:#153226;--sds-clr-amber-01:#fefdfb;--sds-clr-amber-02:#fff9ed;--sds-clr-amber-03:#fff4d5;--sds-clr-amber-04:#ffecbc;--sds-clr-amber-05:#ffe3a2;--sds-clr-amber-06:#ffd386;--sds-clr-amber-07:#f3ba63;--sds-clr-amber-08:#ee9d2b;--sds-clr-amber-09:#ffb224;--sds-clr-amber-10:#ffa01c;--sds-clr-amber-11:#ad5700;--sds-clr-amber-12:#4e2009;--sds-clr-red-01:#fffcfc;--sds-clr-red-02:#fff8f8;--sds-clr-red-03:#ffefef;--sds-clr-red-04:#ffe5e5;--sds-clr-red-05:#fdd8d8;--sds-clr-red-06:#f9c6c6;--sds-clr-red-07:#f3aeaf;--sds-clr-red-08:#eb9091;--sds-clr-red-09:#e5484d;--sds-clr-red-10:#dc3d43;--sds-clr-red-11:#cd2b31;--sds-clr-red-12:#381316;--sds-clr-white:#ffffff;--sds-clr-gold-01:#fdfdf9;--sds-clr-gold-02:#fffce8;--sds-clr-gold-03:#fffbd1;--sds-clr-gold-04:#fff8bb;--sds-clr-gold-05:#fef2a4;--sds-clr-gold-06:#f9e68c;--sds-clr-gold-07:#efd36c;--sds-clr-gold-08:#ebbc00;--sds-clr-gold-09:#fdda24;--sds-clr-gold-10:#f7ce00;--sds-clr-gold-11:#946800;--sds-clr-gold-12:#35290f;--sds-clr-navy-01:#fdfdfe;--sds-clr-navy-02:#f8faff;--sds-clr-navy-03:#f0f4ff;--sds-clr-navy-04:#e6edfe;--sds-clr-navy-05:#d9e2fc;--sds-clr-navy-06:#c6d4f9;--sds-clr-navy-07:#aec0f5;--sds-clr-navy-08:#8da4ef;--sds-clr-navy-09:#3e63dd;--sds-clr-navy-10:#3a5ccc;--sds-clr-navy-11:#3451b2;--sds-clr-navy-12:#101d46;--sds-clr-teal-01:#fafdfe;--sds-clr-teal-02:#f2fcfd;--sds-clr-teal-03:#e7f9fb;--sds-clr-teal-04:#d8f3f6;--sds-clr-teal-05:#c4eaef;--sds-clr-teal-06:#aadee6;--sds-clr-teal-07:#84cdda;--sds-clr-teal-08:#3db9cf;--sds-clr-teal-09:#05a2c2;--sds-clr-teal-10:#0894b3;--sds-clr-teal-11:#0c7792;--sds-clr-teal-12:#04313c;--sds-clr-mint-01:#f9fefd;--sds-clr-mint-02:#effefa;--sds-clr-mint-03:#e1fbf4;--sds-clr-mint-04:#d2f7ed;--sds-clr-mint-05:#c0efe3;--sds-clr-mint-06:#a5e4d4;--sds-clr-mint-07:#7dd4c0;--sds-clr-mint-08:#40c4aa;--sds-clr-mint-09:#70e1c8;--sds-clr-mint-10:#69d9c1;--sds-clr-mint-11:#147d6f;--sds-clr-mint-12:#09342e;--sds-clr-lime-01:#fcfdfa;--sds-clr-lime-02:#f7fcf0;--sds-clr-lime-03:#eefadc;--sds-clr-lime-04:#e4f7c7;--sds-clr-lime-05:#d7f2b0;--sds-clr-lime-06:#c9e894;--sds-clr-lime-07:#b1d16a;--sds-clr-lime-08:#94ba2c;--sds-clr-lime-09:#99d52a;--sds-clr-lime-10:#93c926;--sds-clr-lime-11:#5d770d;--sds-clr-lime-12:#263209;--sds-clr-pink-01:#fffcfe;--sds-clr-pink-02:#fff7fc;--sds-clr-pink-03:#feeef8;--sds-clr-pink-04:#fce5f3;--sds-clr-pink-05:#f9d8ec;--sds-clr-pink-06:#f3c6e2;--sds-clr-pink-07:#ecadd4;--sds-clr-pink-08:#e38ec3;--sds-clr-pink-09:#d6409f;--sds-clr-pink-10:#d23197;--sds-clr-pink-11:#cd1d8d;--sds-clr-pink-12:#3b0a2a;--sds-clr-tooltip-background:#ededed;--sds-clr-tooltip-title:#161616;--sds-clr-tooltip-text:#505050;--sds-clr-tooltip-contrast-background:#171717;--sds-clr-tooltip-contrast-title:#fcfcfc;--sds-clr-tooltip-contrast-text:#c7c7c7}html.dark,html[data-theme=dark]{--sds-clr-gray-01:#161616;--sds-clr-gray-02:#1c1c1c;--sds-clr-gray-03:#232323;--sds-clr-gray-04:#282828;--sds-clr-gray-05:#2e2e2e;--sds-clr-gray-06:#343434;--sds-clr-gray-07:#3e3e3e;--sds-clr-gray-08:#505050;--sds-clr-gray-09:#707070;--sds-clr-gray-10:#7e7e7e;--sds-clr-gray-11:#a0a0a0;--sds-clr-gray-12:#ededed;--sds-clr-lilac-01:#17151f;--sds-clr-lilac-02:#1c172b;--sds-clr-lilac-03:#251e40;--sds-clr-lilac-04:#2c2250;--sds-clr-lilac-05:#32275f;--sds-clr-lilac-06:#392c72;--sds-clr-lilac-07:#443592;--sds-clr-lilac-08:#5842c3;--sds-clr-lilac-09:#6e56cf;--sds-clr-lilac-10:#7c66dc;--sds-clr-lilac-11:#9e8cfc;--sds-clr-lilac-12:#f1eefe;--sds-clr-base-00:#000000;--sds-clr-base-01:#ffffff;--sds-overlay-01:rgba(255, 255, 255, 0.1);--sds-overlay-02:rgba(255, 255, 255, 0.2);--sds-overlay-03:rgba(255, 255, 255, 0.3);--sds-overlay-04:rgba(255, 255, 255, 0.4);--sds-overlay-05:rgba(255, 255, 255, 0.5);--sds-overlay-06:rgba(255, 255, 255, 0.6);--sds-overlay-07:rgba(255, 255, 255, 0.7);--sds-overlay-08:rgba(255, 255, 255, 0.8);--sds-overlay-09:rgba(255, 255, 255, 0.9);--sds-overlay-10:rgba(255, 255, 255, 1);--sds-clr-green-01:#0d1912;--sds-clr-green-02:#0c1f17;--sds-clr-green-03:#0f291e;--sds-clr-green-04:#113123;--sds-clr-green-05:#133929;--sds-clr-green-06:#164430;--sds-clr-green-07:#1b543a;--sds-clr-green-08:#236e4a;--sds-clr-green-09:#30a46c;--sds-clr-green-10:#3cb179;--sds-clr-green-11:#4cc38a;--sds-clr-green-12:#e5fbeb;--sds-clr-amber-01:#1f1300;--sds-clr-amber-02:#271700;--sds-clr-amber-03:#341c00;--sds-clr-amber-04:#3f2200;--sds-clr-amber-05:#4a2900;--sds-clr-amber-06:#573300;--sds-clr-amber-07:#693f05;--sds-clr-amber-08:#824e00;--sds-clr-amber-09:#ffb224;--sds-clr-amber-10:#ffcb47;--sds-clr-amber-11:#f1a10d;--sds-clr-amber-12:#fef3dd;--sds-clr-red-01:#1f1315;--sds-clr-red-02:#291415;--sds-clr-red-03:#3c181a;--sds-clr-red-04:#481a1d;--sds-clr-red-05:#541b1f;--sds-clr-red-06:#671e22;--sds-clr-red-07:#822025;--sds-clr-red-08:#aa2429;--sds-clr-red-09:#e5484d;--sds-clr-red-10:#f2555a;--sds-clr-red-11:#ff6369;--sds-clr-red-12:#feecee;--sds-clr-white:#ffffff;--sds-clr-gold-01:#1c1500;--sds-clr-gold-02:#221a00;--sds-clr-gold-03:#2c2100;--sds-clr-gold-04:#352800;--sds-clr-gold-05:#3e3000;--sds-clr-gold-06:#493c00;--sds-clr-gold-07:#594a05;--sds-clr-gold-08:#705e00;--sds-clr-gold-09:#fdda24;--sds-clr-gold-10:#ffef5c;--sds-clr-gold-11:#f0c000;--sds-clr-gold-12:#fffad1;--sds-clr-navy-01:#131620;--sds-clr-navy-02:#15192d;--sds-clr-navy-03:#192140;--sds-clr-navy-04:#1c274f;--sds-clr-navy-05:#1f2c5c;--sds-clr-navy-06:#22346e;--sds-clr-navy-07:#273e89;--sds-clr-navy-08:#2f4eb2;--sds-clr-navy-09:#3e63dd;--sds-clr-navy-10:#5373e7;--sds-clr-navy-11:#849dff;--sds-clr-navy-12:#eef1fd;--sds-clr-teal-01:#07191d;--sds-clr-teal-02:#061e24;--sds-clr-teal-03:#072830;--sds-clr-teal-04:#07303b;--sds-clr-teal-05:#073844;--sds-clr-teal-06:#064150;--sds-clr-teal-07:#045063;--sds-clr-teal-08:#00647d;--sds-clr-teal-09:#05a2c2;--sds-clr-teal-10:#00b1cc;--sds-clr-teal-11:#00c2d7;--sds-clr-teal-12:#e1f8fa;--sds-clr-mint-01:#081917;--sds-clr-mint-02:#05201e;--sds-clr-mint-03:#052926;--sds-clr-mint-04:#04312c;--sds-clr-mint-05:#033a34;--sds-clr-mint-06:#01453d;--sds-clr-mint-07:#00564a;--sds-clr-mint-08:#006d5b;--sds-clr-mint-09:#70e1c8;--sds-clr-mint-10:#95f3d9;--sds-clr-mint-11:#25d0ab;--sds-clr-mint-12:#e7fcf7;--sds-clr-lime-01:#141807;--sds-clr-lime-02:#181d08;--sds-clr-lime-03:#1e260d;--sds-clr-lime-04:#252e0f;--sds-clr-lime-05:#2b3711;--sds-clr-lime-06:#344213;--sds-clr-lime-07:#415215;--sds-clr-lime-08:#536716;--sds-clr-lime-09:#99d52a;--sds-clr-lime-10:#c4f042;--sds-clr-lime-11:#87be22;--sds-clr-lime-12:#effbdd;--sds-clr-pink-01:#1f121b;--sds-clr-pink-02:#271421;--sds-clr-pink-03:#3a182f;--sds-clr-pink-04:#451a37;--sds-clr-pink-05:#501b3f;--sds-clr-pink-06:#601d48;--sds-clr-pink-07:#7a1d5a;--sds-clr-pink-08:#a71873;--sds-clr-pink-09:#d6409f;--sds-clr-pink-10:#e34ba9;--sds-clr-pink-11:#f65cb6;--sds-clr-pink-12:#feebf7;--sds-clr-tooltip-background:#171717;--sds-clr-tooltip-title:#fcfcfc;--sds-clr-tooltip-text:#c7c7c7;--sds-clr-tooltip-contrast-background:#ededed;--sds-clr-tooltip-contrast-title:#161616;--sds-clr-tooltip-contrast-text:#505050}"}],"page":{"pagePath":"docs/data/apis/horizon/api-reference/list-trade-aggregations","slug":"/docs/data/apis/horizon/api-reference/list-trade-aggregations","pageMetadata":{"title":"List Trade Aggregations","openapi":"openapi/horizon/bundled.yml GET /trade_aggregations","description":"This endpoint displays [trade](https://developers.stellar.org/docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools#orders) data based on filters set in the arguments.\n\nThis is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments.\n\nThe duration of the segments is specified with the `resolution` parameter. The start and end of the time range are given by `startTime` and `endTime` respectively, which are both rounded to the nearest multiple of `resolution` since epoch.\n\nThe individual segments are also aligned with multiples of `resolution` since epoch. If you want to change this alignment, the segments can be `offset` by specifying the offset parameter.\n","href":"/docs/data/apis/horizon/api-reference/list-trade-aggregations"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"This endpoint displays \", _jsx(_components.a, {\n href: \"https://developers.stellar.org/docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools#orders\",\n children: \"trade\"\n }), \" data based on filters set in the arguments.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The duration of the segments is specified with the \", _jsx(_components.code, {\n children: \"resolution\"\n }), \" parameter. The start and end of the time range are given by \", _jsx(_components.code, {\n children: \"startTime\"\n }), \" and \", _jsx(_components.code, {\n children: \"endTime\"\n }), \" respectively, which are both rounded to the nearest multiple of \", _jsx(_components.code, {\n children: \"resolution\"\n }), \" since epoch.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The individual segments are also aligned with multiples of \", _jsx(_components.code, {\n children: \"resolution\"\n }), \" since epoch. If you want to change this alignment, the segments can be \", _jsx(_components.code, {\n children: \"offset\"\n }), \" by specifying the offset parameter.\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"List Trade Aggregations","openapi":"openapi/horizon/bundled.yml GET /trade_aggregations","description":"This endpoint displays [trade](https://developers.stellar.org/docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools#orders) data based on filters set in the arguments.\n\nThis is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments.\n\nThe duration of the segments is specified with the `resolution` parameter. The start and end of the time range are given by `startTime` and `endTime` respectively, which are both rounded to the nearest multiple of `resolution` since epoch.\n\nThe individual segments are also aligned with multiples of `resolution` since epoch. If you want to change this alignment, the segments can be `offset` by specifying the offset parameter.\n","href":"/docs/data/apis/horizon/api-reference/list-trade-aggregations"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/stellardevelopmentfoundation/b9e39e4af1c0c5d8/lab-saved-title-links.js","/_mintlify/custom/stellardevelopmentfoundation/9a01be681220ee40/os-tab-sync.js","/_mintlify/custom/stellardevelopmentfoundation/d50605f0cd285dc3/for-agents.js"],"openApiReferenceData":{"operation":{"tags":["Trade Aggregations"],"summary":"List Trade Aggregations","description":"This endpoint displays [trade](https://developers.stellar.org/docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools#orders) data based on filters set in the arguments.\n\nThis is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments.\n\nThe duration of the segments is specified with the `resolution` parameter. The start and end of the time range are given by `startTime` and `endTime` respectively, which are both rounded to the nearest multiple of `resolution` since epoch.\n\nThe individual segments are also aligned with multiples of `resolution` since epoch. If you want to change this alignment, the segments can be `offset` by specifying the offset parameter.\n","operationId":"ListTradeAggregations","parameters":["cf011b24-bad5-4d2e-8acb-a77bfb82d91b","1e80def8-b56a-440f-bb38-29498ecb4148","8fe14fcb-0ffd-4da6-9c0b-31f09d850302","dd1021a7-ac5c-4274-b8e7-d42cf462fedf","61db23ff-7a4f-44ff-ad13-3b28272a88ae","dcaa5812-2db7-4d3f-a339-d4c9aefeaaca","98a4e37f-a495-4cc6-bfc2-043a0a32766d","b37acdeb-93a9-4237-a808-c741a8c78520","bde1c5ab-2872-4151-bec2-7b34c5843e2c","74a90acb-324d-45fb-97e1-acd1bb0f19d5","0d44f22a-9310-4062-a3a6-0666bc2e782a","21b6ce50-d9a3-4df1-8666-10b951ea78db"],"responses":{"200":"3b6b8e9a-44a6-4d9f-baa6-f7b969af5e1c"},"x-codeSamples":[{"lang":"Shell","source":"curl https://horizon.stellar.org/trade_aggregations?\\\nbase_asset_type=native\u0026\\\ncounter_asset_code=EURT\u0026\\\ncounter_asset_issuer=GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\u0026\\\ncounter_asset_type=credit_alphanum4\u0026\\\nresolution=3600000\u0026\\\nstart_time=1582156800000\u0026\\\nend_time=1582178400000\n"},{"lang":"JavaScript","label":"@stellar/stellar-sdk","source":"var StellarSdk = require(\"@stellar/stellar-sdk\");\nvar server = new StellarSdk.Horizon.Server(\n \"https://horizon-testnet.stellar.org\",\n);\n\nvar base = new StellarSdk.Asset.native();\nvar counter = new StellarSdk.Asset(\n \"EURT\",\n \"GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\",\n);\nvar startTime = 1582156800000;\nvar endTime = 1582178400000;\nvar resolution = 3600000;\nvar offset = 0;\n\nserver\n .tradeAggregation(base, counter, startTime, endTime, resolution, offset)\n .call()\n .then(function (resp) {\n console.log(resp);\n })\n .catch(function (err) {\n console.error(err);\n });\n"}],"method":"get","type":"path","servers":["67b10955-a49e-4205-8c55-4a98ae5d2767","b24708b8-f0b3-4167-9169-6c020538cf0f"],"security":[],"path":"/trade_aggregations","baseUrlOptions":["https://horizon-testnet.stellar.org","https://horizon-futurenet.stellar.org"],"title":"List Trade Aggregations","codeSamples":[{"lang":"Shell","source":"curl https://horizon.stellar.org/trade_aggregations?\\\nbase_asset_type=native\u0026\\\ncounter_asset_code=EURT\u0026\\\ncounter_asset_issuer=GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\u0026\\\ncounter_asset_type=credit_alphanum4\u0026\\\nresolution=3600000\u0026\\\nstart_time=1582156800000\u0026\\\nend_time=1582178400000\n"},{"label":"@stellar/stellar-sdk","lang":"JavaScript","source":"var StellarSdk = require(\"@stellar/stellar-sdk\");\nvar server = new StellarSdk.Horizon.Server(\n \"https://horizon-testnet.stellar.org\",\n);\n\nvar base = new StellarSdk.Asset.native();\nvar counter = new StellarSdk.Asset(\n \"EURT\",\n \"GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\",\n);\nvar startTime = 1582156800000;\nvar endTime = 1582178400000;\nvar resolution = 3600000;\nvar offset = 0;\n\nserver\n .tradeAggregation(base, counter, startTime, endTime, resolution, offset)\n .call()\n .then(function (resp) {\n console.log(resp);\n })\n .catch(function (err) {\n console.error(err);\n });\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"cf011b24-bad5-4d2e-8acb-a77bfb82d91b":{"name":"start_time","in":"query","required":false,"description":"The lower time boundary represented as milliseconds since epoch.","schema":{"type":"integer","format":"long","isRequired":false,"description":"The lower time boundary represented as milliseconds since epoch.","uniqueKey":"","typeLabel":"integer\u003clong>"}},"1e80def8-b56a-440f-bb38-29498ecb4148":{"name":"end_time","in":"query","required":false,"description":"The upper time boundary represented as milliseconds since epoch.","schema":{"type":"integer","format":"long","isRequired":false,"description":"The upper time boundary represented as milliseconds since epoch.","uniqueKey":"","typeLabel":"integer\u003clong>"}},"8fe14fcb-0ffd-4da6-9c0b-31f09d850302":{"name":"resolution","in":"query","required":false,"description":"The segment duration represented as milliseconds. Supported values are 1 minute (60000), 5 minutes (300000), 15 minutes (900000), 1 hour (3600000), 1 day (86400000) and 1 week (604800000).","schema":{"oneOf":[{"type":"integer","description":"1 minute","format":"long","const":60000,"uniqueKey":"oneOf.0","typeLabel":"integer\u003clong>"},{"type":"integer","description":"5 minutes","format":"long","const":300000,"uniqueKey":"oneOf.1","typeLabel":"integer\u003clong>"},{"type":"integer","description":"15 minutes","format":"long","const":900000,"uniqueKey":"oneOf.2","typeLabel":"integer\u003clong>"},{"type":"integer","description":"1 hour","format":"long","const":3600000,"uniqueKey":"oneOf.3","typeLabel":"integer\u003clong>"},{"type":"integer","description":"1 day","format":"long","const":86400000,"uniqueKey":"oneOf.4","typeLabel":"integer\u003clong>"},{"type":"integer","description":"1 week","format":"long","const":604800000,"uniqueKey":"oneOf.5","typeLabel":"integer\u003clong>"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer\u003clong>"}},"dd1021a7-ac5c-4274-b8e7-d42cf462fedf":{"name":"offset","in":"query","required":false,"description":"Segments can be offset using this parameter. Expressed in milliseconds. Can only be used if the resolution is greater than 1 hour. Value must be in whole hours, less than the provided resolution, and less than 24 hours.","schema":{"type":"number","format":"long","isRequired":false,"description":"Segments can be offset using this parameter. Expressed in milliseconds. Can only be used if the resolution is greater than 1 hour. Value must be in whole hours, less than the provided resolution, and less than 24 hours.","uniqueKey":"","typeLabel":"number\u003clong>"}},"61db23ff-7a4f-44ff-ad13-3b28272a88ae":{"name":"base_asset_type","in":"query","required":true,"description":"The type for the base asset. Either `native`, `credit_alphanum4`, or `credit_alphanum12`.","schema":{"type":"string","enum":["native","credit_alphanum4","credit_alphanum12"],"isRequired":true,"description":"The type for the base asset. Either `native`, `credit_alphanum4`, or `credit_alphanum12`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"dcaa5812-2db7-4d3f-a339-d4c9aefeaaca":{"name":"base_asset_issuer","in":"query","required":false,"description":"The Stellar address of the base asset’s issuer. Required if the `base_asset_type` is not `native`.","schema":{"type":"string","example":"GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX","isRequired":false,"description":"The Stellar address of the base asset’s issuer. Required if the `base_asset_type` is not `native`.","uniqueKey":"","typeLabel":"string"}},"98a4e37f-a495-4cc6-bfc2-043a0a32766d":{"name":"base_asset_code","in":"query","required":false,"description":"The code for the base asset. Required if the `base_asset_type` is not `native`.","schema":{"type":"string","example":"USD","isRequired":false,"description":"The code for the base asset. Required if the `base_asset_type` is not `native`.","uniqueKey":"","typeLabel":"string"}},"b37acdeb-93a9-4237-a808-c741a8c78520":{"name":"counter_asset_type","in":"query","required":true,"description":"The type for the counter asset. Either `native`, `credit_alphanum4`, or `credit_alphanum12`.","schema":{"type":"string","enum":["native","credit_alphanum4","credit_alphanum12"],"isRequired":true,"description":"The type for the counter asset. Either `native`, `credit_alphanum4`, or `credit_alphanum12`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"bde1c5ab-2872-4151-bec2-7b34c5843e2c":{"name":"counter_asset_issuer","in":"query","required":false,"description":"The Stellar address of the counter asset’s issuer. Required if the `counter_asset_type` is not `native`.","schema":{"type":"string","example":"GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX","isRequired":false,"description":"The Stellar address of the counter asset’s issuer. Required if the `counter_asset_type` is not `native`.","uniqueKey":"","typeLabel":"string"}},"74a90acb-324d-45fb-97e1-acd1bb0f19d5":{"name":"counter_asset_code","in":"query","required":false,"description":"The code for the counter asset. Required if the `counter_asset_type` is not `native`.","schema":{"type":"string","example":"USD","isRequired":false,"description":"The code for the counter asset. Required if the `counter_asset_type` is not `native`.","uniqueKey":"","typeLabel":"string"}},"0d44f22a-9310-4062-a3a6-0666bc2e782a":{"name":"order","in":"query","required":false,"description":"A designation of the order in which records should appear. Options include `asc` (ascending) or `desc` (descending). If this argument isn’t set, it defaults to `asc`.","schema":{"type":"string","enum":["asc","desc"],"isRequired":false,"description":"A designation of the order in which records should appear. Options include `asc` (ascending) or `desc` (descending). If this argument isn’t set, it defaults to `asc`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"21b6ce50-d9a3-4df1-8666-10b951ea78db":{"name":"limit","in":"query","required":false,"description":"The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.","schema":{"type":"integer","example":10,"isRequired":false,"description":"The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.","uniqueKey":"","typeLabel":"integer"}}},"responses":{"3b6b8e9a-44a6-4d9f-baa6-f7b969af5e1c":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].timestamp","typeLabel":"string"},"trade_count":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].trade_count","typeLabel":"string"},"base_volume":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].base_volume","typeLabel":"string"},"counter_volume":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].counter_volume","typeLabel":"string"},"avg":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].avg","typeLabel":"string"},"high":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].high","typeLabel":"string"},"high_r":{"type":"object","properties":{"n":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].high_r.n","typeLabel":"string"},"d":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].high_r.d","typeLabel":"string"}},"uniqueKey":"_embedded.records.items.[INDEX].high_r","typeLabel":"object"},"low":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].low","typeLabel":"string"},"low_r":{"type":"object","properties":{"n":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].low_r.n","typeLabel":"string"},"d":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].low_r.d","typeLabel":"string"}},"uniqueKey":"_embedded.records.items.[INDEX].low_r","typeLabel":"object"},"open":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].open","typeLabel":"string"},"open_r":{"type":"object","properties":{"n":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].open_r.n","typeLabel":"string"},"d":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].open_r.d","typeLabel":"string"}},"uniqueKey":"_embedded.records.items.[INDEX].open_r","typeLabel":"object"},"close":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].close","typeLabel":"string"},"close_r":{"type":"object","properties":{"n":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].close_r.n","typeLabel":"string"},"d":{"type":"string","uniqueKey":"_embedded.records.items.[INDEX].close_r.d","typeLabel":"string"}},"uniqueKey":"_embedded.records.items.[INDEX].close_r","typeLabel":"object"}},"uniqueKey":"_embedded.records.items.[INDEX]","typeLabel":"object"},"uniqueKey":"_embedded.records","typeLabel":"object[]"}},"uniqueKey":"_embedded","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ListTradeAggregations":{"title":"ListTradeAggregations","value":{"_links":{"self":{"href":"https://horizon-testnet.stellar.org/trade_aggregations?base_asset_type=native\u0026counter_asset_code=EURT\u0026counter_asset_issuer=GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\u0026counter_asset_type=credit_alphanum4\u0026resolution=3600000\u0026start_time=1582156800000\u0026end_time=1582178400001"},"next":{"href":"https://horizon-testnet.stellar.org/trade_aggregations?base_asset_type=native\u0026counter_asset_code=EURT\u0026counter_asset_issuer=GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S\u0026counter_asset_type=credit_alphanum4\u0026end_time=1582178400001\u0026resolution=3600000\u0026start_time=1582171200000"},"prev":{"href":""}},"_embedded":{"records":[{"timestamp":1582164000000,"trade_count":3,"base_volume":"399.3873200","counter_volume":"25.5368082","avg":"0.0639400","high":"0.0652169","high_r":{"N":652169,"D":10000000},"low":"0.0638338","low_r":{"N":8107550,"D":127010393},"open":"0.0652169","open_r":{"N":652169,"D":10000000},"close":"0.0638338","close_r":{"N":8107550,"D":127010393}},{"timestamp":1582167600000,"trade_count":1,"base_volume":"149.8415320","counter_volume":"9.7149804","avg":"0.0648350","high":"0.0648350","high_r":{"N":5000000,"D":77118803},"low":"0.0648350","low_r":{"N":5000000,"D":77118803},"open":"0.0648350","open_r":{"N":5000000,"D":77118803},"close":"0.0648350","close_r":{"N":5000000,"D":77118803}}]}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"67b10955-a49e-4205-8c55-4a98ae5d2767":{"url":"https://horizon-testnet.stellar.org","description":"The Testnet Network"},"b24708b8-f0b3-4167-9169-6c020538cf0f":{"url":"https://horizon-futurenet.stellar.org","description":"The Futurenet network"}}},"originalFileLocation":"openapi/horizon/bundled.yml"},"subdomain":"stellardevelopmentfoundation","siteName":"Stellar Developer Docs","title":"List Trade Aggregations - Stellar Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T19:12:26.563Z","originalFileLocation":"docs/data/apis/horizon/api-reference/list-trade-aggregations.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=\"light\"}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=\"This endpoint displays trade data based on filters set in the arguments. This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments. The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch. The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Stellar Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Trade Aggregations - Stellar Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint displays trade data based on filters set in the arguments. This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments. The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch. The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Stellar Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://stellardevelopmentfoundation.mintlify.app/_mintlify/api/og/v2?division=Trade+Aggregations\u0026amp;title=List+Trade+Aggregations\u0026amp;description=This+endpoint+displays+%5Btrade%5D%28https%3A%2F%2Fdevelopers.stellar.org%2Fdocs%2Flearn%2Ffundamentals%2Fliquidity-on-stellar-sdex-liquidity-pools%23orders%29+data+based+on+filters+se\u0026amp;theme=a344f9284f69fe3cfa3f033b\u0026amp;signature=fa58b9d9d3d35d2d30df35db8c13fbc9db6e3ff360cd7299c17153b9cf12e282\">\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=\"List Trade Aggregations - Stellar Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint displays trade data based on filters set in the arguments. This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments. The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch. The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://stellardevelopmentfoundation.mintlify.app/_mintlify/api/og/v2?division=Trade+Aggregations\u0026amp;title=List+Trade+Aggregations\u0026amp;description=This+endpoint+displays+%5Btrade%5D%28https%3A%2F%2Fdevelopers.stellar.org%2Fdocs%2Flearn%2Ffundamentals%2Fliquidity-on-stellar-sdex-liquidity-pools%23orders%29+data+based+on+filters+se\u0026amp;theme=a344f9284f69fe3cfa3f033b\u0026amp;signature=fa58b9d9d3d35d2d30df35db8c13fbc9db6e3ff360cd7299c17153b9cf12e282\">\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/stellardevelopmentfoundation/mvFGgkaGkgmNkHZA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Stellar Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6E56CF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/data/apis/horizon/api-reference/list-trade-aggregations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.stellar.org/#organization\",\"name\":\"Stellar Developer Docs\",\"url\":\"https://developers.stellar.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/stellardevelopmentfoundation/hmWBKBicbGG4DTu6/logo/light.svg?fit=max\u0026auto=format\u0026n=hmWBKBicbGG4DTu6\u0026q=85\u0026s=8a00b2dfbc97a739a34cae5bce195900\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.stellar.org#website\",\"name\":\"Stellar Developer Docs\",\"url\":\"https://developers.stellar.org\",\"publisher\":{\"@id\":\"https://developers.stellar.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations#webpage\",\"url\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations\",\"name\":\"List Trade Aggregations\",\"description\":\"This endpoint displays trade data based on filters set in the arguments. This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments. The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch. The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.\",\"dateModified\":\"2026-10-21T19:12:26.563Z\",\"isPartOf\":{\"@id\":\"https://developers.stellar.org#website\"},\"breadcrumb\":{\"@id\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\" \",\"item\":\"https://developers.stellar.org/docs/data/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"APIs Overview\",\"item\":\"https://developers.stellar.org/docs/data/apis/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Horizon\",\"item\":\"https://developers.stellar.org/docs/data/apis/horizon/index\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"API Reference\",\"item\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/index\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Aggregations\",\"item\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/aggregations/index\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"Trade Aggregations\",\"item\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/aggregations/trade-aggregations/index\"},{\"@type\":\"ListItem\",\"position\":7,\"name\":\"List Trade Aggregations\",\"item\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations#apireference\",\"headline\":\"List Trade Aggregations\",\"name\":\"List Trade Aggregations\",\"description\":\"This endpoint displays trade data based on filters set in the arguments. This is done by dividing a given time range into segments and aggregating statistics, for a given asset pair (base, counter) over each of these segments. The duration of the segments is specified with the resolution parameter. The start and end of the time range are given by startTime and endTime respectively, which are both rounded to the nearest multiple of resolution since epoch. The individual segments are also aligned with multiples of resolution since epoch. If you want to change this alignment, the segments can be offset by specifying the offset parameter.\",\"url\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations\",\"mainEntityOfPage\":{\"@id\":\"https://developers.stellar.org/docs/data/apis/horizon/api-reference/list-trade-aggregations#webpage\"},\"dateModified\":\"2026-10-21T19:12:26.563Z\",\"publisher\":{\"@id\":\"https://developers.stellar.org/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.stellar.org#website\"}}]}\u003c/script>","siteName":"Stellar Developer Docs","nav":{"global":{"anchors":[{"anchor":"Community","icon":"users","href":"https://stellar.org/community"},{"anchor":"Blog","icon":"newspaper","href":"https://stellar.org/blog"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/zVYdY3ktTn"},{"anchor":"X","icon":"x-twitter","href":"https://twitter.com/StellarOrg"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@StellarDevelopmentFoundation"}]},"tabs":[{"tab":"Build","pages":[{"title":"Build","href":"/docs/build"}]},{"tab":"Learn","pages":[{"title":"Learn","href":"/docs/learn/fundamentals"}]},{"tab":"Tokens","pages":[{"title":"Tokens","href":"/docs/tokens"}]},{"tab":"Data","pages":[{"group":" ","pages":[{"title":"Data Overview","href":"/docs/data"},{"group":"Analytics Overview","root":{"title":"Analytics Overview","href":"/docs/data/analytics/index"},"pages":[{"group":"Hubble","root":{"title":"Hubble","href":"/docs/data/analytics/hubble/index"},"pages":[{"group":"Analyst Guide","root":{"title":"Analyst Guide","href":"/docs/data/analytics/hubble/analyst-guide/index"},"pages":[{"title":"Connecting","href":"/docs/data/analytics/hubble/analyst-guide/connecting"},{"title":"Viewing Metadata","href":"/docs/data/analytics/hubble/analyst-guide/viewing-metadata"},{"title":"Optimizing Queries","href":"/docs/data/analytics/hubble/analyst-guide/optimizing-queries"},{"title":"Creating Visualizations","href":"/docs/data/analytics/hubble/analyst-guide/creating-visualizations"},{"title":"Queries for Horizon/RPC-like Data","href":"/docs/data/analytics/hubble/analyst-guide/queries-for-horizon-like-data"},{"title":"History VS State Tables","href":"/docs/data/analytics/hubble/analyst-guide/history-vs-state-tables"}]},{"group":"Developer Guide","root":{"title":"Developer Guide","href":"/docs/data/analytics/hubble/developer-guide/index"},"pages":[{"group":"Backfill","root":{"title":"Backfill","href":"/docs/data/analytics/hubble/developer-guide/backfill/index"},"pages":[{"title":"Backfill using JS UDF","href":"/docs/data/analytics/hubble/developer-guide/backfill/JS-UDF"},{"title":"Data Import","href":"/docs/data/analytics/hubble/developer-guide/backfill/data-import"}]},{"title":"Connecting","href":"/docs/data/analytics/hubble/developer-guide/connecting-to-bigquery/index"},{"group":"Source System Ingestion","root":{"title":"Source System Ingestion","href":"/docs/data/analytics/hubble/developer-guide/source-system-ingestion/index"},"pages":[{"title":"Overview","href":"/docs/data/analytics/hubble/developer-guide/source-system-ingestion/overview"},{"title":"Architecture","href":"/docs/data/analytics/hubble/developer-guide/source-system-ingestion/architecture"},{"title":"Getting Started","href":"/docs/data/analytics/hubble/developer-guide/source-system-ingestion/getting-started"}]},{"group":"Data Curation","root":{"title":"Data Curation","href":"/docs/data/analytics/hubble/developer-guide/data-curation/index"},"pages":[{"title":"Overview","href":"/docs/data/analytics/hubble/developer-guide/data-curation/overview"},{"title":"Architecture","href":"/docs/data/analytics/hubble/developer-guide/data-curation/architecture"},{"title":"Getting Started","href":"/docs/data/analytics/hubble/developer-guide/data-curation/getting-started"}]},{"group":"Visualization","root":{"title":"Visualization","href":"/docs/data/analytics/hubble/developer-guide/visualization/index"},"pages":[{"title":"Overview","href":"/docs/data/analytics/hubble/developer-guide/visualization/overview"},{"title":"Getting Started","href":"/docs/data/analytics/hubble/developer-guide/visualization/getting-started"}]},{"group":"Scheduling and Orchestration","root":{"title":"Scheduling and Orchestration","href":"/docs/data/analytics/hubble/developer-guide/scheduling-and-orchestration/index"},"pages":[{"title":"Overview","href":"/docs/data/analytics/hubble/developer-guide/scheduling-and-orchestration/overview"},{"title":"Architecture","href":"/docs/data/analytics/hubble/developer-guide/scheduling-and-orchestration/architecture"},{"title":"Getting Started","href":"/docs/data/analytics/hubble/developer-guide/scheduling-and-orchestration/getting-started"}]}]},{"group":"Data Catalog","root":{"title":"Data Catalog","href":"/docs/data/analytics/hubble/data-catalog/index"},"pages":[{"title":"Data Model Diagram","href":"/docs/data/analytics/hubble/data-catalog/data-model-diagram"},{"group":"Data Dictionary","root":{"title":"Data Dictionary","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/index"},"pages":[{"group":"Bronze 🥉","root":{"title":"Bronze 🥉","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/index"},"pages":[{"title":"Accounts","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/accounts"},{"title":"Account Signers","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/account-signers"},{"title":"Claimable Balances","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/claimable-balances"},{"title":"Contract Code","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/contract-code"},{"title":"Config Settings","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/config-settings"},{"title":"Contract Data","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/contract-data"},{"title":"Liquidity Pools","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/liquidity-pools"},{"title":"Offers","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/offers"},{"title":"Restored Key","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/restored-key"},{"title":"Trustlines","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/trustlines"},{"title":"Evicted Keys","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/evicted-keys"},{"title":"TTL","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/ttl"},{"title":"History Assets","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-assets"},{"title":"History Contract Events","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-contract-events"},{"title":"History Effects","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-effects"},{"title":"History Ledgers","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-ledgers"},{"title":"History Operations","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-operations"},{"title":"History Trades","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-trades"},{"title":"History Transactions","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/bronze/history-transactions"}]},{"group":"Silver 🥈","root":{"title":"Silver 🥈","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/index"},"pages":[{"title":"Account Signers Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/account-signers-current"},{"title":"Accounts Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/accounts-current"},{"title":"Accounts Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/accounts-snapshot"},{"title":"Claimable Balances Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/claimable-balances-current"},{"title":"Config Settings Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/config-settings-current"},{"title":"Config Settings Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/config-settings-snapshot"},{"title":"Contract Code Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/contract-code-current"},{"title":"Contract Data Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/contract-data-current"},{"title":"Contract Data Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/contract-data-snapshot"},{"title":"Evicted Keys Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/evicted-keys-snapshot"},{"title":"Liquidity Pools Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/liquidity-pools-current"},{"title":"Liquidity Pools Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/liquidity-pools-snapshot"},{"title":"Offers Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/offers-current"},{"title":"Reflector Prices Data CEX Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/reflector-prices-data-cex-snapshot"},{"title":"Reflector Prices Data FEX Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/reflector-prices-data-fex-snapshot"},{"title":"Reflector Prices Data SDEX Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/reflector-prices-data-sdex-snapshot"},{"title":"Trustlines Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/trustlines-current"},{"title":"Trustlines Snapshot","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/trustlines-snapshot"},{"title":"TTL Current","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/ttl-current"},{"title":"Enriched History Operations","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/enriched-history-operations"},{"title":"Enriched History Operations Soroban","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/enriched-history-operations-soroban"},{"title":"Token Transfers","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/silver/token-transfers-raw"}]},{"group":"Gold 🥇","root":{"title":"Gold 🥇","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/index"},"pages":[{"title":"Asset Balances Daily Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/asset-balances-daily-agg"},{"title":"Trade Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/trade-agg"},{"title":"TVL Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/tvl-agg"},{"title":"Ledger Fee Stats Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/ledger-fee-stats-agg"},{"title":"Daily Fee Stats Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/daily-fee-stats-agg"},{"title":"Hourly Soroban Fee Agg Contract","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/hourly-soroban-fee-agg-contract"},{"title":"Hourly Fee Agg Account","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/hourly-fee-agg-account"},{"title":"Account Balances Daily Agg","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/account-balances-daily-agg"},{"title":"Soroban Core Metrics","href":"/docs/data/analytics/hubble/data-catalog/data-dictionary/gold/soroban-core-metrics"}]}]},{"url":"http://www.stellar-dbt-docs.com/#!/overview","title":"Data Lineage","href":"/docs/data/analytics/hubble/data-catalog/data-lineage"}]}]},{"title":"Public Dashboards","href":"/docs/data/analytics/public-dashboards"},{"title":"Data Analytics Providers","href":"/docs/data/analytics/analytics-providers/index"}]},{"group":"APIs Overview","root":{"title":"APIs Overview","href":"/docs/data/apis/index"},"pages":[{"group":"RPC","root":{"title":"RPC Introduction","sidebarTitle":"RPC","href":"/docs/data/apis/rpc/index"},"pages":[{"group":"Admin Guide","root":{"title":"Admin Guide","href":"/docs/data/apis/rpc/admin-guide/index"},"pages":[{"title":"Prerequisites","href":"/docs/data/apis/rpc/admin-guide/prerequisites"},{"title":"Installing","href":"/docs/data/apis/rpc/admin-guide/installing"},{"title":"Configuring","href":"/docs/data/apis/rpc/admin-guide/configuring"},{"title":"Running","href":"/docs/data/apis/rpc/admin-guide/running"},{"title":"Development","href":"/docs/data/apis/rpc/admin-guide/development"},{"title":"Monitoring","href":"/docs/data/apis/rpc/admin-guide/monitoring"},{"title":"Data Lake Integration","href":"/docs/data/apis/rpc/admin-guide/data-lake-integration"}]},{"group":"API Reference","root":{"title":"API Reference","href":"/docs/data/apis/rpc/api-reference/index"},"pages":[{"group":"Methods","root":{"title":"Methods","href":"/docs/data/apis/rpc/api-reference/methods/index"},"pages":[{"title":"getEvents","href":"/docs/data/apis/rpc/api-reference/methods/getEvents"},{"title":"getFeeStats","href":"/docs/data/apis/rpc/api-reference/methods/getFeeStats"},{"title":"getHealth","href":"/docs/data/apis/rpc/api-reference/methods/getHealth"},{"title":"getLatestLedger","href":"/docs/data/apis/rpc/api-reference/methods/getLatestLedger"},{"title":"getLedgerEntries","href":"/docs/data/apis/rpc/api-reference/methods/getLedgerEntries"},{"title":"getLedgers","href":"/docs/data/apis/rpc/api-reference/methods/getLedgers"},{"title":"getNetwork","href":"/docs/data/apis/rpc/api-reference/methods/getNetwork"},{"title":"getTransaction","href":"/docs/data/apis/rpc/api-reference/methods/getTransaction"},{"title":"getTransactions","href":"/docs/data/apis/rpc/api-reference/methods/getTransactions"},{"title":"getVersionInfo","href":"/docs/data/apis/rpc/api-reference/methods/getVersionInfo"},{"title":"queryEvents","href":"/docs/data/apis/rpc/api-reference/methods/queryEvents"},{"title":"sendTransaction","href":"/docs/data/apis/rpc/api-reference/methods/sendTransaction"},{"title":"simulateTransaction","href":"/docs/data/apis/rpc/api-reference/methods/simulateTransaction"}]},{"group":"Structure","root":{"title":"RPC API Reference","sidebarTitle":"Structure","href":"/docs/data/apis/rpc/api-reference/structure/index"},"pages":[{"title":"JSON-RPC","href":"/docs/data/apis/rpc/api-reference/structure/json-rpc"},{"title":"Pagination","href":"/docs/data/apis/rpc/api-reference/structure/pagination"},{"title":"Data Formats","href":"/docs/data/apis/rpc/api-reference/structure/data-format"}]}]},{"title":"Providers","href":"/docs/data/apis/rpc/providers"}]},{"group":"Horizon","root":{"title":"Horizon Introduction","sidebarTitle":"Horizon","href":"/docs/data/apis/horizon/index"},"pages":[{"group":"Admin Guide","root":{"title":"Admin Guide","href":"/docs/data/apis/horizon/admin-guide/index"},"pages":[{"title":"Overview","href":"/docs/data/apis/horizon/admin-guide/overview"},{"title":"Prerequisites","href":"/docs/data/apis/horizon/admin-guide/prerequisites"},{"title":"Installing","href":"/docs/data/apis/horizon/admin-guide/installing"},{"title":"Configuring","href":"/docs/data/apis/horizon/admin-guide/configuring"},{"title":"Running","href":"/docs/data/apis/horizon/admin-guide/running"},{"title":"Ingestion","href":"/docs/data/apis/horizon/admin-guide/ingestion"},{"title":"Monitoring","href":"/docs/data/apis/horizon/admin-guide/monitoring"},{"title":"Scaling","href":"/docs/data/apis/horizon/admin-guide/scaling"},{"title":"Upgrading","href":"/docs/data/apis/horizon/admin-guide/upgrading"},{"title":"Ingestion Filtering","href":"/docs/data/apis/horizon/admin-guide/ingestion-filtering"}]},{"group":"API Reference","root":{"title":"API Reference","href":"/docs/data/apis/horizon/api-reference/index"},"pages":[{"group":"Resources","root":{"title":"Resources","href":"/docs/data/apis/horizon/api-reference/resources/index"},"pages":[{"group":"Accounts","root":{"title":"Accounts","href":"/docs/data/apis/horizon/api-reference/resources/accounts/index"},"pages":[{"title":"The Account Object","href":"/docs/data/apis/horizon/api-reference/resources/accounts/object"},{"title":"List all Accounts","openapi":"openapi/horizon/bundled.yml GET /accounts","href":"/docs/data/apis/horizon/api-reference/list-all-accounts"},{"title":"Retrieve an Account","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}","href":"/docs/data/apis/horizon/api-reference/retrieve-an-account"},{"title":"Retrieve an Account's Transactions","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/transactions","href":"/docs/data/apis/horizon/api-reference/get-transactions-by-account-id"},{"title":"Retrieve an Account's Operations","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/operations","href":"/docs/data/apis/horizon/api-reference/get-operations-by-account-id"},{"title":"Retrieve an Account's Payments","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/payments","href":"/docs/data/apis/horizon/api-reference/get-payments-by-account-id"},{"title":"Retrieve an Account's Effects","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/effects","href":"/docs/data/apis/horizon/api-reference/get-effects-by-account-id"},{"title":"Retrieve an Account's Offers","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/offers","href":"/docs/data/apis/horizon/api-reference/get-offers-by-account-id"},{"title":"Retrieve an Account's Trades","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/trades","href":"/docs/data/apis/horizon/api-reference/get-trades-by-account-id"},{"title":"Retrieve an Account's Data","openapi":"openapi/horizon/bundled.yml GET /accounts/{account_id}/data/{key}","href":"/docs/data/apis/horizon/api-reference/get-data-by-account-id"}]},{"group":"Assets","root":{"title":"Assets","href":"/docs/data/apis/horizon/api-reference/resources/assets/index"},"pages":[{"title":"The Asset Object","href":"/docs/data/apis/horizon/api-reference/resources/assets/object"},{"title":"List all Assets","openapi":"openapi/horizon/bundled.yml GET /assets","href":"/docs/data/apis/horizon/api-reference/list-all-assets"}]},{"group":"Claimable Balances","root":{"title":"Claimable Balances","href":"/docs/data/apis/horizon/api-reference/resources/claimablebalances/index"},"pages":[{"title":"The Claimable Balance Object","href":"/docs/data/apis/horizon/api-reference/resources/claimablebalances/object"},{"title":"List All Claimable Balances","openapi":"openapi/horizon/bundled.yml GET /claimable_balances","href":"/docs/data/apis/horizon/api-reference/list-all-claimable-balances"},{"title":"Retrieve a Claimable Balance","openapi":"openapi/horizon/bundled.yml GET /claimable_balances/{claimable_balance_id}","href":"/docs/data/apis/horizon/api-reference/retrieve-a-claimable-balance"},{"title":"Retrieve Related Transactions","openapi":"openapi/horizon/bundled.yml GET /claimable_balances/{claimable_balance_id}/transactions","href":"/docs/data/apis/horizon/api-reference/cb-retrieve-related-transactions"},{"title":"Retrieve Related Operations","openapi":"openapi/horizon/bundled.yml GET /claimable_balances/{claimable_balance_id}/operations","href":"/docs/data/apis/horizon/api-reference/cb-retrieve-related-operations"}]},{"group":"Effects","root":{"title":"Effects","href":"/docs/data/apis/horizon/api-reference/resources/effects/index"},"pages":[{"title":"Effect Types","href":"/docs/data/apis/horizon/api-reference/resources/effects/types"},{"title":"List All Effects","openapi":"openapi/horizon/bundled.yml GET /effects","href":"/docs/data/apis/horizon/api-reference/list-all-effects"}]},{"group":"Ledgers","root":{"title":"Ledgers","href":"/docs/data/apis/horizon/api-reference/resources/ledgers/index"},"pages":[{"title":"The Ledger Object","href":"/docs/data/apis/horizon/api-reference/resources/ledgers/object"},{"title":"Retrieve a Ledger","openapi":"openapi/horizon/bundled.yml GET /ledgers/{sequence}","href":"/docs/data/apis/horizon/api-reference/retrieve-a-ledger"},{"title":"Retrieve a Ledger's Transactions","openapi":"openapi/horizon/bundled.yml GET /ledgers/{sequence}/transactions","href":"/docs/data/apis/horizon/api-reference/retrieve-a-ledgers-transactions"},{"title":"Retrieve a Ledger's Payments","openapi":"openapi/horizon/bundled.yml GET /ledgers/{sequence}/payments","href":"/docs/data/apis/horizon/api-reference/retrieve-a-ledgers-payments"},{"title":"Retrieve a Ledger's Operations","openapi":"openapi/horizon/bundled.yml GET /ledgers/{sequence}/operations","href":"/docs/data/apis/horizon/api-reference/retrieve-a-ledgers-operations"},{"title":"Retrieve a Ledgers's Effects","openapi":"openapi/horizon/bundled.yml GET /ledgers/{sequence}/effects","href":"/docs/data/apis/horizon/api-reference/retrieve-a-ledgers-effects"},{"title":"List All Ledgers","openapi":"openapi/horizon/bundled.yml GET /ledgers","href":"/docs/data/apis/horizon/api-reference/list-all-ledgers"}]},{"group":"Liquidity Pools","root":{"title":"Liquidity Pools","href":"/docs/data/apis/horizon/api-reference/resources/liquiditypools/index"},"pages":[{"title":"List Liquidity Pools","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools","href":"/docs/data/apis/horizon/api-reference/list-liquidity-pools"},{"title":"Retrieve a Liquidity Pool","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools/{liquidity_pool_id}","href":"/docs/data/apis/horizon/api-reference/retrieve-a-liquidity-pool"},{"title":"Retrieve Related Effects","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools/{liquidity_pool_id}/effects","href":"/docs/data/apis/horizon/api-reference/retrieve-related-effects"},{"title":"Retrieve Related Trades","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools/{liquidity_pool_id}/trades","href":"/docs/data/apis/horizon/api-reference/retrieve-related-trades"},{"title":"Retrieve Related Transactions","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools/{liquidity_pool_id}/transactions","href":"/docs/data/apis/horizon/api-reference/lp-retrieve-related-transactions"},{"title":"Retrieve Related Operations","openapi":"openapi/horizon/bundled.yml GET /liquidity_pools/{liquidity_pool_id}/operations","href":"/docs/data/apis/horizon/api-reference/lp-retrieve-related-operations"}]},{"group":"Offers","root":{"title":"Offers","href":"/docs/data/apis/horizon/api-reference/resources/offers/index"},"pages":[{"title":"The Offer Object","href":"/docs/data/apis/horizon/api-reference/resources/offers/object"},{"title":"List All Offers","openapi":"openapi/horizon/bundled.yml GET /offers","href":"/docs/data/apis/horizon/api-reference/get-all-offers"},{"title":"Retrieve an Offer","openapi":"openapi/horizon/bundled.yml GET /offers/{offer_id}","href":"/docs/data/apis/horizon/api-reference/get-offer-by-offer-id"},{"title":"Retrieve an Offer's Trades","openapi":"openapi/horizon/bundled.yml GET /offers/{offer_id}/trades","href":"/docs/data/apis/horizon/api-reference/get-trades-by-offer-id"}]},{"group":"Operations","root":{"title":"Operations","href":"/docs/data/apis/horizon/api-reference/resources/operations/index"},"pages":[{"group":"The Operation Object","root":{"title":"The Operation Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/index"},"pages":[{"title":"Account Merge Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/account-merge"},{"title":"Allow Trust Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/allow-trust"},{"title":"Begin Sponsoring Future Reserves","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/begin-sponsoring-future-reserves"},{"title":"Bump Sequence Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/bump-sequence"},{"title":"Manage Buy Offer Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/buy-offer"},{"title":"Change Trust Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/change-trust"},{"title":"Claim Claimable Balance","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/claim-claimable-balance"},{"title":"Create Account Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/create-account"},{"title":"Create Claimable Balance","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/create-claimable-balance"},{"title":"End Sponsoring Future Reserves","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/end-sponsoring-future-reserves"},{"title":"Extend Footprint TTL Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/extend-footprint-ttl"},{"title":"Invoke Host Function Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/invoke-host-function"},{"title":"Liquidity Pool Deposit Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/liquidity-pool-deposit"},{"title":"Liquidity Pool Withdraw Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/liquidity-pool-withdraw"},{"title":"Manage Data Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/manage-data"},{"title":"Create Passive Sell Offer Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/passive-sell-offer"},{"title":"Path Payment Strict Receive Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/path-payment-strict-receive"},{"title":"Path Payment Strict Send Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/path-payment-strict-send"},{"title":"Restore Footprint Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/restore-footprint"},{"title":"Revoke Sponsorship","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/revoke-sponsorship"},{"title":"Manage Sell Offer Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/sell-offer"},{"title":"Set Options Object","href":"/docs/data/apis/horizon/api-reference/resources/operations/object/set-options"}]},{"title":"Retrieve an Operation","openapi":"openapi/horizon/bundled.yml GET /operations/{id}","href":"/docs/data/apis/horizon/api-reference/retrieve-an-operation"},{"title":"Retrieve an Operation's Effects","openapi":"openapi/horizon/bundled.yml GET /operations/{id}/effects","href":"/docs/data/apis/horizon/api-reference/retrieve-an-operations-effects"},{"title":"List All Operations","openapi":"openapi/horizon/bundled.yml GET /operations","href":"/docs/data/apis/horizon/api-reference/list-all-operations"}]},{"group":"Payments","root":{"title":"Payments","href":"/docs/data/apis/horizon/api-reference/resources/payments/index"},"pages":[{"title":"The Payment Object","href":"/docs/data/apis/horizon/api-reference/resources/payments/object"},{"title":"List All Payments","openapi":"openapi/horizon/bundled.yml GET /payments","href":"/docs/data/apis/horizon/api-reference/list-all-payments"},{"title":"Retrieve a Transaction's Payments","openapi":"openapi/horizon/bundled.yml GET /transactions/{transaction_hash}/payments","href":"/docs/data/apis/horizon/api-reference/retrieve-a-transactions-payments"}]},{"group":"Trades","root":{"title":"Trades","href":"/docs/data/apis/horizon/api-reference/resources/trades/index"},"pages":[{"title":"The Trade Object","href":"/docs/data/apis/horizon/api-reference/resources/trades/object"},{"title":"List All Trades","openapi":"openapi/horizon/bundled.yml GET /trades","href":"/docs/data/apis/horizon/api-reference/get-all-trades"}]},{"group":"Transactions","root":{"title":"Transactions","href":"/docs/data/apis/horizon/api-reference/resources/transactions/index"},"pages":[{"title":"The Transaction Object","href":"/docs/data/apis/horizon/api-reference/resources/transactions/object"},{"title":"Retrieve a Transaction","openapi":"openapi/horizon/bundled.yml GET /transactions/{transaction_hash}","href":"/docs/data/apis/horizon/api-reference/retrieve-a-transaction"},{"title":"Retrieve a Transaction's Operations","openapi":"openapi/horizon/bundled.yml GET /transactions/{transaction_hash}/operations","href":"/docs/data/apis/horizon/api-reference/retrieve-a-transactions-operations"},{"title":"Retrieve a Transaction's Effects","openapi":"openapi/horizon/bundled.yml GET /transactions/{transaction_hash}/effects","href":"/docs/data/apis/horizon/api-reference/retrieve-a-transactions-effects"},{"title":"List All Transactions","openapi":"openapi/horizon/bundled.yml GET /transactions","href":"/docs/data/apis/horizon/api-reference/list-all-transactions"},{"title":"Submit a Transaction","openapi":"openapi/horizon/bundled.yml POST /transactions","href":"/docs/data/apis/horizon/api-reference/submit-a-transaction"},{"title":"Submit a Transaction Asynchronously","openapi":"openapi/horizon/bundled.yml POST /transactions_async","href":"/docs/data/apis/horizon/api-reference/submit-async-transaction"}]}]},{"group":"Structure","root":{"title":"Horizon API Reference","sidebarTitle":"Structure","href":"/docs/data/apis/horizon/api-reference/structure/index"},"pages":[{"title":"Response Format","href":"/docs/data/apis/horizon/api-reference/structure/response-format"},{"title":"Streaming","href":"/docs/data/apis/horizon/api-reference/structure/streaming"},{"title":"Rate Limiting","href":"/docs/data/apis/horizon/api-reference/structure/rate-limiting"},{"title":"XDR","href":"/docs/data/apis/horizon/api-reference/structure/xdr"},{"title":"Consistency","href":"/docs/data/apis/horizon/api-reference/structure/consistency"},{"group":"Pagination","root":{"title":"Pagination","href":"/docs/data/apis/horizon/api-reference/structure/pagination/index"},"pages":[{"title":"Page Arguments","href":"/docs/data/apis/horizon/api-reference/structure/pagination/page-arguments"}]}]},{"group":"Aggregations","root":{"title":"Aggregations","href":"/docs/data/apis/horizon/api-reference/aggregations/index"},"pages":[{"group":"Order Books","root":{"title":"Order Books","href":"/docs/data/apis/horizon/api-reference/aggregations/order-books/index"},"pages":[{"title":"The Order Book Object","href":"/docs/data/apis/horizon/api-reference/aggregations/order-books/object"},{"title":"Retrieve an Order Book","openapi":"openapi/horizon/bundled.yml GET /order_book","href":"/docs/data/apis/horizon/api-reference/retrieve-an-order-book"}]},{"group":"Paths","root":{"title":"Paths","href":"/docs/data/apis/horizon/api-reference/aggregations/paths/index"},"pages":[{"title":"The Path Object","href":"/docs/data/apis/horizon/api-reference/aggregations/paths/object"},{"title":"List Strict Receive Payment Paths","openapi":"openapi/horizon/bundled.yml GET /paths/strict-receive","href":"/docs/data/apis/horizon/api-reference/list-strict-receive-payment-paths"},{"title":"List Strict Send Payment Paths","openapi":"openapi/horizon/bundled.yml GET /paths/strict-send","href":"/docs/data/apis/horizon/api-reference/list-strict-send-payment-paths"}]},{"group":"Trade Aggregations","root":{"title":"Trade Aggregations","href":"/docs/data/apis/horizon/api-reference/aggregations/trade-aggregations/index"},"pages":[{"title":"The Trade Aggregation Object","description":"When Horizon returns information about a trade aggregation, it uses the following format.","href":"/docs/data/apis/horizon/api-reference/aggregations/trade-aggregations/object"},{"title":"List Trade Aggregations","openapi":"openapi/horizon/bundled.yml GET /trade_aggregations","href":"/docs/data/apis/horizon/api-reference/list-trade-aggregations"}]},{"group":"Fee Stats","root":{"title":"Fee Stats","description":"Fee stats are used to predict what fee to set for a transaction before submitting it to the network.","href":"/docs/data/apis/horizon/api-reference/aggregations/fee-stats/index"},"pages":[{"title":"The Fee Stats Object","href":"/docs/data/apis/horizon/api-reference/aggregations/fee-stats/object"},{"title":"Retrieve Fee Stats","openapi":"openapi/horizon/bundled.yml GET /fee_stats","href":"/docs/data/apis/horizon/api-reference/retrieve-fee-stats"}]}]},{"group":"Errors","root":{"title":"Errors","href":"/docs/data/apis/horizon/api-reference/errors/index"},"pages":[{"title":"Error Response","href":"/docs/data/apis/horizon/api-reference/errors/response"},{"title":"Error Handling","href":"/docs/data/apis/horizon/api-reference/errors/error-handling"},{"group":"HTTP Status Codes","root":{"title":"HTTP Status Codes","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/index"},"pages":[{"title":"Standard Status Codes","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/standard"},{"group":"Horizon-Specific Status Codes","root":{"title":"Horizon-Specific Status Codes","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/index"},"pages":[{"title":"Transaction Failed","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-failed"},{"title":"Transaction Malformed","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-malformed"},{"title":"Before History","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/before-history"},{"title":"Stale History","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/stale-history"},{"title":"Timeout","href":"/docs/data/apis/horizon/api-reference/errors/http-status-codes/horizon-specific/timeout"}]}]},{"group":"Result Codes","root":{"title":"Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/index"},"pages":[{"title":"Transaction Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/transactions"},{"title":"Operation Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operations"},{"group":"Operation-Specific Result Codes","root":{"title":"Operation-Specific Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/index"},"pages":[{"title":"Create Account Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/create-account"},{"title":"Payment Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/payment"},{"title":"Path Payment Strict Receive Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/path-payment-strict-receive"},{"title":"Path Payment Strict Send Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/path-payment-strict-send"},{"title":"Manage Sell Offer Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/manage-sell-offer"},{"title":"Manage Buy Offer Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/manage-buy-offer"},{"title":"Create Passive Sell Offer Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/create-passive-sell-offer"},{"title":"Set Options Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/set-options"},{"title":"Change Trust Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/change-trust"},{"title":"Allow Trust Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/allow-trust"},{"title":"Account Merge Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/account-merge"},{"title":"Manage Data Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/manage-data"},{"title":"Bump Sequence Result Codes","href":"/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/bump-sequence"}]}]}]}]},{"title":"Providers","href":"/docs/data/apis/horizon/providers"}]},{"title":"Migrate from Horizon to RPC","href":"/docs/data/apis/migrate-from-horizon-to-rpc"}]},{"group":"Indexers","root":{"title":"Indexers Overview","sidebarTitle":"Indexers","href":"/docs/data/indexers/index"},"pages":[{"group":"Build Your Own","root":{"title":"Build Your Own","href":"/docs/data/indexers/build-your-own/index"},"pages":[{"group":"Galexie","root":{"title":"Galexie","href":"/docs/data/indexers/build-your-own/galexie/index"},"pages":[{"title":"Data Lake Storage Format","href":"/docs/data/indexers/build-your-own/galexie/data-lake-format"},{"group":"Admin Guide","root":{"title":"Admin Guide","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/index"},"pages":[{"title":"Prerequisites","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/prerequisites"},{"title":"Setup","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/setup"},{"title":"Configuring","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/configuring"},{"title":"Installing","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/installing"},{"title":"Running","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/running"},{"title":"Monitoring","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/monitoring"},{"title":"Full History Exporting","href":"/docs/data/indexers/build-your-own/galexie/admin_guide/full-history-exporting"}]},{"group":"Example Usages","root":{"title":"Example Usages","href":"/docs/data/indexers/build-your-own/galexie/examples/index"},"pages":[{"title":"Export to GCS","href":"/docs/data/indexers/build-your-own/galexie/examples/gcs-export"}]},{"title":"Providers","href":"/docs/data/indexers/build-your-own/galexie/providers"}]},{"group":"Ingest SDK","root":{"title":"Ingest SDK","href":"/docs/data/indexers/build-your-own/ingest-sdk/index"},"pages":[{"group":"Developer Guide","root":{"title":"Developer Guide","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/index"},"pages":[{"title":"Architecture","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/architecture"},{"title":"Prerequisites","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/prerequisites"},{"group":"Ledger Backends","root":{"title":"Ledger Backends","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/index"},"pages":[{"title":"Captive Core","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/captivecore"},{"title":"BufferedStorageBackend","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/bufferedstoragebackend"},{"title":"RPC Ledger Backend","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerbackends/rpcledgerbackend"}]},{"title":"Ledger Readers","href":"/docs/data/indexers/build-your-own/ingest-sdk/developer_guide/ledgerreaders"}]},{"group":"Example Usages","root":{"title":"Example Usages","href":"/docs/data/indexers/build-your-own/ingest-sdk/examples/index"},"pages":[{"title":"Get successful/failed transactions from a ledger range","href":"/docs/data/indexers/build-your-own/ingest-sdk/examples/transaction_statistics"},{"title":"Get count of each ledger entry type from history archive","href":"/docs/data/indexers/build-your-own/ingest-sdk/examples/ledger_entry_statistics"},{"title":"Retrieve ledger entry changes within a range","href":"/docs/data/indexers/build-your-own/ingest-sdk/examples/changes"}]}]},{"group":"Processors","root":{"title":"Processors","href":"/docs/data/indexers/build-your-own/processors/index"},"pages":[{"group":"Token Transfer Processor","root":{"title":"Token Transfer Processor","href":"/docs/data/indexers/build-your-own/processors/token-transfer-processor/index"},"pages":[{"group":"Example Usages","root":{"title":"Example Usages","href":"/docs/data/indexers/build-your-own/processors/token-transfer-processor/examples/index"},"pages":[{"title":"Retrieve token transfer events from a ledger","href":"/docs/data/indexers/build-your-own/processors/token-transfer-processor/examples/event_stats"},{"title":"Filter events from transaction","href":"/docs/data/indexers/build-your-own/processors/token-transfer-processor/examples/filter_events"}]}]}]}]}]},{"group":"Oracles","root":{"title":"Oracles","href":"/docs/data/oracles/index"},"pages":[{"title":"Oracle Providers","href":"/docs/data/oracles/oracle-providers"}]}]}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/docs/tools"}]},{"tab":"Networks","pages":[{"title":"Networks","href":"/docs/networks"}]},{"tab":"Validators","pages":[{"title":"Validators","href":"/docs/validators"}]},{"tab":"Platforms","pages":[{"title":"Platforms","href":"/docs/platforms"}]},{"tab":"Meeting Notes","pages":[{"title":"Meeting Notes","href":"/meetings"}]}]},"basePath":"","title":"List Trade Aggregations - Stellar Developer Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-DSVu9Ucl.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}