Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first).
Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.
POST
/
v1
/
etb
/
search
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.market_data.search_etb_symbols(symbols=[ "aapl", " AAPL ", "AAPL", ]) assert res.etb_search_response is not None # Handle response print(res.etb_search_response)
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.marketData.searchEtbSymbols({
symbols: [
"aapl",
" AAPL ",
"AAPL",
],
});
console.log(result);
}
run();
This endpoint answers borrowability for a batch of symbols against today’s easy-to-borrow list. Use it rather than fetching the whole list when you only care about a handful of symbols.It is a POST rather than a GET because a symbol list has no practical URL-length limit.
Keyed by the normalized (uppercase) symbol. true = easy to borrow
count
integer
Number of entries in results
Normalization and duplicates
Symbols are uppercased and trimmed before the lookup, and duplicates collapse. Asking for ["aapl", " AAPL ", "AAPL"] returns one entry:
{ "results": { "AAPL": true }, "count": 1}
Because duplicates collapse, count can be lower than the number of symbols you sent. Read answers out of results by uppercase key — never by zipping results against your request array by index. This is the single easiest thing to get wrong when integrating.
Limits
Limit
Value
Exceeded →
Symbols per request
1000
400 TOO_MANY_SYMBOLS
Request body size
1 MiB
400 INVALID_BODY
Errors
All errors share one envelope:
{ "error": { "type": "validation_error", "code": "MISSING_SYMBOLS", "message": "symbols is required and must not be empty" }}
Status
code
Cause
400
MISSING_BODY
Empty request body
400
INVALID_BODY
Malformed JSON, or body over 1 MiB
400
MISSING_SYMBOLS
symbols absent, empty, or every entry blank after trimming
400
TOO_MANY_SYMBOLS
More than 1000 symbols
500
INTERNAL_ERROR
The list store is unreachable
There is no 404. A symbol that is not on the list is a valid false answer, not a missing resource. A query of only blanks — {"symbols": ["", " "]} — is a 400 rather than a 200 with empty results, so an unusable request is never answered with something that looks like a real result.
Interpreting the result
A false answer means the symbol is hard to borrow: it is not on today’s list, and shares must be located before a short sale. Treat it as “this needs a locate first”, not “this cannot be shorted at all”. Requesting a locate is not currently supported through the API.This endpoint reads the same underlying set as GET /v1/etb, so the two can never disagree. The set is replaced once per trading day before market open and does not change intraday — see Freshness.
Authorizations
Authorization
string
header
required
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Scopes
market:information
Access live and historical market data
Body
application/json
The symbols to check. 1–1000 entries, case-insensitive, whitespace-trimmed.
Batch borrowability query. Symbols are uppercased and trimmed before the lookup, and duplicates that normalize to the same symbol collapse into a single entry in the response.
symbols
string[]
required
Symbols to check. Case-insensitive and whitespace-trimmed, so aapl, AAPL, and AAPL are the same symbol and return one entry. A request of only blank strings is rejected with 400 MISSING_SYMBOLS rather than answered with an empty result.
Required array length: 1 - 1000 elements
Example:
["AAPL", "GME", "msft"]
Response
Borrowability answers keyed by normalized (uppercase) symbol. There is no 404: a symbol that is not on the list is a valid false answer, not a missing resource.
Borrowability answers keyed by normalized (uppercase) symbol.
count
integer
Number of entries in results. This can be lower than the number of symbols you sent, because duplicates collapse after normalization.
results
object
One entry per distinct normalized symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol is not on today's list and needs a locate first). Read answers out of this object by uppercase key — do not match them against your request array by index, because normalization collapses duplicates.
Show child attributes
Example:
{ "AAPL": true, "GME": false, "MSFT": true }
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":"6afdd5859267861064b3c438","clientVersion":"0.0.4286","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":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","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/marketdata/easy-to-borrow-search","slug":"/api-reference/marketdata/easy-to-borrow-search","pageMetadata":{"title":"Easy-to-Borrow Search","description":"Checks borrowability for a batch of symbols and returns one `true`/`false` answer per symbol. `true` means easy to borrow (a short sale needs no extra step); `false` means hard to borrow (the symbol needs a locate first).\n\n**Use Case:** Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\n","openapi":"openapi.json POST /v1/etb/search","href":"/api-reference/marketdata/easy-to-borrow-search"},"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 code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Checks borrowability for a batch of symbols and returns one \", _jsx(_components.code, {\n children: \"true\"\n }), \"/\", _jsx(_components.code, {\n children: \"false\"\n }), \" answer per symbol. \", _jsx(_components.code, {\n children: \"true\"\n }), \" means easy to borrow (a short sale needs no extra step); \", _jsx(_components.code, {\n children: \"false\"\n }), \" means hard to borrow (the symbol needs a locate first).\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Use Case:\"\n }), \" Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\"]\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 _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`OAuthLoginButton`,children:_jsx(OAuthLoginButton,{requiredScopes:[[`market:information`]]})}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`This endpoint answers borrowability for a batch of symbols against today’s `,_jsx(_components.a,{href:`/api-reference/marketdata/easy-to-borrow-list`,children:`easy-to-borrow list`}),`. Use it rather than fetching the whole list when you only care about a handful of symbols.`]}),`\n`,_jsxs(_components.p,{children:[`It is a `,_jsx(_components.code,{children:`POST`}),` rather than a `,_jsx(_components.code,{children:`GET`}),` because a symbol list has no practical URL-length limit.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.aries.com/v1/etb/search\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your-token\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"symbols\":[\"AAPL\",\"GME\",\"msft\"]}'`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"GME\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"MSFT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`results`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object\u003cstring, boolean>`})}),_jsxs(_components.td,{children:[`Keyed by the `,_jsx(_components.strong,{children:`normalized (uppercase)`}),` symbol. `,_jsx(_components.code,{children:`true`}),` = easy to borrow`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`count`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsxs(_components.td,{children:[`Number of entries in `,_jsx(_components.code,{children:`results`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`normalization-and-duplicates`,children:`Normalization and duplicates`}),`\n`,_jsxs(_components.p,{children:[`Symbols are uppercased and trimmed before the lookup, and `,_jsx(_components.strong,{children:`duplicates collapse`}),`. Asking for `,_jsx(_components.code,{children:`[\"aapl\", \" AAPL \", \"AAPL\"]`}),` returns `,_jsx(_components.strong,{children:`one`}),` entry:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Because duplicates collapse, `,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`count`}),` can be lower than the number of symbols you sent.`]}),` Read answers out of `,_jsx(_components.code,{children:`results`}),` by uppercase key — never by zipping `,_jsx(_components.code,{children:`results`}),` against your request array by index. This is the single easiest thing to get wrong when integrating.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Exceeded →`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Symbols per request`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1000`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`400 TOO_MANY_SYMBOLS`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Request body size`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1 MiB`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`400 INVALID_BODY`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsx(_components.p,{children:`All errors share one envelope:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MISSING_SYMBOLS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"symbols is required and must not be empty\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MISSING_BODY`})}),_jsx(_components.td,{children:`Empty request body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_BODY`})}),_jsx(_components.td,{children:`Malformed JSON, or body over 1 MiB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MISSING_SYMBOLS`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`symbols`}),` absent, empty, or every entry blank after trimming`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TOO_MANY_SYMBOLS`})}),_jsx(_components.td,{children:`More than 1000 symbols`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INTERNAL_ERROR`})}),_jsx(_components.td,{children:`The list store is unreachable`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`There is no `,_jsx(_components.code,{children:`404`}),`.`]}),` A symbol that is not on the list is a valid `,_jsx(_components.code,{children:`false`}),` answer, not a missing resource. A query of only blanks — `,_jsx(_components.code,{children:`{\"symbols\": [\"\", \" \"]}`}),` — is a `,_jsx(_components.code,{children:`400`}),` rather than a `,_jsx(_components.code,{children:`200`}),` with empty `,_jsx(_components.code,{children:`results`}),`, so an unusable request is never answered with something that looks like a real result.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`interpreting-the-result`,children:`Interpreting the result`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`false`}),` answer means the symbol is hard to borrow: it is `,_jsx(_components.strong,{children:`not`}),` on today’s list, and shares must be located before a short sale. Treat it as “this needs a locate first”, not “this cannot be shorted at all”. Requesting a locate is not currently supported through the API.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint reads the same underlying set as `,_jsx(_components.code,{children:`GET /v1/etb`}),`, so the two can never disagree. The set is replaced once per trading day before market open and does not change intraday — see `,_jsx(_components.a,{href:`/api-reference/marketdata/easy-to-borrow-list#freshness`,children:`Freshness`}),`.`]})]})}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":"Easy-to-Borrow Search","description":"Checks borrowability for a batch of symbols and returns one `true`/`false` answer per symbol. `true` means easy to borrow (a short sale needs no extra step); `false` means hard to borrow (the symbol needs a locate first).\n\n**Use Case:** Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\n","openapi":"openapi.json POST /v1/etb/search","href":"/api-reference/marketdata/easy-to-borrow-search"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[152,16465,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Normalization and duplicates","slug":"normalization-and-duplicates","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Interpreting the result","slug":"interpreting-the-result","depth":2,"children":[]}],"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":"Checks borrowability for a batch of symbols and returns one `true`/`false` answer per symbol. `true` means easy to borrow (a short sale needs no extra step); `false` means hard to borrow (the symbol needs a locate first).\n\n**Use Case:** Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\n","operationId":"searchEtbSymbols","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.market_data.search_etb_symbols(symbols=[\n \"aapl\",\n \" AAPL \",\n \"AAPL\",\n ])\n\n assert res.etb_search_response is not None\n\n # Handle response\n print(res.etb_search_response)"},{"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.marketData.searchEtbSymbols({\n symbols: [\n \"aapl\",\n \" AAPL \",\n \"AAPL\",\n ],\n });\n\n console.log(result);\n}\n\nrun();"}],"requestBody":"518c3a53-9f57-49e7-bde5-3509d2b49f60","responses":{"200":"9daf857d-49af-42b1-a98a-ffa4909e35b3","400":"29c3f609-04c4-47b5-b71d-5ce3f68dfe7d","401":"c0f3763f-1180-4c8e-9249-e17f56baff3c","403":"d21b6064-90fb-402d-adfa-089e5169bf9f","500":"2306f1ce-bb5d-459e-bfca-f5147cd8ee1c"},"security":["d5c8174f-ea56-477d-9edd-3bd383f4ae44"],"summary":"Search Easy-to-Borrow Symbols","tags":["Market Data"],"method":"post","type":"path","servers":["eb07cd63-628b-4379-ada2-06a642ecf78a","8376f42e-e666-485a-b60c-e695cb947784"],"path":"/v1/etb/search","baseUrlOptions":["https://api.aries.com","https://api.tradearies.dev"],"title":"Search Easy-to-Borrow Symbols","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.market_data.search_etb_symbols(symbols=[\n \"aapl\",\n \" AAPL \",\n \"AAPL\",\n ])\n\n assert res.etb_search_response is not None\n\n # Handle response\n print(res.etb_search_response)"},{"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.marketData.searchEtbSymbols({\n symbols: [\n \"aapl\",\n \" AAPL \",\n \"AAPL\",\n ],\n });\n\n console.log(result);\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"examples":{"duplicatesCollapse":{"title":"duplicatesCollapse","summary":"Duplicates collapse to one entry keyed AAPL","value":{"symbols":["aapl"," AAPL ","AAPL"]}},"mixedCase":{"title":"mixedCase","summary":"Check three symbols (mixed case)","value":{"symbols":["AAPL","GME","msft"]}}},"schema":{"description":"Batch borrowability query. Symbols are uppercased and trimmed before the lookup, and duplicates that normalize to the same symbol collapse into a single entry in the response.","properties":{"symbols":{"description":"Symbols to check. Case-insensitive and whitespace-trimmed, so `aapl`, ` AAPL `, and `AAPL` are the same symbol and return one entry. A request of only blank strings is rejected with 400 MISSING_SYMBOLS rather than answered with an empty result.","example":["AAPL","GME","msft"],"items":{"type":"string","uniqueKey":"symbols.items.[INDEX]","typeLabel":"string"},"maxItems":1000,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"symbols","typeLabel":"string[]"}},"required":["symbols"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The symbols to check. 1–1000 entries, case-insensitive, whitespace-trimmed.","required":true,"exampleType":"examples"},"responses":{"9daf857d-49af-42b1-a98a-ffa4909e35b3":{"content":{"application/json":{"examples":{"duplicatesCollapse":{"title":"duplicatesCollapse","summary":"Answer for [\"aapl\", \" AAPL \", \"AAPL\"] — count is 1, not 3","value":{"count":1,"results":{"AAPL":true}}},"mixedCase":{"title":"mixedCase","summary":"Answer for [\"AAPL\", \"GME\", \"msft\"]","value":{"count":3,"results":{"AAPL":true,"GME":false,"MSFT":true}}}},"schema":{"description":"Borrowability answers keyed by normalized (uppercase) symbol.","properties":{"count":{"description":"Number of entries in `results`. This can be lower than the number of symbols you sent, because duplicates collapse after normalization.","type":"integer","uniqueKey":"count","typeLabel":"integer"},"results":{"additionalProperties":{"type":"boolean","uniqueKey":"results.additionalProperties","typeLabel":"boolean"},"description":"One entry per distinct normalized symbol. `true` means easy to borrow (a short sale needs no extra step); `false` means hard to borrow (the symbol is not on today's list and needs a locate first). Read answers out of this object by uppercase key — do not match them against your request array by index, because normalization collapses duplicates.","example":{"AAPL":true,"GME":false,"MSFT":true},"type":"object","uniqueKey":"results","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Borrowability answers keyed by normalized (uppercase) symbol. There is no 404: a symbol that is not on the list is a valid `false` answer, not a missing resource.","exampleType":"examples"},"29c3f609-04c4-47b5-b71d-5ce3f68dfe7d":{"content":{"application/json":{"examples":{"invalid_body":{"title":"invalid_body","summary":"INVALID_BODY — malformed JSON, or body over 1 MiB","value":{"error":{"code":"INVALID_BODY","message":"invalid JSON body","type":"BAD_REQUEST"}}},"missing_body":{"title":"missing_body","summary":"MISSING_BODY — empty request body","value":{"error":{"code":"MISSING_BODY","message":"request body required","type":"BAD_REQUEST"}}},"missing_symbols":{"title":"missing_symbols","summary":"MISSING_SYMBOLS — symbols absent, empty, or every entry blank after trimming","value":{"error":{"code":"MISSING_SYMBOLS","message":"symbols is required and must not be empty","type":"BAD_REQUEST"}}},"too_many_symbols":{"title":"too_many_symbols","summary":"TOO_MANY_SYMBOLS — more than 1000 symbols","value":{"error":{"code":"TOO_MANY_SYMBOLS","message":"symbols exceeds the maximum of 1000 per request","type":"BAD_REQUEST"}}}},"schema":{"description":"JSON envelope where `error` is a nested object (`type`, `code`, `message`, …). Many services use this shape for 400, 401, 403, 404, and 5xx when using the shared HTTP error format.","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":"error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"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":"error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"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":"error.type","typeLabel":"string"}},"type":"object","uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"meta","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The request body was missing, malformed, or unusable. Returns the nested error envelope (`error.type`, `error.code`, `error.message`).","exampleType":"examples"},"c0f3763f-1180-4c8e-9249-e17f56baff3c":{"content":{"application/json":{"examples":{"flat_message":{"title":"flat_message","summary":"Flat error string (typical)","value":{"error":"string"}},"flat_with_codes":{"title":"flat_with_codes","summary":"Flat error with structured codes","value":{"codes":[{"code":"string","description":"string"}],"error":"string"}},"nested_error_object":{"title":"nested_error_object","summary":"Nested error (shared HTTP error format)","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"},"d21b6064-90fb-402d-adfa-089e5169bf9f":{"content":{"application/json":{"examples":{"flat":{"title":"flat","summary":"Flat message","value":{"error":"string"}},"nested":{"title":"nested","summary":"Nested error (shared HTTP error format)","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"},"2306f1ce-bb5d-459e-bfca-f5147cd8ee1c":{"content":{"application/json":{"examples":{"flat_string":{"title":"flat_string","summary":"Flat error string","value":{"error":"string"}},"nested_error_object":{"title":"nested_error_object","summary":"Nested error (shared HTTP error format)","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":{"d5c8174f-ea56-477d-9edd-3bd383f4ae44":{"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:information"],"schemeName":"OAuth2"}}},"servers":{"eb07cd63-628b-4379-ada2-06a642ecf78a":{"description":"Production server","url":"https://api.aries.com"},"8376f42e-e666-485a-b60c-e695cb947784":{"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:information"],"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":"Easy-to-Borrow Search - Aries API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T11:06:28.768Z","originalFileLocation":"api-reference/marketdata/easy-to-borrow-search.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=\"Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first). Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\">\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=\"Easy-to-Borrow Search - Aries API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first). Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aries API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search\">\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=Market+Data\u0026amp;title=Easy-to-Borrow+Search\u0026amp;description=Checks+borrowability+for+a+batch+of+symbols+and+returns+one+%60true%60%2F%60false%60+answer+per+symbol.+%60true%60+means+easy+to+borrow+%28a+short+sale+needs+no+extra+step%29%3B+%60f\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=62e03aa218e0d35d4195069d4f719e2a5e66c0d849a873a1cc59cb683cf71aef\">\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=\"Easy-to-Borrow Search - Aries API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first). Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=Market+Data\u0026amp;title=Easy-to-Borrow+Search\u0026amp;description=Checks+borrowability+for+a+batch+of+symbols+and+returns+one+%60true%60%2F%60false%60+answer+per+symbol.+%60true%60+means+easy+to+borrow+%28a+short+sale+needs+no+extra+step%29%3B+%60f\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=62e03aa218e0d35d4195069d4f719e2a5e66c0d849a873a1cc59cb683cf71aef\">\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/marketdata/easy-to-borrow-search\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/marketdata/easy-to-borrow-search.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/marketdata/easy-to-borrow-search#webpage\",\"url\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search\",\"name\":\"Easy-to-Borrow Search\",\"description\":\"Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first). Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\",\"dateModified\":\"2026-11-16T11:06:28.768Z\",\"isPartOf\":{\"@id\":\"https://finance.dev#website\"},\"breadcrumb\":{\"@id\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Market Data\",\"item\":\"https://finance.dev/api-reference/marketdata/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Easy-to-Borrow Search\",\"item\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search#apireference\",\"headline\":\"Easy-to-Borrow Search\",\"name\":\"Easy-to-Borrow Search\",\"description\":\"Checks borrowability for a batch of symbols and returns one true/false answer per symbol. true means easy to borrow (a short sale needs no extra step); false means hard to borrow (the symbol needs a locate first). Use Case: Decide whether to offer a short-sell action on a ticker page without downloading the full easy-to-borrow list.\",\"url\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search\",\"mainEntityOfPage\":{\"@id\":\"https://finance.dev/api-reference/marketdata/easy-to-borrow-search#webpage\"},\"dateModified\":\"2026-11-16T11:06:28.768Z\",\"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/marketdata/easy-to-borrow-search.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":"API Reference","href":"/api-reference"},{"group":"Users","pages":[{"title":"Get User Info","openapi":"openapi.json GET /v1/users/info","href":"/api-reference/user/info"}]},{"group":"Accounts","pages":[{"group":"Guide","pages":[{"title":"Account Info","href":"/api-reference/accounts/overview"}]},{"title":"User Accounts","openapi":"openapi.json GET /v2/users/me/accounts","href":"/api-reference/accounts/user-accounts"},{"title":"Today's Orders","openapi":"openapi.json GET /v2/accounts/{id}/orders","href":"/api-reference/accounts/list-active-orders"},{"title":"List order history","openapi":"openapi.json GET /v2/accounts/{id}/orders/history","href":"/api-reference/accounts/list-orders-history"},{"title":"Account Positions","openapi":"openapi.json GET /v1/accounts/{id}/positions","href":"/api-reference/accounts/positions"},{"title":"Account Balance","openapi":"openapi.json GET /v2/accounts/{id}/balance","href":"/api-reference/accounts/balance"}]},{"group":"Orders","pages":[{"group":"Guide","pages":[{"title":"Order Flow","href":"/api-reference/orders/order-flow"},{"title":"Market Order","href":"/api-reference/orders/market-order"},{"title":"Limit Order","href":"/api-reference/orders/limit-order"},{"title":"Stop Order","href":"/api-reference/orders/stop-order"},{"title":"Stop-Limit Order","href":"/api-reference/orders/stop-limit-order"},{"title":"Single-Leg Option Order","href":"/api-reference/orders/single-leg-option"},{"title":"Multi-Leg Option Order","href":"/api-reference/orders/multi-leg-option"}]},{"title":"Place Order","openapi":"openapi.json POST /v1/orders","href":"/api-reference/orders/place-order"},{"title":"Replace Order","openapi":"openapi.json POST /v1/orders/replace","href":"/api-reference/orders/update-order"},{"title":"Cancel Order","openapi":"openapi.json POST /v1/orders/cancel","href":"/api-reference/orders/cancel-order"},{"title":"Preview Order","openapi":"openapi.json POST /v1/orders/preview","href":"/api-reference/orders/preview-order"}]},{"group":"Market Data","pages":[{"group":"Guide","pages":[{"title":"Market Data","href":"/api-reference/marketdata/overview"}]},{"title":"Search Symbols","openapi":"openapi.json GET /v1/marketdata/search","href":"/api-reference/marketdata/search"},{"title":"Equity Details","openapi":"openapi.json GET /v1/marketdata/equities/details","href":"/api-reference/marketdata/equity-details"},{"title":"Options Details","openapi":"openapi.json GET /v1/marketdata/options/details","href":"/api-reference/marketdata/options-details"},{"title":"Easy-to-Borrow List","description":"Returns every symbol on today's easy-to-borrow (ETB) list — the complete set of US equities that can be sold short without first locating shares. Membership is the whole signal: there is no per-symbol status, quantity, or borrow rate.\n\n**Use Case:** Build a screener or filter a large watchlist by fetching the list once per trading day and checking membership locally.\n","openapi":"openapi.json GET /v1/etb","href":"/api-reference/marketdata/easy-to-borrow-list"},{"title":"Easy-to-Borrow Search","openapi":"openapi.json POST /v1/etb/search","href":"/api-reference/marketdata/easy-to-borrow-search"}]},{"group":"Watchlist","pages":[{"title":"Create Watchlist","description":"Creates a new watchlist for the authenticated user from a name and an optional list of symbols. Submitted symbols are uppercased and checked against the symbol resolver; any that can't be resolved are dropped from the saved list and returned in the response's `invalid_symbols` field instead of failing the request.\n\n**Use Case:** Let a user save a new named group of symbols, such as a sector list or a set of trade ideas, to monitor going forward.\n","openapi":"openapi.json POST /v1/config/watchlist","href":"/api-reference/watchlist/create-watchlist"},{"title":"List Watchlists","openapi":"openapi.json GET /v1/config/watchlist","href":"/api-reference/watchlist/list-watchlists"},{"title":"Get Watchlist","openapi":"openapi.json GET /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/get-watchlist"},{"title":"Update Watchlist","openapi":"openapi.json PATCH /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/update-watchlist"},{"title":"Delete Watchlist","openapi":"openapi.json DELETE /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/delete-watchlist"},{"title":"Replace All Watchlists","openapi":"openapi.json PUT /v1/config/watchlist","href":"/api-reference/watchlist/replace-watchlists"}]},{"group":"Chart","pages":[{"title":"Chart Configuration","openapi":"openapi.json GET /v1/chart/config","href":"/api-reference/chart/get-config"},{"title":"Symbol Information","openapi":"openapi.json GET /v1/chart/symbols","href":"/api-reference/chart/get-symbol-info"},{"title":"Historical Bars","openapi":"openapi.json GET /v1/chart/history","href":"/api-reference/chart/get-historical-bars"},{"title":"Tick-Based Chart Data","openapi":"openapi.json GET /v1/chart/tick-history","href":"/api-reference/chart/get-tick-history"},{"title":"Server Time","openapi":"openapi.json GET /v1/chart/time","href":"/api-reference/chart/get-server-time"},{"title":"Search Symbols","openapi":"openapi.json GET /v1/chart/search","href":"/api-reference/chart/search-symbols"},{"title":"Quotes","openapi":"openapi.json GET /v1/chart/quotes","href":"/api-reference/chart/get-quotes"}]}]},{"tab":"Supplemental API","icon":"chart-mixed","pages":[{"title":"Supplemental API","href":"/supplemental-api/overview"}]},{"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":"Easy-to-Borrow Search - Aries API","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}