Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance’s demo exchange today
In short: you do five things on the Binance page of the app. Pick the products, paste a public key into Binance, paste the key id back, sign the lock, then sign a grant. Today this connects to Binance’s demo exchange.Portfolio Margin accounts are refused. Only a classic Binance account connects.
Pick the products on the Binance page: spot, USDⓈ-M futures, or both. Choose the account to connect. Press Create key. The app shows a public key and our addresses.
Create an API key on Binance. Open API Management and choose Self-generated (Ed25519). Paste only the public key.
Tick trade permissions only: Enable Spot & Margin Trading, and Enable Futures if you chose futures. Open your futures account on Binance first. A key made before that cannot enable futures, and you must make a new one.
Leave withdrawals, universal transfer and internal transfer off. The enclave refuses a key that allows any of them.
Restrict the key to our addresses. On real money, turn on Binance’s trusted-IP setting and add both addresses the app shows. The enclave refuses a key with no IP restriction. Binance enforces which addresses the key accepts. Demo cannot do this, so the check is skipped there.
Paste the API key id back into the app and press Check key. The id is not secret. The enclave reads the key’s permissions from Binance. The app shows a verified connection, or the reasons it was refused.
The app lists what the key can do: read, trade spot, trade futures, margin, withdraw, transfers, address lock and Portfolio Margin. On demo, the facts demo cannot report show as “not checkable on demo”.
The lock is recorded on MegaETH. You sign it once with your wallet, and our fee payer sends it, so you pay no gas. It says two things:
the markets the agent may trade for you, each by name
the highest leverage on futures
That is all. The lock has no cap on total size, and the platform imposes no liquidation buffer. How close to liquidation an order leaves you is your choice.A market that is off in the lock cannot be traded, whatever a grant says. Closes and cancels never read the lock. A receipt from the enclave binds the lock to your key, so our servers cannot bind a key you did not make.
A grant lets the agent trade inside limits. It does nothing until you sign it. You arm it from a card on the card page, or from the Binance page.
Markets, sides and order types it may place.
Most per run and most in total, in USDT. Each order Binance accepts counts at its full size. On futures that is margin times leverage. It is priced at the order’s limit price, or for a market order at the edge of your price tolerance. A cancelled or unfilled order still counts, and still uses a run. Only an order Binance rejects is not counted.
Most runs.
Valid for at most 90 days.
Price tolerance, the most a market order may differ from the market price.
Highest leverage, which can only be lower than the lock’s.
When it may fire: a price level, a percentage move or a schedule. A grant armed from a card can also have no condition: then our system decides when it fires.
When you arm from a saved card, the card’s own numbers fill in. Every limit the card did not state stays empty and required. You type each one. Nothing is defaulted, and the chat never signs for you. A one-run card with no stated life is pre-filled with one day, and you can change it.
Revoking a grant stops our relay. It does not cancel your signature. A signed grant that has not expired stays valid. The hard stop is deleting the API key on binance.com, or tightening the markets in your lock.
A connection list with each connection’s status: waiting for the key id, verified, or refused with the reasons. Remove deletes our record of the connection. It does not delete the key on Binance. Delete it there too.
Balances for a verified connection, on the Binance page, the chat side panel and the accounts page. See trading.
Your grants and each order they placed, on the card page.
Exits on the card page: cancel one order, close a futures position, stop the card. Setting take-profit and stop-loss is paused for now.
The chat reads and drafts. It never signs or arms.
It lists your connections and what each key may do.
It lists the markets and gives a market’s public price.
It reads your balances. It does not read open futures positions.
It turns a saved card into an unsigned grant draft, and says which limits you still must type.
It cancels one order or closes a futures position only when you ask in your own words. These cannot be taken back, and what already filled stays filled.
Removing a connection in the app deletes our record. The API key stays valid on binance.com until you delete it there. That works at once and needs nothing from us. It is your fastest way to cut us off.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DeFiLoops","description":"An agent that plans and runs multi-step DeFi workflows and strategy cards: lending, liquidity, swaps, perpetuals. Nothing spends until you start it, and we never hold your money.","colors":{"primary":"#004DFF","light":"#3FFF75","dark":"#00247B"},"favicon":"https://mintcdn.com/defiloops/ORFJy_90SsGJLqzy/favicon.svg?fit=max\u0026auto=format\u0026n=ORFJy_90SsGJLqzy\u0026q=85\u0026s=c630ccc93f3b266acee87b9c141d942d","navbar":{"links":[{"href":"https://defiloops.com/workflows","label":"Workflows"},{"href":"https://defiloops.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Open the app","href":"https://app.defiloops.com"}},"footer":{"socials":{"website":"https://defiloops.com","x":"https://x.com/defiloops"}},"seo":{"metatags":{"og:site_name":"DeFiLoops","twitter:card":"summary_large_image","twitter:site":"@defiloops"},"organization":{"id":"https://defiloops.com","name":"DeFiLoops","url":"https://defiloops.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"defiloops","hasAudioNarration":false,"actualSubdomain":"defiloops","customDomains":["docs.defiloops.com"],"gitSource":{"type":"github","owner":"asimashfaq","repo":"defiloops-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae60f403a58a57f20b8879e","collectionId":"751b9f2c-a2fe-450d-96da-28f0c7503711","liveDeploymentHistoryId":"6ae60f403a58a57f20b8879e","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae60f403a58a57f20b8879e","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"Research tools","count":10},{"language":"default","tag":"Your account and security","count":8},{"language":"default","tag":"Trading venues","count":8},{"language":"default","tag":"The agent","count":7},{"language":"default","tag":"Data streams","count":6},{"language":"default","tag":"Strategy cards","count":5},{"language":"default","tag":"Binance","count":5},{"language":"default","tag":"Start here","count":4},{"language":"default","tag":"Swaps and trading","count":4},{"language":"default","tag":"How it works","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"venues/binance/connecting","slug":"/venues/binance/connecting","pageMetadata":{"title":"Connecting Binance","description":"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance's demo exchange today","icon":"plug","href":"/venues/binance/connecting"},"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: \"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance’s demo exchange today\"\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`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`In short:`}),` you do five things on the Binance page of the app. Pick the products, paste a public key into Binance, paste the key id back, sign the lock, then sign a grant. `,_jsx(_components.strong,{children:`Today this connects to Binance’s demo exchange.`})]}),`\n`,_jsx(_components.p,{children:`Portfolio Margin accounts are refused. Only a classic Binance account connects.`}),`\n`,_jsx(Heading,{level:`2`,id:`connect-your-account`,children:`Connect your account`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pick the products`}),` on the Binance page: spot, USDⓈ-M futures, or both. Choose the account to connect. Press `,_jsx(_components.strong,{children:`Create key`}),`. The app shows a `,_jsx(_components.strong,{children:`public key`}),` and our addresses.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create an API key on Binance.`}),` Open API Management and choose `,_jsx(_components.strong,{children:`Self-generated (Ed25519)`}),`. Paste only the public key.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tick trade permissions only:`}),` Enable Spot \u0026 Margin Trading, and Enable Futures if you chose futures. Open your futures account on Binance first. A key made before that cannot enable futures, and you must make a new one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Leave withdrawals, universal transfer and internal transfer off.`}),` The enclave refuses a key that allows any of them.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Restrict the key to our addresses.`}),` On real money, turn on Binance’s trusted-IP setting and add both addresses the app shows. The enclave refuses a key with no IP restriction. Binance enforces which addresses the key accepts. Demo cannot do this, so the check is skipped there.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Paste the API key id`}),` back into the app and press `,_jsx(_components.strong,{children:`Check key`}),`. The id is not secret. The enclave reads the key’s permissions from Binance. The app shows a verified connection, or the reasons it was refused.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The app lists what the key can do: read, trade spot, trade futures, margin, withdraw, transfers, address lock and Portfolio Margin. On demo, the facts demo cannot report show as “not checkable on demo”.`}),`\n`,_jsx(Heading,{level:`2`,id:`set-the-lock`,children:`Set the lock`}),`\n`,_jsx(_components.p,{children:`The lock is recorded on MegaETH. You sign it once with your wallet, and our fee payer sends it, so you pay no gas. It says two things:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`the markets`}),` the agent may trade for you, each by name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`the highest leverage`}),` on futures`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`That is all. The lock has `,_jsx(_components.strong,{children:`no cap on total size`}),`, and the platform imposes `,_jsx(_components.strong,{children:`no liquidation buffer`}),`. How close to liquidation an order leaves you is your choice.`]}),`\n`,_jsx(_components.p,{children:`A market that is off in the lock cannot be traded, whatever a grant says. Closes and cancels never read the lock. A receipt from the enclave binds the lock to your key, so our servers cannot bind a key you did not make.`}),`\n`,_jsx(Heading,{level:`2`,id:`sign-a-grant`,children:`Sign a grant`}),`\n`,_jsx(_components.p,{children:`A grant lets the agent trade inside limits. It does nothing until you sign it. You arm it from a card on the card page, or from the Binance page.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Markets, sides and order types`}),` it may place.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Most per run`}),` and `,_jsx(_components.strong,{children:`most in total`}),`, in USDT. Each order Binance accepts counts at its full size. On futures that is margin times leverage. It is priced at the order’s limit price, or for a market order at the edge of your price tolerance. A cancelled or unfilled order still counts, and still uses a run. Only an order Binance rejects is not counted.`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`Most runs.`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Valid for`}),` at most 90 days.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Price tolerance`}),`, the most a market order may differ from the market price.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Highest leverage`}),`, which can only be lower than the lock’s.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`When it may fire:`}),` a price level, a percentage move or a schedule. A grant armed from a card can also have no condition: then our system decides when it fires.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`When you arm from a saved card, the card’s own numbers fill in. Every limit the card did not state stays empty and required. You type each one. Nothing is defaulted, and the chat never signs for you. A one-run card with no stated life is pre-filled with one day, and you can change it.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Revoking a grant stops our relay. It does not cancel your signature.`}),` A signed grant that has not expired stays valid. The hard stop is deleting the API key on binance.com, or tightening the markets in your lock.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-see-in-the-app`,children:`What you see in the app`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A connection list`}),` with each connection’s status: waiting for the key id, verified, or refused with the reasons. `,_jsx(_components.strong,{children:`Remove`}),` deletes our record of the connection. It does not delete the key on Binance. Delete it there too.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Balances`}),` for a verified connection, on the Binance page, the chat side panel and the accounts page. See `,_jsx(_components.a,{href:`/venues/binance/trading#balances`,children:`trading`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your grants`}),` and each order they placed, on the card page.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exits`}),` on the card page: cancel one order, close a futures position, stop the card. Setting take-profit and stop-loss is `,_jsx(_components.a,{href:`/venues/binance/trading#take-profit-and-stop-loss-on-futures`,children:`paused for now`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-can-ask-in-the-chat`,children:`What you can ask in the chat`}),`\n`,_jsx(_components.p,{children:`The chat reads and drafts. It never signs or arms.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`It lists your connections and what each key may do.`}),`\n`,_jsx(_components.li,{children:`It lists the markets and gives a market’s public price.`}),`\n`,_jsx(_components.li,{children:`It reads your balances. It does not read open futures positions.`}),`\n`,_jsx(_components.li,{children:`It turns a saved card into an unsigned grant draft, and says which limits you still must type.`}),`\n`,_jsxs(_components.li,{children:[`It cancels one order or closes a futures position `,_jsx(_components.strong,{children:`only when you ask in your own words`}),`. These cannot be taken back, and what already filled stays filled.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`taking-a-connection-down`,children:`Taking a connection down`}),`\n`,_jsx(_components.p,{children:`Removing a connection in the app deletes our record. The API key stays valid on binance.com until you delete it there. That works at once and needs nothing from us. It is your fastest way to cut us off.`})]})}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":"Connecting Binance","description":"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance's demo exchange today","icon":"plug","href":"/venues/binance/connecting"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Connect your account","slug":"connect-your-account","depth":2,"children":[]},{"title":"Set the lock","slug":"set-the-lock","depth":2,"children":[]},{"title":"Sign a grant","slug":"sign-a-grant","depth":2,"children":[]},{"title":"What you see in the app","slug":"what-you-see-in-the-app","depth":2,"children":[]},{"title":"What you can ask in the chat","slug":"what-you-can-ask-in-the-chat","depth":2,"children":[]},{"title":"Taking a connection down","slug":"taking-a-connection-down","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"defiloops","siteName":"DeFiLoops","title":"Connecting Binance - DeFiLoops","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T15:54:35.908Z","originalFileLocation":"venues/binance/connecting.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=\"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance\u0026#x27;s demo exchange today\">\u003cmeta data-mint-head name=\"application-name\" content=\"DeFiLoops\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_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/defiloops/7U90BSF8Tx-MmPag/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connecting Binance - DeFiLoops\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance\u0026#x27;s demo exchange today\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DeFiLoops\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.defiloops.com/venues/binance/connecting\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://defiloops.mintlify.app/_mintlify/api/og/v2?division=Binance\u0026amp;title=Connecting+Binance\u0026amp;description=Step+by+step%3A+make+a+trade-only+API+key%2C+set+the+lock%2C+sign+a+grant%2C+and+see+what+the+app+and+the+chat+show.+Runs+on+Binance%27s+demo+exchange+today\u0026amp;theme=688f1d8b740dd506f8f7806f\u0026amp;signature=fadbc8dfb290b9a3623edc4f742db57857469f52f04f939dea5c13918fb98ca3\">\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=\"Connecting Binance - DeFiLoops\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance\u0026#x27;s demo exchange today\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://defiloops.mintlify.app/_mintlify/api/og/v2?division=Binance\u0026amp;title=Connecting+Binance\u0026amp;description=Step+by+step%3A+make+a+trade-only+API+key%2C+set+the+lock%2C+sign+a+grant%2C+and+see+what+the+app+and+the+chat+show.+Runs+on+Binance%27s+demo+exchange+today\u0026amp;theme=688f1d8b740dd506f8f7806f\u0026amp;signature=fadbc8dfb290b9a3623edc4f742db57857469f52f04f939dea5c13918fb98ca3\">\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/defiloops/7U90BSF8Tx-MmPag/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DeFiLoops\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#004DFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.defiloops.com/venues/binance/connecting\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/venues/binance/connecting.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://defiloops.com\",\"name\":\"DeFiLoops\",\"url\":\"https://defiloops.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.defiloops.com#website\",\"name\":\"DeFiLoops\",\"url\":\"https://docs.defiloops.com\",\"publisher\":{\"@id\":\"https://defiloops.com\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.defiloops.com/venues/binance/connecting#webpage\",\"url\":\"https://docs.defiloops.com/venues/binance/connecting\",\"name\":\"Connecting Binance\",\"description\":\"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance's demo exchange today\",\"dateModified\":\"2026-10-31T15:54:35.908Z\",\"isPartOf\":{\"@id\":\"https://docs.defiloops.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.defiloops.com/venues/binance/connecting#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.defiloops.com/venues/binance/connecting#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trading venues\",\"item\":\"https://docs.defiloops.com/venues/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Binance\",\"item\":\"https://docs.defiloops.com/venues/binance\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Connecting Binance\",\"item\":\"https://docs.defiloops.com/venues/binance/connecting\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.defiloops.com/venues/binance/connecting#article\",\"headline\":\"Connecting Binance\",\"name\":\"Connecting Binance\",\"description\":\"Step by step: make a trade-only API key, set the lock, sign a grant, and see what the app and the chat show. Runs on Binance's demo exchange today\",\"url\":\"https://docs.defiloops.com/venues/binance/connecting\",\"mainEntityOfPage\":{\"@id\":\"https://docs.defiloops.com/venues/binance/connecting#webpage\"},\"dateModified\":\"2026-10-31T15:54:35.908Z\",\"publisher\":{\"@id\":\"https://defiloops.com\"},\"isPartOf\":{\"@id\":\"https://docs.defiloops.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DeFiLoops\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DeFiLoops","nav":{"global":null,"groups":[{"group":"Start here","pages":[{"title":"DeFiLoops","icon":"house","href":"/index"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Words we use","icon":"compass","href":"/concepts"},{"title":"FAQ","icon":"circle-question","href":"/faq"}]},{"group":"How it works","pages":[{"title":"How a run works","icon":"layer-group","href":"/platform"},{"title":"What it can do","icon":"plug","href":"/adapters"},{"title":"Running it without you","icon":"clock","href":"/automation"}]},{"group":"Strategy cards","pages":[{"title":"Strategy cards","icon":"clipboard-list","href":"/cards/overview"},{"title":"Writing a card in chat","icon":"message-pen","href":"/cards/writing"},{"title":"What a card can watch and do","icon":"layer-group","href":"/cards/kinds"},{"title":"Backtest and paper runs","icon":"chart-line","href":"/cards/backtest-and-paper"},{"title":"Going live: approval, limits and stopping","icon":"shield-check","href":"/cards/going-live"}]},{"group":"Swaps and trading","pages":[{"title":"Sizing a trade","icon":"chart-line","href":"/routing"},{"title":"Order types","icon":"bullseye","href":"/orders"},{"title":"Slippage and price impact","icon":"arrows-left-right-to-line","href":"/slippage"},{"title":"Splitting a big trade","icon":"scissors","href":"/splitting"}]},{"group":"Networks","pages":[{"title":"Networks","icon":"globe","href":"/networks/overview"},{"title":"Moving between networks","icon":"arrow-right-arrow-left","href":"/networks/crossings"},{"title":"How transactions are sent","icon":"paper-plane","href":"/networks/sending"}]},{"group":"Trading venues","pages":[{"title":"Trading venues","icon":"landmark","href":"/venues/overview"},{"group":"Binance","pages":[{"title":"Binance","description":"Trade on your own Binance account from DeFiLoops: what is built, what runs today on Binance's demo exchange, and what changes when real-money trading starts","icon":"chart-line","href":"/venues/binance"},{"title":"Connecting Binance","icon":"plug","href":"/venues/binance/connecting"},{"title":"Trading on Binance","description":"The markets, order types, partial fills, take-profit and stop-loss legs, exits and balances of the Binance integration, each labelled by what works on demo today","icon":"arrow-right-arrow-left","href":"/venues/binance/trading"},{"title":"Cards on Binance","icon":"clone","href":"/venues/binance/cards"},{"title":"Binance safety","icon":"shield","href":"/venues/binance/safety"}]},{"title":"Hyperliquid","icon":"bolt","href":"/venues/hyperliquid"},{"title":"Lighter","icon":"feather","href":"/venues/lighter"}]},{"group":"Your account and security","pages":[{"title":"Your account and your keys","icon":"key","href":"/kernel"},{"title":"Using a Safe wallet","icon":"shield","href":"/safe"},{"title":"The contracts","icon":"cube","href":"/protocol"},{"title":"The hardware enclave","icon":"microchip","href":"/security/enclave"},{"title":"Approving with a passkey","icon":"fingerprint","href":"/security/passkey"},{"title":"Proved accounts","icon":"shield-check","href":"/security/proved-accounts"},{"title":"Emergency stops","icon":"octagon","href":"/security/emergency-stops"},{"title":"Agent identity and run evidence","icon":"id-card","href":"/security/agent-identity"}]},{"group":"The agent","pages":[{"title":"What the agent can call","icon":"wrench","href":"/tools"},{"title":"What the agent knows","icon":"book-open","href":"/skills"},{"title":"Every guide","icon":"book-open","href":"/skills/reference"},{"title":"Connect your own agent","icon":"plug","href":"/agents/connect-your-agent"},{"title":"Hire a template agent","icon":"user-plus","href":"/agents/hire-an-agent"},{"title":"The agent gateway","icon":"door-open","href":"/agents/gateway"},{"title":"The agent card and llms.txt","icon":"id-card","href":"/agents/agent-card"}]},{"group":"Research tools","pages":[{"title":"Surveying ranges","icon":"magnifying-glass-chart","href":"/tools/get-lp-yield"},{"title":"LP strategies","icon":"list-tree","href":"/tools/list-lp-strategies"},{"title":"Backtesting a position","icon":"chart-line","href":"/tools/run-lp-backtest"},{"title":"Option structures","icon":"shapes","href":"/tools/list-option-structures"},{"title":"Comparing every structure","icon":"table-columns","href":"/tools/compare-options"},{"title":"Pricing a hedge","icon":"umbrella","href":"/tools/price-options"},{"title":"A live option quote","icon":"bolt","href":"/tools/price-option-live"},{"title":"Backtesting a hedge","icon":"clock-rotate-left","href":"/tools/backtest-options"},{"title":"The slow signal","icon":"gauge","href":"/tools/get-market-regime"},{"title":"What the market expects","icon":"crystal-ball","href":"/tools/get-forecast"}]},{"group":"Data streams","pages":[{"title":"What we hold","icon":"database","href":"/data/streams"},{"title":"How live data reaches your card","icon":"route","href":"/data/feed-runtime"},{"title":"Macro, on-chain and stablecoins","icon":"landmark","href":"/data/macro"},{"title":"Funding and open interest","icon":"percent","href":"/tools/get-funding-and-oi"},{"title":"Hyperliquid","icon":"bolt","href":"/data/hyperliquid"},{"title":"Reading the market now","icon":"bolt","href":"/tools/live-reads"}]},{"group":"Reference","pages":[{"title":"The catalogue","icon":"list-check","href":"/adapters/catalogue"},{"title":"Every tool","icon":"table-list","href":"/tools/reference"}]}]},"basePath":"","title":"Connecting Binance - DeFiLoops","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":[],"chunks":[]}