Returns the spot positions of the requested wallets, with one row per chain, wallet and token. wallets takes 1 to 100 comma-separated addresses, and chains limits results to specific chains.
sort is field:asc or field:desc, where field is value, pnl, pnlPct, openedAt or closedAt. The default is value:desc for open positions and closedAt:desc for closed positions.
A page contains positions, nextCursor, hasMore, asOf and counts. counts.spot is the number of open and closed positions. It ignores lifecycle, the hide… parameters, q, chain and token, so it stays the same across all pages of one request.Holdings are valued at the token’s latest price. value, unrealizedPnl, totalPnl and pnlPct are null for a token with no market record, and pnlPct is also null for a position with no invested cost. version orders the changes to a position, and the highest version is the current one. The spot.positions stream follows the same rule.
Send nextCursor back exactly as received. A cursor encodes the filters and sort of the request that produced it, so a cursor sent with different filters returns 400 VALIDATION_ERROR.
No wallet or more than 100; a malformed wallet or token address; chain without token, or the reverse; an unknown sort; a cursor from other filters; or an unknown parameter
Send an API key, or a session token a key minted, as Authorization: Bearer <credential>. A browser opening /v1/stream offers its session token in Sec-WebSocket-Protocol instead.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Metastreams API","description":"Real-time and historical spot market data: tokens, OHLCV candles, trades, discovery boards and live streams.","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1D4ED8"},"favicon":"https://mintcdn.com/metastreams-prod/JdlWV-spcCy8pt8j/favicon.svg?fit=max\u0026auto=format\u0026n=JdlWV-spcCy8pt8j\u0026q=85\u0026s=c7cd89b16d24d9370f0522e9a010f5af","contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"metastreams-prod","hasAudioNarration":false,"actualSubdomain":"metastreams-prod","customDomains":["docs.metastreams.io"],"gitSource":{"type":"github","owner":"tradeonapex","repo":"metastreams-docs","deployBranch":"production","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ac3f33ac249ebd4bbff8158","collectionId":"b571c6d0-031d-41d2-a605-981f75eca985","liveDeploymentHistoryId":"6ac3f33ac249ebd4bbff8158","schemaVersion":"v3"},"entitlements":{},"buildId":"6ade50f9b128bc39b5e6911b","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Docs","count":16},{"language":"default","tag":"API reference","count":13},{"language":"default","tag":"REST","count":10},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Streams","count":4},{"language":"default","tag":"Core concepts","count":3},{"language":"default","tag":"Recipes","count":3},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Migration guides","count":2},{"language":"default","tag":"trades","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"reference/rest/positions","slug":"/reference/rest/positions","pageMetadata":{"title":"Positions","description":"Returns the spot positions of one or more wallets, with cost basis and PnL.","openapi":"specs/openapi.json GET /v1/positions","href":"/reference/rest/positions"},"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: \"Returns the spot positions of one or more wallets, with cost basis and PnL.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the spot positions of the requested wallets, with one row per chain, wallet and token. `,_jsx(_components.code,{children:`wallets`}),` takes 1 to 100 comma-separated addresses, and `,_jsx(_components.code,{children:`chains`}),` limits results to specific chains.`]}),`\n`,_jsx(Heading,{level:`2`,id:`filters`,children:`Filters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lifecycle`}),` selects `,_jsx(_components.code,{children:`open`}),` positions (the default) or `,_jsx(_components.code,{children:`closed`}),` positions.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideLowLiquidity`}),` excludes open positions in tokens with under $1,000 of liquidity. The default is `,_jsx(_components.code,{children:`true`}),`; send `,_jsx(_components.code,{children:`false`}),` to include every position.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideDust`}),` excludes open positions worth under $1. The default is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideTransfers`}),` excludes positions not opened by a buy, such as airdrops. The default is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`token`}),` together limit results to one token’s positions and must be sent together.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`q`}),` matches tokens whose symbol or name contains the value, case-insensitively.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`sort`,children:`Sort`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sort`}),` is `,_jsx(_components.code,{children:`field:asc`}),` or `,_jsx(_components.code,{children:`field:desc`}),`, where `,_jsx(_components.code,{children:`field`}),` is `,_jsx(_components.code,{children:`value`}),`, `,_jsx(_components.code,{children:`pnl`}),`, `,_jsx(_components.code,{children:`pnlPct`}),`, `,_jsx(_components.code,{children:`openedAt`}),` or `,_jsx(_components.code,{children:`closedAt`}),`. The default is `,_jsx(_components.code,{children:`value:desc`}),` for open positions and `,_jsx(_components.code,{children:`closedAt:desc`}),` for closed positions.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`A page contains `,_jsx(_components.code,{children:`positions`}),`, `,_jsx(_components.code,{children:`nextCursor`}),`, `,_jsx(_components.code,{children:`hasMore`}),`, `,_jsx(_components.code,{children:`asOf`}),` and `,_jsx(_components.code,{children:`counts`}),`. `,_jsx(_components.code,{children:`counts.spot`}),` is the number of open and closed positions. It ignores `,_jsx(_components.code,{children:`lifecycle`}),`, the `,_jsx(_components.code,{children:`hide…`}),` parameters, `,_jsx(_components.code,{children:`q`}),`, `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`token`}),`, so it stays the same across all pages of one request.`]}),`\n`,_jsxs(_components.p,{children:[`Holdings are valued at the token’s latest price. `,_jsx(_components.code,{children:`value`}),`, `,_jsx(_components.code,{children:`unrealizedPnl`}),`, `,_jsx(_components.code,{children:`totalPnl`}),` and `,_jsx(_components.code,{children:`pnlPct`}),` are `,_jsx(_components.code,{children:`null`}),` for a token with no market record, and `,_jsx(_components.code,{children:`pnlPct`}),` is also `,_jsx(_components.code,{children:`null`}),` for a position with no invested cost. `,_jsx(_components.code,{children:`version`}),` orders the changes to a position, and the highest version is the current one. The `,_jsx(_components.a,{href:`/reference/streams/spot-positions`,children:_jsx(_components.code,{children:`spot.positions`})}),` stream follows the same rule.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`nextCursor`}),` back exactly as received. A cursor encodes the filters and sort of the request that produced it, so a cursor sent with different filters returns `,_jsx(_components.code,{children:`400 VALIDATION_ERROR`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UNSUPPORTED_CHAIN`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`chains`}),` or `,_jsx(_components.code,{children:`chain`}),` value is not a supported slug`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[`No wallet or more than 100; a malformed wallet or token address; `,_jsx(_components.code,{children:`chain`}),` without `,_jsx(_components.code,{children:`token`}),`, or the reverse; an unknown sort; a cursor from other filters; or an unknown parameter`]})]})]})]})]})}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":"Positions","description":"Returns the spot positions of one or more wallets, with cost basis and PnL.","openapi":"specs/openapi.json GET /v1/positions","href":"/reference/rest/positions"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,RequestExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the spot positions of the requested wallets, with one row per chain, wallet and token. `,_jsx(_components.code,{children:`wallets`}),` takes 1 to 100 comma-separated addresses, and `,_jsx(_components.code,{children:`chains`}),` limits results to specific chains.`]}),`\n`,_jsx(Heading,{level:`2`,id:`filters`,children:`Filters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lifecycle`}),` selects `,_jsx(_components.code,{children:`open`}),` positions (the default) or `,_jsx(_components.code,{children:`closed`}),` positions.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideLowLiquidity`}),` excludes open positions in tokens with under $1,000 of liquidity. The default is `,_jsx(_components.code,{children:`true`}),`; send `,_jsx(_components.code,{children:`false`}),` to include every position.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideDust`}),` excludes open positions worth under $1. The default is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hideTransfers`}),` excludes positions not opened by a buy, such as airdrops. The default is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`token`}),` together limit results to one token’s positions and must be sent together.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`q`}),` matches tokens whose symbol or name contains the value, case-insensitively.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`sort`,children:`Sort`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sort`}),` is `,_jsx(_components.code,{children:`field:asc`}),` or `,_jsx(_components.code,{children:`field:desc`}),`, where `,_jsx(_components.code,{children:`field`}),` is `,_jsx(_components.code,{children:`value`}),`, `,_jsx(_components.code,{children:`pnl`}),`, `,_jsx(_components.code,{children:`pnlPct`}),`, `,_jsx(_components.code,{children:`openedAt`}),` or `,_jsx(_components.code,{children:`closedAt`}),`. The default is `,_jsx(_components.code,{children:`value:desc`}),` for open positions and `,_jsx(_components.code,{children:`closedAt:desc`}),` for closed positions.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`A page contains `,_jsx(_components.code,{children:`positions`}),`, `,_jsx(_components.code,{children:`nextCursor`}),`, `,_jsx(_components.code,{children:`hasMore`}),`, `,_jsx(_components.code,{children:`asOf`}),` and `,_jsx(_components.code,{children:`counts`}),`. `,_jsx(_components.code,{children:`counts.spot`}),` is the number of open and closed positions. It ignores `,_jsx(_components.code,{children:`lifecycle`}),`, the `,_jsx(_components.code,{children:`hide…`}),` parameters, `,_jsx(_components.code,{children:`q`}),`, `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`token`}),`, so it stays the same across all pages of one request.`]}),`\n`,_jsxs(_components.p,{children:[`Holdings are valued at the token’s latest price. `,_jsx(_components.code,{children:`value`}),`, `,_jsx(_components.code,{children:`unrealizedPnl`}),`, `,_jsx(_components.code,{children:`totalPnl`}),` and `,_jsx(_components.code,{children:`pnlPct`}),` are `,_jsx(_components.code,{children:`null`}),` for a token with no market record, and `,_jsx(_components.code,{children:`pnlPct`}),` is also `,_jsx(_components.code,{children:`null`}),` for a position with no invested cost. `,_jsx(_components.code,{children:`version`}),` orders the changes to a position, and the highest version is the current one. The `,_jsx(_components.a,{href:`/reference/streams/spot-positions`,children:_jsx(_components.code,{children:`spot.positions`})}),` stream follows the same rule.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`nextCursor`}),` back exactly as received. A cursor encodes the filters and sort of the request that produced it, so a cursor sent with different filters returns `,_jsx(_components.code,{children:`400 VALIDATION_ERROR`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UNSUPPORTED_CHAIN`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`chains`}),` or `,_jsx(_components.code,{children:`chain`}),` value is not a supported slug`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[`No wallet or more than 100; a malformed wallet or token address; `,_jsx(_components.code,{children:`chain`}),` without `,_jsx(_components.code,{children:`token`}),`, or the reverse; an unknown sort; a cursor from other filters; or an unknown parameter`]})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026chains=solana\u0026sort=pnl:desc\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Closed`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026lifecycle=closed\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`15`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.metastreams.io/v1/positions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`searchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wallets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`searchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cursor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`searchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`HTTP \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` page`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` position`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`positions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`symbol`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`usd`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cursor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`hasMore`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`nextCursor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Rust`,numberOfLines:`23`,language:`rust`,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:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` serde_json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` std`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` reqwest`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` mut`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cursor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Option`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`loop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` mut`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.metastreams.io/v1/positions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wallets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`bearer_auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Some`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)]);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error_for_status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` position`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"positions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`as_array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`into_iter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`flatten`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` println!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{} {}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`as_str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unwrap_or_default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`as_str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unwrap_or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"null\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hasMore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cursor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nextCursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`as_str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}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":"Positions","description":"Returns the spot positions of one or more wallets, with cost basis and PnL.","openapi":"specs/openapi.json GET /v1/positions","href":"/reference/rest/positions"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Filters","slug":"filters","depth":2,"children":[]},{"title":"Sort","slug":"sort","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Pagination","slug":"pagination","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026#x26;chains=solana\u0026#x26;sort=pnl:desc\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Closed","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026#x26;lifecycle=closed\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"TypeScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> URL\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.metastreams.io/v1/positions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">searchParams\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"wallets\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">searchParams\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"chains\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"solana\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">process\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> };\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">let\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> cursor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> string\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> |\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> null\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">do\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">searchParams\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cursor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> });\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ok\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`HTTP \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">status\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> page\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> position\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> of\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">positions\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">position\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">token\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">symbol\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">position\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">value\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">?.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">usd\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> cursor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">hasMore\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> ?\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">nextCursor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">} \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">while\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Rust","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"rust\">\u003ccode language=\"rust\" numberOfLines=\"23\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">use\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> serde_json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Value\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">let\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> key\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> std\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">env\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">var\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">?\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">let\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> reqwest\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">new\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">let\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> mut\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> cursor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Option\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\u0026#x3C;\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">String\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">> \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> None\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">loop\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> let\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> mut\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> request\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">get\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.metastreams.io/v1/positions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">query\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x26;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"wallets\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">), (\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"chains\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"solana\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)])\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">bearer_auth\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x26;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">key\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> let\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Some\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> \u0026#x26;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> request\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> request\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">query\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x26;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cursor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">cursor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)]);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> let\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Value\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> request\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">send\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">?.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">error_for_status\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">?.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">?\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> position\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> in\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"positions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">as_array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">into_iter\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">flatten\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> println!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"{} {}\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">position\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"symbol\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">as_str\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">unwrap_or_default\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(), \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">position\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"usd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">as_str\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">unwrap_or\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"null\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hasMore\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> break\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> cursor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> page\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"nextCursor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">as_str\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">String\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">::\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">from\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["wallets"],"summary":"One page of the named wallets' spot positions.","description":"Returns the spot positions of one or more wallets, with cost basis and PnL.","operationId":"wallet_positions","parameters":["7d25ef31-9cb8-45b1-b832-49fe09f40a59","b03317b7-5b62-412d-8a90-16e8c13fa52b","5758227f-3614-4e6f-9763-471cbe35a574","7cd6a6d0-b711-480d-901a-488cf248e965","9cbf2a07-3015-44f3-82b7-70529d71af4f","7bb4556d-36d7-4d8d-9347-9cd9ee013be4","81b23489-ee02-4d50-a4c6-2ade71c7827f","e2be418e-f46f-4ec8-8034-b8ae625e34a4","82d94474-1ac0-4d3e-905a-661a0f0fad33","d258e62d-9996-49e2-88ee-84e7c8ceb7a6","739318de-3588-467e-b302-79734a08e74c","1384ca72-509d-4a26-b43e-9a77ffb52f8f"],"responses":{"200":"559b318a-48b4-4ff9-9913-42d96f0e7004","400":"a7782c4c-9cb7-4e31-87d3-0092c5f5a8c1","401":"1e3825d3-a07e-4ecd-985f-52cde01106fc","402":"10f34b2c-6e59-4651-9e0a-d06ee76d6f62","403":"e1989bf0-d532-4b26-bb68-14ed552f782d","429":"2d5c9b7c-53cc-4af9-950d-d44523c608d7","500":"a2ada134-98ad-4162-9595-5941ec87dc07","503":"6d83ff68-a52d-45bd-ae5a-1c1ceecdae94"},"method":"get","type":"path","servers":["583dafd9-2e40-4bab-8b7e-b807c8f219de"],"security":["744ac6ae-8a74-4d87-a0bd-0a1d1cf62a38"],"path":"/v1/positions","baseUrlOptions":["https://{host}"],"title":"One page of the named wallets' spot positions.","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"2","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026chains=solana\u0026sort=pnl:desc\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"2","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.metastreams.io/v1/positions?wallets=7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\u0026lifecycle=closed\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n"]}}}},"filename":"Closed"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"15","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" url"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" URL"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://api.metastreams.io/v1/positions\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"url"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"searchParams"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"set"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"wallets\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"url"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"searchParams"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"set"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"chains\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"solana\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" headers"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Authorization:"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" `Bearer "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"process"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"env"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":"API_KEY"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" };"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" cursor"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" string"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" |"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" null"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"do"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" if"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"url"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"searchParams"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"set"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"cursor\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"url"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", { "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"headers"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" });"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" if"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"!"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"ok"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"throw"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Error"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`HTTP "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"status"}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`"}},{"type":"span","key":"18","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" page"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" response"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"json"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" for"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" position"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" of"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"positions"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"position"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"token"}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"symbol"}},{"type":"span","key":"18","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"19","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"position"}},{"type":"span","key":"20","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"21","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"value"}},{"type":"span","key":"22","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"?."}},{"type":"span","key":"23","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"usd"}},{"type":"span","key":"24","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" cursor"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"hasMore"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ?"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"nextCursor"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" null"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"} "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"while"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"TypeScript"},{"dropdown":false,"language":"rust","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"rust","children":{"type":"code","key":null,"ref":null,"props":{"language":"rust","numberOfLines":"23","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"use"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" serde_json"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"Value"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" key"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" std"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"env"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"var"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"API_KEY\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"?"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" reqwest"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"Client"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"new"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" mut"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" cursor"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Option"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\u003c"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"String"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"> "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" None"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"loop"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" mut"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" request"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" client"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ."}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"get"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://api.metastreams.io/v1/positions\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ."}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"query"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"\u0026"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"[("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"wallets\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"), ("}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"chains\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"solana\""}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")])"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ."}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"bearer_auth"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"\u0026"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"key"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" if"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" let"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Some"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" \u0026"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" request"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" request"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"query"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"\u0026"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"[("}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"cursor\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"cursor"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")]);"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" let"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":":"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Value"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" request"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"send"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"?."}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"error_for_status"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"?."}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"json"}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"18","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"19","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"?"}},{"type":"span","key":"20","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" for"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" position"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" in"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"positions\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"as_array"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"into_iter"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"flatten"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"() {"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" println!"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"{} {}\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"position"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"token\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]["}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"symbol\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"as_str"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"unwrap_or_default"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(), "}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"position"}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"18","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"value\""}},{"type":"span","key":"19","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]["}},{"type":"span","key":"20","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"usd\""}},{"type":"span","key":"21","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"22","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"23","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"as_str"}},{"type":"span","key":"24","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"25","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"26","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"unwrap_or"}},{"type":"span","key":"27","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"28","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"null\""}},{"type":"span","key":"29","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"));"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" if"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"hasMore\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"] "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"!="}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" true"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" break"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" cursor"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" page"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"nextCursor\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"as_str"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"map"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"String"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"::"}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"from"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Rust"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{"7d25ef31-9cb8-45b1-b832-49fe09f40a59":{"name":"wallets","in":"query","description":"Wallet addresses, CSV; one to 100.","required":true,"schema":{"type":"string","isRequired":true,"description":"Wallet addresses, CSV; one to 100.","uniqueKey":"","typeLabel":"string"},"example":"9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"},"b03317b7-5b62-412d-8a90-16e8c13fa52b":{"name":"chains","in":"query","description":"Chains to scope to, CSV of the chain slugs. Absent means every spot chain.","required":false,"schema":{"type":"string","isRequired":false,"description":"Chains to scope to, CSV of the chain slugs. Absent means every spot chain.","uniqueKey":"","typeLabel":"string"},"example":"solana,base"},"5758227f-3614-4e6f-9763-471cbe35a574":{"name":"lifecycle","in":"query","description":"Lifecycle to list; `open` when absent.","required":false,"schema":{"type":"string","description":"Lifecycle to list; `open` when absent.\nA position's current-cycle lifecycle.","enum":["open","closed"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"7cd6a6d0-b711-480d-901a-488cf248e965":{"name":"hideLowLiquidity","in":"query","description":"Drop open positions whose token liquidity is below the low-liquidity floor.","required":false,"schema":{"type":"boolean","default":true,"isRequired":false,"description":"Drop open positions whose token liquidity is below the low-liquidity floor.","uniqueKey":"","typeLabel":"boolean"}},"9cbf2a07-3015-44f3-82b7-70529d71af4f":{"name":"hideDust","in":"query","description":"Drop open positions whose remaining value is below the dust floor.","required":false,"schema":{"type":"boolean","isRequired":false,"description":"Drop open positions whose remaining value is below the dust floor.","uniqueKey":"","typeLabel":"boolean"}},"7bb4556d-36d7-4d8d-9347-9cd9ee013be4":{"name":"hideTransfers","in":"query","description":"Drop positions never acquired through a buy.","required":false,"schema":{"type":"boolean","isRequired":false,"description":"Drop positions never acquired through a buy.","uniqueKey":"","typeLabel":"boolean"}},"81b23489-ee02-4d50-a4c6-2ade71c7827f":{"name":"chain","in":"query","description":"Exact-token drill-down chain; requires `token`.","required":false,"schema":{"type":"string","isRequired":false,"description":"Exact-token drill-down chain; requires `token`.","uniqueKey":"","typeLabel":"string"},"example":"solana"},"e2be418e-f46f-4ec8-8034-b8ae625e34a4":{"name":"token","in":"query","description":"Exact-token drill-down address; requires `chain`.","required":false,"schema":{"type":"string","isRequired":false,"description":"Exact-token drill-down address; requires `chain`.","uniqueKey":"","typeLabel":"string"}},"82d94474-1ac0-4d3e-905a-661a0f0fad33":{"name":"q","in":"query","description":"Case-insensitive substring of the token symbol or name.","required":false,"schema":{"type":"string","isRequired":false,"description":"Case-insensitive substring of the token symbol or name.","uniqueKey":"","typeLabel":"string"}},"d258e62d-9996-49e2-88ee-84e7c8ceb7a6":{"name":"sort","in":"query","description":"Sort field and direction, `field:asc|desc`. `value:desc` when absent, `closedAt:desc` for closed.","required":false,"schema":{"type":"string","isRequired":false,"description":"Sort field and direction, `field:asc|desc`. `value:desc` when absent, `closedAt:desc` for closed.","uniqueKey":"","typeLabel":"string"},"example":"value:desc"},"739318de-3588-467e-b302-79734a08e74c":{"name":"limit","in":"query","description":"Rows per page, clamped to 1-100; 50 when absent.","required":false,"schema":{"type":"integer","format":"int32","maximum":100,"minimum":1,"isRequired":false,"description":"Rows per page, clamped to 1-100; 50 when absent.","uniqueKey":"","typeLabel":"integer\u003cint32>"}},"1384ca72-509d-4a26-b43e-9a77ffb52f8f":{"name":"cursor","in":"query","description":"Opaque cursor from the previous page.","required":false,"schema":{"type":"string","isRequired":false,"description":"Opaque cursor from the previous page.","uniqueKey":"","typeLabel":"string"}}},"responses":{"559b318a-48b4-4ff9-9913-42d96f0e7004":{"description":"One page of the named wallets' positions. The price-derived fields are `null` for a token without a price.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"One page of the named wallets' positions.","required":["positions","hasMore","asOf","counts"],"properties":{"asOf":{"type":"integer","format":"int64","description":"Serve-time snapshot timestamp.","isRequired":true,"uniqueKey":"asOf","typeLabel":"integer\u003cint64>"},"counts":{"type":"object","description":"Per-product counts, taken before the lifecycle, display, search and drill-down filters.","required":["spot"],"properties":{"spot":{"type":"object","description":"Spot counts.","required":["open","closed"],"properties":{"closed":{"type":"integer","format":"int64","description":"Closed positions.","minimum":0,"isRequired":true,"uniqueKey":"counts.spot.closed","typeLabel":"integer\u003cint64>"},"open":{"type":"integer","format":"int64","description":"Open positions.","minimum":0,"isRequired":true,"uniqueKey":"counts.spot.open","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"counts.spot","typeLabel":"object"}},"isRequired":true,"uniqueKey":"counts","typeLabel":"object"},"hasMore":{"type":"boolean","description":"Whether a next page exists.","isRequired":true,"uniqueKey":"hasMore","typeLabel":"boolean"},"positions":{"type":"array","items":{"type":"object","description":"One wallet's spot position in one token, priced at the token's latest price.","required":["product","chain","walletAddress","token","status","isTransfer","isStablecoin","holdings","holdingsPctSupply","avgCost","invested","received","realizedPnl","fees","buyCount","sellCount","tokensBought","tokensSold","openedAt","updatedAt","version","lifetime","funding"],"properties":{"avgCost":{"type":"object","description":"Per-token average entry cost.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].avgCost.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].avgCost.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].avgCost.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].avgCost.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].avgCost","typeLabel":"object"},"buyCount":{"type":"integer","format":"int64","description":"Buy-side trade count this cycle.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].buyCount","typeLabel":"integer\u003cint64>"},"chain":{"type":"string","description":"Chain the position is on.","enum":["solana","base","bsc","robinhood","arc"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].chain","typeLabel":"enum\u003cstring>"},"fees":{"type":"object","description":"Fees paid this cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].fees.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].fees.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].fees.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].fees.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].fees","typeLabel":"object"},"funding":{"type":"object","description":"The wallet's first inbound funding. Every position of one wallet carries the same value.","required":["status"],"properties":{"status":{"type":"string","description":"Whether the lookup has settled.","enum":["unresolved","resolved"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].funding.status","typeLabel":"enum\u003cstring>"},"address":{"oneOf":[{"type":"string","description":"Funder wallet or exchange address.","uniqueKey":"positions.items.[INDEX].funding.address.oneOf.0","typeLabel":"string"},{"type":"null","description":"Funder wallet or exchange address.","uniqueKey":"positions.items.[INDEX].funding.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].funding.address","typeLabel":"string | null"},"amount":{"oneOf":[{"type":"null","description":"Amount received, denominated in `asset`.","uniqueKey":"positions.items.[INDEX].funding.amount.oneOf.0","typeLabel":"null"},{"type":"string","description":"Amount received, denominated in `asset`.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].funding.amount.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].funding.amount","typeLabel":"null | string\u003cdecimal>"},"asset":{"oneOf":[{"type":"string","description":"Asset the funding moved; `null` for the chain's native asset.","uniqueKey":"positions.items.[INDEX].funding.asset.oneOf.0","typeLabel":"string"},{"type":"null","description":"Asset the funding moved; `null` for the chain's native asset.","uniqueKey":"positions.items.[INDEX].funding.asset.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].funding.asset","typeLabel":"string | null"},"sourceKind":{"oneOf":[{"type":"null","description":"What the funder is (exchange, bridge, wallet, …).","uniqueKey":"positions.items.[INDEX].funding.sourceKind.oneOf.0","typeLabel":"null"},{"type":"string","description":"What the funder is (exchange, bridge, wallet, …).","enum":["cex","wallet"],"uniqueKey":"positions.items.[INDEX].funding.sourceKind.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"positions.items.[INDEX].funding.sourceKind","typeLabel":"null | enum\u003cstring>"},"sourceLabel":{"oneOf":[{"type":"string","description":"Display label for the funder, e.g. an exchange name.","uniqueKey":"positions.items.[INDEX].funding.sourceLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display label for the funder, e.g. an exchange name.","uniqueKey":"positions.items.[INDEX].funding.sourceLabel.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].funding.sourceLabel","typeLabel":"string | null"},"symbol":{"oneOf":[{"type":"string","description":"Display ticker of `asset`.","uniqueKey":"positions.items.[INDEX].funding.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display ticker of `asset`.","uniqueKey":"positions.items.[INDEX].funding.symbol.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].funding.symbol","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"null","description":"When the funding transfer occurred.","uniqueKey":"positions.items.[INDEX].funding.timestamp.oneOf.0","typeLabel":"null"},{"type":"integer","description":"When the funding transfer occurred.","format":"int64","uniqueKey":"positions.items.[INDEX].funding.timestamp.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"positions.items.[INDEX].funding.timestamp","typeLabel":"null | integer\u003cint64>"},"tx":{"oneOf":[{"type":"string","description":"The funding transaction's signature or hash.","uniqueKey":"positions.items.[INDEX].funding.tx.oneOf.0","typeLabel":"string"},{"type":"null","description":"The funding transaction's signature or hash.","uniqueKey":"positions.items.[INDEX].funding.tx.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].funding.tx","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].funding","typeLabel":"object"},"holdings":{"type":"string","format":"decimal","description":"Current token balance.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].holdings","typeLabel":"string\u003cdecimal>"},"holdingsPctSupply":{"type":"string","format":"decimal","description":"Current holdings as a percent of token supply.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].holdingsPctSupply","typeLabel":"string\u003cdecimal>"},"invested":{"type":"object","description":"Spent acquiring the current cycle's holdings.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].invested.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].invested.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].invested.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].invested.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].invested","typeLabel":"object"},"isStablecoin":{"type":"boolean","description":"Whether the token is a known USD stablecoin; clients render its value but suppress PnL.","isRequired":true,"uniqueKey":"positions.items.[INDEX].isStablecoin","typeLabel":"boolean"},"isTransfer":{"type":"boolean","description":"Whether every unit came without a buy (airdrop, transfer-in).","isRequired":true,"uniqueKey":"positions.items.[INDEX].isTransfer","typeLabel":"boolean"},"lifetime":{"type":"object","description":"Aggregates across every open/close cycle for this `(chain, wallet, token)`.","required":["invested","received","realizedPnl","fees","buyCount","sellCount","cycleCount","winningCycleCount","tokensBought","tokensSold"],"properties":{"buyCount":{"type":"integer","format":"int64","description":"Buy-side trade count across every cycle.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.buyCount","typeLabel":"integer\u003cint64>"},"cycleCount":{"type":"integer","format":"int64","description":"Number of cycles opened.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.cycleCount","typeLabel":"integer\u003cint64>"},"fees":{"type":"object","description":"Total fees paid across every cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.fees.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].lifetime.fees.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].lifetime.fees.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].lifetime.fees.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.fees","typeLabel":"object"},"invested":{"type":"object","description":"Total spent across every cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.invested.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].lifetime.invested.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].lifetime.invested.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].lifetime.invested.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.invested","typeLabel":"object"},"realizedPnl":{"type":"object","description":"Total realized PnL across every cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.realizedPnl.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].lifetime.realizedPnl.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].lifetime.realizedPnl.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].lifetime.realizedPnl.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.realizedPnl","typeLabel":"object"},"received":{"type":"object","description":"Total received from sells across every cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.received.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].lifetime.received.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].lifetime.received.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].lifetime.received.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.received","typeLabel":"object"},"sellCount":{"type":"integer","format":"int64","description":"Sell-side trade count across every cycle.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.sellCount","typeLabel":"integer\u003cint64>"},"tokensBought":{"type":"string","format":"decimal","description":"Tokens bought across every cycle.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.tokensBought","typeLabel":"string\u003cdecimal>"},"tokensSold":{"type":"string","format":"decimal","description":"Tokens sold across every cycle.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.tokensSold","typeLabel":"string\u003cdecimal>"},"winningCycleCount":{"type":"integer","format":"int64","description":"Number of cycles closed with positive realized PnL.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime.winningCycleCount","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].lifetime","typeLabel":"object"},"openedAt":{"type":"integer","format":"int64","description":"When the current cycle opened.","isRequired":true,"uniqueKey":"positions.items.[INDEX].openedAt","typeLabel":"integer\u003cint64>"},"product":{"type":"string","description":"Always `spot` today.","enum":["spot","perps","prediction_markets"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].product","typeLabel":"enum\u003cstring>"},"realizedPnl":{"type":"object","description":"Realized PnL this cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].realizedPnl.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].realizedPnl.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].realizedPnl.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].realizedPnl.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].realizedPnl","typeLabel":"object"},"received":{"type":"object","description":"Received from sells this cycle.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].received.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].received.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].received.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].received.usd","typeLabel":"null | string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].received","typeLabel":"object"},"sellCount":{"type":"integer","format":"int64","description":"Sell-side trade count this cycle.","minimum":0,"isRequired":true,"uniqueKey":"positions.items.[INDEX].sellCount","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"This cycle's lifecycle.","enum":["open","closed"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"token":{"type":"object","description":"The held token.","required":["chain","address"],"properties":{"address":{"type":"string","description":"Token address.","isRequired":true,"uniqueKey":"positions.items.[INDEX].token.address","typeLabel":"string"},"chain":{"type":"string","description":"Chain the token trades on.","enum":["solana","base","bsc","robinhood","arc"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].token.chain","typeLabel":"enum\u003cstring>"},"decimals":{"oneOf":[{"type":"integer","format":"int32","description":"Token decimals.","minimum":0,"uniqueKey":"positions.items.[INDEX].token.decimals.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Token decimals.","minimum":0,"uniqueKey":"positions.items.[INDEX].token.decimals.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].token.decimals","typeLabel":"integer\u003cint32> | null"},"logoUrl":{"oneOf":[{"type":"string","description":"Token logo URL, always `http` or `https`; `null` when the token has none.","uniqueKey":"positions.items.[INDEX].token.logoUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"Token logo URL, always `http` or `https`; `null` when the token has none.","uniqueKey":"positions.items.[INDEX].token.logoUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].token.logoUrl","typeLabel":"string | null"},"marketCap":{"oneOf":[{"type":"null","description":"Current market cap.","uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.0","typeLabel":"null"},{"type":"object","description":"Current market cap.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].token.marketCap.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].token.marketCap","typeLabel":"null | object"},"name":{"oneOf":[{"type":"string","description":"Token name.","uniqueKey":"positions.items.[INDEX].token.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Token name.","uniqueKey":"positions.items.[INDEX].token.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].token.name","typeLabel":"string | null"},"price":{"oneOf":[{"type":"null","description":"Current price.","uniqueKey":"positions.items.[INDEX].token.price.oneOf.0","typeLabel":"null"},{"type":"object","description":"Current price.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].token.price.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].token.price.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].token.price.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].token.price.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].token.price.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].token.price","typeLabel":"null | object"},"symbol":{"oneOf":[{"type":"string","description":"Token symbol.","uniqueKey":"positions.items.[INDEX].token.symbol.oneOf.0","typeLabel":"string"},{"type":"null","description":"Token symbol.","uniqueKey":"positions.items.[INDEX].token.symbol.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].token.symbol","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"positions.items.[INDEX].token","typeLabel":"object"},"tokensBought":{"type":"string","format":"decimal","description":"Tokens bought this cycle.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].tokensBought","typeLabel":"string\u003cdecimal>"},"tokensSold":{"type":"string","format":"decimal","description":"Tokens sold this cycle.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].tokensSold","typeLabel":"string\u003cdecimal>"},"updatedAt":{"type":"integer","format":"int64","description":"Block time of the position's last update. Updates in one second share it.","isRequired":true,"uniqueKey":"positions.items.[INDEX].updatedAt","typeLabel":"integer\u003cint64>"},"version":{"type":"integer","format":"int64","description":"Reconciliation key. A client keeps the highest value per position and discards lower ones.","isRequired":true,"uniqueKey":"positions.items.[INDEX].version","typeLabel":"integer\u003cint64>"},"walletAddress":{"type":"string","description":"The wallet holding this position, lowercase on EVM chains.","isRequired":true,"uniqueKey":"positions.items.[INDEX].walletAddress","typeLabel":"string"},"avgEntryMarketCap":{"oneOf":[{"type":"null","description":"Size-weighted market cap across the position's buys; `null` when none was recorded.","uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.0","typeLabel":"null"},{"type":"object","description":"Size-weighted market cap across the position's buys; `null` when none was recorded.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].avgEntryMarketCap.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].avgEntryMarketCap","typeLabel":"null | object"},"avgExitMarketCap":{"oneOf":[{"type":"null","description":"Size-weighted market cap across the position's sells; `null` when none was recorded.","uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.0","typeLabel":"null"},{"type":"object","description":"Size-weighted market cap across the position's sells; `null` when none was recorded.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].avgExitMarketCap.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].avgExitMarketCap","typeLabel":"null | object"},"closedAt":{"oneOf":[{"type":"null","description":"When the current cycle closed; `null` while open.","uniqueKey":"positions.items.[INDEX].closedAt.oneOf.0","typeLabel":"null"},{"type":"integer","description":"When the current cycle closed; `null` while open.","format":"int64","uniqueKey":"positions.items.[INDEX].closedAt.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"positions.items.[INDEX].closedAt","typeLabel":"null | integer\u003cint64>"},"identities":{"type":"array","items":{"type":"object","description":"One source's resolved profile for a trade's trader.","required":["source"],"properties":{"source":{"type":"string","description":"Who resolved this identity.","enum":["codex","fomo","pump","gmgn","axiom","unknown"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"avatar":{"oneOf":[{"type":"string","description":"CDN URL of the avatar to render; `null` until the picture is mirrored.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].avatar.oneOf.0","typeLabel":"string"},{"type":"null","description":"CDN URL of the avatar to render; `null` until the picture is mirrored.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].avatar.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].avatar","typeLabel":"string | null"},"displayName":{"oneOf":[{"type":"string","description":"Human-readable name to render.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].displayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable name to render.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].displayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].displayName","typeLabel":"string | null"},"farcaster":{"oneOf":[{"type":"string","description":"The wallet's Farcaster handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].farcaster.oneOf.0","typeLabel":"string"},{"type":"null","description":"The wallet's Farcaster handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].farcaster.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].farcaster","typeLabel":"string | null"},"handle":{"oneOf":[{"type":"string","description":"The wallet's handle on the source.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].handle.oneOf.0","typeLabel":"string"},{"type":"null","description":"The wallet's handle on the source.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].handle.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].handle","typeLabel":"string | null"},"telegram":{"oneOf":[{"type":"string","description":"The wallet's Telegram handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].telegram.oneOf.0","typeLabel":"string"},{"type":"null","description":"The wallet's Telegram handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].telegram.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].telegram","typeLabel":"string | null"},"twitter":{"oneOf":[{"type":"string","description":"The wallet's bare X handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].twitter.oneOf.0","typeLabel":"string"},{"type":"null","description":"The wallet's bare X handle, where the source links one.","uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].twitter.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX].twitter","typeLabel":"string | null"}},"uniqueKey":"positions.items.[INDEX].identities.items.[INDEX]","typeLabel":"object"},"description":"The holder's resolved identities, one element per source.","uniqueKey":"positions.items.[INDEX].identities","typeLabel":"object[]"},"pnlPct":{"oneOf":[{"type":"null","description":"`totalPnl.usd` as a percent of `invested.usd`; `null` without a cost basis or `totalPnl`.","uniqueKey":"positions.items.[INDEX].pnlPct.oneOf.0","typeLabel":"null"},{"type":"string","description":"`totalPnl.usd` as a percent of `invested.usd`; `null` without a cost basis or `totalPnl`.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].pnlPct.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].pnlPct","typeLabel":"null | string\u003cdecimal>"},"totalPnl":{"oneOf":[{"type":"null","description":"Realized plus unrealized PnL; `null` when `unrealizedPnl` is.","uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.0","typeLabel":"null"},{"type":"object","description":"Realized plus unrealized PnL; `null` when `unrealizedPnl` is.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].totalPnl.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].totalPnl","typeLabel":"null | object"},"unrealizedPnl":{"oneOf":[{"type":"null","description":"Unrealized PnL on current holdings; `null` when unpriced.","uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.0","typeLabel":"null"},{"type":"object","description":"Unrealized PnL on current holdings; `null` when unpriced.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].unrealizedPnl.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].unrealizedPnl","typeLabel":"null | object"},"value":{"oneOf":[{"type":"null","description":"Current value (`holdings × price`); `null` when unpriced.","uniqueKey":"positions.items.[INDEX].value.oneOf.0","typeLabel":"null"},{"type":"object","description":"Current value (`holdings × price`); `null` when unpriced.","required":["native"],"properties":{"native":{"type":"string","format":"decimal","description":"Value in the owning chain's gas asset.","example":"123.456789","isRequired":true,"uniqueKey":"positions.items.[INDEX].value.oneOf.1.native","typeLabel":"string\u003cdecimal>"},"usd":{"oneOf":[{"type":"null","description":"Value in USD; `null` when the native asset is unpriced.","uniqueKey":"positions.items.[INDEX].value.oneOf.1.usd.oneOf.0","typeLabel":"null"},{"type":"string","description":"Value in USD; `null` when the native asset is unpriced.","format":"decimal","example":"123.456789","uniqueKey":"positions.items.[INDEX].value.oneOf.1.usd.oneOf.1","typeLabel":"string\u003cdecimal>"}],"uniqueKey":"positions.items.[INDEX].value.oneOf.1.usd","typeLabel":"null | string\u003cdecimal>"}},"uniqueKey":"positions.items.[INDEX].value.oneOf.1","typeLabel":"object"}],"uniqueKey":"positions.items.[INDEX].value","typeLabel":"null | object"}},"uniqueKey":"positions.items.[INDEX]","typeLabel":"object"},"description":"Positions on this page.","isRequired":true,"uniqueKey":"positions","typeLabel":"object[]"},"nextCursor":{"oneOf":[{"type":"string","description":"Cursor for the next page; `null` on the last page.","uniqueKey":"nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor for the next page; `null` on the last page.","uniqueKey":"nextCursor.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextCursor","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"asOf":123,"counts":{"spot":{"closed":1,"open":1}},"hasMore":true,"positions":[{"avgCost":{"native":"123.456789","usd":"123.456789"},"buyCount":1,"chain":"solana","fees":{"native":"123.456789","usd":"123.456789"},"funding":{"status":"unresolved","address":"\u003cstring>","amount":"123.456789","asset":"\u003cstring>","sourceKind":"cex","sourceLabel":"\u003cstring>","symbol":"\u003cstring>","timestamp":123,"tx":"\u003cstring>"},"holdings":"123.456789","holdingsPctSupply":"123.456789","invested":{"native":"123.456789","usd":"123.456789"},"isStablecoin":true,"isTransfer":true,"lifetime":{"buyCount":1,"cycleCount":1,"fees":{"native":"123.456789","usd":"123.456789"},"invested":{"native":"123.456789","usd":"123.456789"},"realizedPnl":{"native":"123.456789","usd":"123.456789"},"received":{"native":"123.456789","usd":"123.456789"},"sellCount":1,"tokensBought":"123.456789","tokensSold":"123.456789","winningCycleCount":1},"openedAt":123,"product":"spot","realizedPnl":{"native":"123.456789","usd":"123.456789"},"received":{"native":"123.456789","usd":"123.456789"},"sellCount":1,"status":"open","token":{"address":"\u003cstring>","chain":"solana","decimals":1,"logoUrl":"\u003cstring>","marketCap":{"native":"123.456789","usd":"123.456789"},"name":"\u003cstring>","price":{"native":"123.456789","usd":"123.456789"},"symbol":"\u003cstring>"},"tokensBought":"123.456789","tokensSold":"123.456789","updatedAt":123,"version":123,"walletAddress":"\u003cstring>","avgEntryMarketCap":{"native":"123.456789","usd":"123.456789"},"avgExitMarketCap":{"native":"123.456789","usd":"123.456789"},"closedAt":123,"identities":[{"source":"codex","avatar":"\u003cstring>","displayName":"\u003cstring>","farcaster":"\u003cstring>","handle":"\u003cstring>","telegram":"\u003cstring>","twitter":"\u003cstring>"}],"pnlPct":"123.456789","totalPnl":{"native":"123.456789","usd":"123.456789"},"unrealizedPnl":{"native":"123.456789","usd":"123.456789"},"value":{"native":"123.456789","usd":"123.456789"}}],"nextCursor":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"a7782c4c-9cb7-4e31-87d3-0092c5f5a8c1":{"description":"Unsupported chain, a malformed wallet or token address, a wallet count outside 1-100, an unpaired drill-down, a bad sort, a cursor of other filters, or a malformed parameter.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1e3825d3-a07e-4ecd-985f-52cde01106fc":{"description":"Missing or invalid credential: an API key, or a session token a key minted.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"10f34b2c-6e59-4651-9e0a-d06ee76d6f62":{"description":"The organization's credits this billing period reach its plan's limit.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e1989bf0-d532-4b26-bb68-14ed552f782d":{"description":"A key whose plan excludes this endpoint gets `FORBIDDEN`. A session token from an\norigin it does not name gets `ORIGIN_NOT_ALLOWED`.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2d5c9b7c-53cc-4af9-950d-d44523c608d7":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."},"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a2ada134-98ad-4162-9595-5941ec87dc07":{"description":"Unexpected server failure.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"6d83ff68-a52d-45bd-ae5a-1c1ceecdae94":{"description":"Dependency down or maintenance.","headers":{"X-Credits-Cost":{"schema":{"type":"integer"},"description":"Credits charged for this request. Zero on any non-2xx. Sent on a metered tier only."},"X-Credits-Remaining":{"schema":{"type":"integer"},"description":"Credit balance after this request. Sent on a metered tier only."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the bucket this request spent from. Not sent with a 401."},"X-Request-ID":{"schema":{"type":"string"},"description":"This request's trace ID. Echoed from the request, or generated when it sent none."}},"content":{"application/json":{"schema":{"type":"object","description":"The complete error response body — every error is exactly this.","required":["error"],"properties":{"error":{"type":"object","description":"The error.","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable. Clients switch on this, never on `message`.","enum":["UNAUTHORIZED","FORBIDDEN","VALIDATION_ERROR","UNSUPPORTED_CHAIN","NOT_FOUND","RATE_LIMITED","CREDITS_EXHAUSTED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","RANGE_TOO_LARGE","INVALID_CREDENTIALS","ORIGIN_NOT_ALLOWED","NOT_ORG_MEMBER","MEMBERSHIP_INACTIVE","EMAIL_NOT_VERIFIED","EMAIL_TAKEN","ALREADY_MEMBER","INVITATION_ALREADY_SENT","INVITATION_ALREADY_ACCEPTED","LAST_ADMIN","CANNOT_REMOVE_SELF","KEY_LIMIT_REACHED","TOKEN_EXPIRED","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","IMAGE_TOO_LARGE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable, written for the integrating developer:\n`[What happened]. [What to do next — if actionable].`","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Optional; shape is fixed per code.","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"744ac6ae-8a74-4d87-a0bd-0a1d1cf62a38":{"bearerKey":{"type":"http","scheme":"bearer","description":"Send an API key, or a session token a key minted, as `Authorization: Bearer \u003ccredential>`. A browser opening `/v1/stream` offers its session token in `Sec-WebSocket-Protocol` instead.","scopes":[],"schemeName":"bearerKey"}}},"servers":{"583dafd9-2e40-4bab-8b7e-b807c8f219de":{"url":"https://{host}","variables":{"host":{"default":"api.metastreams.io","description":"API host."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Send an API key, or a session token a key minted, as `Authorization: Bearer \u003ccredential>`. A browser opening `/v1/stream` offers its session token in `Sec-WebSocket-Protocol` instead.","scopes":[],"schemeName":"bearerKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send an API key, or a session token a key minted, as `Authorization: Bearer \u003ccredential>`. A browser opening `/v1/stream` offers its session token in `Sec-WebSocket-Protocol` instead.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerKey","name":"Authorization"}],"title":"bearerKey"}]},"originalFileLocation":"specs/openapi.json"},"subdomain":"metastreams-prod","siteName":"Metastreams API","title":"Positions - Metastreams API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-25T18:57:05.691Z","originalFileLocation":"reference/rest/positions.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=\"Returns the spot positions of one or more wallets, with cost basis and PnL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Metastreams API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_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/metastreams-prod/ontrOlgyWPlFJWQ-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Positions - Metastreams API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the spot positions of one or more wallets, with cost basis and PnL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Metastreams API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.metastreams.io/reference/rest/positions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://metastreams-prod.mintlify.app/_mintlify/api/og/v2?division=REST\u0026amp;title=Positions\u0026amp;description=Returns+the+spot+positions+of+one+or+more+wallets%2C+with+cost+basis+and+PnL.\u0026amp;theme=f93f9f41876bb5c60e936f10\u0026amp;signature=7397fd4d27651eb8f61887f161ff3f5648525ee9d36fe7671ba8a584460ad27c\">\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=\"Positions - Metastreams API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the spot positions of one or more wallets, with cost basis and PnL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://metastreams-prod.mintlify.app/_mintlify/api/og/v2?division=REST\u0026amp;title=Positions\u0026amp;description=Returns+the+spot+positions+of+one+or+more+wallets%2C+with+cost+basis+and+PnL.\u0026amp;theme=f93f9f41876bb5c60e936f10\u0026amp;signature=7397fd4d27651eb8f61887f161ff3f5648525ee9d36fe7671ba8a584460ad27c\">\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/metastreams-prod/ontrOlgyWPlFJWQ-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Metastreams API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.metastreams.io/reference/rest/positions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/rest/positions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.metastreams.io/#organization\",\"name\":\"Metastreams API\",\"url\":\"https://docs.metastreams.io\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.metastreams.io#website\",\"name\":\"Metastreams API\",\"url\":\"https://docs.metastreams.io\",\"publisher\":{\"@id\":\"https://docs.metastreams.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.metastreams.io/reference/rest/positions#webpage\",\"url\":\"https://docs.metastreams.io/reference/rest/positions\",\"name\":\"Positions\",\"description\":\"Returns the spot positions of one or more wallets, with cost basis and PnL.\",\"dateModified\":\"2026-10-25T18:57:05.691Z\",\"isPartOf\":{\"@id\":\"https://docs.metastreams.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.metastreams.io/reference/rest/positions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.metastreams.io/reference/rest/positions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST\",\"item\":\"https://docs.metastreams.io/reference/rest/token-details\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Positions\",\"item\":\"https://docs.metastreams.io/reference/rest/positions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.metastreams.io/reference/rest/positions#apireference\",\"headline\":\"Positions\",\"name\":\"Positions\",\"description\":\"Returns the spot positions of one or more wallets, with cost basis and PnL.\",\"url\":\"https://docs.metastreams.io/reference/rest/positions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.metastreams.io/reference/rest/positions#webpage\"},\"dateModified\":\"2026-10-25T18:57:05.691Z\",\"publisher\":{\"@id\":\"https://docs.metastreams.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.metastreams.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Metastreams API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Metastreams API","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API reference","groups":[{"group":"REST","pages":[{"title":"Token details","openapi":"specs/openapi.json GET /v1/tokens/{chain}/{address}","href":"/reference/rest/token-details"},{"title":"OHLCV candles","openapi":"specs/openapi.json GET /v1/tokens/{chain}/{address}/ohlcv","href":"/reference/rest/token-ohlcv"},{"title":"Token trades","openapi":"specs/openapi.json GET /v1/tokens/{chain}/{address}/trades","href":"/reference/rest/token-trades"},{"title":"Token holders","openapi":"specs/openapi.json GET /v1/tokens/{chain}/{address}/holders","href":"/reference/rest/token-holders"},{"title":"Identity trades","openapi":"specs/openapi.json GET /v1/trades","href":"/reference/rest/identity-trades"},{"title":"Discovery boards","openapi":"specs/openapi.json POST /v1/discovery","href":"/reference/rest/discovery"},{"title":"Wallet balances","description":"Returns the latest balance of each wallet and asset, across one or more chains.","openapi":"specs/openapi.json GET /v1/wallets/balances","href":"/reference/rest/wallet-balances"},{"title":"Positions","openapi":"specs/openapi.json GET /v1/positions","href":"/reference/rest/positions"},{"title":"Native prices","description":"Returns the latest USD price of each chain's gas asset.","openapi":"specs/openapi.json GET /v1/native-prices","href":"/reference/rest/native-prices"},{"title":"Trending","openapi":"specs/openapi.json POST /v1/trending","href":"/reference/rest/trending"},{"title":"Session tokens","openapi":"specs/openapi.json POST /v1/session-tokens","href":"/reference/rest/session-tokens"},{"group":"discovery","pages":[{"title":"The discovery boards.","deprecated":null,"version":null,"openapi":"/specs/openapi.json post /v1/discovery","href":"/api-reference/discovery/the-discovery-boards"}]},{"group":"prices","pages":[{"title":"The newest USD price of each chain's gas asset: SOL, ETH or BNB.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/native-prices","href":"/api-reference/prices/the-newest-usd-price-of-each-chains-gas-asset:-sol-eth-or-bnb"}]},{"group":"wallets","pages":[{"title":"One page of the named wallets' spot positions.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/positions","href":"/api-reference/wallets/one-page-of-the-named-wallets-spot-positions"},{"title":"The latest balance of each named wallet, per chain and asset.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/wallets/balances","href":"/api-reference/wallets/the-latest-balance-of-each-named-wallet-per-chain-and-asset"}]},{"group":"sessionTokens","pages":[{"title":"Mint a session token for a browser or app user.","deprecated":null,"version":null,"openapi":"/specs/openapi.json post /v1/session-tokens","href":"/api-reference/sessiontokens/mint-a-session-token-for-a-browser-or-app-user"}]},{"group":"tokens","pages":[{"title":"Token details.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/tokens/{chain}/{address}","href":"/api-reference/tokens/token-details"},{"title":"A token's current holders, largest balance first, optionally narrowed to wallet classifications.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/tokens/{chain}/{address}/holders","href":"/api-reference/tokens/a-tokens-current-holders-largest-balance-first-optionally-narrowed-to-wallet-classifications"}]},{"group":"ohlcv","pages":[{"title":"OHLCV candles at one timeframe, oldest first.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/tokens/{chain}/{address}/ohlcv","href":"/api-reference/ohlcv/ohlcv-candles-at-one-timeframe-oldest-first"}]},{"group":"trades","pages":[{"title":"Recent trades on the token, newest first, optionally narrowed to wallet classifications.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/tokens/{chain}/{address}/trades","href":"/api-reference/trades/recent-trades-on-the-token-newest-first-optionally-narrowed-to-wallet-classifications"},{"title":"Recent trades by a notable identity, across every chain and token.","deprecated":null,"version":null,"openapi":"/specs/openapi.json get /v1/trades","href":"/api-reference/trades/recent-trades-by-a-notable-identity-across-every-chain-and-token"}]},{"group":"trending","pages":[{"title":"Tokens ranked by trending score.","deprecated":null,"version":null,"openapi":"/specs/openapi.json post /v1/trending","href":"/api-reference/trending/tokens-ranked-by-trending-score"}]}]},{"group":"Streams","pages":[{"title":"spot.trades","href":"/reference/streams/spot-trades"},{"title":"spot.transfers","href":"/reference/streams/spot-transfers"},{"title":"spot.candles","href":"/reference/streams/spot-candles"},{"title":"spot.tokens","href":"/reference/streams/spot-tokens"},{"title":"wallet.balances","href":"/reference/streams/wallet-balances"},{"title":"spot.positions","href":"/reference/streams/spot-positions"},{"title":"spot.holders","href":"/reference/streams/spot-holders"},{"title":"chain.nativePrices","href":"/reference/streams/native-prices"},{"title":"spot.trending","href":"/reference/streams/spot-trending"}]}]}]},"title":"Positions - Metastreams API","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}