QFEX can be traded directly by AI agents. Agents can read live market data, inspect account state and positions, and place or manage orders using the QFEX CLI.The CLI is designed to work cleanly inside agent workflows: every command returns JSON, commands are stateless from the caller’s perspective, and a background daemon manages the underlying QFEX WebSocket connections. This lets an agent interact with the exchange through simple shell commands rather than implementing exchange connectivity itself.
# Global setup for Claude Code and Codexqfex agents init# Or add agent instructions to the current project onlyqfex agents init --local
qfex agents init configures Claude Code and Codex so they can use the QFEX CLI without repeatedly prompting for permission. The local mode writes agent instructions into the current project.Market data can be queried without credentials. To allow an agent to trade or access private account data, log in first:
qfex login
For the full installation guide, command reference, environments, authentication and subaccount controls, see the QFEX CLI documentation.
QFEX provides both production and UAT environments. UAT uses the same interface as production but does not use real funds, making it the appropriate environment for testing agent behaviour and order flow before deploying a strategy to production.
Production trading uses real funds. An agent with authenticated trading access
can place and cancel orders on your behalf. Test agent behaviour carefully in
UAT before granting it production access.
Developers can also build trading agents or applications for other QFEX users. Builder Codes are designed to attribute trading activity to an integration and allow the builder to earn a share of the trading fees generated through that application.Builder Codes are separate from the referral program: referral codes attribute a user at signup, while Builder Codes attribute trading activity generated through an integration.For developers who need lower-level control, the QFEX API Reference also documents the REST and WebSocket interfaces used underneath the CLI.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"QFEX API Documentation","colors":{"primary":"#38A5A0","light":"#38A5A0","dark":"#38A5A0"},"logo":{"light":"https://mintcdn.com/qfex/_KzvrZZNknwtc25D/logo/light.svg?fit=max\u0026auto=format\u0026n=_KzvrZZNknwtc25D\u0026q=85\u0026s=d91fb93b918683d2d0a4c0517ca8c4af","dark":"https://mintcdn.com/qfex/_KzvrZZNknwtc25D/logo/dark.svg?fit=max\u0026auto=format\u0026n=_KzvrZZNknwtc25D\u0026q=85\u0026s=4a7afe5885910915c87c239f874ffc62","href":"https://qfex.com"},"favicon":"https://mintcdn.com/qfex/_KzvrZZNknwtc25D/favicon.svg?fit=max\u0026auto=format\u0026n=_KzvrZZNknwtc25D\u0026q=85\u0026s=b46838d937d798434426fba1b1771841","background":{"color":{"light":"#F9FAFB","dark":"#172027"}},"navbar":{"links":[{"href":"mailto:support@qfex.com","label":"Support"}],"primary":{"type":"button","label":"Trade Now","href":"https://qfex.com/trade"}},"footer":{"socials":{"x":"https://x.com/QFEX","github":"https://github.com/QFEX-org","linkedin":"https://linkedin.com/company/qfex","discord":"https://discord.qfex.com"}},"fonts":{"family":"DM Sans"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal-bars","href":"https://status.qfex.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"qfex","hasAudioNarration":false,"actualSubdomain":"qfex","customDomains":["docs.qfex.com"],"gitSource":{"type":"github","owner":"qfex-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb53c8a0e78eb4aee8e2eb","collectionId":"76f298a8-3379-47ff-b00e-3cd964ca45c7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb53c8a0e78eb4aee8e2eb"},"entitlements":{},"buildId":"6adb53c8a0e78eb4aee8e2eb","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"REST API","count":41},{"language":"default","tag":"WebSocket","count":34},{"language":"default","tag":"user","count":25},{"language":"default","tag":"QFEX","count":23},{"language":"default","tag":"Trade","count":21},{"language":"default","tag":"Trading Rulebook","count":13},{"language":"default","tag":"market-data","count":12},{"language":"default","tag":"Market Data","count":10},{"language":"default","tag":"API Documentation","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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","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":"billing-updated-9-15","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":"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}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"qfex/agentic-trading","slug":"/qfex/agentic-trading","pageMetadata":{"title":"Agentic Trading","description":"Use AI agents to research markets, manage positions, and trade on QFEX.","href":"/qfex/agentic-trading"},"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: \"Use AI agents to research markets, manage positions, and trade on QFEX.\"\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={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,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:`1`,id:`agentic-trading`,children:`Agentic Trading`}),`\n`,_jsxs(_components.p,{children:[`QFEX can be traded directly by AI agents. Agents can read live market data, inspect account state and positions, and place or manage orders using the `,_jsx(_components.a,{href:`/api-reference/cli`,children:`QFEX CLI`}),`.`]}),`\n`,_jsx(_components.p,{children:`The CLI is designed to work cleanly inside agent workflows: every command returns JSON, commands are stateless from the caller’s perspective, and a background daemon manages the underlying QFEX WebSocket connections. This lets an agent interact with the exchange through simple shell commands rather than implementing exchange connectivity itself.`}),`\n`,_jsx(Heading,{level:`2`,id:`getting-started`,children:`Getting started`}),`\n`,_jsx(_components.p,{children:`Install the CLI:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`brew`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` QFEX-org/tap/qfex`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then configure it for your agent:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Global setup for Claude Code and Codex`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Or add agent instructions to the current project only`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --local`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`qfex agents init`}),` configures Claude Code and Codex so they can use the QFEX CLI without repeatedly prompting for permission. The local mode writes agent instructions into the current project.`]}),`\n`,_jsx(_components.p,{children:`Market data can be queried without credentials. To allow an agent to trade or access private account data, log in first:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For the full installation guide, command reference, environments, authentication and subaccount controls, see the `,_jsx(_components.a,{href:`/api-reference/cli`,children:`QFEX CLI documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-an-agent-can-do`,children:`What an agent can do`}),`\n`,_jsx(_components.p,{children:`An agent using the CLI can, among other things:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`query BBOs, order books, trades, candles, mark prices, funding rates and open interest;`}),`\n`,_jsx(_components.li,{children:`place, modify and cancel orders;`}),`\n`,_jsx(_components.li,{children:`inspect open orders, positions, balances and leverage;`}),`\n`,_jsx(_components.li,{children:`watch live market-data, order and fill streams; and`}),`\n`,_jsx(_components.li,{children:`work with QFEX subaccounts to separate trading strategies or risk.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`For example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` market`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` bbo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AAPL-USD`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` market`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` orderbook`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AAPL-USD`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --depth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` position`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` account`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` balance`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`qfex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` order`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` place`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --symbol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AAPL-USD`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --side`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` BUY`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --type`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` MARKET`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --tif`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` IOC`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --qty`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`developing-and-testing-agents`,children:`Developing and testing agents`}),`\n`,_jsx(_components.p,{children:`QFEX provides both production and UAT environments. UAT uses the same interface as production but does not use real funds, making it the appropriate environment for testing agent behaviour and order flow before deploying a strategy to production.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Production trading uses real funds. An agent with authenticated trading access\ncan place and cancel orders on your behalf. Test agent behaviour carefully in\nUAT before granting it production access.`})}),`\n`,_jsx(Heading,{level:`2`,id:`building-agentic-trading-products`,children:`Building agentic trading products`}),`\n`,_jsxs(_components.p,{children:[`Developers can also build trading agents or applications for other QFEX users. `,_jsx(_components.a,{href:`/qfex/builder-code`,children:`Builder Codes`}),` are designed to attribute trading activity to an integration and allow the builder to earn a share of the trading fees generated through that application.`]}),`\n`,_jsx(_components.p,{children:`Builder Codes are separate from the referral program: referral codes attribute a user at signup, while Builder Codes attribute trading activity generated through an integration.`}),`\n`,_jsx(_components.p,{children:`For developers who need lower-level control, the QFEX API Reference also documents the REST and WebSocket interfaces used underneath the CLI.`})]})}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":"Agentic Trading","description":"Use AI agents to research markets, manage positions, and trade on QFEX.","href":"/qfex/agentic-trading"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Agentic Trading","slug":"agentic-trading","depth":1,"children":[]},{"title":"Getting started","slug":"getting-started","depth":2,"children":[]},{"title":"What an agent can do","slug":"what-an-agent-can-do","depth":2,"children":[]},{"title":"Developing and testing agents","slug":"developing-and-testing-agents","depth":2,"children":[]},{"title":"Building agentic trading products","slug":"building-agentic-trading-products","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/qfex/56c86559303091d8/fetch-enums.js","/_mintlify/custom/qfex/17c1628ea2303021/generate-specification-index.js","/_mintlify/custom/qfex/247bca39b96714fa/generate-roll-schedules.js"],"subdomain":"qfex","siteName":"QFEX API Documentation","title":"Agentic Trading - QFEX API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-14T11:04:04.002Z","originalFileLocation":"qfex/agentic-trading.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=\"Use AI agents to research markets, manage positions, and trade on QFEX.\">\u003cmeta data-mint-head name=\"application-name\" content=\"QFEX API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_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/qfex/NR4Uw7CiIxkYf2rd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agentic Trading - QFEX API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use AI agents to research markets, manage positions, and trade on QFEX.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"QFEX API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.qfex.com/qfex/agentic-trading\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://qfex.mintlify.app/_mintlify/api/og/v2?division=Strategies\u0026amp;title=Agentic+Trading\u0026amp;description=Use+AI+agents+to+research+markets%2C+manage+positions%2C+and+trade+on+QFEX.\u0026amp;theme=6f799b45432d65b231563cba\u0026amp;signature=ba7d46f48870f5ba32ca00affccab2664f80cd82070adb80673f61776141fdea\">\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=\"Agentic Trading - QFEX API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use AI agents to research markets, manage positions, and trade on QFEX.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://qfex.mintlify.app/_mintlify/api/og/v2?division=Strategies\u0026amp;title=Agentic+Trading\u0026amp;description=Use+AI+agents+to+research+markets%2C+manage+positions%2C+and+trade+on+QFEX.\u0026amp;theme=6f799b45432d65b231563cba\u0026amp;signature=ba7d46f48870f5ba32ca00affccab2664f80cd82070adb80673f61776141fdea\">\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/qfex/NR4Uw7CiIxkYf2rd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"QFEX API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#38A5A0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.qfex.com/qfex/agentic-trading\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/qfex/agentic-trading.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.qfex.com/#organization\",\"name\":\"QFEX API Documentation\",\"url\":\"https://docs.qfex.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/qfex/_KzvrZZNknwtc25D/logo/light.svg?fit=max\u0026auto=format\u0026n=_KzvrZZNknwtc25D\u0026q=85\u0026s=d91fb93b918683d2d0a4c0517ca8c4af\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.qfex.com#website\",\"name\":\"QFEX API Documentation\",\"url\":\"https://docs.qfex.com\",\"publisher\":{\"@id\":\"https://docs.qfex.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.qfex.com/qfex/agentic-trading#webpage\",\"url\":\"https://docs.qfex.com/qfex/agentic-trading\",\"name\":\"Agentic Trading\",\"description\":\"Use AI agents to research markets, manage positions, and trade on QFEX.\",\"dateModified\":\"2026-09-14T11:04:04.002Z\",\"isPartOf\":{\"@id\":\"https://docs.qfex.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.qfex.com/qfex/agentic-trading#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.qfex.com/qfex/agentic-trading#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strategies\",\"item\":\"https://docs.qfex.com/qfex/managed-account\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agentic Trading\",\"item\":\"https://docs.qfex.com/qfex/agentic-trading\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.qfex.com/qfex/agentic-trading#article\",\"headline\":\"Agentic Trading\",\"name\":\"Agentic Trading\",\"description\":\"Use AI agents to research markets, manage positions, and trade on QFEX.\",\"url\":\"https://docs.qfex.com/qfex/agentic-trading\",\"mainEntityOfPage\":{\"@id\":\"https://docs.qfex.com/qfex/agentic-trading#webpage\"},\"dateModified\":\"2026-09-14T11:04:04.002Z\",\"publisher\":{\"@id\":\"https://docs.qfex.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.qfex.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"QFEX API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"QFEX API Documentation","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal-bars","href":"https://status.qfex.com"}]},"tabs":[{"tab":"QFEX","groups":[{"group":"Intro","pages":[{"title":"About QFEX","href":"/qfex/about"},{"title":"Market Makers","href":"/qfex/market-makers"},{"title":"FAQ","href":"/qfex/faq"}]},{"group":"Getting Started","pages":[{"group":"Account Funding","pages":[{"title":"Bank Transfer","href":"/qfex/bank-transfer"},{"title":"Stablecoins","href":"/qfex/stablecoins"}]}]},{"group":"Community","pages":[{"title":"Builder Codes","href":"/qfex/builder-code"},{"title":"Referral and Affiliate Program","href":"/qfex/referral"}]},{"group":"Strategies","pages":[{"title":"Managed Account Strategy","description":"Invite-only systematic market-neutral trading for eligible high-volume QFEX traders.","href":"/qfex/managed-account"},{"title":"Agentic Trading","href":"/qfex/agentic-trading"}]},{"group":"Trading Rulebook","pages":[{"title":"Definitions and Formulae","description":"Common Terms Used in the Rulebook","href":"/qfex/definitions"},{"title":"Exchange","href":"/qfex/architecture"},{"title":"Order Entry","href":"/qfex/order-types"},{"title":"Contract Specifications","href":"/qfex/contract-specifications"},{"title":"Pre-IPO Stock Perpetuals","href":"/qfex/pre-ipo-stocks"},{"title":"Specification Index","href":"/qfex/specification-index"},{"title":"Roll Schedules","href":"/qfex/roll-schedules"},{"title":"Funding","href":"/qfex/funding"},{"title":"Risk Limits","href":"/qfex/risk-limits"},{"title":"Margin and Liquidations","href":"/qfex/liquidation-margin-call"},{"title":"Corporate Actions","href":"/qfex/corporate-actions"},{"title":"Fees","href":"/qfex/fees"},{"title":"Subaccounts","href":"/qfex/subaccounts"}]},{"group":"Glossary","pages":[{"title":"Blocked Countries and Restrictions","href":"/qfex/prohibited-jurisdictions"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal/client-agreement"}]}]},"title":"Agentic Trading - QFEX API Documentation","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}