from finance_dev import FinanceDev, modelswith FinanceDev( security=models.Security( client_id="<YOUR_CLIENT_ID_HERE>", client_secret="<YOUR_CLIENT_SECRET_HERE>", ),) as fd_client: res = fd_client.stocks.get_trades(ticker="AAPL", timestamp="2024-01-15", timestamp_from="2024-01-01", timestamp_after="2024-01-01", timestamp_to="2024-01-31", timestamp_before="2024-01-31", order=models.GetStockTradesOrder.DESC, limit=1000) while res is not None: # Handle items res = res.next()
import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.stocks.getTrades({
ticker: "AAPL",
timestamp: "2024-01-15",
timestampFrom: "2024-01-01",
timestampAfter: "2024-01-01",
timestampTo: "2024-01-31",
timestampBefore: "2024-01-31",
limit: 1000,
});
for await (const page of result) {
console.log(page);
}
}
run();
Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps.
Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.
GET
/
v1
/
stocks
/
trades
Python (SDK)
from finance_dev import FinanceDev, modelswith FinanceDev( security=models.Security( client_id="<YOUR_CLIENT_ID_HERE>", client_secret="<YOUR_CLIENT_SECRET_HERE>", ),) as fd_client: res = fd_client.stocks.get_trades(ticker="AAPL", timestamp="2024-01-15", timestamp_from="2024-01-01", timestamp_after="2024-01-01", timestamp_to="2024-01-31", timestamp_before="2024-01-31", order=models.GetStockTradesOrder.DESC, limit=1000) while res is not None: # Handle items res = res.next()
import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.stocks.getTrades({
ticker: "AAPL",
timestamp: "2024-01-15",
timestampFrom: "2024-01-01",
timestampAfter: "2024-01-01",
timestampTo: "2024-01-31",
timestampBefore: "2024-01-31",
limit: 1000,
});
for await (const page of result) {
console.log(page);
}
}
run();
Sort order for returned records. Use asc for oldest first or desc for newest first when supported.
Sort direction for results. Use ascending for oldest or smallest first, descending for newest or largest first.
Sort field used for ordering. Massive documents this separately from order, so enter the provider-supported field name in the text box, for example timestamp.
Status string from the upstream data provider — typically OK for a successful response. Treat any other value as an error indicator alongside the HTTP status code.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aries API","colors":{"primary":"#0BAA5E","light":"#0BAA5E","dark":"#098F4E"},"logo":{"light":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3","dark":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/dark.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=fbee595bbc78c2506c5e92673b91d2c7"},"favicon":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/favicon.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=0c47f5ea65b933ab26eae6eaca2fc12c","api":{"openapi":["openapi.json"],"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"mailto:support@aries.com","label":"Support"}],"primary":{"type":"button","label":"Aries","href":"https://aries.com"}},"contextual":{"options":["chatgpt","claude","view"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ariesfinancialinc","hasAudioNarration":false,"actualSubdomain":"ariesfinancialinc","customDomains":["finance.dev"],"gitSource":{"type":"github","owner":"aries-financial-inc","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeab772bd6bd4d02bb4d556","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Supplemental API","count":116},{"language":"default","tag":"Core API","count":38},{"language":"default","tag":"Orders","count":22},{"language":"default","tag":"Prediction API","count":20},{"language":"default","tag":"Stock Alternative","count":18},{"language":"default","tag":"Analytics","count":13},{"language":"default","tag":"Options","count":11},{"language":"default","tag":"Guide","count":10},{"language":"default","tag":"Stocks","count":10},{"language":"default","tag":"MCP Auth","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"html{visibility:visible!important;opacity:1!important}body{opacity:1!important;transition:none!important;will-change:auto!important}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeSpeed;font-display:swap}.hero-title{text-align:center!important;font-size:clamp(2rem, 5vw, 3rem)!important;font-weight:700!important;margin:0 auto!important;will-change:transform!important}.hero-description,.hero-title+p{text-align:center!important;max-width:800px!important;margin:1rem auto!important}div[class*=\"CardGroup\"],.card-group{display:grid!important;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))!important;gap:1.5rem!important;contain:layout style!important;content-visibility:auto!important}.aries-oauth-dialog[open]{display:flex;align-items:center;justify-content:center;width:100%;min-height:100dvh;min-height:100vh;max-width:100vw;max-height:100dvh;max-height:100vh;box-sizing:border-box;margin:0;border:none;padding:1rem;background:transparent;overflow:auto;overscroll-behavior:contain}.aries-oauth-dialog::backdrop{background:rgba(0, 0, 0, 0.65);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"light\"]::backdrop{background:rgba(0, 0, 0, 0.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"dark\"]::backdrop{background:rgba(0, 0, 0, 0.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.welcome-hero{background:linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%)!important}.welcome-hero-gradient{background:linear-gradient(to top, #a7f3d0, transparent)!important}.welcome-feature-box{background:#E7F6EF!important;border:1px solid #0BAA5E!important;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)!important}.welcome-feature-box:hover{background:#DAF2E7!important;border-color:#0BAA5E!important;transform:translateY(-4px)!important;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)!important}.welcome-feature-link{color:#0BAA5E!important}.welcome-feature-title{color:#000000!important}.dark .welcome-hero{background:linear-gradient(180deg, rgba(11, 170, 94, 0.15) 0%, rgba(11, 170, 94, 0.25) 50%, rgba(11, 170, 94, 0.15) 100%)!important}.dark .welcome-hero-gradient{background:linear-gradient(to top, rgba(11, 170, 94, 0.2), transparent)!important}.dark .welcome-feature-box{background:rgba(11, 170, 94, 0.15)!important;border:1px solid rgba(11, 170, 94, 0.5)!important}.dark .welcome-feature-box:hover{background:rgba(11, 170, 94, 0.2)!important;border-color:rgba(11, 170, 94, 0.6)!important}.dark .welcome-feature-link{color:#0BAA5E!important}.dark .welcome-feature-title{color:#FFFFFF!important}.welcome-feature-box-coming-soon{cursor:default!important;pointer-events:none!important}.welcome-feature-box-coming-soon:hover{transform:none!important}.welcome-coming-soon{color:#0BAA5E!important;font-weight:600!important}.dark .welcome-coming-soon{color:#0BAA5E!important}*/\n\n/* Hero Section Theme-Aware Styling */\n/* Light mode hero styling (default) */\n.hero-title{color:#000000!important}.hero-description{color:#000000!important}.hero-footnote{color:#000000!important}.hero-link{color:#0BAA5E!important}.section-title{color:#000000!important}.welcome-cards a[class*=\"Card\"],.welcome-cards .card{transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1)!important;transform-origin:center center!important}.welcome-cards,.welcome-cards div[class*=\"CardGroup\"],.welcome-cards .card-group{overflow:visible!important}.welcome-cards a[class*=\"Card\"]:hover,.welcome-cards .card:hover{transform:translateY(-6px)!important;border-color:rgba(11, 170, 94, 0.45)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.16),\n 0 10px 18px -14px rgba(11, 170, 94, 0.35)!important}.dark .welcome-cards a[class*=\"Card\"]:hover,.dark .welcome-cards .card:hover{border-color:rgba(11, 170, 94, 0.55)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.45),\n 0 10px 22px -16px rgba(11, 170, 94, 0.35)!important}.dark .hero-title{color:#FFFFFF!important}.dark .hero-description{color:#D1D5DB!important}.dark .hero-footnote{color:#9CA3AF!important}.dark .hero-link{color:#0BAA5E!important}.dark .section-title{color:#FFFFFF!important}@media (max-width: 1024px){.welcome-side-by-side{grid-template-columns:1fr!important}}@media (max-width: 640px){.welcome-cards{padding:0 24px!important}}.dark select,.dark select option{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark select:focus,.dark select:active{background-color:#000000!important;color:#ffffff!important}.dark [class*=\"playground\"] select,.dark [class*=\"api\"] select,.dark [class*=\"request\"] select,.dark form select{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark [class*=\"playground\"] select option,.dark [class*=\"api\"] select option,.dark [class*=\"request\"] select option,.dark form select option{background-color:#000000!important;color:#ffffff!important}select,select option{background-color:#ffffff!important;color:#000000!important}.prompt{background-color:#ffffff!important;border-color:rgba(10, 15, 13, 0.1)!important}.dark .prompt{background-color:#0B0C0E!important;border-color:rgba(255, 255, 255, 0.1)!important}img[src=\"/logo/claude-logo.png\"]{border-radius:23%!important}img[src=\"https://cdn.simpleicons.org/cursor\"],img[src=\"/logo/chatgpt-logo.png\"]{background-color:#ffffff!important;border-radius:23%!important;padding:3px!important}"}],"page":{"pagePath":"api-reference/supplemental/stocks-trades","slug":"/api-reference/supplemental/stocks-trades","pageMetadata":{"title":"Stock Trades","description":"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps.\n\n**Use Case:** Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\n","openapi":"openapi.json GET /v1/stocks/trades","href":"/api-reference/supplemental/stocks-trades"},"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 p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Use Case:\"\n }), \" Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\"]\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const OAuthLoginButton=({scopes=`user:information watchlist:information watchlist:management account:information order:execution order:information position:information market:information calendar:information options:information analytics:information market:supplemental`,responseType=`token`,buttonText=`Authenticate with OAuth`,showStatus=true,requiredScopes=[]})=>{const{Info}=_provideComponents()||{};if(!Info)_missingMdxReference(`Info`,true);const[isDarkMode,setIsDarkMode]=useState(false);useEffect(()=>{const checkDarkMode=()=>{const isDark=document.documentElement.classList.contains(`dark`)||document.documentElement.getAttribute(`data-theme`)===`dark`||document.body.classList.contains(`dark`)||document.body.getAttribute(`data-theme`)===`dark`;setIsDarkMode(isDark)};checkDarkMode();const htmlObserver=new MutationObserver(checkDarkMode);const bodyObserver=new MutationObserver(checkDarkMode);htmlObserver.observe(document.documentElement,{attributes:true,attributeFilter:[`class`,`data-theme`,`style`]});bodyObserver.observe(document.body,{attributes:true,attributeFilter:[`class`,`data-theme`,`style`]});const interval=setInterval(checkDarkMode,1e3);return()=>{htmlObserver.disconnect();bodyObserver.disconnect();clearInterval(interval)}},[]);const styles=useMemo(()=>({statusContainer:{marginBottom:`1.5rem`,padding:`0.875rem 1rem`,backgroundColor:isDarkMode?`rgba(11, 170, 94, 0.08)`:`rgba(11, 170, 94, 0.06)`,border:isDarkMode?`1px solid rgba(11, 170, 94, 0.25)`:`1px solid rgba(11, 170, 94, 0.25)`,borderRadius:`10px`},statusContent:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,flexWrap:`wrap`},statusLeft:{display:`flex`,alignItems:`center`,gap:`1rem`,flexWrap:`wrap`},statusBadge:{display:`flex`,alignItems:`center`,gap:`0.5rem`},checkmark:{color:isDarkMode?`#0BAA5E`:`#0BAA5E`,fontSize:`1.25rem`,fontWeight:`bold`},statusText:{color:isDarkMode?`#0BAA5E`:`#0BAA5E`,fontWeight:`600`,fontSize:`0.95rem`},expiryText:{color:isDarkMode?`#a1a1aa`:`#71717a`,fontSize:`0.8125rem`},logoutButton:{padding:`0.375rem 0.75rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`6px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,transition:`background-color 0.15s ease`},logoutButtonHover:{backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.04)`},buttonContainer:{marginBottom:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,padding:`0.875rem 1rem`,backgroundColor:`transparent`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`10px`},loginButton:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.5rem 0.875rem`,backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease, border-color 0.15s ease`,whiteSpace:`nowrap`,flexShrink:0},loginButtonHover:{backgroundColor:`#098F4E`,borderColor:`#098F4E`},lockIcon:{width:`14px`,height:`14px`,flexShrink:0},helpText:{margin:0,fontSize:`0.8125rem`,color:isDarkMode?`#9ca3af`:`#6b7280`,lineHeight:`1.5`,flex:1},modalDialog:{border:`none`,backgroundColor:`transparent`,padding:0,margin:0,maxWidth:`100%`,maxHeight:`100%`},modalContent:{backgroundColor:isDarkMode?`#0f0f10`:`#ffffff`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.08)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`12px`,padding:`1.5rem`,maxWidth:`500px`,width:`100%`,boxShadow:isDarkMode?`0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3)`:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)`},modalHeader:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`1.5rem`},modalTitle:{margin:0,fontSize:`1.125rem`,fontWeight:`600`,color:isDarkMode?`#fafafa`:`#0a0a0a`},closeButton:{background:`none`,border:`none`,fontSize:`1.5rem`,lineHeight:1,color:isDarkMode?`#a1a1aa`:`#71717a`,cursor:`pointer`,padding:`0`,width:`2rem`,height:`2rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`6px`,transition:`color 0.15s ease, background-color 0.15s ease`},form:{display:`flex`,flexDirection:`column`,gap:`1rem`},formGroup:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},label:{fontSize:`0.8125rem`,fontWeight:`500`,color:isDarkMode?`#e4e4e7`:`#3f3f46`},input:{padding:`0.5rem 0.75rem`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`8px`,fontSize:`0.875rem`,color:isDarkMode?`#fafafa`:`#0a0a0a`,backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.03)`:`#ffffff`,transition:`border-color 0.15s ease, box-shadow 0.15s ease`,outline:`none`},inputHelp:{margin:0,fontSize:`0.75rem`,color:isDarkMode?`#a1a1aa`:`#71717a`},link:{color:`#0BAA5E`,textDecoration:`none`,fontWeight:`500`},errorBox:{padding:`0.75rem`,backgroundColor:isDarkMode?`rgba(220, 38, 38, 0.1)`:`rgba(220, 38, 38, 0.05)`,border:isDarkMode?`1px solid rgba(220, 38, 38, 0.3)`:`1px solid rgba(220, 38, 38, 0.2)`,borderRadius:`8px`,color:isDarkMode?`#fca5a5`:`#dc2626`,fontSize:`0.8125rem`},modalFooter:{display:`flex`,gap:`0.5rem`,justifyContent:`flex-end`,marginTop:`0.5rem`},cancelButton:{padding:`0.5rem 0.875rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease`},submitButton:{padding:`0.5rem 0.875rem`,backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease, border-color 0.15s ease`},submitButtonDisabled:{opacity:.6,cursor:`not-allowed`},redirectUrlContainer:{display:`flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.5rem 0.75rem`,backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.03)`:`rgba(0, 0, 0, 0.03)`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.08)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`8px`,fontSize:`0.8125rem`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`},redirectUrlText:{flex:1,color:isDarkMode?`#a1a1aa`:`#71717a`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},copyButton:{padding:`0.25rem 0.625rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`6px`,cursor:`pointer`,fontSize:`0.75rem`,fontWeight:`500`,transition:`background-color 0.15s ease, border-color 0.15s ease`,whiteSpace:`nowrap`},copyButtonHover:{backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.04)`},copyButtonCopied:{backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`}}),[isDarkMode]);const[isModalOpen,setIsModalOpen]=useState(false);const[clientId,setClientId]=useState(``);const[isLoading,setIsLoading]=useState(false);const[hasValidToken,setHasValidToken]=useState(false);const[tokenSource,setTokenSource]=useState(null);const[timeRemaining,setTimeRemaining]=useState(0);const[error,setError]=useState(``);const[copied,setCopied]=useState(false);const redirectUrl=typeof window!==`undefined`?window.location.origin+`/api-reference`:``;useEffect(()=>{updateTokenState();if(window.AriesOAuth){const lastClientId=window.AriesOAuth.getLastClientId();setClientId(lastClientId)}const handleTokenUpdate=()=>{updateTokenState()};const handleOAuthError=event=>{setError(event.detail.description||`Authentication failed`);setIsLoading(false)};const handleOAuthSuccess=()=>{setIsModalOpen(false);setIsLoading(false);setError(``)};window.addEventListener(`tokenStatusChanged`,handleTokenUpdate);window.addEventListener(`tokenUpdated`,handleTokenUpdate);window.addEventListener(`tokenCleared`,handleTokenUpdate);window.addEventListener(`oauthError`,handleOAuthError);window.addEventListener(`oauthSuccess`,handleOAuthSuccess);const interval=setInterval(()=>{if(hasValidToken){updateTokenState()}},1e3);return()=>{window.removeEventListener(`tokenStatusChanged`,handleTokenUpdate);window.removeEventListener(`tokenUpdated`,handleTokenUpdate);window.removeEventListener(`tokenCleared`,handleTokenUpdate);window.removeEventListener(`oauthError`,handleOAuthError);window.removeEventListener(`oauthSuccess`,handleOAuthSuccess);clearInterval(interval)}},[hasValidToken]);const updateTokenState=useCallback(()=>{if(window.AriesOAuth){const isValid=window.AriesOAuth.isAuthenticated();const remaining=window.AriesOAuth.getTimeRemaining();const knownExpiry=window.AriesOAuth.hasKnownExpiry?window.AriesOAuth.hasKnownExpiry():false;const source=window.AriesOAuth.getTokenSource?window.AriesOAuth.getTokenSource():null;setHasValidToken(isValid);setTokenSource(source);setTimeRemaining(knownExpiry\u0026\u0026typeof remaining===`number`?remaining:null)}},[]);const handleLogin=()=>{setError(``);setIsModalOpen(true)};const handleLogout=()=>{if(window.AriesOAuth){window.AriesOAuth.logout()}try{const cfg=window.AriesOAuth?.config;const tokenKey=cfg?.TOKEN_KEY??`aries_access_token`;const expiryKey=cfg?.TOKEN_EXPIRY_KEY??`aries_token_timestamp`;const sourceKey=cfg?.TOKEN_SOURCE_KEY??`aries_token_source`;localStorage.removeItem(tokenKey);localStorage.removeItem(expiryKey);localStorage.removeItem(sourceKey)}catch(_){}setHasValidToken(false);setTimeRemaining(null)};const handleOAuthRedirect=async e=>{e.preventDefault();if(!clientId.trim()){setError(`Please enter your Client ID`);return}setIsLoading(true);try{if(window.AriesOAuth){window.AriesOAuth.saveClientId(clientId.trim())}const returnPath=window.location.pathname+window.location.search+window.location.hash;sessionStorage.setItem(`oauth_return_path`,returnPath);const pkce=await window.AriesOAuth.generatePKCE();const authEndpoint=window.AriesOAuth?.config?.AUTH_ENDPOINT||`https://app.aries.com/oauth2/authorize`;const authUrl=new URL(authEndpoint);authUrl.searchParams.set(`client_id`,clientId.trim());authUrl.searchParams.set(`redirect_uri`,redirectUrl);authUrl.searchParams.set(`response_type`,`code`);authUrl.searchParams.set(`code_challenge`,pkce.challenge);authUrl.searchParams.set(`code_challenge_method`,`S256`);authUrl.searchParams.set(`scope`,scopes);authUrl.searchParams.set(`state`,generateState());const fullAuthUrl=authUrl.toString();setTimeout(()=>{window.location.href=fullAuthUrl},100)}catch(error){setError(`Failed to initiate OAuth flow: `+error.message);setIsLoading(false)}};const generateState=()=>{return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)};const formatTimeRemaining=seconds=>{const minutes=Math.floor(seconds/60);const secs=seconds%60;return`${minutes}m ${secs}s`};const copyRedirectUrl=()=>{navigator.clipboard.writeText(redirectUrl).then(()=>{setCopied(true);setTimeout(()=>setCopied(false),2e3)}).catch(()=>{})};const oauthDialogRef=useRef(null);const isLoadingRef=useRef(false);isLoadingRef.current=isLoading;const closeModal=useCallback(()=>{if(!isLoading){setIsModalOpen(false);setError(``);setCopied(false)}},[isLoading]);useEffect(()=>{const el=oauthDialogRef.current;if(!el)return;if(isModalOpen){if(!el.open)el.showModal()}else{if(el.open)el.close()}},[isModalOpen]);useEffect(()=>{const el=oauthDialogRef.current;if(!el)return;const onClose=()=>{setIsModalOpen(false);setError(``);setCopied(false)};const onCancel=e=>{if(isLoadingRef.current)e.preventDefault()};el.addEventListener(`close`,onClose);el.addEventListener(`cancel`,onCancel);return()=>{el.removeEventListener(`close`,onClose);el.removeEventListener(`cancel`,onCancel)}},[hasValidToken,showStatus]);if(hasValidToken\u0026\u0026showStatus\u0026\u0026tokenSource===`oauth`){return _jsx(`div`,{style:styles.statusContainer,children:_jsxs(`div`,{style:styles.statusContent,children:[_jsxs(`div`,{style:styles.statusLeft,children:[_jsxs(`div`,{style:styles.statusBadge,children:[_jsx(`span`,{style:styles.checkmark,children:`✓`}),_jsx(`span`,{style:styles.statusText,children:`Authenticated`})]}),typeof timeRemaining===`number`?_jsxs(`span`,{style:styles.expiryText,children:[`Expires in `,formatTimeRemaining(timeRemaining)]}):null]}),_jsx(`button`,{onClick:handleLogout,style:styles.logoutButton,onMouseEnter:e=>e.target.style.backgroundColor=styles.logoutButtonHover.backgroundColor,onMouseLeave:e=>e.target.style.backgroundColor=styles.logoutButton.backgroundColor,children:`Logout`})]})})}const onDialogClick=e=>{if(e.target===e.currentTarget){closeModal()}};const modalMarkup=_jsx(`dialog`,{ref:oauthDialogRef,className:`aries-oauth-dialog`,\"data-oauth-theme\":isDarkMode?`dark`:`light`,style:styles.modalDialog,onClick:onDialogClick,children:_jsxs(`div`,{style:styles.modalContent,onClick:e=>e.stopPropagation(),children:[_jsxs(`div`,{style:styles.modalHeader,children:[_jsx(`h3`,{style:styles.modalTitle,children:`OAuth Authentication`}),_jsx(`button`,{type:`button`,onClick:closeModal,style:styles.closeButton,disabled:isLoading,children:`×`})]}),_jsxs(`form`,{onSubmit:handleOAuthRedirect,style:styles.form,children:[_jsxs(`div`,{style:styles.formGroup,children:[_jsx(`label`,{htmlFor:`clientId`,style:styles.label,children:`Client ID`}),_jsx(`input`,{id:`clientId`,type:`text`,value:clientId,onChange:e=>setClientId(e.target.value),placeholder:`Enter your OAuth Client ID`,style:styles.input,disabled:isLoading}),_jsxs(`p`,{style:styles.inputHelp,children:[`Get your Client ID from`,` `,_jsx(`a`,{href:`https://app.aries.com/client-center/api`,target:`_blank`,rel:`noopener noreferrer`,style:styles.link,children:`Client Center / Manage Account → API`})]})]}),_jsxs(`div`,{style:styles.formGroup,children:[_jsx(`label`,{style:styles.label,children:`Redirect URL`}),_jsxs(`div`,{style:styles.redirectUrlContainer,children:[_jsx(`span`,{style:styles.redirectUrlText,title:redirectUrl,children:redirectUrl}),_jsx(`button`,{type:`button`,onClick:copyRedirectUrl,style:{...styles.copyButton,...copied?styles.copyButtonCopied:{}},onMouseEnter:e=>{if(!copied){e.currentTarget.style.backgroundColor=styles.copyButtonHover.backgroundColor}},onMouseLeave:e=>{if(!copied){e.currentTarget.style.backgroundColor=styles.copyButton.backgroundColor}},children:copied?`✓ Copied`:`Copy`})]}),_jsx(`p`,{style:styles.inputHelp,children:`Add this URL to your OAuth client's allowed redirect URIs`})]}),error\u0026\u0026_jsx(`div`,{style:styles.errorBox,children:error}),_jsxs(`div`,{style:styles.modalFooter,children:[_jsx(`button`,{type:`button`,onClick:closeModal,style:styles.cancelButton,disabled:isLoading,children:`Cancel`}),_jsx(`button`,{type:`submit`,style:{...styles.submitButton,...isLoading?styles.submitButtonDisabled:{}},disabled:isLoading,children:isLoading?`Redirecting...`:`Initiate Login`})]})]})]})});return _jsxs(_Fragment,{children:[_jsxs(`div`,{style:styles.buttonContainer,children:[_jsxs(`div`,{style:styles.helpText,children:[_jsx(`strong`,{style:{color:isDarkMode?`#e5e7eb`:`#374151`},children:`Quick Auth:`}),` `,`Authenticate once to auto-fill your Bearer token across all API endpoints`]}),_jsxs(`button`,{onClick:handleLogin,style:styles.loginButton,onMouseEnter:e=>{e.currentTarget.style.backgroundColor=styles.loginButtonHover.backgroundColor;e.currentTarget.style.borderColor=styles.loginButtonHover.borderColor},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=styles.loginButton.backgroundColor;e.currentTarget.style.borderColor=styles.loginButton.borderColor},children:[_jsxs(`svg`,{style:styles.lockIcon,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,\"aria-hidden\":`true`,children:[_jsx(`rect`,{x:`3`,y:`11`,width:`18`,height:`11`,rx:`2`,ry:`2`}),_jsx(`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`})]}),buttonText]})]}),modalMarkup,requiredScopes.length>0\u0026\u0026_jsxs(Info,{children:[_jsx(`strong`,{children:requiredScopes.length===1\u0026\u0026requiredScopes[0].length===1?`Required scope`:requiredScopes.length===1?`Required scopes`:`Required scope (any one of)`}),` `,requiredScopes.map((alternative,i)=>_jsxs(`span`,{children:[i>0\u0026\u0026` or `,alternative.map((scope,j)=>_jsxs(`span`,{children:[j>0\u0026\u0026` + `,_jsx(`code`,{children:scope})]},scope))]},i))]})]})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`OAuthLoginButton`,children:_jsx(OAuthLoginButton,{requiredScopes:[[`market:supplemental`]]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{OAuthLoginButton,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Stock Trades","description":"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps.\n\n**Use Case:** Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\n","openapi":"openapi.json GET /v1/stocks/trades","href":"/api-reference/supplemental/stocks-trades"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[19,69,"jsx:_jsx}=arguments["],[152,16465,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ariesfinancialinc/d35069a6af6e0e00/public/oauth-manager.js","/_mintlify/custom/ariesfinancialinc/baaed03e98a52073/public/token-autofill.js","/_mintlify/custom/ariesfinancialinc/5c3c9fc4fbc77145/public/paste-plain-text.js"],"openApiReferenceData":{"operation":{"description":"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps.\n\n**Use Case:** Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\n","operationId":"getStockTrades","x-codeSamples":[{"lang":"python","label":"Python (SDK)","source":"from finance_dev import FinanceDev, models\n\n\nwith FinanceDev(\n security=models.Security(\n client_id=\"\u003cYOUR_CLIENT_ID_HERE>\",\n client_secret=\"\u003cYOUR_CLIENT_SECRET_HERE>\",\n ),\n) as fd_client:\n\n res = fd_client.stocks.get_trades(ticker=\"AAPL\", timestamp=\"2024-01-15\", timestamp_from=\"2024-01-01\", timestamp_after=\"2024-01-01\", timestamp_to=\"2024-01-31\", timestamp_before=\"2024-01-31\", order=models.GetStockTradesOrder.DESC, limit=1000)\n\n while res is not None:\n # Handle items\n\n res = res.next()"},{"lang":"typescript","label":"Typescript (SDK)","source":"import { FinanceDev } from \"@ariesdotcom/finance-dev\";\n\nconst financeDev = new FinanceDev({\n security: {\n clientID: \"\u003cYOUR_CLIENT_ID_HERE>\",\n clientSecret: \"\u003cYOUR_CLIENT_SECRET_HERE>\",\n },\n});\n\nasync function run() {\n const result = await financeDev.stocks.getTrades({\n ticker: \"AAPL\",\n timestamp: \"2024-01-15\",\n timestampFrom: \"2024-01-01\",\n timestampAfter: \"2024-01-01\",\n timestampTo: \"2024-01-31\",\n timestampBefore: \"2024-01-31\",\n limit: 1000,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"}],"parameters":["8dec4a80-bec0-4189-9041-91ce47c3beb2","60b2130a-53fd-44f9-a804-75982ce8761e","fb2337dc-54ce-479b-9976-02a1ab702e51","a628b2e0-4863-413f-84cc-b91804bbe5f9","2749fe40-56dc-43ba-928c-e9c9964f5de6","1436e4a1-7585-415d-b4b8-da45a359322c","773de0c6-84c5-4f58-a1b8-abd3f41833a2","1b649e1f-23c8-4da4-853f-8f9ebc56c3c2","bc1fee5e-4798-4d9a-b712-b47a055ef1cd","11a32c3e-bf99-4997-b67d-c29e1ca9646c"],"responses":{"200":"ca02c882-c3df-48ee-9d3f-a5a2d4f4e2fb","400":"6b3c1e22-bfc2-4726-acfa-05e10a9b7073","401":"2d1831fc-d2e3-41b1-8d0a-bbf2cec71788","403":"1172cef7-c0af-47cb-a1fb-efc1fcfd3b59","404":"1c676cda-84de-4ddf-9afe-cda3604aa29b","500":"380e4975-3473-41b8-bf88-1b10c93d9910"},"security":["b9cd1ea8-4d49-49c5-8fbb-73de102f5cae"],"summary":"Get Stock Trades","tags":["Stocks"],"method":"get","type":"path","servers":["f38d7b7f-6d4c-4c3f-8232-2c94a60e51ad","421feb2d-ac41-443e-9380-492252b72659"],"path":"/v1/stocks/trades","baseUrlOptions":["https://api.aries.com","https://api.tradearies.dev"],"title":"Get Stock Trades","codeSamples":[{"label":"Python (SDK)","lang":"python","source":"from finance_dev import FinanceDev, models\n\n\nwith FinanceDev(\n security=models.Security(\n client_id=\"\u003cYOUR_CLIENT_ID_HERE>\",\n client_secret=\"\u003cYOUR_CLIENT_SECRET_HERE>\",\n ),\n) as fd_client:\n\n res = fd_client.stocks.get_trades(ticker=\"AAPL\", timestamp=\"2024-01-15\", timestamp_from=\"2024-01-01\", timestamp_after=\"2024-01-01\", timestamp_to=\"2024-01-31\", timestamp_before=\"2024-01-31\", order=models.GetStockTradesOrder.DESC, limit=1000)\n\n while res is not None:\n # Handle items\n\n res = res.next()"},{"label":"Typescript (SDK)","lang":"typescript","source":"import { FinanceDev } from \"@ariesdotcom/finance-dev\";\n\nconst financeDev = new FinanceDev({\n security: {\n clientID: \"\u003cYOUR_CLIENT_ID_HERE>\",\n clientSecret: \"\u003cYOUR_CLIENT_SECRET_HERE>\",\n },\n});\n\nasync function run() {\n const result = await financeDev.stocks.getTrades({\n ticker: \"AAPL\",\n timestamp: \"2024-01-15\",\n timestampFrom: \"2024-01-01\",\n timestampAfter: \"2024-01-01\",\n timestampTo: \"2024-01-31\",\n timestampBefore: \"2024-01-31\",\n limit: 1000,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"8dec4a80-bec0-4189-9041-91ce47c3beb2":{"description":"Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.","in":"query","name":"ticker","required":true,"schema":{"example":"AAPL","type":"string","isRequired":true,"description":"Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.","uniqueKey":"","typeLabel":"string"}},"60b2130a-53fd-44f9-a804-75982ce8761e":{"description":"Query by timestamp (YYYY-MM-DD or nanoseconds)","in":"query","name":"timestamp","schema":{"example":"2024-01-15","type":"string","description":"Query by timestamp (YYYY-MM-DD or nanoseconds)","uniqueKey":"","typeLabel":"string"}},"fb2337dc-54ce-479b-9976-02a1ab702e51":{"description":"Timestamp start filter. Returns records at or after this timestamp.","in":"query","name":"timestampFrom","schema":{"example":"2024-01-01","type":"string","description":"Timestamp start filter. Returns records at or after this timestamp.","uniqueKey":"","typeLabel":"string"}},"a628b2e0-4863-413f-84cc-b91804bbe5f9":{"description":"Timestamp lower-bound filter. Returns records after this timestamp, excluding the timestamp itself.","in":"query","name":"timestampAfter","schema":{"example":"2024-01-01","type":"string","description":"Timestamp lower-bound filter. Returns records after this timestamp, excluding the timestamp itself.","uniqueKey":"","typeLabel":"string"}},"2749fe40-56dc-43ba-928c-e9c9964f5de6":{"description":"Timestamp end filter. Returns records at or before this timestamp.","in":"query","name":"timestampTo","schema":{"example":"2024-01-31","type":"string","description":"Timestamp end filter. Returns records at or before this timestamp.","uniqueKey":"","typeLabel":"string"}},"1436e4a1-7585-415d-b4b8-da45a359322c":{"description":"Timestamp upper-bound filter. Returns records before this timestamp, excluding the timestamp itself.","in":"query","name":"timestampBefore","schema":{"example":"2024-01-31","type":"string","description":"Timestamp upper-bound filter. Returns records before this timestamp, excluding the timestamp itself.","uniqueKey":"","typeLabel":"string"}},"773de0c6-84c5-4f58-a1b8-abd3f41833a2":{"description":"Sort order for returned records. Use asc for oldest first or desc for newest first when supported.","in":"query","name":"order","schema":{"type":"string","description":"Sort order for returned records. Use asc for oldest first or desc for newest first when supported.\nSort direction for results. Use ascending for oldest or smallest first, descending for newest or largest first.","default":"desc","enum":["asc","desc"],"example":"asc","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"1b649e1f-23c8-4da4-853f-8f9ebc56c3c2":{"description":"Maximum number of results to return. Use smaller values for UI pages and larger values for exports within API limits.","in":"query","name":"limit","schema":{"example":1000,"maximum":50000,"minimum":1,"type":"integer","description":"Maximum number of results to return. Use smaller values for UI pages and larger values for exports within API limits.","uniqueKey":"","typeLabel":"integer"}},"bc1fee5e-4798-4d9a-b712-b47a055ef1cd":{"description":"Sort field used for ordering. Massive documents this separately from `order`, so enter the provider-supported field name in the text box, for example `timestamp`.","in":"query","name":"sort","schema":{"type":"string","description":"Sort field used for ordering. Massive documents this separately from `order`, so enter the provider-supported field name in the text box, for example `timestamp`.","uniqueKey":"","typeLabel":"string"}},"11a32c3e-bf99-4997-b67d-c29e1ca9646c":{"description":"Pagination cursor from the previous response. Omit it on the first request, then send the returned cursor to fetch the next page.","in":"query","name":"next","schema":{"type":"string","description":"Pagination cursor from the previous response. Omit it on the first request, then send the returned cursor to fetch the next page.","uniqueKey":"","typeLabel":"string"}}},"responses":{"ca02c882-c3df-48ee-9d3f-a5a2d4f4e2fb":{"content":{"application/json":{"example":{"nextUrl":"https://api.aries.com/v1/stocks/trades?next=YXA9MTAwMDM3MDkmYXM9YXRsYXMtc3RvY2tzLXRyYWRlcyZsaW1pdD0xMDAwJm9yZGVyPWRlc2Mmc29ydD10aW1lc3RhbXAmdGltZXN0YW1wLmx0ZT0yMDI2LTAxLTAyVDIyJTNBNTAlM0EwNS4xNzU5NTM5NTRa\u0026ticker=AAPL","requestId":"065feb8d4f03d1b18c1f13237a342e3f","results":[{"conditions":[12],"exchange":4,"id":"360988","participantTimestamp":1767401995260648000,"price":270.9607,"sequenceNumber":10029677,"sipTimestamp":1767401995260878300,"size":391,"tape":3,"trfId":202,"trfTimestamp":1767401995260857300}],"status":"DELAYED"},"schema":{"description":"Paginated list of historical tick-level trades for a stock ticker.","properties":{"nextUrl":{"description":"URL for next page of results","type":"string","uniqueKey":"nextUrl","typeLabel":"string"},"requestId":{"description":"Unique request ID","type":"string","uniqueKey":"requestId","typeLabel":"string"},"results":{"description":"Array of trade objects","items":{"properties":{"conditions":{"description":"Trade conditions","items":{"type":"integer","uniqueKey":"results.items.[INDEX].conditions.items.[INDEX]","typeLabel":"integer"},"type":"array","uniqueKey":"results.items.[INDEX].conditions","typeLabel":"integer[]"},"correction":{"description":"Correction indicator","type":"integer","uniqueKey":"results.items.[INDEX].correction","typeLabel":"integer"},"exchange":{"description":"Numeric exchange identifier supplied by the market data provider.","type":"integer","uniqueKey":"results.items.[INDEX].exchange","typeLabel":"integer"},"id":{"description":"Trade ID","type":"string","uniqueKey":"results.items.[INDEX].id","typeLabel":"string"},"participantTimestamp":{"description":"Participant timestamp (nanoseconds)","format":"int64","type":"integer","uniqueKey":"results.items.[INDEX].participantTimestamp","typeLabel":"integer\u003cint64>"},"price":{"description":"Trade price","type":"number","uniqueKey":"results.items.[INDEX].price","typeLabel":"number"},"sequenceNumber":{"description":"Sequence number","format":"int64","type":"integer","uniqueKey":"results.items.[INDEX].sequenceNumber","typeLabel":"integer\u003cint64>"},"sipTimestamp":{"description":"SIP timestamp (nanoseconds)","format":"int64","type":"integer","uniqueKey":"results.items.[INDEX].sipTimestamp","typeLabel":"integer\u003cint64>"},"size":{"description":"Trade size (shares)","type":"number","uniqueKey":"results.items.[INDEX].size","typeLabel":"number"},"tape":{"description":"Tape","type":"integer","uniqueKey":"results.items.[INDEX].tape","typeLabel":"integer"},"trfId":{"description":"TRF ID","type":"integer","uniqueKey":"results.items.[INDEX].trfId","typeLabel":"integer"},"trfTimestamp":{"description":"TRF timestamp","format":"int64","type":"integer","uniqueKey":"results.items.[INDEX].trfTimestamp","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"results","typeLabel":"object[]"},"status":{"description":"Status string from the upstream data provider — typically `OK` for a successful response. Treat any other value as an error indicator alongside the HTTP status code.","type":"string","uniqueKey":"status","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"nextUrl":"https://api.aries.com/v1/stocks/trades?next=YXA9MTAwMDM3MDkmYXM9YXRsYXMtc3RvY2tzLXRyYWRlcyZsaW1pdD0xMDAwJm9yZGVyPWRlc2Mmc29ydD10aW1lc3RhbXAmdGltZXN0YW1wLmx0ZT0yMDI2LTAxLTAyVDIyJTNBNTAlM0EwNS4xNzU5NTM5NTRa\u0026ticker=AAPL","requestId":"065feb8d4f03d1b18c1f13237a342e3f","results":[{"conditions":[12],"exchange":4,"id":"360988","participantTimestamp":1767401995260648000,"price":270.9607,"sequenceNumber":10029677,"sipTimestamp":1767401995260878300,"size":391,"tape":3,"trfId":202,"trfTimestamp":1767401995260857300}],"status":"DELAYED"}}},"exampleType":"examples"}},"description":"Successful response","exampleType":"examples"},"6b3c1e22-bfc2-4726-acfa-05e10a9b7073":{"content":{"application/json":{"examples":{"flat_string":{"title":"flat_string","value":{"error":"string"}},"flat_with_codes":{"title":"flat_with_codes","value":{"codes":[{"code":"string","description":"string","field":"string"}],"error":"string"}},"nested_bad_request":{"title":"nested_bad_request","value":{"error":{"code":"INVALID_JSON","message":"string","type":"BAD_REQUEST"}}},"nested_shared_http_error":{"title":"nested_shared_http_error","value":{"error":{"code":"VALIDATION_ERROR","details":{"fieldName":"field is required"},"message":"Query parameter validation failed","type":"VALIDATION"}}}},"schema":{"oneOf":[{"type":"object","description":"400 responses commonly use a nested `error` object (`type`, `code`, `message`, optional `details`). Some services still return flat `ErrorResponse` (`error` string, optional `codes`).","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.0.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.0.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.0.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.0.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.0.meta","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"400 responses commonly use a nested `error` object (`type`, `code`, `message`, optional `details`). Some services still return flat `ErrorResponse` (`error` string, optional `codes`).","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.1.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.1.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Invalid query/path/body, malformed JSON, or failed validation.\n\n**Backend (shared HTTP errors):** Routes that use the shared error writer typically return a **nested** JSON object: `error.type` is an uppercase category such as `VALIDATION` or `BAD_REQUEST` (see the API implementation). Other routes may return the **flat** `ErrorResponse` shape (`error` as a string, optional `codes`). The body may rarely be empty.\n\n**OpenAPI:** Every operation’s **400** response references this component so the documented schema and examples stay aligned.","exampleType":"examples"},"2d1831fc-d2e3-41b1-8d0a-bbf2cec71788":{"content":{"application/json":{"examples":{"flat_message":{"title":"flat_message","value":{"error":"string"}},"flat_with_codes":{"title":"flat_with_codes","value":{"codes":[{"code":"string","description":"string"}],"error":"string"}},"nested_error_object":{"title":"nested_error_object","value":{"error":{"code":"INVALID_TOKEN","message":"string","type":"AUTHENTICATION"}}}},"schema":{"oneOf":[{"type":"object","description":"401 responses may use a flat `ErrorResponse` shape or a nested `error` object. Inspect `error`: if it is a string, use the flat shape; if it is an object, use the structured shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"401 responses may use a flat `ErrorResponse` shape or a nested `error` object. Inspect `error`: if it is a string, use the flat shape; if it is an object, use the structured shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Authentication failed: missing credentials, invalid JWT, or expired access token.\n\n**Response body variants:** Some routes return JSON with a string `error` field (and optionally `codes` / `metadata`). Others return JSON where `error` is a structured object (`type`, `code`, `message`, and optionally `details`, `request_id`). The response may have **no body** even though the status is 401—clients should treat 401 as unauthenticated and refresh or re-authenticate regardless of body shape.","exampleType":"examples"},"1172cef7-c0af-47cb-a1fb-efc1fcfd3b59":{"content":{"application/json":{"examples":{"flat":{"title":"flat","value":{"error":"string"}},"nested":{"title":"nested","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"string","type":"AUTHORIZATION"}}}},"schema":{"oneOf":[{"type":"object","description":"403 responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"403 responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Authenticated but not allowed to perform this action or access this resource (insufficient scope or role).\n\n**Response body variants:** Flat `ErrorResponse` or nested `error` object, same pattern as 400/401.","exampleType":"examples"},"1c676cda-84de-4ddf-9afe-cda3604aa29b":{"content":{"application/json":{"examples":{"flat":{"title":"flat","value":{"error":"string"}},"nested":{"title":"nested","value":{"error":{"code":"RESOURCE_NOT_FOUND","message":"string","type":"NOT_FOUND"}}}},"schema":{"oneOf":[{"type":"object","description":"404 responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"404 responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The requested resource does not exist or is not visible to this caller.\n\n**Response body variants:** Flat `ErrorResponse` or nested `error` object.","exampleType":"examples"},"380e4975-3473-41b8-bf88-1b10c93d9910":{"content":{"application/json":{"examples":{"flat_string":{"title":"flat_string","value":{"error":"string"}},"nested_error_object":{"title":"nested_error_object","value":{"error":{"code":"INTERNAL_ERROR","message":"string","type":"INTERNAL"}}}},"schema":{"oneOf":[{"type":"object","description":"5xx responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"5xx responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Unexpected server error or upstream failure. **Retry with exponential backoff**; do not assume a specific JSON body shape.\n\n**Response body variants:** Flat `ErrorResponse`, nested `error` object, or occasionally a minimal message.","exampleType":"examples"}},"security":{"b9cd1ea8-4d49-49c5-8fbb-73de102f5cae":{"OAuth2":{"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","flows":{"authorizationCode":{"authorizationUrl":"https://app.aries.com/oauth2/authorize","refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"},"clientCredentials":{"refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"}},"type":"oauth2","scopes":["market:supplemental"],"schemeName":"OAuth2"}}},"servers":{"f38d7b7f-6d4c-4c3f-8232-2c94a60e51ad":{"description":"Production server","url":"https://api.aries.com"},"421feb2d-ac41-443e-9380-492252b72659":{"description":"Staging server","url":"https://api.tradearies.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","flows":{"authorizationCode":{"authorizationUrl":"https://app.aries.com/oauth2/authorize","refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"},"clientCredentials":{"refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"}},"type":"oauth2","scopes":["market:supplemental"],"schemeName":"OAuth2"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"OAuth2","name":"Authorization"}],"title":"OAuth2"}]},"originalFileLocation":"openapi.json"},"subdomain":"ariesfinancialinc","siteName":"Aries API","title":"Stock Trades - Aries API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T15:46:20.936Z","originalFileLocation":"api-reference/supplemental/stocks-trades.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps. Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aries API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Stock Trades - Aries API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps. Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aries API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://finance.dev/api-reference/supplemental/stocks-trades\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=Stocks\u0026amp;title=Stock+Trades\u0026amp;description=Get+tick-level+trade+data+for+a+stock+with+precise+timestamps.+Provides+granular+trade+information+including+exchange%2C+conditions%2C+and+participant+timestamps.%0A%0A\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=f94c61520fa5400ebb2d1b4ffa78ebb4cc963262c23e2a8db8779740460623f7\">\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=\"Stock Trades - Aries API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps. Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=Stocks\u0026amp;title=Stock+Trades\u0026amp;description=Get+tick-level+trade+data+for+a+stock+with+precise+timestamps.+Provides+granular+trade+information+including+exchange%2C+conditions%2C+and+participant+timestamps.%0A%0A\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=f94c61520fa5400ebb2d1b4ffa78ebb4cc963262c23e2a8db8779740460623f7\">\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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aries API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0BAA5E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://finance.dev/api-reference/supplemental/stocks-trades\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/supplemental/stocks-trades.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://finance.dev/#organization\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://finance.dev#website\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://finance.dev/api-reference/supplemental/stocks-trades#webpage\",\"url\":\"https://finance.dev/api-reference/supplemental/stocks-trades\",\"name\":\"Stock Trades\",\"description\":\"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps. Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\",\"dateModified\":\"2026-10-21T15:46:20.936Z\",\"isPartOf\":{\"@id\":\"https://finance.dev#website\"},\"breadcrumb\":{\"@id\":\"https://finance.dev/api-reference/supplemental/stocks-trades#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://finance.dev/api-reference/supplemental/stocks-trades#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Stocks\",\"item\":\"https://finance.dev/api-reference/supplemental/stocks-aggs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stock Trades\",\"item\":\"https://finance.dev/api-reference/supplemental/stocks-trades\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://finance.dev/api-reference/supplemental/stocks-trades#apireference\",\"headline\":\"Stock Trades\",\"name\":\"Stock Trades\",\"description\":\"Get tick-level trade data for a stock with precise timestamps. Provides granular trade information including exchange, conditions, and participant timestamps. Use Case: Build time and sales displays, analyze order flow, and create tick-by-tick trading analysis tools.\",\"url\":\"https://finance.dev/api-reference/supplemental/stocks-trades\",\"mainEntityOfPage\":{\"@id\":\"https://finance.dev/api-reference/supplemental/stocks-trades#webpage\"},\"dateModified\":\"2026-10-21T15:46:20.936Z\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://finance.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aries API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aries API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/supplemental/stocks-trades.md","siteName":"Aries API","nav":{"global":null,"tabs":[{"tab":"Welcome","icon":"house","pages":[{"title":"Welcome","href":"/welcome"}]},{"tab":"Quick Start","icon":"rocket","pages":[{"title":"Quick Start","href":"/api-reference/quickstart"}]},{"tab":"Auth","icon":"shield-halved","pages":[{"title":"Auth","href":"/api-reference/oauth2/overview"}]},{"tab":"Core API","icon":"bolt","pages":[{"title":"Core API","href":"/api-reference"}]},{"tab":"Supplemental API","icon":"chart-mixed","pages":[{"title":"Supplemental API","href":"/supplemental-api/overview"},{"group":"Analytics","pages":[{"title":"Top Gaining Stocks","openapi":"openapi.json GET /v1/equity/top-gainers","href":"/api-reference/analytics/equity-top-gainers"},{"title":"Top Losing Stocks","openapi":"openapi.json GET /v1/equity/top-losers","href":"/api-reference/analytics/equity-top-losers"},{"title":"Most Active Stocks","openapi":"openapi.json GET /v1/equity/top-most-active","href":"/api-reference/analytics/equity-top-most-active"},{"title":"Sector Tickers","openapi":"openapi.json GET /v1/equity/sector-tickers","href":"/api-reference/analytics/equity-sector-tickers"},{"title":"Sector-wise Change","openapi":"openapi.json GET /v1/equity/sector-wise-change","href":"/api-reference/analytics/equity-sector-wise-change"},{"title":"Stock Screener","openapi":"openapi.json POST /v1/stock/screener","href":"/api-reference/analytics/stock-screener"},{"title":"Top Options Gainers for Stocks","openapi":"openapi.json GET /v1/options/stocks/top-gainers","href":"/api-reference/analytics/options-stocks-top-gainers"},{"title":"Top Volume Options for Stocks","openapi":"openapi.json GET /v1/options/stocks/top-volume","href":"/api-reference/analytics/options-stocks-top-volume"},{"title":"Top Volume Options for ETFs","openapi":"openapi.json GET /v1/options/etfs/top-volume","href":"/api-reference/analytics/options-etfs-top-volume"},{"title":"Analyst Ratings","openapi":"openapi.json GET /v1/analytics/ratings","href":"/api-reference/analytics/ratings"},{"title":"Market Breadth","openapi":"openapi.json GET /v1/analytics/market-breadth","href":"/api-reference/analytics/market-breadth"},{"title":"Net Inflow","openapi":"openapi.json GET /v1/analytics/net-inflow","href":"/api-reference/analytics/net-inflow"},{"title":"Analyst Insights","openapi":"openapi.json GET /v1/analytics/insights","href":"/api-reference/supplemental/analyst-insights"}]},{"group":"Options","pages":[{"title":"Options Expiry Dates","openapi":"openapi.json GET /v1/options/{symbol}/expiry-dates","href":"/api-reference/supplemental/options-expiry-dates"},{"title":"Options Contract Symbols","openapi":"openapi.json GET /v1/options/{symbol}/contracts/{expiryDate}","href":"/api-reference/supplemental/options-contract-symbols"},{"title":"Options Unusual Activity by Symbol","openapi":"openapi.json GET /v1/options/unusual_activity/{symbol}","href":"/api-reference/supplemental/get-options-unusual-activity"},{"title":"Options Activity","openapi":"openapi.json GET /v1/options/activity","href":"/api-reference/supplemental/get-option-activity"},{"title":"Previous Day Option Data","openapi":"openapi.json GET /v1/options/previous-day","href":"/api-reference/supplemental/get-previous-day-aapl-call-option"},{"title":"Option Open/Close Data","openapi":"openapi.json GET /v1/options/open-close","href":"/api-reference/supplemental/get-open-close-aapl-call-option"},{"title":"Options Trades","openapi":"openapi.json GET /v1/options/trades","href":"/api-reference/supplemental/options-trades"},{"title":"Options Last Trade","openapi":"openapi.json GET /v1/options/last-trade","href":"/api-reference/supplemental/options-last-trade"},{"title":"Options Quotes","openapi":"openapi.json GET /v1/options/quotes","href":"/api-reference/supplemental/options-quotes"},{"title":"Option chain snapshot","openapi":"openapi.json GET /v1/options/snapshot/chain/{underlyingAsset}","href":"/api-reference/supplemental/options-snapshot-chain"},{"title":"Option contract snapshot","openapi":"openapi.json GET /v1/options/snapshot/{underlyingAsset}/{optionContract}","href":"/api-reference/supplemental/options-snapshot-contract"}]},{"group":"Stocks","pages":[{"title":"Aggregate Bars","openapi":"openapi.json GET /v1/stocks/aggs","href":"/api-reference/supplemental/stocks-aggs"},{"title":"Daily Ticker Summary","openapi":"openapi.json GET /v1/stocks/open-close","href":"/api-reference/supplemental/stocks-open-close"},{"title":"Previous Day Bar","openapi":"openapi.json GET /v1/stocks/prev","href":"/api-reference/supplemental/stocks-prev"},{"title":"Daily Market Summary","openapi":"openapi.json GET /v1/stocks/grouped","href":"/api-reference/supplemental/stocks-grouped"},{"title":"Full Market Snapshot","openapi":"openapi.json GET /v1/stocks/snapshot","href":"/api-reference/supplemental/stocks-snapshot"},{"title":"Unified Snapshot","description":"Get unified snapshots across multiple asset classes (stocks, options, fx, crypto, indices) in a single request. Comprehensive market data with FMV, last trade, and session information.\n\n**Use Case:** Create cross-asset portfolio views and multi-market dashboards with real-time pricing across different asset types.\n","openapi":"openapi.json GET /v1/stocks/unified-snapshot","href":"/api-reference/supplemental/stocks-unified-snapshot"},{"title":"Stock Trades","openapi":"openapi.json GET /v1/stocks/trades","href":"/api-reference/supplemental/stocks-trades"},{"title":"Last Trade","description":"Get the most recent trade for a stock. Returns the latest executed trade with price, size, and timestamp information.\n\n**Use Case:** Display real-time last trade information on stock tickers and trading interfaces for instant price updates.\n","openapi":"openapi.json GET /v1/stocks/last-trade","href":"/api-reference/supplemental/stocks-last-trade"},{"title":"Stock Quotes (NBBO)","openapi":"openapi.json GET /v1/stocks/quotes","href":"/api-reference/supplemental/stocks-quotes"},{"title":"Last Quote (NBBO)","openapi":"openapi.json GET /v1/stocks/last-quote","href":"/api-reference/supplemental/stocks-last-quote"}]},{"group":"Economy","pages":[{"title":"Latest Inflation Data","openapi":"openapi.json GET /v1/economy/inflation","href":"/api-reference/supplemental/get-inflation-latest"},{"title":"Latest Inflation Expectations","openapi":"openapi.json GET /v1/economy/inflation-expectations","href":"/api-reference/supplemental/get-inflation-expectations-latest"},{"title":"Latest Treasury Yields","openapi":"openapi.json GET /v1/economy/treasury-yields","href":"/api-reference/supplemental/get-treasury-yields-latest"}]},{"group":"Calendar","pages":[{"title":"Economics Calendar","openapi":"openapi.json GET /v1/calendars/economics","href":"/api-reference/calendars/economics"},{"title":"Historical Economic Indicator Data","openapi":"openapi.json GET /v1/calendars/historical/{symbol}","href":"/api-reference/calendars/historical"},{"title":"Earnings Calendar","openapi":"openapi.json GET /v1/calendars/earnings","href":"/api-reference/calendars/earnings"},{"title":"Mergers \u0026 Acquisitions","openapi":"openapi.json GET /v1/calendars/mergers-acquisitions","href":"/api-reference/supplemental/mergers-acquisitions"},{"title":"Conference Calls","openapi":"openapi.json GET /v1/calendars/conference-calls","href":"/api-reference/calendars/get-conference-calls"}]},{"group":"Market","pages":[{"title":"Market Status","openapi":"openapi.json GET /v1/market/status","href":"/api-reference/supplemental/market-status"},{"title":"Market Holidays","openapi":"openapi.json GET /v1/market/holiday","href":"/api-reference/supplemental/market-holiday"}]},{"group":"Company","pages":[{"title":"Company Profile","openapi":"openapi.json GET /v1/company/profile","href":"/api-reference/supplemental/company-profile"},{"title":"Company Executives","openapi":"openapi.json GET /v1/company/executive","href":"/api-reference/supplemental/company-executive"},{"title":"Company Peers","openapi":"openapi.json GET /v1/company/peers","href":"/api-reference/supplemental/company-peers"},{"title":"Company Financial Metrics","openapi":"openapi.json GET /v1/company/metrics","href":"/api-reference/supplemental/company-metrics"}]},{"group":"Ownership","pages":[{"title":"Company Ownership Data","openapi":"openapi.json GET /v1/ownership/data","href":"/api-reference/supplemental/ownership"},{"title":"Fund Ownership Data","openapi":"openapi.json GET /v1/ownership/fund","href":"/api-reference/supplemental/fund-ownership"},{"title":"Insider Transactions","openapi":"openapi.json GET /v1/ownership/insider-transactions","href":"/api-reference/supplemental/insider-transactions"},{"title":"Institutional Portfolio","openapi":"openapi.json GET /v1/institutional/portfolio","href":"/api-reference/supplemental/institutional-portfolio"},{"title":"Institutional Ownership","openapi":"openapi.json GET /v1/institutional/ownership","href":"/api-reference/supplemental/institutional-ownership"}]},{"group":"Financials","pages":[{"title":"Reported Financials","openapi":"openapi.json GET /v1/financials/reported","href":"/api-reference/supplemental/financials-reported"},{"title":"Financial Statements","openapi":"openapi.json GET /v1/financials/statements","href":"/api-reference/supplemental/financial-statements"},{"title":"Cash Flow Statements","openapi":"openapi.json GET /v1/financials/cash-flow-statements","href":"/api-reference/supplemental/financials-cash-flow-statements"},{"title":"Income Statements","openapi":"openapi.json GET /v1/financials/income-statements","href":"/api-reference/supplemental/financials-income-statements"},{"title":"Revenue Breakdown","openapi":"openapi.json GET /v1/financials/revenue-breakdown","href":"/api-reference/supplemental/revenue-breakdown"},{"title":"Short Volume Data","openapi":"openapi.json GET /v1/financials/short-volume","href":"/api-reference/supplemental/get-short-volume-by-ticker"},{"title":"Financial Ratios","openapi":"openapi.json GET /v1/financials/ratios","href":"/api-reference/supplemental/get-ratios-by-ticker"},{"title":"Short Interest Data","openapi":"openapi.json GET /v1/financials/short-interest","href":"/api-reference/supplemental/get-short-interest-by-ticker"}]},{"group":"Filings","pages":[{"title":"SEC Filings","openapi":"openapi.json GET /v1/filings/sec","href":"/api-reference/supplemental/sec-filings"},{"title":"Filings Similarity Index","openapi":"openapi.json GET /v1/filings/similarity-index","href":"/api-reference/supplemental/similarity-index"}]},{"group":"Corporate Actions","pages":[{"title":"IPO Calendar","openapi":"openapi.json GET /v1/corporate-actions/ipo-calendar","href":"/api-reference/supplemental/ipo-calendar"},{"title":"Dividend History","openapi":"openapi.json GET /v1/corporate-actions/dividends","href":"/api-reference/supplemental/dividends"},{"title":"Corporate Spinoffs","openapi":"openapi.json GET /v1/corporate-actions/spinoffs","href":"/api-reference/supplemental/spinoffs"},{"title":"Tender Offers","openapi":"openapi.json GET /v1/corporate-actions/tender-offers","href":"/api-reference/supplemental/get-tender-offers-symbol"},{"title":"Stock Split History","openapi":"openapi.json GET /v1/stock/split","href":"/api-reference/supplemental/stock-split"}]},{"group":"Indices","pages":[{"title":"Index Groups","openapi":"openapi.json GET /v1/indices/groups","href":"/api-reference/supplemental/indices-groups"},{"title":"Index List","openapi":"openapi.json GET /v1/indices/list","href":"/api-reference/supplemental/indices-list"},{"title":"Indices By Group","openapi":"openapi.json GET /v1/indices/by-group","href":"/api-reference/supplemental/indices-by-group"},{"title":"Search Indices","openapi":"openapi.json GET /v1/indices/search","href":"/api-reference/supplemental/indices-search"},{"title":"Realtime Indices Values","openapi":"openapi.json GET /v1/indices/realtime/values","href":"/api-reference/supplemental/indices-realtime-values"},{"title":"Index Bar Data","openapi":"openapi.json GET /v1/indices/bar","href":"/api-reference/supplemental/indices-bar"},{"title":"Index Bars","openapi":"openapi.json GET /v1/indices/bars","href":"/api-reference/supplemental/indices-bars"},{"title":"Index Chart Data","openapi":"openapi.json GET /v1/indices/chart-bars","href":"/api-reference/supplemental/indices-chart-bars"}]},{"group":"Logos","pages":[{"title":"Search Company Logos","openapi":"openapi.json GET /v1/logos/search","href":"/api-reference/supplemental/logos-search"},{"title":"Sync Company Logos","openapi":"openapi.json GET /v1/logos/sync","href":"/api-reference/supplemental/logos-sync"}]},{"group":"Stock Estimates","pages":[{"title":"Analyst Price Targets","openapi":"openapi.json GET /v1/stock/price-target","href":"/api-reference/supplemental/stock-price-target"},{"title":"Analyst Upgrades \u0026 Downgrades","openapi":"openapi.json GET /v1/stock/upgrade-downgrade","href":"/api-reference/supplemental/stock-upgrade-downgrade"},{"title":"Revenue Estimates","openapi":"openapi.json GET /v1/stock/revenue-estimate","href":"/api-reference/supplemental/stock-revenue-estimate"},{"title":"EBITDA Estimates","openapi":"openapi.json GET /v1/stock/ebitda-estimate","href":"/api-reference/supplemental/stock-ebitda-estimate"},{"title":"EBIT Estimates","openapi":"openapi.json GET /v1/stock/ebit-estimate","href":"/api-reference/supplemental/stock-ebit-estimate"},{"title":"EPS Estimates","openapi":"openapi.json GET /v1/stock/eps-estimate","href":"/api-reference/supplemental/stock-eps-estimate"},{"title":"Earnings Surprises","openapi":"openapi.json GET /v1/stock/earnings","href":"/api-reference/supplemental/stock-earnings"}]},{"group":"Stock Alternative","pages":[{"title":"Transcripts List","openapi":"openapi.json GET /v1/stock/transcripts/list","href":"/api-reference/supplemental/stock-transcripts-list"},{"title":"Transcript by ID","openapi":"openapi.json GET /v1/stock/transcripts","href":"/api-reference/supplemental/stock-transcripts"},{"title":"Earnings Call Live","openapi":"openapi.json GET /v1/stock/earnings-call-live","href":"/api-reference/supplemental/stock-earnings-call-live"},{"title":"Company Presentation","openapi":"openapi.json GET /v1/stock/presentation","href":"/api-reference/supplemental/stock-presentation"},{"title":"Social Sentiment","openapi":"openapi.json GET /v1/stock/social-sentiment","href":"/api-reference/supplemental/stock-social-sentiment"},{"title":"Investment Theme","openapi":"openapi.json GET /v1/stock/investment-theme","href":"/api-reference/supplemental/stock-investment-theme"},{"title":"Supply Chain","openapi":"openapi.json GET /v1/stock/supply-chain","href":"/api-reference/supplemental/stock-supply-chain"},{"title":"Company ESG","openapi":"openapi.json GET /v1/stock/esg","href":"/api-reference/supplemental/stock-esg"},{"title":"Historical ESG","openapi":"openapi.json GET /v1/stock/historical-esg","href":"/api-reference/supplemental/stock-historical-esg"},{"title":"Earnings Quality Score","openapi":"openapi.json GET /v1/stock/earnings-quality-score","href":"/api-reference/supplemental/stock-earnings-quality-score"},{"title":"COVID-19 US","openapi":"openapi.json GET /v1/stock/covid19/us","href":"/api-reference/supplemental/stock-covid19-us"},{"title":"FDA Advisory Committee Calendar","openapi":"openapi.json GET /v1/stock/fda-advisory-committee-calendar","href":"/api-reference/supplemental/stock-fda-advisory-committee-calendar"},{"title":"USPTO Patent","openapi":"openapi.json GET /v1/stock/uspto-patent","href":"/api-reference/supplemental/stock-uspto-patent"},{"title":"Visa Application (H1-B)","openapi":"openapi.json GET /v1/stock/visa-application","href":"/api-reference/supplemental/stock-visa-application"},{"title":"Lobbying","openapi":"openapi.json GET /v1/stock/lobbying","href":"/api-reference/supplemental/stock-lobbying"},{"title":"USA Spending","openapi":"openapi.json GET /v1/stock/usa-spending","href":"/api-reference/supplemental/stock-usa-spending"},{"title":"Congressional Trading","openapi":"openapi.json GET /v1/stock/congressional-trading","href":"/api-reference/supplemental/stock-congressional-trading"},{"title":"Bank Branch","openapi":"openapi.json GET /v1/stock/bank-branch","href":"/api-reference/supplemental/stock-bank-branch"}]},{"group":"News","pages":[{"title":"News Sentiment","openapi":"openapi.json GET /v1/news-sentiment","href":"/api-reference/supplemental/news-sentiment"},{"title":"Market News","openapi":"openapi.json GET /v1/news","href":"/api-reference/supplemental/get-news"},{"title":"Get News by ID","openapi":"openapi.json GET /v1/news/{id}","href":"/api-reference/supplemental/get-news-by-id"}]},{"group":"ETF","pages":[{"title":"ETF Profile","openapi":"openapi.json GET /v1/etf/profile","href":"/api-reference/supplemental/etf-profile"},{"title":"ETF Holdings","openapi":"openapi.json GET /v1/etf/holdings","href":"/api-reference/supplemental/etf-holdings"},{"title":"ETF Sector Allocation","openapi":"openapi.json GET /v1/etf/sector","href":"/api-reference/supplemental/etf-sector"},{"title":"ETF Country Allocation","openapi":"openapi.json GET /v1/etf/country","href":"/api-reference/supplemental/etf-country"}]},{"group":"Technical Analysis","pages":[{"title":"Technical Patterns","openapi":"openapi.json GET /v1/scan/pattern","href":"/api-reference/supplemental/scan-pattern"},{"title":"Support \u0026 Resistance Levels","openapi":"openapi.json GET /v1/scan/support-resistance","href":"/api-reference/supplemental/scan-support-resistance"},{"title":"Aggregate Technical Indicators","openapi":"openapi.json GET /v1/scan/technical-indicator","href":"/api-reference/supplemental/scan-technical-indicator"},{"title":"Technical Indicator Data","openapi":"openapi.json GET /v1/indicator","href":"/api-reference/supplemental/indicator"}]},{"group":"Signals","pages":[{"title":"Bull \u0026 Bear Analysis","openapi":"openapi.json GET /v1/signals/bull-bear","href":"/api-reference/supplemental/get-bullbear-cases-single-symbol"}]}]},{"tab":"Prediction API","icon":"landmark","pages":[{"title":"Prediction API","href":"/prediction-api/overview"}]},{"tab":"Streaming API","icon":"satellite-dish","pages":[{"title":"Streaming API","href":"/websockets/overview"}]},{"tab":"AI Agents","icon":"robot","pages":[{"title":"AI Agents","href":"/ai-agents/add-skill"}]},{"tab":"MCP Auth","icon":"plug","pages":[{"title":"MCP Auth","href":"/mcp-auth"}]},{"tab":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Stock Trades - Aries API","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}