The secret key should be treated the same way as a password and not stored in an unencrypted manner. Place it in a password manager or key vault.
IP Whitelisting
It is strongly recommended to whitelist the IP addresses which are allowed to make requests for the given API key.Up to 16 IP addresses can be added per API key. Only IPv4 addresses are supported at this time.The default state with no whitelisted addresses (empty whitelist) is to allow requests from any IP. If there are addresses on the whitelist, then only requests from the whitelisted IPs are allowed. Requests from IPs not on the whitelist will error with code 401 and message: "IP addr x.x.x.x is not allowed for key ondoKeyId_yyyyyyyy".
Making an Authenticated REST Request
Authenticated REST requests need the following headers:
ONDO-KEY-ID The key id (including the “ondoKeyId_” prefix)
ONDO-TIMESTAMP Number of milliseconds since the Unix epoch, this may be at most 10 seconds behind or 1 second ahead of server time.
ONDO-SIGN hex representation of SHA256 HMAC of the following four strings concatenated together using the API Secret (including the “ondoApiSecret_” prefix).
timestamp identical to the ONDO-TIMESTAMP header
method HTTP method in uppercase
requestPath full path and query parameters of the URL, excluding the hostname
body request body string
Error Codes
Requests made through API key authentication can fail with the following error codes:
api_key_not_found — The API key provided could not be found.
failed_to_parse_timestamp — The timestamp provided could not be parsed.
timestamp_too_far — The timestamp is too far from the server timestamp (more than 10 seconds behind or 1 second ahead of server time)
failed_to_decode_hex_signature — The hex signature could not be decoded.
signature_mismatch — There is a mismatch in the signature.
key_doesnt_have_scope — The API key does not have the required scope for the endpoint.
ip_not_permitted — The IP address making the request is not whitelisted for this API key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ondo Perps","colors":{"primary":"#1DA66A","light":"#1DA66A","dark":"#000000"},"logo":{"light":"https://mintcdn.com/ondoperps/CBHPBkgfPQ3nc5m8/logo/logo-black.svg?fit=max\u0026auto=format\u0026n=CBHPBkgfPQ3nc5m8\u0026q=85\u0026s=f138af016516ef9bfa0eafe281a3c9f5","dark":"https://mintcdn.com/ondoperps/CBHPBkgfPQ3nc5m8/logo/logo-white.svg?fit=max\u0026auto=format\u0026n=CBHPBkgfPQ3nc5m8\u0026q=85\u0026s=5d3aac5641eb541f8cc57fff356f89e5"},"favicon":{"light":"https://mintcdn.com/ondoperps/WUtC3JLf1OUlnujF/images/Favicon.svg?fit=max\u0026auto=format\u0026n=WUtC3JLf1OUlnujF\u0026q=85\u0026s=036faf10024c598eb0dc47ef335c8dc4","dark":"https://mintcdn.com/ondoperps/WUtC3JLf1OUlnujF/images/Favicon.svg?fit=max\u0026auto=format\u0026n=WUtC3JLf1OUlnujF\u0026q=85\u0026s=036faf10024c598eb0dc47ef335c8dc4"},"appearance":{"default":"dark"},"background":{"color":{"dark":"#141414"}},"navbar":{"links":[]},"footer":{"socials":{"x":"https://x.com/OndoPerps"}},"fonts":{"family":"Gellix","weight":500,"source":"https://ondo.finance/fonts/Gellix/Gellix-Regular.woff2","format":"woff2"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Ondo Perps Website","icon":"globe","href":"https://ondoperps.xyz"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ondoperps","hasAudioNarration":false,"actualSubdomain":"ondoperps","customDomains":["docs.ondoperps.xyz"],"gitSource":{"type":"github","owner":"ondoprotocol","repo":"perps-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b00c40ad0f0f3fd7e2035fc","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":129},{"language":"default","tag":"REST API","count":96},{"language":"default","tag":"FAQs","count":88},{"language":"default","tag":"WebSocket API","count":30},{"language":"default","tag":"Wallet","count":14},{"language":"default","tag":"Trading","count":13},{"language":"default","tag":"Private Channels","count":13},{"language":"default","tag":"Spot trading","count":13},{"language":"default","tag":"Market Data","count":8},{"language":"default","tag":"Orders","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:not(.geofence-checked) #content-area{visibility:hidden}html:not(.geofence-checked) #sidebar,html:not(.geofence-checked) #content-side-layout,html:not(.geofence-checked) #search-bar-entry,html:not(.geofence-checked) #search-bar-entry-mobile,html:not(.geofence-checked) #assistant-entry,html:not(.geofence-checked) .nav-tabs,html.geofence-restricted #sidebar,html.geofence-restricted #content-side-layout,html.geofence-restricted #search-bar-entry,html.geofence-restricted #search-bar-entry-mobile,html.geofence-restricted #assistant-entry,html.geofence-restricted .nav-tabs{display:none!important}html.geofence-restricted #content-area{padding-left:0!important;margin-left:0!important;width:100%!important;max-width:none!important}html:not(.geofence-checked) body::before{content:\"\";position:fixed;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;border:3px solid rgba(128, 128, 128, 0.2);border-top-color:#1DA66A;border-radius:50%;animation:geofence-spin 0.8s linear infinite;z-index:9999;pointer-events:none}@keyframes geofence-spin{to{transform:rotate(360deg)}}html.dark #content-area h1,html.dark #content-area h2,html.dark #content-area h3,html.dark #content-area h4,html.dark #content-area h5,html.dark #content-area h6{color:#FFFFFF!important}html.dark #content-area p,html.dark #content-area li,html.dark #content-area td,html.dark #content-area .prose,html.dark #content-area .prose p,html.dark #content-area .prose li{color:#DEDEDE!important}html.dark #content-area strong{color:#FFFFFF!important}html:not(.dark) #content-area h1,html:not(.dark) #content-area h2,html:not(.dark) #content-area h3,html:not(.dark) #content-area h4,html:not(.dark) #content-area h5,html:not(.dark) #content-area h6{color:#000000!important}html:not(.dark) #content-area p,html:not(.dark) #content-area li,html:not(.dark) #content-area td,html:not(.dark) #content-area .prose,html:not(.dark) #content-area .prose p,html:not(.dark) #content-area .prose li{color:#626262!important}html:not(.dark) #content-area strong{color:#000000!important}[data-callout-type=\"note\"]{background-color:#E0ECFF!important;border-color:#1C3966!important;color:#1C3966!important}[data-callout-type=\"note\"] *,[data-callout-type=\"note\"] p,[data-callout-type=\"note\"] span,[data-callout-type=\"note\"] strong,[data-callout-type=\"note\"] a{color:#1C3966!important}[data-callout-type=\"note\"] svg{color:#1C3966!important;fill:#1C3966!important}[data-callout-type=\"note\"] *:not(svg){background-color:transparent!important}html.dark #sidebar a:hover,html.dark #sidebar li a:hover,html.dark nav a:hover,html.dark nav li a:hover,html.dark aside a:hover{background-color:#1D1D1D!important}html.dark #sidebar a[aria-current=\"page\"],html.dark #sidebar a.active,html.dark nav a[aria-current=\"page\"],html.dark nav a.active,html.dark aside a[aria-current=\"page\"]{background-color:#003829!important}html:not(.dark) #sidebar a:hover,html:not(.dark) #sidebar li a:hover,html:not(.dark) nav a:hover,html:not(.dark) nav li a:hover,html:not(.dark) aside a:hover{background-color:#F4F4F4!important}html:not(.dark) #sidebar a[aria-current=\"page\"],html:not(.dark) #sidebar a.active,html:not(.dark) nav a[aria-current=\"page\"],html:not(.dark) nav a.active,html:not(.dark) aside a[aria-current=\"page\"]{background-color:#E5F8F3!important}#content-area a[class*=\"card\"]:hover,#content-area .card:hover,#content-area [class*=\"Card\"]:hover{border-color:#1DA66A!important}#content-area a{color:#1DA66A!important;text-decoration:none!important}#content-area a:hover{color:#1DA66A!important;opacity:0.85}html:not(.dark) #content-area pre code{background-color:#F0F0F0!important}html:not(.dark) #content-area pre *:not([data-fade-overlay]){background-color:transparent!important}html:not(.dark) #content-area pre [data-fade-overlay]{--fade-color-light: #F0F0F0 !important;background:linear-gradient(to right, transparent, #F0F0F0)!important;background-color:transparent!important}html.dark #content-area pre [data-fade-overlay]{--fade-color-dark: #0B0C0E !important}#sidebar h3.sidebar-title:first-of-type,aside h3.sidebar-title:first-of-type,nav h3.sidebar-title:first-of-type{display:none!important}html.dark #sidebar a[aria-current=\"page\"]:hover,html.dark #sidebar a.active:hover,html.dark nav a[aria-current=\"page\"]:hover,html.dark nav a.active:hover,html.dark aside a[aria-current=\"page\"]:hover,html.dark aside a.active:hover{background-color:#003829!important}html:not(.dark) #sidebar a[aria-current=\"page\"]:hover,html:not(.dark) #sidebar a.active:hover,html:not(.dark) nav a[aria-current=\"page\"]:hover,html:not(.dark) nav a.active:hover,html:not(.dark) aside a[aria-current=\"page\"]:hover,html:not(.dark) aside a.active:hover{background-color:#E5F8F3!important}"}]}
{"page":{"pagePath":"api-reference/api_key_authentication","slug":"/api-reference/api_key_authentication","pageMetadata":{"title":"API Key Authentication","description":"Example of how to use API keys","href":"/api-reference/api_key_authentication"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Example of how to use API keys\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`generating-an-api-key`,children:`Generating an API Key`}),`\n`,_jsx(_components.p,{children:`To generate an API Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Sign into your account with a web browser`}),`\n`,_jsx(_components.li,{children:`Click on your address in the upper right corner`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`API Keys`})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Add New API Key`})]}),`\n`,_jsx(_components.li,{children:`Name the key`}),`\n`,_jsx(_components.li,{children:`Select the correct permissions`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Create API Key`})]}),`\n`,_jsx(_components.li,{children:`Record the secret key`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The secret key should be treated the same way as a password and not stored in an unencrypted manner. Place it in a password manager or key vault.`})}),`\n`,_jsx(Heading,{level:`3`,id:`ip-whitelisting`,children:`IP Whitelisting`}),`\n`,_jsx(_components.p,{children:`It is strongly recommended to whitelist the IP addresses which are allowed to make requests for the given API key.`}),`\n`,_jsx(_components.p,{children:`Up to 16 IP addresses can be added per API key. Only IPv4 addresses are supported at this time.`}),`\n`,_jsxs(_components.p,{children:[`The default state with no whitelisted addresses (empty whitelist) is to allow requests from any IP. If there are addresses on the whitelist, then only requests from the whitelisted IPs are allowed. Requests from IPs not on the whitelist will error with code 401 and message: `,_jsx(_components.code,{children:`\"IP addr x.x.x.x is not allowed for key ondoKeyId_yyyyyyyy\"`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`making-an-authenticated-rest-request`,children:`Making an Authenticated REST Request`}),`\n`,_jsx(_components.p,{children:`Authenticated REST requests need the following headers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ONDO-KEY-ID`}),` The key id (including the “ondoKeyId_” prefix)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ONDO-TIMESTAMP`}),` Number of milliseconds since the Unix epoch, this may be at most 10 seconds behind or 1 second ahead of server time.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ONDO-SIGN`}),` hex representation of SHA256 HMAC of the following four strings concatenated together using the API Secret (including the “ondoApiSecret_” prefix).`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`timestamp`}),` identical to the ONDO-TIMESTAMP header`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`method`}),` HTTP method in uppercase`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`requestPath`}),` full path and query parameters of the URL, excluding the hostname`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`body`}),` request body string`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsx(_components.p,{children:`Requests made through API key authentication can fail with the following error codes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`api_key_not_found`}),` — The API key provided could not be found.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`failed_to_parse_timestamp`}),` — The timestamp provided could not be parsed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`timestamp_too_far`}),` — The timestamp is too far from the server timestamp (more than 10 seconds behind or 1 second ahead of server time)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`failed_to_decode_hex_signature`}),` — The hex signature could not be decoded.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`signature_mismatch`}),` — There is a mismatch in the signature.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`key_doesnt_have_scope`}),` — The API key does not have the required scope for the endpoint.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ip_not_permitted`}),` — The IP address making the request is not whitelisted for this API key.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-in-go`,children:`Example in Go`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`36`,language:`go`,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:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`crypto/hmac`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`crypto/sha256`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`encoding/hex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`io`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`net/http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`strings`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`time`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` keyId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ondoKeyId_KEYID\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiSecret`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ondoApiSecret_SECRET\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"GET\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.ondoperps.xyz\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/v1/perps/orders?market=AAPL-USD.P\u0026limit=1000\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`strings`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewReader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Sprintf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Now`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`UnixMilli`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\" // Ensure path contains query params `?market=AVAX-USDC\u0026limit=1000`.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` concattedString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mac`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` hmac`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`New`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sha256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`New`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, []`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`byte`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiSecret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mac`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Write`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`byte`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`concattedString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mac`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Sum`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ONDO-KEY-ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`keyId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ONDO-TIMESTAMP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`timestamp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ONDO-SIGN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`hex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`EncodeToString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DefaultClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Printf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http err: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`})}),`\n`,_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` io`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ReadAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Printf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Status: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, Body: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_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(_components.p,{children:[`Note: in Go, `,_jsx(_components.code,{children:`req.URL.RequestURI()`}),` contains the query parameters and should be used, whereas `,_jsx(_components.code,{children:`req.URL.Path`}),` does not.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-in-python`,children:`Example in Python`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hmac`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hashlib`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`key_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ondoKeyId_KEYID\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_secret `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ondoApiSecret_SECRET\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`method `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"GET\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`base `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.ondoperps.xyz\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`path `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/v1/perps/orders?market=AAPL-USD.P\u0026limit=1000\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` base `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` path`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`timestamp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(time.time() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# Ensure path contains query params `?market=AAPL-USD.P\u0026limit=1000`\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`concatted_string `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` timestamp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` method `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` path `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mac `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hmac.new(api_secret.encode(), concatted_string.encode(), hashlib.sha256)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`signature `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mac.hexdigest()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ONDO-KEY-ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: key_id,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ONDO-TIMESTAMP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: timestamp,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ONDO-SIGN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: signature`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Status: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.status_code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, Body: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.text`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API Key Authentication","description":"Example of how to use API keys","href":"/api-reference/api_key_authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Generating an API Key","slug":"generating-an-api-key","depth":2,"children":[{"title":"IP Whitelisting","slug":"ip-whitelisting","depth":3,"children":[]}]},{"title":"Making an Authenticated REST Request","slug":"making-an-authenticated-rest-request","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]},{"title":"Example in Go","slug":"example-in-go","depth":2,"children":[]},{"title":"Example in Python","slug":"example-in-python","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ondoperps/95a49d9b1f9f45ef/geofence.js"],"subdomain":"ondoperps","siteName":"Ondo Perps","title":"API Key Authentication - Ondo Perps","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T21:34:11.705Z","originalFileLocation":"api-reference/api_key_authentication.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=\"dark\"}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=\"Example of how to use API keys\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ondo Perps\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_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/ondoperps/yqrzVHj6_lGFoldF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Key Authentication - Ondo Perps\">\u003cmeta data-mint-head property=\"og:description\" content=\"Example of how to use API keys\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ondo Perps\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ondoperps.xyz/api-reference/api_key_authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ondoperps.mintlify.site/_mintlify/api/og/v2?division=Authentication\u0026amp;title=API+Key+Authentication\u0026amp;description=Example+of+how+to+use+API+keys\u0026amp;theme=00135971b24a8049d9d2cfb7\u0026amp;signature=ef96b4ebe1a485284c83ea99fe347c9de4197f95c99ee1f2df25b94b4d4493bd\">\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=\"API Key Authentication - Ondo Perps\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Example of how to use API keys\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ondoperps.mintlify.site/_mintlify/api/og/v2?division=Authentication\u0026amp;title=API+Key+Authentication\u0026amp;description=Example+of+how+to+use+API+keys\u0026amp;theme=00135971b24a8049d9d2cfb7\u0026amp;signature=ef96b4ebe1a485284c83ea99fe347c9de4197f95c99ee1f2df25b94b4d4493bd\">\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/ondoperps/yqrzVHj6_lGFoldF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ondo Perps\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1DA66A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ondoperps.xyz/api-reference/api_key_authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/api_key_authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ondoperps.xyz/#organization\",\"name\":\"Ondo Perps\",\"url\":\"https://docs.ondoperps.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ondoperps/CBHPBkgfPQ3nc5m8/logo/logo-black.svg?fit=max\u0026auto=format\u0026n=CBHPBkgfPQ3nc5m8\u0026q=85\u0026s=f138af016516ef9bfa0eafe281a3c9f5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ondoperps.xyz#website\",\"name\":\"Ondo Perps\",\"url\":\"https://docs.ondoperps.xyz\",\"publisher\":{\"@id\":\"https://docs.ondoperps.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication#webpage\",\"url\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication\",\"name\":\"API Key Authentication\",\"description\":\"Example of how to use API keys\",\"dateModified\":\"2026-10-02T21:34:11.705Z\",\"isPartOf\":{\"@id\":\"https://docs.ondoperps.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ondo Perps\",\"item\":\"https://docs.ondoperps.xyz\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Key Authentication\",\"item\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication#article\",\"headline\":\"API Key Authentication\",\"name\":\"API Key Authentication\",\"description\":\"Example of how to use API keys\",\"url\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ondoperps.xyz/api-reference/api_key_authentication#webpage\"},\"dateModified\":\"2026-10-02T21:34:11.705Z\",\"publisher\":{\"@id\":\"https://docs.ondoperps.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ondoperps.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ondo Perps\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ondo Perps\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/api_key_authentication.md","siteName":"Ondo Perps","nav":{"global":{"anchors":[{"anchor":"Ondo Perps Website","icon":"globe","href":"https://ondoperps.xyz"}]},"tabs":[{"tab":"FAQs","pages":[{"title":"FAQs","href":"/about"}]},{"tab":"API Reference","groups":[{"group":"Authentication","pages":[{"title":"API Key Authentication","href":"/api-reference/api_key_authentication"}]},{"group":"Guides","pages":[{"title":"Builder Integration Guide","description":"Walk-through integrating with Ondo Perps as a builder. This guide uses JavaScript in-browser examples","href":"/api-reference/integration_guide"},{"title":"Spot API guide","href":"/api-reference/spot-api-guide"}]},{"group":"REST API","pages":[{"group":"Tool","pages":[{"title":"Get Status","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /status","href":"/api-reference/tool/get-status"},{"title":"Hello","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /hello","href":"/api-reference/tool/hello"}]},{"group":"Account","pages":[{"title":"Get Account","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/account","href":"/api-reference/account/get-account"},{"title":"Get Open Order Counts","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/counts/orders","href":"/api-reference/account/get-open-order-counts"}]},{"group":"Builder Code","pages":[{"title":"Get Builder Code Statistics","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/builder_code/stats","href":"/api-reference/builder-code/get-builder-code-statistics"},{"title":"Get Recent Builder Code Fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/builder_code/fills","href":"/api-reference/builder-code/get-recent-builder-code-fills"}]},{"group":"Auth","pages":[{"title":"Get SIWE Login Challenge","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/auth/erc-4361/login/get_challenge","href":"/api-reference/auth/get-siwe-login-challenge"},{"title":"Complete SIWE Login","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/auth/erc-4361/login/complete_challenge","href":"/api-reference/auth/complete-siwe-login"},{"title":"Get SIWE Address Book Challenge","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/auth/erc-4361/address_book/get_challenge","href":"/api-reference/auth/get-siwe-address-book-challenge"},{"title":"Complete SIWE Address Book Challenge","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/auth/erc-4361/address_book/complete_challenge","href":"/api-reference/auth/complete-siwe-address-book-challenge"},{"title":"Invalidate JWT","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/auth/invalidate_jwt","href":"/api-reference/auth/invalidate-jwt"}]},{"group":"Markets","pages":[{"title":"Get Markets","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/markets","href":"/api-reference/markets/get-markets"}]},{"group":"Sandbox","pages":[{"title":"Sandbox Deposit","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/sandbox_deposit","href":"/api-reference/sandbox/sandbox-deposit"},{"title":"Sandbox Withdrawal","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/sandbox_withdrawal","href":"/api-reference/sandbox/sandbox-withdrawal"}]},{"group":"Wallet","pages":[{"title":"Withdraw","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/withdraw","href":"/api-reference/wallet/withdraw"},{"title":"Provision Deposit Address","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/provision_address","href":"/api-reference/wallet/provision-deposit-address"},{"title":"Get Withdrawal Status","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/get_withdrawal_status","href":"/api-reference/wallet/get-withdrawal-status"},{"title":"List Deposits","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/deposits","href":"/api-reference/wallet/list-deposits"},{"title":"Get Deposit by ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/deposits/{depositID}","href":"/api-reference/wallet/get-deposit-by-id"},{"title":"List Withdrawals","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/withdrawals","href":"/api-reference/wallet/list-withdrawals"},{"title":"Get Withdrawal Limits","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/withdrawals/limit","href":"/api-reference/wallet/get-withdrawal-limits"},{"title":"Get Withdrawal by ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/withdrawals/{withdrawalID}","href":"/api-reference/wallet/get-withdrawal-by-id"},{"title":"List Deposit Addresses","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/wallet/deposit_address/list","href":"/api-reference/wallet/list-deposit-addresses"},{"title":"Export Deposits CSV","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/wallet/deposits/csv","href":"/api-reference/wallet/export-deposits-csv"},{"title":"Export Withdrawals CSV","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/wallet/withdrawals/csv","href":"/api-reference/wallet/export-withdrawals-csv"},{"title":"Get Address Book","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/wallet/address_book","href":"/api-reference/wallet/get-address-book"},{"title":"Edit Address Book Entry","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json put /v1/wallet/address_book","href":"/api-reference/wallet/edit-address-book-entry"},{"title":"Remove Address Book Entry","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/wallet/address_book","href":"/api-reference/wallet/remove-address-book-entry"}]},{"group":"API Keys","pages":[{"title":"List API Keys","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/api_keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API Key","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/api_keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Delete API Key","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/api_keys/{apiKeyID}","href":"/api-reference/api-keys/delete-api-key"},{"title":"Set API Key IP Whitelist","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/api_keys/{apiKeyID}/ip_whitelist","href":"/api-reference/api-keys/set-api-key-ip-whitelist"},{"title":"Remove API Key IP Whitelist Entry","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/api_keys/{apiKeyID}/ip_whitelist","href":"/api-reference/api-keys/remove-api-key-ip-whitelist-entry"}]},{"group":"Orders","pages":[{"title":"Get Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/orders","href":"/api-reference/orders/get-orders"},{"title":"Create Order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/perps/orders","href":"/api-reference/orders/create-order"},{"title":"Cancel All Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/perps/orders","href":"/api-reference/orders/cancel-all-orders"},{"title":"Create Batched Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/perps/orders/batch","href":"/api-reference/orders/create-batched-orders"},{"title":"Batch Cancel Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/perps/orders/batch","href":"/api-reference/orders/batch-cancel-orders"},{"title":"Get Order by ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/orders/{orderID}","href":"/api-reference/orders/get-order-by-id"},{"title":"Cancel Order by ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/perps/orders/{orderID}","href":"/api-reference/orders/cancel-order-by-id"},{"title":"Get Orders CSV","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/orders/csv","href":"/api-reference/orders/get-orders-csv"}]},{"group":"TWAP Orders","pages":[{"title":"Create TWAP Order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/perps/twap/order","href":"/api-reference/twap-orders/create-twap-order"},{"title":"Get TWAP Order by ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/twap/order/{orderID}","href":"/api-reference/twap-orders/get-twap-order-by-id"},{"title":"Cancel TWAP Order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/perps/twap/order/{orderID}","href":"/api-reference/twap-orders/cancel-twap-order"},{"title":"Get TWAP Order Fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/twap/order/{orderID}/fills","href":"/api-reference/twap-orders/get-twap-order-fills"},{"title":"Get Running TWAP Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/twap/orders/running","href":"/api-reference/twap-orders/get-running-twap-orders"},{"title":"Get TWAP Order History","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/twap/orders/history","href":"/api-reference/twap-orders/get-twap-order-history"}]},{"group":"Fills","pages":[{"title":"Get Fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/fills","href":"/api-reference/fills/get-fills"},{"title":"Get Fills by Order ID","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/orders/{orderID}/fills","href":"/api-reference/fills/get-fills-by-order-id"},{"title":"Get Fills CSV","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/fills/csv","href":"/api-reference/fills/get-fills-csv"}]},{"group":"Market Data","pages":[{"title":"Get Trades","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/trades","href":"/api-reference/market-data/get-trades"},{"title":"Get Order Book Depth","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/depth","href":"/api-reference/market-data/get-order-book-depth"},{"title":"Get Candles","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/candles","href":"/api-reference/market-data/get-candles"},{"title":"Get Symbol Info (TradingView)","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/symbol_info","href":"/api-reference/market-data/get-symbol-info-tradingview"},{"title":"Get Price History (TradingView)","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/history","href":"/api-reference/market-data/get-price-history-tradingview"},{"title":"Get Open Interest","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/open_interest","href":"/api-reference/market-data/get-open-interest"},{"title":"Get Volume","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/volume","href":"/api-reference/market-data/get-volume"},{"title":"Get Contracts","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/contracts","href":"/api-reference/market-data/get-contracts"}]},{"group":"Positions","pages":[{"title":"Get Positions","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/positions","href":"/api-reference/positions/get-positions"},{"title":"Get Leverage","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/leverage","href":"/api-reference/positions/get-leverage"},{"title":"Set Leverage","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/perps/leverage","href":"/api-reference/positions/set-leverage"}]},{"group":"Margin Account","pages":[{"title":"Get Balance","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/balance","href":"/api-reference/margin-account/get-balance"},{"title":"Get Orders Summaries","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/orders_summaries","href":"/api-reference/margin-account/get-orders-summaries"},{"title":"Get Max Order Size","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/max_order_size","href":"/api-reference/margin-account/get-max-order-size"},{"title":"Get Liquidation History","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/liquidation_history","href":"/api-reference/margin-account/get-liquidation-history"}]},{"group":"Funding Rate","pages":[{"title":"Get Funding Rates","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/funding_rates","href":"/api-reference/funding-rate/get-funding-rates"},{"title":"Get Funding Rate History","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/funding_rate_history","href":"/api-reference/funding-rate/get-funding-rate-history"},{"title":"Get Funding Fee Payments","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/funding_fees","href":"/api-reference/funding-rate/get-funding-fee-payments"},{"title":"Get Mark Prices","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/mark_prices","href":"/api-reference/funding-rate/get-mark-prices"}]},{"group":"Stop Orders","pages":[{"title":"Get Stop Orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/perps/stop_order","href":"/api-reference/stop-orders/get-stop-orders"},{"title":"Set Stop Order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/perps/stop_order","href":"/api-reference/stop-orders/set-stop-order"},{"title":"Remove Stop Order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/perps/stop_order","href":"/api-reference/stop-orders/remove-stop-order"}]},{"group":"Portfolio","pages":[{"title":"Get Portfolio Summary","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/portfolio/summary","href":"/api-reference/portfolio/get-portfolio-summary"},{"title":"Get Portfolio Summary Graph","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/portfolio/summary/graph","href":"/api-reference/portfolio/get-portfolio-summary-graph"}]},{"group":"Spot balances and transfers","pages":[{"title":"Get Spot balances","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/balances","href":"/api-reference/spot-balances-and-transfers/get-spot-balances"},{"title":"List Spot transfers","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/transfers","href":"/api-reference/spot-balances-and-transfers/list-spot-transfers"},{"title":"Create Spot transfer","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/spot/transfers","href":"/api-reference/spot-balances-and-transfers/create-spot-transfer"}]},{"group":"Spot market data","pages":[{"title":"Get Spot tickers","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/ticker","href":"/api-reference/spot-market-data/get-spot-tickers"},{"title":"Get Spot order book","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/depth","href":"/api-reference/spot-market-data/get-spot-order-book"},{"title":"List Spot trades","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/trades","href":"/api-reference/spot-market-data/list-spot-trades"},{"title":"Get Spot candles","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/candles","href":"/api-reference/spot-market-data/get-spot-candles"},{"title":"Get Spot price history","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/history","href":"/api-reference/spot-market-data/get-spot-price-history"},{"title":"Get Spot symbol information","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/symbol_info","href":"/api-reference/spot-market-data/get-spot-symbol-information"}]},{"group":"Spot trading","pages":[{"title":"List Spot orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/orders","href":"/api-reference/spot-trading/list-spot-orders"},{"title":"Place Spot order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/spot/orders","href":"/api-reference/spot-trading/place-spot-order"},{"title":"Cancel all Spot orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/spot/orders","href":"/api-reference/spot-trading/cancel-all-spot-orders"},{"title":"Place Spot order (delayed)","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/spot/orders/delayed","href":"/api-reference/spot-trading/place-spot-order-delayed"},{"title":"Get Spot order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/orders/{orderID}","href":"/api-reference/spot-trading/get-spot-order"},{"title":"Cancel Spot order","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/spot/orders/{orderID}","href":"/api-reference/spot-trading/cancel-spot-order"},{"title":"Place Spot batch","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/spot/orders/batch","href":"/api-reference/spot-trading/place-spot-batch"},{"title":"Cancel Spot batch","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json delete /v1/spot/orders/batch","href":"/api-reference/spot-trading/cancel-spot-batch"},{"title":"Place Spot batch (delayed)","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json post /v1/spot/orders/batch/delayed","href":"/api-reference/spot-trading/place-spot-batch-delayed"},{"title":"List Spot fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/fills","href":"/api-reference/spot-trading/list-spot-fills"},{"title":"Get Spot order fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/orders/{orderID}/fills","href":"/api-reference/spot-trading/get-spot-order-fills"},{"title":"Export Spot orders","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/orders/csv","href":"/api-reference/spot-trading/export-spot-orders"},{"title":"Export Spot fills","deprecated":null,"version":null,"openapi":"/api-reference/rest-spec.json get /v1/spot/fills/csv","href":"/api-reference/spot-trading/export-spot-fills"}]}]},{"group":"WebSocket API","pages":[{"group":"Public Channels","pages":[{"title":"Subscribe: Perps Top of Book","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/topOfBooksPerps","href":"/api-reference/public-channels/subscribe:-perps-top-of-book"},{"title":"Subscribe: Perps Depth Book","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/depthBooksPerps","href":"/api-reference/public-channels/subscribe:-perps-depth-book"},{"title":"Subscribe: Perps Trades","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/tradesPerps","href":"/api-reference/public-channels/subscribe:-perps-trades"},{"title":"Subscribe: Perps Funding Rates","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/fundingRatesPerps","href":"/api-reference/public-channels/subscribe:-perps-funding-rates"},{"title":"Subscribe: Perps Mark Prices","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/markPricesPerps","href":"/api-reference/public-channels/subscribe:-perps-mark-prices"},{"title":"Subscribe: Perps Kline / Candlesticks","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/kLinePerps","href":"/api-reference/public-channels/subscribe:-perps-kline-candlesticks"}]},{"group":"Private Channels","pages":[{"title":"Subscribe: Perps Liquidation Announcements","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/liquidationAnnouncementsPerps","href":"/api-reference/private-channels/subscribe:-perps-liquidation-announcements"},{"title":"Subscribe: Perps Orders","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/ordersPerps","href":"/api-reference/private-channels/subscribe:-perps-orders"},{"title":"Subscribe: Perps Fills","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/fillsPerps","href":"/api-reference/private-channels/subscribe:-perps-fills"},{"title":"Subscribe: Builder Code Fills","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/builderFills","href":"/api-reference/private-channels/subscribe:-builder-code-fills"},{"title":"Subscribe: Perps Positions","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/positionsPerps","href":"/api-reference/private-channels/subscribe:-perps-positions"},{"title":"Subscribe: Perps Balance","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/balancePerps","href":"/api-reference/private-channels/subscribe:-perps-balance"},{"title":"Subscribe: Perps Liquidation","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/liquidationPerps","href":"/api-reference/private-channels/subscribe:-perps-liquidation"},{"title":"Subscribe: Perps Margin Transfers","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/marginTransfersPerps","href":"/api-reference/private-channels/subscribe:-perps-margin-transfers"},{"title":"Subscribe: Perps Order Summaries","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/ordersSummariesPerps","href":"/api-reference/private-channels/subscribe:-perps-order-summaries"},{"title":"Subscribe: Perps Funding Payments","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/fundingPaymentsPerps","href":"/api-reference/private-channels/subscribe:-perps-funding-payments"},{"title":"Subscribe: Perps Dead Man's Switch","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/cancelAllOrdersAfterPerps","href":"/api-reference/private-channels/subscribe:-perps-dead-mans-switch"},{"title":"Subscribe: Deposits","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/deposits","href":"/api-reference/private-channels/subscribe:-deposits"},{"title":"Subscribe: Withdrawals","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/withdrawals","href":"/api-reference/private-channels/subscribe:-withdrawals"}]},{"group":"Connection","pages":[{"title":"Connect","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json get /ws","href":"/api-reference/connection/connect"},{"title":"Ping","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws","href":"/api-reference/connection/ping"},{"title":"Login","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/login","href":"/api-reference/connection/login"}]},{"group":"Spot public channels","pages":[{"title":"Subscribe: Spot Top of Book","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/topOfBooksSpot","href":"/api-reference/spot-public-channels/subscribe:-spot-top-of-book"},{"title":"Subscribe: Spot Depth Book","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/depthBooksSpot","href":"/api-reference/spot-public-channels/subscribe:-spot-depth-book"},{"title":"Subscribe: Spot Trades","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/tradesSpot","href":"/api-reference/spot-public-channels/subscribe:-spot-trades"},{"title":"Subscribe: Spot Kline / Candlesticks","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/kLineSpot","href":"/api-reference/spot-public-channels/subscribe:-spot-kline-candlesticks"}]},{"group":"Spot private channels","pages":[{"title":"Subscribe: Spot Orders","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/ordersSpot","href":"/api-reference/spot-private-channels/subscribe:-spot-orders"},{"title":"Subscribe: Spot Fills","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/fillsSpot","href":"/api-reference/spot-private-channels/subscribe:-spot-fills"},{"title":"Subscribe: Spot Dead Man's Switch","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/cancelAllOrdersAfterSpot","href":"/api-reference/spot-private-channels/subscribe:-spot-dead-mans-switch"},{"title":"Subscribe: Spot Balances","deprecated":null,"version":null,"openapi":"/api-reference/ws-spec.json post /ws/balanceSpot","href":"/api-reference/spot-private-channels/subscribe:-spot-balances"}]}]}]}]},"basePath":"","title":"API Key Authentication - Ondo Perps","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}