Track staked tokens, LP positions, and earned rewards
Required
address: Wallet address to query
One of connectionId or blockchain (if both provided, connectionId is used). Single value, comma-separated list, or “all”.
Authorizations
X-API-KEY
string
header
required
API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.
Query Parameters
address
string
required
The wallet address to get DeFi data for, in the address format of the network you query: a 0x address on EVM networks, or the native format on other networks such as Solana.
Example:
"0x1234567890abcdef1234567890abcdef12345678"
connectionId
string
Specifies the blockchain network connection ID to query for DeFi data. Can be a single network (e.g., "ethereum") or comma-separated list of networks (e.g., "ethereum,polygon-wallet") or "all" for all networks. Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.
Example:
"base-wallet"
blockchain
string
The blockchain network identifier from /wallet/blockchains call response. Can be a single network (e.g., "ethereum") or a comma-separated list of networks (e.g., "ethereum,polygon,binance_smart"). Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.
Example:
"base"
Response
Defi Response
totalAssets
object
required
Total value of all DeFi positions across all protocols
Show child attributes
protocols
object[]
required
List of DeFi protocols with user positions
Show child attributes
failedChains
string[]
required
connectionIds of the requested chains whose DeFi data could not be loaded this time. Their positions are missing from protocols and totalAssets, so retry them later. Empty when every chain loaded. If every requested chain fails, the request returns an error instead.
Example:
["arbitrum-wallet"]
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CoinStats PublicAPI","colors":{"primary":"#FF9332","light":"#FFB347","dark":"#EA5237"},"logo":{"light":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/light.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=420a1f730c8e4b41b5d12614976160c3","dark":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/dark.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=64ead17e5af2338361e658ff70aad94d","href":"https://coinstats.app/api-docs"},"favicon":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/favicon.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=08c1eec7f131f92e2d261ec6ea0e5018","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://help.coinstats.app/en/articles/12002063","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://openapi.coinstats.app"}},"footer":{"socials":{"website":"https://coinstats.app","github":"https://github.com/CoinStatsHQ","x":"https://x.com/coinstats"},"links":[{"header":"Support \u0026 Help","items":[{"label":"Help Center","href":"https://help.coinstats.app/en/articles/12002063"}]},{"header":"Contact","items":[{"label":"Telegram API Support","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"label":"Email Support","href":"mailto:api.support@coinstats.app"}]}]},"seo":{"metatags":{"canonical":"https://coinstats.app","description":"Unified crypto data API — wallets, markets, DeFi, and portfolios across 120+ blockchains through a single integration.","author":"CoinStats","language":"en","robots":"index, follow","og:type":"website","og:site_name":"CoinStats API Documentation","og:image":"https://static.coinstats.app/z/coinstats_open_api.png","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@coinstats","twitter:creator":"@coinstats","twitter:image":"https://static.coinstats.app/z/coinstats_open_api.png","apple-mobile-web-app-title":"CoinStats API","application-name":"CoinStats API Documentation","theme-color":"#FF9332"},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-34DH4BL5B9"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Api Keys","icon":"key","href":"https://openapi.coinstats.app"},{"anchor":"CoinStats","icon":"globe","href":"https://coinstats.app"},{"anchor":"Telegram API Support","icon":"telegram","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/coinstats"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dev-c758229b","hasAudioNarration":false,"actualSubdomain":"dev-c758229b","customDomains":["coinstats.app"],"gitSource":{"type":"github","owner":"coinstatshq","repo":"coinstats-public-api-v2","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10ba1f9ffae5051c402562"},"feedback":{"edits":true,"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b12a20b8bd3966b217ad222","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API reference","count":112},{"language":"default","tag":"Wallets \u0026 Portfolios","count":46},{"language":"default","tag":"Market Data","count":35},{"language":"default","tag":"Prediction Markets","count":31},{"language":"default","tag":"Home","count":22},{"language":"default","tag":"User Portfolio","count":18},{"language":"default","tag":"Wallet Data","count":17},{"language":"default","tag":"Coins \u0026 Prices","count":12},{"language":"default","tag":"NFTs","count":12},{"language":"default","tag":"Traders","count":10}]},"assistantConfig":{},"basePath":"/api-docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-docs/openapi/get-wallet-defi","slug":"/api-docs/openapi/get-wallet-defi","pageMetadata":{"title":"Get Wallet Defi","description":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","deprecated":null,"version":null,"sidebarTitle":"Get wallet defi","og:title":"Get Wallet Defi","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/defi","href":"/api-docs/openapi/get-wallet-defi","autogeneratedByOpenApi":true},"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: \"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\"\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`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Info,Note,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:`This endpoint is only available for OpenApi users with paid subscription.`}),`\n`,_jsxs(Note,{children:[_jsx(_components.strong,{children:`400`}),` credits per request`]}),`\n`,_jsxs(Accordion,{title:`Multipliers`,icon:`rectangle-history-circle-plus`,id:`multipliers`,children:[_jsxs(Note,{children:[`In `,_jsx(_components.strong,{children:`Query`}),` field `,_jsx(_components.strong,{children:`“connectionId”`}),`: credits are multiplied by the number of values.`]}),_jsxs(Note,{children:[`If the value of `,_jsx(_components.strong,{children:`“connectionId”`}),` in `,_jsx(_components.strong,{children:`Query`}),` is `,_jsx(_components.strong,{children:`“all”`}),`, multiplier is `,_jsx(_components.strong,{children:`4000`}),` credits.`]}),_jsxs(Note,{children:[`In `,_jsx(_components.strong,{children:`Query`}),` field `,_jsx(_components.strong,{children:`“blockchain”`}),`: credits are multiplied by the number of values.`]}),_jsxs(Note,{children:[`If the value of `,_jsx(_components.strong,{children:`“blockchain”`}),` in `,_jsx(_components.strong,{children:`Query`}),` is `,_jsx(_components.strong,{children:`“all”`}),`, multiplier is `,_jsx(_components.strong,{children:`4000`}),` credits.`]}),_jsx(Warning,{children:`Multipliers can be applied multiple times.`}),_jsx(Info,{children:_jsx(_components.a,{href:`/api-docs/multipliers`,children:_jsx(_components.strong,{children:`Detailed multipliers explanation`})})})]}),`\n`,_jsx(`hr`,{}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`You will get`,id:`you-will-get`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Detailed breakdown of DeFi assets and protocols`}),`\n`,_jsx(_components.li,{children:`Track staked tokens, LP positions, and earned rewards`}),`\n`]})}),_jsx(Accordion,{title:`Required`,id:`required`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`address: Wallet address to query`}),`\n`,_jsx(_components.li,{children:`One of connectionId or blockchain (if both provided, connectionId is used). Single value, comma-separated list, or “all”.`}),`\n`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Wallet Defi","description":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","deprecated":null,"version":null,"sidebarTitle":"Get wallet defi","og:title":"Get Wallet Defi","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/defi","href":"/api-docs/openapi/get-wallet-defi","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"get-wallet-defi","parameters":["09ee3c07-95e4-4222-8d14-8831f8fac1d8","834318e0-0ed5-402c-94be-fbfd396a862b","87a7671f-fa7d-44b5-bdfb-c00b840212ab"],"responses":{"200":"7194021d-b1e0-4d28-89df-2fcd8bd3b761","400":"4afb5b48-589a-4649-81e9-83d2776e8cb7","401":"cbab2d32-56e5-4490-9290-0e73c1f8b259","403":"e32308a5-2563-4768-962a-d83b5a112954","404":"aa57b14a-8e0b-4f66-bd45-f8af0bca25dc","409":"591072ef-3683-4a6d-a93c-8569f5d845b5","429":"c3da14fb-83f8-417a-b653-db7ce15ad2b8","503":"ac41263b-ad81-4225-be34-a20f78121104"},"security":["b5daa72d-5444-43e6-9539-da6e7d0940e7"],"summary":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","tags":["Wallet Data"],"x-mint":{"content":"\u003cWarning>This endpoint is only available for OpenApi users with paid subscription.\u003c/Warning>\u003cNote>**400** credits per request\u003c/Note>\u003cAccordion title=\"Multipliers\" icon=\"rectangle-history-circle-plus\" >\u003cNote>In **Query** field **\"connectionId\"**: credits are multiplied by the number of values.\u003c/Note>\u003cNote>If the value of **\"connectionId\"** in **Query** is **\"all\"**, multiplier is **4000** credits.\u003c/Note>\u003cNote>In **Query** field **\"blockchain\"**: credits are multiplied by the number of values.\u003c/Note>\u003cNote>If the value of **\"blockchain\"** in **Query** is **\"all\"**, multiplier is **4000** credits.\u003c/Note>\u003cWarning>Multipliers can be applied multiple times.\u003c/Warning>\u003cInfo>[**Detailed multipliers explanation**](/api-docs/multipliers)\u003c/Info>\u003c/Accordion>\u003chr/>\n \u003cAccordionGroup>\n\u003cAccordion title=\"You will get\">\n- Detailed breakdown of DeFi assets and protocols\n- Track staked tokens, LP positions, and earned rewards\n\u003c/Accordion>\n\u003cAccordion title=\"Required\">\n- address: Wallet address to query\n- One of connectionId or blockchain (if both provided, connectionId is used). Single value, comma-separated list, or \"all\".\n\u003c/Accordion>\n\u003c/AccordionGroup>","metadata":{"title":"Get Wallet Defi","description":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","og:title":"Get Wallet Defi"},"href":"/openapi/get-wallet-defi"},"x-codeSamples":[{"lang":"curl","label":"cURL","source":"curl --request GET \\\n --url 'https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum' \\\n --header 'X-API-KEY: \u003capi-key>'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\"\n\nheaders = {\"X-API-KEY\": \"\u003capi-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.json())"},{"lang":"javascript","label":"JavaScript","source":"const options = {method: 'GET', headers: {'X-API-KEY': '\u003capi-key>'}};\n\nfetch('https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum', options)\n .then((response) => response.json())\n .then((response) => console.log(response))\n .catch((err) => console.error(err));"},{"lang":"php","label":"PHP","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"X-API-KEY: \u003capi-key>\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"go","label":"Go","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-API-KEY\", \"\u003capi-key>\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := io.ReadAll(res.Body)\n\n\tfmt.Println(string(body))\n}"},{"lang":"java","label":"Java","source":"HttpResponse\u003cString> response = Unirest.get(\"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\")\n .header(\"X-API-KEY\", \"\u003capi-key>\")\n .asString();"}],"method":"get","type":"path","servers":["b691e695-ba09-4342-94f1-45f84e12b8fa"],"path":"/v1/wallet/defi","baseUrlOptions":["https://api.coinstats.app"],"title":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","description":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","codeSamples":[{"label":"cURL","lang":"curl","source":"curl --request GET \\\n --url 'https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum' \\\n --header 'X-API-KEY: \u003capi-key>'"},{"label":"Python","lang":"python","source":"import requests\n\nurl = \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\"\n\nheaders = {\"X-API-KEY\": \"\u003capi-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.json())"},{"label":"JavaScript","lang":"javascript","source":"const options = {method: 'GET', headers: {'X-API-KEY': '\u003capi-key>'}};\n\nfetch('https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum', options)\n .then((response) => response.json())\n .then((response) => console.log(response))\n .catch((err) => console.error(err));"},{"label":"PHP","lang":"php","source":"\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"X-API-KEY: \u003capi-key>\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"label":"Go","lang":"go","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-API-KEY\", \"\u003capi-key>\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := io.ReadAll(res.Body)\n\n\tfmt.Println(string(body))\n}"},{"label":"Java","lang":"java","source":"HttpResponse\u003cString> response = Unirest.get(\"https://api.coinstats.app/v1/wallet/defi?address=0x1234567890abcdef1234567890abcdef12345678\u0026blockchain=ethereum\")\n .header(\"X-API-KEY\", \"\u003capi-key>\")\n .asString();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"09ee3c07-95e4-4222-8d14-8831f8fac1d8":{"name":"address","required":true,"in":"query","description":"The wallet address to get DeFi data for, in the address format of the network you query: a 0x address on EVM networks, or the native format on other networks such as Solana.","schema":{"example":"0x1234567890abcdef1234567890abcdef12345678","type":"string","isRequired":true,"description":"The wallet address to get DeFi data for, in the address format of the network you query: a 0x address on EVM networks, or the native format on other networks such as Solana.","uniqueKey":"","typeLabel":"string"}},"834318e0-0ed5-402c-94be-fbfd396a862b":{"name":"connectionId","required":false,"in":"query","description":"Specifies the blockchain network connection ID to query for DeFi data. Can be a single network (e.g., \"ethereum\") or comma-separated list of networks (e.g., \"ethereum,polygon-wallet\") or \"all\" for all networks. Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.","schema":{"example":"base-wallet","type":"string","isRequired":false,"description":"Specifies the blockchain network connection ID to query for DeFi data. Can be a single network (e.g., \"ethereum\") or comma-separated list of networks (e.g., \"ethereum,polygon-wallet\") or \"all\" for all networks. Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.","uniqueKey":"","typeLabel":"string"}},"87a7671f-fa7d-44b5-bdfb-c00b840212ab":{"name":"blockchain","required":false,"in":"query","description":"The blockchain network identifier from [/wallet/blockchains](/api-docs/openapi/get-blockchains) call response. Can be a single network (e.g., \"ethereum\") or a comma-separated list of networks (e.g., \"ethereum,polygon,binance_smart\"). Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.","schema":{"example":"base","type":"string","isRequired":false,"description":"The blockchain network identifier from [/wallet/blockchains](/api-docs/openapi/get-blockchains) call response. Can be a single network (e.g., \"ethereum\") or a comma-separated list of networks (e.g., \"ethereum,polygon,binance_smart\"). Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.","uniqueKey":"","typeLabel":"string"}}},"responses":{"7194021d-b1e0-4d28-89df-2fcd8bd3b761":{"description":"Defi Response","content":{"application/json":{"schema":{"type":"object","properties":{"totalAssets":{"type":"object","description":"Total value of all DeFi positions across all protocols","required":["USD","ETH","BTC"],"properties":{"USD":{"type":"number","example":46.92,"description":"Value in US Dollars","isRequired":true,"uniqueKey":"totalAssets.USD","typeLabel":"number"},"ETH":{"type":"number","example":0.010799824088855844,"description":"Value in Ethereum","isRequired":true,"uniqueKey":"totalAssets.ETH","typeLabel":"number"},"BTC":{"type":"number","example":0.0004264134046889636,"description":"Value in Bitcoin","isRequired":true,"uniqueKey":"totalAssets.BTC","typeLabel":"number"}},"isRequired":true,"uniqueKey":"totalAssets","typeLabel":"object"},"protocols":{"description":"List of DeFi protocols with user positions","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045_bsc_pancakeswap_binance","description":"Identifier of these positions: wallet address, protocolId and chain joined with \"_\". Unique per wallet, protocol and chain.","isRequired":true,"uniqueKey":"protocols.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","example":"PancakeSwap","description":"Name of the DeFi protocol","isRequired":true,"uniqueKey":"protocols.items.[INDEX].name","typeLabel":"string"},"logo":{"type":"string","example":"https://icons.llama.fi/pancakeswap-amm-v3.jpg","description":"URL to the protocol logo","isRequired":true,"uniqueKey":"protocols.items.[INDEX].logo","typeLabel":"string"},"totalValue":{"type":"object","description":"Total value of all investments in this protocol","required":["USD","ETH","BTC"],"properties":{"USD":{"type":"number","example":46.92,"description":"Value in US Dollars","isRequired":true,"uniqueKey":"protocols.items.[INDEX].totalValue.USD","typeLabel":"number"},"ETH":{"type":"number","example":0.010799824088855844,"description":"Value in Ethereum","isRequired":true,"uniqueKey":"protocols.items.[INDEX].totalValue.ETH","typeLabel":"number"},"BTC":{"type":"number","example":0.0004264134046889636,"description":"Value in Bitcoin","isRequired":true,"uniqueKey":"protocols.items.[INDEX].totalValue.BTC","typeLabel":"number"}},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].totalValue","typeLabel":"object"},"blockchain":{"type":"object","description":"Blockchain network information","required":["name","icon"],"properties":{"name":{"type":"string","example":"Solana","description":"Name of the blockchain network","isRequired":true,"uniqueKey":"protocols.items.[INDEX].blockchain.name","typeLabel":"string"},"icon":{"type":"string","example":"https://static.coinstats.app/portfolio_images/solana_dark.png","description":"URL to the blockchain icon","isRequired":true,"uniqueKey":"protocols.items.[INDEX].blockchain.icon","typeLabel":"string"}},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].blockchain","typeLabel":"object"},"chain":{"type":"string","example":"solana","description":"Blockchain network identifier","isRequired":true,"uniqueKey":"protocols.items.[INDEX].chain","typeLabel":"string"},"investments":{"description":"List of investments/positions in this protocol","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"liquidity","description":"Unique identifier for the investment type","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","example":"Liquidity","description":"Human-readable name of the investment","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].name","typeLabel":"string"},"value":{"type":"object","description":"Total value of the investment position","required":["USD","ETH","BTC"],"properties":{"USD":{"type":"number","example":46.92,"description":"Value in US Dollars","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].value.USD","typeLabel":"number"},"ETH":{"type":"number","example":0.010799824088855844,"description":"Value in Ethereum","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].value.ETH","typeLabel":"number"},"BTC":{"type":"number","example":0.0004264134046889636,"description":"Value in Bitcoin","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].value.BTC","typeLabel":"number"}},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].value","typeLabel":"object"},"symbols":{"type":"string","example":"USDC + WSOL","description":"Token symbols involved in the investment","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].symbols","typeLabel":"string"},"assets":{"description":"List of assets in this investment","type":"array","items":{"type":"object","properties":{"address":{"type":"string","example":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","description":"Token contract address on the blockchain","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].address","typeLabel":"string"},"title":{"type":"string","example":"Deposit","description":"Type of asset (Deposit, Reward, etc.)","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].title","typeLabel":"string"},"amount":{"type":"number","example":20.431941,"description":"Amount of the token held","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].amount","typeLabel":"number"},"symbol":{"type":"string","example":"USDC","description":"Token symbol","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].symbol","typeLabel":"string"},"price":{"type":"object","description":"Current price value of the asset","required":["USD","ETH","BTC"],"properties":{"USD":{"type":"number","example":46.92,"description":"Value in US Dollars","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].price.USD","typeLabel":"number"},"ETH":{"type":"number","example":0.010799824088855844,"description":"Value in Ethereum","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].price.ETH","typeLabel":"number"},"BTC":{"type":"number","example":0.0004264134046889636,"description":"Value in Bitcoin","isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].price.BTC","typeLabel":"number"}},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].price","typeLabel":"object"},"coinId":{"type":"string","example":"solana","description":"CoinStats coin identifier","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].coinId","typeLabel":"string"},"logo":{"type":"string","example":"https://img-v1.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png","description":"URL to the token logo","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].logo","typeLabel":"string"},"danger":{"type":"boolean","description":"Flag indicating if the asset is potentially risky","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX].danger","typeLabel":"boolean"}},"required":["address","title","amount","symbol","price"],"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].assets","typeLabel":"object[]"},"poolAddress":{"type":"string","example":"pancakeswap-amm-v3","description":"Address or identifier of the liquidity pool","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].poolAddress","typeLabel":"string"},"healthRate":{"type":"number","description":"Health rate for lending positions (higher is safer)","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].healthRate","typeLabel":"number"},"healthRateLink":{"type":"string","description":"Link to check the health rate status","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].healthRateLink","typeLabel":"string"},"poolProjectId":{"type":"string","example":"PancakeSwap","description":"Name of the project managing the pool","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].poolProjectId","typeLabel":"string"},"unlockAt":{"type":"string","description":"Timestamp when tokens will be unlocked","example":"2025-08-28T08:35:50.384Z","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].unlockAt","typeLabel":"string"},"endAt":{"type":"string","description":"Timestamp when the investment period ends","example":"2025-08-28T08:35:50.384Z","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].endAt","typeLabel":"string"},"isProxy":{"type":"boolean","description":"Indicates if this is a proxy contract","example":true,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].isProxy","typeLabel":"boolean"},"debtRatio":{"type":"number","description":"Debt ratio for lending positions (lower is safer)","example":0.01,"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].debtRatio","typeLabel":"number"},"debtRatioLink":{"type":"string","description":"Link to check the debt ratio status","example":"https://pancakeswap.finance/swap","uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX].debtRatioLink","typeLabel":"string"}},"required":["id","name","value","symbols","assets"],"uniqueKey":"protocols.items.[INDEX].investments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"protocols.items.[INDEX].investments","typeLabel":"object[]"},"protocolId":{"type":"string","example":"bsc_pancakeswap","description":"Identifier of the DeFi protocol on this chain, the same for every wallet. A protocol can have a different identifier on each chain, e.g. \"uniswap3\" on Ethereum and \"base_uniswap3\" on Base.","isRequired":true,"uniqueKey":"protocols.items.[INDEX].protocolId","typeLabel":"string"},"walletAddress":{"type":"string","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","description":"Wallet address holding these positions, as requested","isRequired":true,"uniqueKey":"protocols.items.[INDEX].walletAddress","typeLabel":"string"},"connectionId":{"type":"string","example":"base-wallet","description":"connectionId of the chain these positions are on, as in [/wallet/blockchains](/api-docs/openapi/get-blockchains) (e.g. \"ethereum\", \"base-wallet\", \"binancesmartchain\"). With one requested connectionId it is that connectionId.","isRequired":true,"uniqueKey":"protocols.items.[INDEX].connectionId","typeLabel":"string"},"url":{"type":"string","example":"https://pancakeswap.finance/swap","description":"Official website URL of the protocol","uniqueKey":"protocols.items.[INDEX].url","typeLabel":"string"}},"required":["id","name","logo","totalValue","blockchain","chain","investments","protocolId","walletAddress","connectionId"],"uniqueKey":"protocols.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"protocols","typeLabel":"object[]"},"failedChains":{"example":["arbitrum-wallet"],"description":"connectionIds of the requested chains whose DeFi data could not be loaded this time. Their positions are missing from protocols and totalAssets, so retry them later. Empty when every chain loaded. If every requested chain fails, the request returns an error instead.","type":"array","items":{"type":"string","uniqueKey":"failedChains.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"failedChains","typeLabel":"string[]"}},"required":["totalAssets","protocols","failedChains"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"totalAssets":{"USD":46.92,"ETH":0.010799824088855844,"BTC":0.0004264134046889636},"protocols":[{"id":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045_bsc_pancakeswap_binance","name":"PancakeSwap","logo":"https://icons.llama.fi/pancakeswap-amm-v3.jpg","totalValue":{"USD":46.92,"ETH":0.010799824088855844,"BTC":0.0004264134046889636},"blockchain":{"name":"Solana","icon":"https://static.coinstats.app/portfolio_images/solana_dark.png"},"chain":"solana","investments":[{"id":"liquidity","name":"Liquidity","value":{"USD":46.92,"ETH":0.010799824088855844,"BTC":0.0004264134046889636},"symbols":"USDC + WSOL","assets":[{"address":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","title":"Deposit","amount":20.431941,"symbol":"USDC","price":{"USD":46.92,"ETH":0.010799824088855844,"BTC":0.0004264134046889636},"coinId":"solana","logo":"https://img-v1.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png","danger":true}],"poolAddress":"pancakeswap-amm-v3","healthRate":123,"healthRateLink":"\u003cstring>","poolProjectId":"PancakeSwap","unlockAt":"2025-08-28T08:35:50.384Z","endAt":"2025-08-28T08:35:50.384Z","isProxy":true,"debtRatio":0.01,"debtRatioLink":"https://pancakeswap.finance/swap"}],"protocolId":"bsc_pancakeswap","walletAddress":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"base-wallet","url":"https://pancakeswap.finance/swap"}],"failedChains":["arbitrum-wallet"]}}},"exampleType":"generated"}},"exampleType":"generated"},"4afb5b48-589a-4649-81e9-83d2776e8cb7":{"description":"Bad Request","content":{"application/json":{"example":{"statusCode":400,"message":"Bad Request","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":400,"message":"Bad Request","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"cbab2d32-56e5-4490-9290-0e73c1f8b259":{"description":"Unauthorized","content":{"application/json":{"example":{"statusCode":401,"message":"Unauthorized","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":401,"message":"Unauthorized","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"e32308a5-2563-4768-962a-d83b5a112954":{"description":"Forbidden","content":{"application/json":{"example":{"statusCode":403,"message":"Forbidden","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":403,"message":"Forbidden","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"aa57b14a-8e0b-4f66-bd45-f8af0bca25dc":{"description":"Not Found","content":{"application/json":{"example":{"statusCode":404,"message":"Not Found","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"message":"Not Found","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"591072ef-3683-4a6d-a93c-8569f5d845b5":{"description":"Conflict (for some endpoints)","content":{"application/json":{"example":{"statusCode":409,"message":"Transactions not synced","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":409,"message":"Transactions not synced","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"c3da14fb-83f8-417a-b653-db7ce15ad2b8":{"description":"Too Many Requests","content":{"application/json":{"example":{"statusCode":429,"message":"Rate limit exceeded","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":429,"message":"Rate limit exceeded","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"ac41263b-ad81-4225-be34-a20f78121104":{"description":"Service Unavailable","content":{"application/json":{"example":{"statusCode":503,"message":"Service Unavailable. Please Contact Support"},"examples":{"Example":{"title":"Example","value":{"statusCode":503,"message":"Service Unavailable. Please Contact Support"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b5daa72d-5444-43e6-9539-da6e7d0940e7":{"X-API-KEY":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","scopes":[],"schemeName":"X-API-KEY"}}},"servers":{"b691e695-ba09-4342-94f1-45f84e12b8fa":{"url":"https://api.coinstats.app"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","scopes":[],"schemeName":"X-API-KEY"},"schema":{"title":"X-API-KEY","type":"string","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"X-API-KEY","name":"X-API-KEY"}],"title":"X-API-KEY"}]},"originalFileLocation":"api-docs/api-reference/openapi.json"},"subdomain":"dev-c758229b","siteName":"CoinStats PublicAPI","title":"Get Wallet Defi","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T10:59:27.468Z","originalFileLocation":"api-docs/openapi/get-wallet-defi.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=\"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\">\u003cmeta data-mint-head name=\"application-name\" content=\"CoinStats PublicAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_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/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Wallet Defi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CoinStats API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://coinstats.app/api-docs/openapi/get-wallet-defi\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://static.coinstats.app/z/coinstats_open_api.png\">\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=\"Get Wallet Defi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://static.coinstats.app/z/coinstats_open_api.png\">\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/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CoinStats API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF9332\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"CoinStats\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@coinstats\">\u003cmeta data-mint-head name=\"application-name\" content=\"CoinStats API Documentation\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#FF9332\">\u003clink data-mint-head rel=\"canonical\" href=\"https://coinstats.app/api-docs/openapi/get-wallet-defi\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-docs/openapi/get-wallet-defi.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://coinstats.app/#organization\",\"name\":\"CoinStats PublicAPI\",\"url\":\"https://coinstats.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/light.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=420a1f730c8e4b41b5d12614976160c3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://coinstats.app#website\",\"name\":\"CoinStats PublicAPI\",\"url\":\"https://coinstats.app\",\"publisher\":{\"@id\":\"https://coinstats.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi#webpage\",\"url\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi\",\"name\":\"Get Wallet Defi\",\"description\":\"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\",\"dateModified\":\"2026-12-03T10:59:27.468Z\",\"isPartOf\":{\"@id\":\"https://coinstats.app#website\"},\"breadcrumb\":{\"@id\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Wallets \u0026 Portfolios\",\"item\":\"https://coinstats.app/api-docs/openapi/get-blockchains\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wallet Data\",\"item\":\"https://coinstats.app/api-docs/openapi/get-blockchains\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Wallet Defi\",\"item\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi#apireference\",\"headline\":\"Get Wallet Defi\",\"name\":\"Get Wallet Defi\",\"description\":\"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities\",\"url\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi\",\"mainEntityOfPage\":{\"@id\":\"https://coinstats.app/api-docs/openapi/get-wallet-defi#webpage\"},\"image\":\"https://static.coinstats.app/z/coinstats_open_api.png\",\"dateModified\":\"2026-12-03T10:59:27.468Z\",\"publisher\":{\"@id\":\"https://coinstats.app/#organization\"},\"isPartOf\":{\"@id\":\"https://coinstats.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CoinStats PublicAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CoinStats PublicAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-docs/openapi/get-wallet-defi.md","siteName":"CoinStats PublicAPI","nav":{"global":{"anchors":[{"anchor":"Api Keys","icon":"key","href":"https://openapi.coinstats.app"},{"anchor":"CoinStats","icon":"globe","href":"https://coinstats.app"},{"anchor":"Telegram API Support","icon":"telegram","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/coinstats"}]},"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/api-docs"}]},{"tab":"API reference","icon":"code","pages":[{"title":"API Reference","href":"/api-docs/api-reference/introduction"},{"group":"Market Data","pages":[{"group":"Coins \u0026 Prices","icon":"coins","expanded":false,"pages":[{"title":"Get Coins","deprecated":null,"version":null,"sidebarTitle":"Get coins","openapi":"/api-docs/api-reference/openapi.json get /v1/coins","href":"/api-docs/openapi/get-coins"},{"title":"Get Coin By Id","deprecated":null,"version":null,"sidebarTitle":"Get coin by id","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/{coinId}","href":"/api-docs/openapi/get-coin-by-id"},{"title":"Get Coin Chart By Id","deprecated":null,"version":null,"sidebarTitle":"Get coin chart by id","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/{coinId}/charts","href":"/api-docs/openapi/get-coin-chart-by-id"},{"title":"Get Coins Charts","deprecated":null,"version":null,"sidebarTitle":"Get coins charts","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/charts","href":"/api-docs/openapi/get-coins-charts"},{"title":"Get Coin Avg Price","deprecated":null,"version":null,"sidebarTitle":"Get coin avg price","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/price/avg","href":"/api-docs/openapi/get-coin-avg-price"},{"title":"Get Coin Exchange Price","deprecated":null,"version":null,"sidebarTitle":"Get coin exchange price","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/price/exchange","href":"/api-docs/openapi/get-coin-exchange-price"},{"title":"Get Ohlcv Candles","deprecated":null,"version":null,"sidebarTitle":"Get ohlcv candles","openapi":"/api-docs/api-reference/openapi.json get /v1/ohlcv/candles","href":"/api-docs/openapi/get-ohlcv-candles"},{"title":"Get Ticker Exchanges","deprecated":null,"version":null,"sidebarTitle":"Get ticker exchanges","openapi":"/api-docs/api-reference/openapi.json get /v1/tickers/exchanges","href":"/api-docs/openapi/get-ticker-exchanges"},{"title":"Get Ticker Markets","deprecated":null,"version":null,"sidebarTitle":"Get ticker markets","openapi":"/api-docs/api-reference/openapi.json get /v1/tickers/markets","href":"/api-docs/openapi/get-ticker-markets"},{"title":"Get Fiat Currencies","deprecated":null,"version":null,"sidebarTitle":"Get fiat currencies","openapi":"/api-docs/api-reference/openapi.json get /v1/fiats","href":"/api-docs/openapi/get-fiat-currencies"},{"title":"Get Market Cap","deprecated":null,"version":null,"sidebarTitle":"Get market cap","openapi":"/api-docs/api-reference/openapi.json get /v1/markets","href":"/api-docs/openapi/get-market-cap"},{"title":"Get Currencies","deprecated":null,"version":null,"sidebarTitle":"Get currencies","openapi":"/api-docs/api-reference/openapi.json get /v1/currencies","href":"/api-docs/openapi/get-currencies"}]},{"group":"Real-world Assets","icon":"landmark","expanded":false,"pages":[{"title":"Get Rwa Overview","deprecated":null,"version":null,"sidebarTitle":"Get rwa overview","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/overview","href":"/api-docs/openapi/get-rwa-overview"},{"title":"Get Rwa Assets","deprecated":null,"version":null,"sidebarTitle":"Get rwa assets","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets","href":"/api-docs/openapi/get-rwa-assets"},{"title":"Get Rwa History","deprecated":null,"version":null,"sidebarTitle":"Get rwa history","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/history","href":"/api-docs/openapi/get-rwa-history"},{"title":"Get Rwa Asset","deprecated":null,"version":null,"sidebarTitle":"Get rwa asset","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}","href":"/api-docs/openapi/get-rwa-asset"},{"title":"Get Rwa Tokens","deprecated":null,"version":null,"sidebarTitle":"Get rwa tokens","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/tokens","href":"/api-docs/openapi/get-rwa-tokens"},{"title":"Get Rwa Markets","deprecated":null,"version":null,"sidebarTitle":"Get rwa markets","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/markets","href":"/api-docs/openapi/get-rwa-markets"},{"title":"Get Rwa Asset History","deprecated":null,"version":null,"sidebarTitle":"Get rwa asset history","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/history","href":"/api-docs/openapi/get-rwa-asset-history"}]},{"group":"Market Insights","icon":"lightbulb","expanded":false,"pages":[{"title":"Btc Dominance","deprecated":null,"version":null,"sidebarTitle":"Btc dominance","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/btc-dominance","href":"/api-docs/openapi/btc-dominance"},{"title":"Fear And Greed","deprecated":null,"version":null,"sidebarTitle":"Fear and greed","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/fear-and-greed","href":"/api-docs/openapi/fear-and-greed"},{"title":"Fear And Greed Chart","deprecated":null,"version":null,"sidebarTitle":"Fear and greed chart","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/fear-and-greed/chart","href":"/api-docs/openapi/fear-and-greed-chart"},{"title":"Rainbow Chart","deprecated":null,"version":null,"sidebarTitle":"Rainbow chart","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/rainbow-chart/{coinId}","href":"/api-docs/openapi/rainbow-chart"}]},{"group":"News","icon":"newspaper","expanded":false,"pages":[{"title":"Get News Sources","deprecated":null,"version":null,"sidebarTitle":"Get news sources","openapi":"/api-docs/api-reference/openapi.json get /v1/news/sources","href":"/api-docs/openapi/get-news-sources"},{"title":"Get News","deprecated":null,"version":null,"sidebarTitle":"Get news","openapi":"/api-docs/api-reference/openapi.json get /v1/news","href":"/api-docs/openapi/get-news"},{"title":"Get News By Type","deprecated":null,"version":null,"sidebarTitle":"Get news by type","openapi":"/api-docs/api-reference/openapi.json get /v1/news/type/{type}","href":"/api-docs/openapi/get-news-by-type"},{"title":"Get News By Id","deprecated":null,"version":null,"sidebarTitle":"Get news by id","openapi":"/api-docs/api-reference/openapi.json get /v1/news/{id}","href":"/api-docs/openapi/get-news-by-id"}]},{"group":"NFTs","icon":"image","expanded":false,"pages":[{"title":"Get NFT Collection By Address","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/collection/{collectionAddress}","href":"/api-docs/openapi/get-nft-collection-by-address"},{"title":"Get NFT Collection Owners","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection owners","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/collection/{collectionAddress}/owners","href":"/api-docs/openapi/get-nft-collection-owners"},{"title":"Get NFT Collection Assets By Address","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection assets","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/{collectionAddress}/assets","href":"/api-docs/openapi/get-nft-collection-assets-by-address"},{"title":"Get NFT Collection Asset By Token ID","deprecated":null,"version":null,"sidebarTitle":"Get NFT asset by token ID","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/{collectionAddress}/asset/{tokenId}","href":"/api-docs/openapi/get-nft-collection-asset-by-tokenid"},{"title":"Get NFT Tokens Batch","deprecated":null,"version":null,"sidebarTitle":"Get NFTs in batch","openapi":"/api-docs/api-reference/openapi.json post /v1/nft/tokens/batch","href":"/api-docs/openapi/get-nft-tokens-batch"},{"title":"Refresh NFT Asset Metadata","deprecated":null,"version":null,"sidebarTitle":"Refresh NFT metadata","openapi":"/api-docs/api-reference/openapi.json post /v1/nft/{collectionAddress}/asset/{tokenId}/refresh","href":"/api-docs/openapi/refresh-nft-asset-metadata"},{"title":"Get Trending NFTs","deprecated":null,"version":null,"sidebarTitle":"Get trending NFTs","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/trending","href":"/api-docs/openapi/get-trending-nfts"}]},{"group":"Token Risks","icon":"shield-halved","expanded":false,"pages":[{"title":"Token Risks","deprecated":null,"version":null,"sidebarTitle":"Token risks","openapi":"/api-docs/api-reference/openapi.json get /v1/token-risks","href":"/api-docs/openapi/token-risks"}]}]},{"group":"Wallets \u0026 Portfolios","pages":[{"group":"Wallet Data","icon":"wallet","expanded":false,"pages":[{"title":"Get Blockchains","deprecated":null,"version":null,"sidebarTitle":"Get blockchains","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/blockchains","href":"/api-docs/openapi/get-blockchains"},{"title":"Get Wallet Balance","deprecated":null,"version":null,"sidebarTitle":"Get wallet balance","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/balance","href":"/api-docs/openapi/get-wallet-balance"},{"title":"Get Wallet Balance Many","deprecated":null,"version":null,"sidebarTitle":"Get wallet balance many","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/balance/many","href":"/api-docs/openapi/get-wallet-balance-many"},{"title":"Get Wallet Balance Historical","deprecated":null,"version":null,"sidebarTitle":"Get wallet balance historical","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/balance/historical","href":"/api-docs/openapi/get-wallet-balance-historical"},{"title":"Transactions Sync","deprecated":null,"version":null,"sidebarTitle":"Transactions sync","openapi":"/api-docs/api-reference/openapi.json patch /v1/wallet/transactions","href":"/api-docs/openapi/transactions-sync"},{"title":"Get Wallet Transactions","deprecated":null,"version":null,"sidebarTitle":"Get wallet transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/transactions","href":"/api-docs/openapi/get-wallet-transactions"},{"title":"Get Wallet Transaction Types","deprecated":null,"version":null,"sidebarTitle":"Get wallet transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/transactions/types","href":"/api-docs/openapi/get-wallet-transaction-types"},{"title":"Get Wallet Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get wallet sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/status","href":"/api-docs/openapi/get-wallet-sync-status"},{"title":"get wallet profit \u0026 loss","deprecated":null,"version":null,"sidebarTitle":"Get wallet pl","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/pl","href":"/api-docs/openapi/get-wallet-pl"},{"title":"Get Wallet PnL History","deprecated":null,"version":null,"sidebarTitle":"Get wallet pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/pl/history","href":"/api-docs/openapi/get-wallet-pl-history"},{"title":"Wallet Chart","deprecated":null,"version":null,"sidebarTitle":"Wallet chart","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/chart","href":"/api-docs/openapi/wallet-chart"},{"title":"Wallet Chart Many","description":"Get chart data for multiple wallet addresses across various networks.","deprecated":null,"version":null,"sidebarTitle":"Wallet chart many","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/chart/many","href":"/api-docs/openapi/wallet-chart-many"},{"title":"Get Wallet Defi","deprecated":null,"version":null,"sidebarTitle":"Get wallet defi","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/defi","href":"/api-docs/openapi/get-wallet-defi"}]},{"group":"NFTs","icon":"image","expanded":false,"pages":[{"title":"Get Wallet NFTs","description":"Get every NFT a wallet holds as individual tokens, across all chains in one call.","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFTs","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft","href":"/api-docs/openapi/get-wallet-nfts"},{"title":"Get Wallet NFT Collections","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT collections","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/collections","href":"/api-docs/openapi/get-wallet-nft-collections"},{"title":"Get Wallet NFT Summary","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT summary","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/summary","href":"/api-docs/openapi/get-wallet-nft-summary"},{"title":"Get Wallet NFT Activity","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT activity","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/activity","href":"/api-docs/openapi/get-wallet-nft-activity"},{"title":"Get Wallet NFT Holds","deprecated":null,"version":null,"sidebarTitle":"Check wallet NFT holdings","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/holds","href":"/api-docs/openapi/get-wallet-nft-holds"}]},{"group":"Ordinals \u0026 Runes","icon":"bitcoin-sign","expanded":false,"pages":[{"title":"Get Wallet Ordinals","deprecated":null,"version":null,"sidebarTitle":"Get wallet ordinals","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/ordinals","href":"/api-docs/openapi/get-wallet-ordinals"},{"title":"Get Wallet Runes","deprecated":null,"version":null,"sidebarTitle":"Get wallet runes","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/runes","href":"/api-docs/openapi/get-wallet-runes"}]},{"group":"Perpetuals","icon":"arrow-trend-up","expanded":false,"pages":[{"title":"Get Perpetual Positions","deprecated":null,"version":null,"sidebarTitle":"Get perpetual positions","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/perpetual/positions","href":"/api-docs/openapi/get-perpetual-positions"},{"title":"Get Perpetual Trades","deprecated":null,"version":null,"sidebarTitle":"Get perpetual trades","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/perpetual/trades","href":"/api-docs/openapi/get-perpetual-trades"}]},{"group":"Exchange Connection","icon":"arrow-right-arrow-left","expanded":false,"pages":[{"title":"Get Exchanges","deprecated":null,"version":null,"sidebarTitle":"Get exchanges","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/support","href":"/api-docs/openapi/get-exchanges"},{"title":"Get Exchange Balance","deprecated":null,"version":null,"sidebarTitle":"Get exchange balance","openapi":"/api-docs/api-reference/openapi.json post /v1/exchange/balance","href":"/api-docs/openapi/get-exchange-balance"},{"title":"Get Exchange Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get exchange sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/status","href":"/api-docs/openapi/get-exchange-sync-status"},{"title":"Get Exchange Transactions","deprecated":null,"version":null,"sidebarTitle":"Get exchange transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/transactions","href":"/api-docs/openapi/get-exchange-transactions"},{"title":"Get Exchange Transaction Types","deprecated":null,"version":null,"sidebarTitle":"Get exchange transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/transactions/types","href":"/api-docs/openapi/get-exchange-transaction-types"},{"title":"Get Exchange PnL","deprecated":null,"version":null,"sidebarTitle":"Get exchange pl","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/pl","href":"/api-docs/openapi/get-exchange-pl"},{"title":"Get Exchange PnL History","deprecated":null,"version":null,"sidebarTitle":"Get exchange pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/pl/history","href":"/api-docs/openapi/get-exchange-pl-history"},{"title":"Get Exchange Chart","deprecated":null,"version":null,"sidebarTitle":"Get exchange chart","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/chart","href":"/api-docs/openapi/get-exchange-chart"},{"title":"Exchange Sync Status","deprecated":null,"version":null,"sidebarTitle":"Exchange sync status","openapi":"/api-docs/api-reference/openapi.json patch /v1/exchange/sync","href":"/api-docs/openapi/exchange-sync-status"}]},{"group":"User Portfolio","icon":"briefcase","expanded":false,"pages":[{"title":"Get Portfolio List","deprecated":null,"version":null,"sidebarTitle":"Get portfolio list","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/list","href":"/api-docs/openapi/get-portfolio-list"},{"title":"Connect Portfolio Wallet","deprecated":null,"version":null,"sidebarTitle":"Connect portfolio wallet","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/wallet","href":"/api-docs/openapi/connect-portfolio-wallet"},{"title":"Connect Portfolio Exchange","deprecated":null,"version":null,"sidebarTitle":"Connect portfolio exchange","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/exchange","href":"/api-docs/openapi/connect-portfolio-exchange"},{"title":"Get Portfolio Value","deprecated":null,"version":null,"sidebarTitle":"Get portfolio value","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/value","href":"/api-docs/openapi/get-portfolio-value"},{"title":"Get Portfolio Coins","deprecated":null,"version":null,"sidebarTitle":"Get portfolio coins","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/coins","href":"/api-docs/openapi/get-portfolio-coins"},{"title":"Get Portfolio Chart","deprecated":null,"version":null,"sidebarTitle":"Get portfolio chart","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/chart","href":"/api-docs/openapi/get-portfolio-chart"},{"title":"Get Portfolio PnL History","deprecated":null,"version":null,"sidebarTitle":"Get portfolio pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/pl/history","href":"/api-docs/openapi/get-portfolio-pl-history"},{"title":"Get Portfolio Transactions","deprecated":null,"version":null,"sidebarTitle":"Get portfolio transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/transactions","href":"/api-docs/openapi/get-portfolio-transactions"},{"title":"Get Portfolio Transaction Types","deprecated":null,"version":null,"sidebarTitle":"Get portfolio transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/transactions/types","href":"/api-docs/openapi/get-portfolio-transaction-types"},{"title":"Add Portfolio Transaction","deprecated":null,"version":null,"sidebarTitle":"Add portfolio transaction","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/transaction","href":"/api-docs/openapi/add-portfolio-transaction"},{"title":"Get Portfolio Defi","deprecated":null,"version":null,"sidebarTitle":"Get portfolio defi","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/defi","href":"/api-docs/openapi/get-portfolio-defi"},{"title":"Get Portfolio Snapshot Items","deprecated":null,"version":null,"sidebarTitle":"Get portfolio snapshot items","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/snapshot/items","href":"/api-docs/openapi/get-portfolio-snapshot-items"},{"title":"Get Portfolio Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get portfolio sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/status","href":"/api-docs/openapi/get-portfolio-sync-status"},{"title":"Sync Portfolio","deprecated":null,"version":null,"sidebarTitle":"Sync portfolio","openapi":"/api-docs/api-reference/openapi.json patch /v1/portfolio/sync","href":"/api-docs/openapi/sync-portfolio"},{"title":"Delete Portfolio","deprecated":null,"version":null,"sidebarTitle":"Delete portfolio","openapi":"/api-docs/api-reference/openapi.json delete /v1/portfolio/{portfolioId}","href":"/api-docs/openapi/delete-portfolio"}]}]},{"group":"Prediction Markets","pages":[{"group":"Markets","icon":"chart-line","expanded":false,"pages":[{"title":"List Markets","deprecated":null,"version":null,"sidebarTitle":"List markets","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets","href":"/api-docs/openapi/list-markets"},{"title":"Trending Markets","deprecated":null,"version":null,"sidebarTitle":"Trending markets","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/trending","href":"/api-docs/openapi/trending-markets"},{"title":"Get Market","deprecated":null,"version":null,"sidebarTitle":"Get market","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}","href":"/api-docs/openapi/get-market"},{"title":"Market Prices","deprecated":null,"version":null,"sidebarTitle":"Market prices","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/prices","href":"/api-docs/openapi/market-prices"},{"title":"Market Orderbook","deprecated":null,"version":null,"sidebarTitle":"Market orderbook","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/orderbook","href":"/api-docs/openapi/market-orderbook"},{"title":"Market Bars","deprecated":null,"version":null,"sidebarTitle":"Market bars","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/bars","href":"/api-docs/openapi/market-bars"},{"title":"Market Price At","deprecated":null,"version":null,"sidebarTitle":"Market price at","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/price-at","href":"/api-docs/openapi/market-price-at"},{"title":"Market Price History","deprecated":null,"version":null,"sidebarTitle":"Market price history","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/price-history","href":"/api-docs/openapi/market-price-history"},{"title":"Market Cross Venue","deprecated":null,"version":null,"sidebarTitle":"Market cross venue","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/cross-venue","href":"/api-docs/openapi/market-cross-venue"}]},{"group":"Events","icon":"calendar-days","expanded":false,"pages":[{"title":"List Events","deprecated":null,"version":null,"sidebarTitle":"List events","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events","href":"/api-docs/openapi/list-events"},{"title":"Trending Events","deprecated":null,"version":null,"sidebarTitle":"Trending events","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/trending","href":"/api-docs/openapi/trending-events"},{"title":"Get Event","deprecated":null,"version":null,"sidebarTitle":"Get event","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/{slug}","href":"/api-docs/openapi/get-event"},{"title":"Event Cross Venue","deprecated":null,"version":null,"sidebarTitle":"Event cross venue","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/{slug}/cross-venue","href":"/api-docs/openapi/event-cross-venue"}]},{"group":"Traders","icon":"users","expanded":false,"pages":[{"title":"List Traders","deprecated":null,"version":null,"sidebarTitle":"List traders","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders","href":"/api-docs/openapi/list-traders"},{"title":"Top Traders","deprecated":null,"version":null,"sidebarTitle":"Top traders","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/top","href":"/api-docs/openapi/top-traders"},{"title":"Get Trader","deprecated":null,"version":null,"sidebarTitle":"Get trader","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}","href":"/api-docs/openapi/get-trader"},{"title":"Trader Positions","deprecated":null,"version":null,"sidebarTitle":"Trader positions","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/positions","href":"/api-docs/openapi/trader-positions"},{"title":"Trader Trades","deprecated":null,"version":null,"sidebarTitle":"Trader trades","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/trades","href":"/api-docs/openapi/trader-trades"},{"title":"Trader Activity","deprecated":null,"version":null,"sidebarTitle":"Trader activity","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/activity","href":"/api-docs/openapi/trader-activity"},{"title":"Trader Pnl History","deprecated":null,"version":null,"sidebarTitle":"Trader pnl history","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/pnl-history","href":"/api-docs/openapi/trader-pnl-history"},{"title":"Trader Category Stats","deprecated":null,"version":null,"sidebarTitle":"Trader category stats","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/category-stats","href":"/api-docs/openapi/trader-category-stats"},{"title":"Trader Trade Stats","deprecated":null,"version":null,"sidebarTitle":"Trader trade stats","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/trade-stats","href":"/api-docs/openapi/trader-trade-stats"},{"title":"Trader Score","deprecated":null,"version":null,"sidebarTitle":"Trader score","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/score","href":"/api-docs/openapi/trader-score"}]},{"group":"Analytics","icon":"chart-pie","expanded":false,"pages":[{"title":"Analytics Overview","deprecated":null,"version":null,"sidebarTitle":"Analytics overview","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/analytics/overview","href":"/api-docs/openapi/analytics-overview"},{"title":"Analytics Market Signals","deprecated":null,"version":null,"sidebarTitle":"Analytics market signals","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/analytics/market-signals","href":"/api-docs/openapi/analytics-market-signals"},{"title":"Venue Volume","deprecated":null,"version":null,"sidebarTitle":"Venue volume","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/volume","href":"/api-docs/openapi/venue-volume"},{"title":"Get Venue Volume","deprecated":null,"version":null,"sidebarTitle":"Get venue volume","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/volume/{venue}","href":"/api-docs/openapi/get-venue-volume"}]},{"group":"Search","icon":"magnifying-glass","expanded":false,"pages":[{"title":"Search","deprecated":null,"version":null,"sidebarTitle":"Search","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/search","href":"/api-docs/openapi/search"}]}]},{"group":"Account","pages":[{"group":"Usage","icon":"gauge","expanded":false,"pages":[{"title":"Get Credit Usage","deprecated":null,"version":null,"sidebarTitle":"Get credit usage","openapi":"/api-docs/api-reference/openapi.json get /v1/usage/credits","href":"/api-docs/openapi/get-credit-usage"}]},{"group":"Status","icon":"heart-pulse","expanded":false,"pages":[{"title":"Get Api Status","deprecated":null,"version":null,"sidebarTitle":"Get api status","openapi":"/api-docs/api-reference/openapi.json get /v1/status","href":"/api-docs/openapi/get-api-status"}]}]}]},{"tab":"Changelog","icon":"code-branch","pages":[{"title":"Changelog","href":"/api-docs/changelog"}]}]},"basePath":"","title":"Get Wallet Defi","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}