What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month
In short: you want to know what it costs to hold a long on a perpetual (a futures contract with no end date), or what you could earn on the other side. That cost is funding, a payment that keeps the perpetual near the spot price. When it is positive, longs pay shorts. This tool gives daily funding for BTC or ETH back to 2021 from four exchanges side by side, and the share of days it went negative shows the risk of a trade built to collect it.Tool:get_funding_and_oiget_funding_and_oi returns the daily funding rate and open interest for BTC or
ETH, back to 2021.
Funding is the payment that keeps a perpetual’s price near spot. Positive
funding means longs pay shorts.So sustained positive funding is the running cost of holding the long side, and
the figure to set against any yield a delta-neutral position claims to earn,
because that yield usually is funding, collected on the short leg.
ETH perpetual funding and open interest. 2080 days, 2021-01-01 to 2026-09-11. funding (Binance) +11.53%/yr funding (Bybit) +12.71%/yr negative days 13.8% (longs were paid, rather than paying)
The share of negative days is the tail risk of the carry trade: a position
built to collect funding loses money in exactly the periods when everybody wants
to be short.
Binance, Bybit, Hyperliquid and Aster are each read separately and all four
are reported. They agree closely (a correlation around 0.85 between Binance and
Bybit on BTC), and where they do not, the disagreement is what to read. An
average alone would hide exactly those days.Bybit has run about a point higher than Binance over the series. Quote whichever
venue the position would trade on, not a blend.A rollup prints a mean alongside the venues rather than instead of them. It
is equally weighted, because there is no per-venue open interest to weight it
by; a venue holding none of the position would otherwise carry none of the
average either.Only whole days count toward any average, and what counts as a whole day differs
by venue: Hyperliquid settles hourly, Binance and Bybit every 8 hours. A
day carrying one of three settlements is a third of a day’s cost.
Open interest and all three ratios come from Binance’s daily archive, which
is the only one published here. Every positioning figure is therefore one
venue’s position.
Say which venue when quoting one. “$8.4B on Binance" is a fact; "$8.4B of open
interest” invites the reader to hear the whole market, which is not what was
measured.
Funding is the only figure held from every venue, and the only one where they
can be compared.
group_by takes day, week or month and answers a different question from
the daily series: whether open interest is building or unwinding, how one-sided
positioning was last month against this one, and which market carries it.currency: "ALL" gives every market together, with each one’s own table
underneath the combined one.Two things about the arithmetic affect how you read the output:
Open interest is a stock. A period’s figure is its mean, never a sum.
Tuesday’s contracts are largely Monday’s, so a monthly total would be about
thirty times anything a venue publishes. It does sum across assets, because
two markets at one moment are two different positions.
An empty period is omitted, not zeroed. The archive is walked a day at a
time, so a period can be partial; a partial one says so on its own row.
Open interest comes from a per-symbol daily archive that begins 2021-01-01, and
some symbols are not in it. When one is absent the answer says so:
OPEN INTEREST: none published for ETH. The daily archive carries it per symbol and this one is absent: that is a gap in the source, not a reading of zero, and nothing below should be inferred about positioning.
An open interest of zero says nobody holds a
position at all, which is never true of a live market. If an agent reads a
silent zero as a real value, it can conclude something dramatic about positioning
from a hole in a data feed.
Size in coins and in dollars, plus three ratios: top-trader long/short by
position size and by account count, which differ when a few large accounts
sit on one side, and taker buy/sell volume, which says who crossed the spread.They describe positioning that has already happened, and they are not trading
signals.
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":"tools/get-funding-and-oi","slug":"/tools/get-funding-and-oi","pageMetadata":{"title":"Funding and open interest","description":"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month","icon":"percent","href":"/tools/get-funding-and-oi"},"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: \"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\"\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`,em:`em`,li:`li`,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:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`In short:`}),` you want to know what it costs to hold a long on a perpetual (a futures contract with no end date), or what you could earn on the other side. That cost is funding, a payment that keeps the perpetual near the spot price. When it is positive, longs pay shorts. This tool gives daily funding for BTC or ETH back to 2021 from four exchanges side by side, and the share of days it went negative shows the risk of a trade built to collect it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tool:`}),` `,_jsx(_components.code,{children:`get_funding_and_oi`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`get_funding_and_oi`}),` returns the daily funding rate and open interest for BTC or\nETH, back to 2021.`]}),`\n`,_jsx(Heading,{level:`2`,id:`a-positive-rate-is-what-longs-pay`,children:`A positive rate is what longs pay`}),`\n`,_jsxs(_components.p,{children:[`Funding is the payment that keeps a perpetual’s price near spot. `,_jsx(_components.strong,{children:`Positive\nfunding means longs pay shorts.`})]}),`\n`,_jsxs(_components.p,{children:[`So sustained positive funding is the running cost of holding the long side, and\nthe figure to set against any yield a delta-neutral position claims to earn,\nbecause that yield usually `,_jsx(_components.em,{children:`is`}),` funding, collected on the short leg.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ETH perpetual funding and open interest. 2080 days, 2021-01-01 to 2026-09-11.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` funding (Binance) +11.53%/yr`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` funding (Bybit) +12.71%/yr`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` negative days 13.8% (longs were paid, rather than paying)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The share of `,_jsx(_components.strong,{children:`negative days`}),` is the tail risk of the carry trade: a position\nbuilt to collect funding loses money in exactly the periods when everybody wants\nto be short.`]}),`\n`,_jsx(Heading,{level:`2`,id:`four-venues-never-silently-averaged`,children:`Four venues, never silently averaged`}),`\n`,_jsxs(_components.p,{children:[`Binance, Bybit, `,_jsx(_components.strong,{children:`Hyperliquid and Aster`}),` are each read separately and all four\nare reported. They agree closely (a correlation around 0.85 between Binance and\nBybit on BTC), and `,_jsx(_components.strong,{children:`where they do not, the disagreement is what to read`}),`. An\naverage alone would hide exactly those days.`]}),`\n`,_jsx(_components.p,{children:`Bybit has run about a point higher than Binance over the series. Quote whichever\nvenue the position would trade on, not a blend.`}),`\n`,_jsxs(_components.p,{children:[`A rollup prints a mean `,_jsx(_components.strong,{children:`alongside`}),` the venues rather than instead of them. It\nis equally weighted, because there is no per-venue open interest to weight it\nby; a venue holding none of the position would otherwise carry none of the\naverage either.`]}),`\n`,_jsxs(_components.p,{children:[`Only whole days count toward any average, and what counts as a whole day differs\nby venue: `,_jsx(_components.strong,{children:`Hyperliquid settles hourly`}),`, Binance and Bybit every 8 hours. A\nday carrying one of three settlements is a third of a day’s cost.`]}),`\n`,_jsx(Heading,{level:`2`,id:`open-interest-is-binance’s-book-not-the-market’s`,children:`Open interest is Binance’s book, not the market’s`}),`\n`,_jsxs(_components.p,{children:[`Open interest and all three ratios come from `,_jsx(_components.strong,{children:`Binance’s daily archive`}),`, which\nis the only one published here. Every positioning figure is therefore `,_jsx(_components.em,{children:`one\nvenue’s`}),` position.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Say which venue when quoting one. “`,`$8.4B on Binance\" is a fact; \"$`,`8.4B of open\ninterest” invites the reader to hear the whole market, which is not what was\nmeasured.`]})}),`\n`,_jsx(_components.p,{children:`Funding is the only figure held from every venue, and the only one where they\ncan be compared.`}),`\n`,_jsx(Heading,{level:`2`,id:`rolling-it-up-by-period`,children:`Rolling it up by period`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`group_by`}),` takes `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),` or `,_jsx(_components.code,{children:`month`}),` and answers a different question from\nthe daily series: whether open interest is building or unwinding, how one-sided\npositioning was last month against this one, and which market carries it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`currency: \"ALL\"`}),` gives every market together, with each one’s own table\nunderneath the combined one.`]}),`\n`,_jsx(_components.p,{children:`Two things about the arithmetic affect how you read the output:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Open interest is a stock.`}),` A period’s figure is its `,_jsx(_components.em,{children:`mean`}),`, never a sum.\nTuesday’s contracts are largely Monday’s, so a monthly total would be about\nthirty times anything a venue publishes. It `,_jsx(_components.em,{children:`does`}),` sum across assets, because\ntwo markets at one moment are two different positions.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`An empty period is omitted, not zeroed.`}),` The archive is walked a day at a\ntime, so a period can be partial; a partial one says so on its own row.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`a-missing-series-is-not-a-zero`,children:`A missing series is not a zero`}),`\n`,_jsxs(_components.p,{children:[`Open interest comes from a per-symbol daily archive that begins 2021-01-01, and\nsome symbols are not in it. When one is absent the answer `,_jsx(_components.strong,{children:`says so`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` OPEN INTEREST: none published for ETH. The daily archive carries it per`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` symbol and this one is absent: that is a gap in the source, not a reading`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` of zero, and nothing below should be inferred about positioning.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`An open interest of zero says nobody holds a\nposition at all, which is never true of a live market. If an agent reads a\nsilent zero as a real value, it can conclude something dramatic about positioning\nfrom a hole in a data feed.`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-comes-back-when-it-is-there`,children:`What comes back when it is there`}),`\n`,_jsxs(_components.p,{children:[`Size in coins and in dollars, plus three ratios: top-trader long/short `,_jsx(_components.strong,{children:`by\nposition size`}),` and `,_jsx(_components.strong,{children:`by account count`}),`, which differ when a few large accounts\nsit on one side, and taker buy/sell volume, which says who crossed the spread.`]}),`\n`,_jsx(_components.p,{children:`They describe positioning that has already happened, and they are not trading\nsignals.`})]})}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":"Funding and open interest","description":"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month","icon":"percent","href":"/tools/get-funding-and-oi"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"A positive rate is what longs pay","slug":"a-positive-rate-is-what-longs-pay","depth":2,"children":[]},{"title":"Four venues, never silently averaged","slug":"four-venues-never-silently-averaged","depth":2,"children":[]},{"title":"Open interest is Binance’s book, not the market’s","slug":"open-interest-is-binance’s-book-not-the-market’s","depth":2,"children":[]},{"title":"Rolling it up by period","slug":"rolling-it-up-by-period","depth":2,"children":[]},{"title":"A missing series is not a zero","slug":"a-missing-series-is-not-a-zero","depth":2,"children":[]},{"title":"What comes back when it is there","slug":"what-comes-back-when-it-is-there","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"defiloops","siteName":"DeFiLoops","title":"Funding and open interest - DeFiLoops","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-25T07:14:00.568Z","originalFileLocation":"tools/get-funding-and-oi.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=\"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\">\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=\"Funding and open interest - DeFiLoops\">\u003cmeta data-mint-head property=\"og:description\" content=\"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DeFiLoops\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.defiloops.com/tools/get-funding-and-oi\">\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=Data+streams\u0026amp;title=Funding+and+open+interest\u0026amp;description=What+a+leveraged+position+pays+to+stay+open%2C+read+from+four+venues+separately+since+2021%2C+and+rolled+up+by+day%2C+week+or+month\u0026amp;theme=688f1d8b740dd506f8f7806f\u0026amp;signature=d66c6a9304fbcbf9df1065db62968fd2fedfa09f04c977f88b9f9e9c81f72470\">\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=\"Funding and open interest - DeFiLoops\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://defiloops.mintlify.app/_mintlify/api/og/v2?division=Data+streams\u0026amp;title=Funding+and+open+interest\u0026amp;description=What+a+leveraged+position+pays+to+stay+open%2C+read+from+four+venues+separately+since+2021%2C+and+rolled+up+by+day%2C+week+or+month\u0026amp;theme=688f1d8b740dd506f8f7806f\u0026amp;signature=d66c6a9304fbcbf9df1065db62968fd2fedfa09f04c977f88b9f9e9c81f72470\">\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/tools/get-funding-and-oi\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tools/get-funding-and-oi.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/tools/get-funding-and-oi#webpage\",\"url\":\"https://docs.defiloops.com/tools/get-funding-and-oi\",\"name\":\"Funding and open interest\",\"description\":\"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\",\"dateModified\":\"2026-09-25T07:14:00.568Z\",\"isPartOf\":{\"@id\":\"https://docs.defiloops.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.defiloops.com/tools/get-funding-and-oi#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.defiloops.com/tools/get-funding-and-oi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data streams\",\"item\":\"https://docs.defiloops.com/data/streams\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Funding and open interest\",\"item\":\"https://docs.defiloops.com/tools/get-funding-and-oi\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.defiloops.com/tools/get-funding-and-oi#article\",\"headline\":\"Funding and open interest\",\"name\":\"Funding and open interest\",\"description\":\"What a leveraged position pays to stay open, read from four venues separately since 2021, and rolled up by day, week or month\",\"url\":\"https://docs.defiloops.com/tools/get-funding-and-oi\",\"mainEntityOfPage\":{\"@id\":\"https://docs.defiloops.com/tools/get-funding-and-oi#webpage\"},\"dateModified\":\"2026-09-25T07:14:00.568Z\",\"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","icon":"chart-line","href":"/venues/binance"},{"title":"Connecting Binance","icon":"plug","href":"/venues/binance/connecting"},{"title":"Trading on Binance","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","description":"The Federal Reserve series, bitcoin and ether valuation histories, and stablecoin supply: the inputs behind the slow signal","icon":"landmark","href":"/data/macro"},{"title":"Funding and open interest","icon":"percent","href":"/tools/get-funding-and-oi"},{"title":"Hyperliquid","description":"Live funding and open interest per coin, and liquidations with the address they happened to: a stream that records forward only","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":"Funding and open interest - DeFiLoops","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":[],"chunks":[]}