Returns every onchain trade fill for a wallet — both maker and taker sides, every fill, every counterparty, every fee. Pulled directly from onchain settlement data, never misses a fill. Each trade is enriched with market metadata (question, slug, outcome, image).
Want the entire wallet’s history in one call? Use Trade History (Wallet) — Bulk (Growth plan and above). Returns up to 250K trades in a single response, no pagination.
To walk the entire history, add ?cursor= (empty value) to the first request, then for each next page, copy pagination.cursor from the response back into the URL. Stop when pagination.has_more is false.Three complete copy-paste scripts that walk an entire wallet:
import requestsAPI_KEY = "YOUR_KEY"WALLET = "0xc944d399164b4460a4a79184fc6f419027891e0a"def get_all_trades(wallet): cursor = "" # empty string = first page all_trades = [] while True: r = requests.get( f"https://api.polynode.dev/v2/onchain/wallets/{wallet}/trades", params={"limit": 1000, "cursor": cursor}, headers={"x-api-key": API_KEY}, ).json() all_trades.extend(r["trades"]) if not r["pagination"]["has_more"]: break cursor = r["pagination"]["cursor"] # feed this into the next request return all_tradestrades = get_all_trades(WALLET)print(f"got {len(trades)} trades")
const API_KEY = "YOUR_KEY";const WALLET = "0xc944d399164b4460a4a79184fc6f419027891e0a";async function getAllTrades(wallet) { let cursor = ""; // empty string = first page const allTrades = []; while (true) { const url = `https://api.polynode.dev/v2/onchain/wallets/${wallet}/trades` + `?limit=1000&cursor=${encodeURIComponent(cursor)}`; const r = await fetch(url, { headers: { "x-api-key": API_KEY } }).then(r => r.json()); allTrades.push(...r.trades); if (!r.pagination.has_more) break; cursor = r.pagination.cursor; // feed this into the next request } return allTrades;}const trades = await getAllTrades(WALLET);console.log(`got ${trades.length} trades`);
GET /v2/onchain/wallets/{address}/trades?limit=100GET /v2/onchain/wallets/{address}/trades?limit=1000&cursor=<value-from-prior-response>
Parameter
Type
Location
Description
address
string
path
Wallet address (0x-prefixed, 40 hex chars)
limit
integer
query
Max results per page (default 100, max 1000)
cursor
string
query
Pass empty string ?cursor= for first page, then echo back pagination.cursor from each response. Required to walk past the first page reliably on heavy wallets.
offset
integer
query
Alternative to cursor: skip first N. Fast for the first ~25K results then degrades. Use cursor for anything bigger.
When pagination.has_more is true, the response also includes a pagination.cursor string — pass that as ?cursor=<value> for the next request.
Field
Type
Description
count
integer
Number of trades in this response
pagination.has_more
boolean
true if more pages available — keep paginating
pagination.cursor
string
Pass back as ?cursor=<value> for the next page (only present when has_more is true)
trades[].tx_hash
string
Transaction hash
trades[].timestamp
number
Unix timestamp of the fill
trades[].order_hash
string
Order hash that was filled
trades[].maker
string
Maker wallet address
trades[].taker
string
Taker wallet address
trades[].maker_asset_id
string
Asset the maker provided ("0" = USDC)
trades[].taker_asset_id
string
Asset the taker provided (CTF token ID)
trades[].maker_amount
number
Amount maker provided (USDC)
trades[].taker_amount
number
Amount taker provided (tokens)
trades[].fee
number
Fee paid on this fill (USDC)
trades[].side
string
"maker" or "taker" relative to the queried wallet — exchange role on this fill
trades[].direction
string
"BUY" or "SELL" from the queried wallet’s perspective. BUY = wallet contributed USDC and received outcome tokens. SELL = wallet contributed outcome tokens and received USDC.
Both fields are populated on every row, and they answer different questions:
side = was the wallet the maker (resting limit order) or taker (crossing the spread) on this fill?
direction = did the wallet BUY outcome shares (gave USDC) or SELL them (received USDC)?
You’ll see all four combinations in real wallets — a maker can be a buyer or seller depending on which side of the orderbook they posted to. Same for takers.
Cursor pagination. Pass empty string ?cursor= for the first page, then echo back pagination.cursor from each response. Format: <lastTs>:<lastId>. Each page loads at the same speed regardless of depth — recommended over offset for paging beyond ~25K results.
Response
Trade fills
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PolyNode","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/polynode/zluszUOhqmSDk1RK/images/logo-light.png?fit=max\u0026auto=format\u0026n=zluszUOhqmSDk1RK\u0026q=85\u0026s=fc49b798da5a361cb76f4733f13230dd","dark":"https://mintcdn.com/polynode/zluszUOhqmSDk1RK/images/logo-dark.png?fit=max\u0026auto=format\u0026n=zluszUOhqmSDk1RK\u0026q=85\u0026s=6d316edd9113e88a6c4e2973cc12438d"},"favicon":"https://mintcdn.com/polynode/zluszUOhqmSDk1RK/images/favicon.png?fit=max\u0026auto=format\u0026n=zluszUOhqmSDk1RK\u0026q=85\u0026s=0bf4f722dd9d5dddb849158b764adad4","api":{"playground":{}},"navbar":{"links":[{"href":"https://api.polynode.dev/v1/status","label":"API Status"}],"primary":{"type":"button","label":"Get API Key","href":"https://polynode.dev"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"polynode","hasAudioNarration":false,"actualSubdomain":"polynode","customDomains":["docs.polynode.dev"],"gitSource":{"type":"github","owner":"joinquantish","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aec02b5baf429d562e676ed","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":245},{"language":"default","tag":"Query Catalog","count":67},{"language":"default","tag":"SDKs","count":51},{"language":"default","tag":"Guides","count":35},{"language":"default","tag":"Webhooks","count":26},{"language":"default","tag":"Changelog","count":23},{"language":"default","tag":"Archive","count":22},{"language":"default","tag":"WebSocket","count":21},{"language":"default","tag":"Perps Market Data","count":16},{"language":"default","tag":"Event Types","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/onchain/wallet-trades","slug":"/api-reference/onchain/wallet-trades","pageMetadata":{"title":"Trade History (Wallet)","description":"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.","openapi":"GET /v2/onchain/wallets/{address}/trades","href":"/api-reference/onchain/wallet-trades"},"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: \"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns every onchain trade fill for a wallet — both maker and taker sides, every fill, every counterparty, every fee. Pulled directly from onchain settlement data, never misses a fill. Each trade is enriched with market metadata (question, slug, outcome, image).`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Want the entire wallet’s history in one call?`}),` Use `,_jsx(_components.a,{href:`/api-reference/onchain/wallet-trades-all`,children:`Trade History (Wallet) — Bulk`}),` (Growth plan and above). Returns up to 250K trades in a single response, no pagination.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start-—-get-the-most-recent-100-trades`,children:`Quick start — get the most recent 100 trades`}),`\n`,_jsx(CodeBlock,{filename:``,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.polynode.dev/v2/onchain/wallets/{address}/trades?limit=100\"`}),_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:` \"x-api-key: YOUR_KEY\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Default `,_jsx(_components.code,{children:`limit=100`}),`, max `,_jsx(_components.code,{children:`limit=1000`}),`. That’s all most apps need.`]}),`\n`,_jsx(Heading,{level:`2`,id:`get-every-trade-for-the-wallet-full-history`,children:`Get every trade for the wallet (full history)`}),`\n`,_jsxs(_components.p,{children:[`To walk the entire history, add `,_jsx(_components.code,{children:`?cursor=`}),` (empty value) to the first request, then `,_jsxs(_components.strong,{children:[`for each next page, copy `,_jsx(_components.code,{children:`pagination.cursor`}),` from the response back into the URL`]}),`. Stop when `,_jsx(_components.code,{children:`pagination.has_more`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(_components.p,{children:`Three complete copy-paste scripts that walk an entire wallet:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`22`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`WALLET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0xc944d399164b4460a4a79184fc6f419027891e0a\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` get_all_trades`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wallet`}),_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:` cursor `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # empty string = first page`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_trades `}),_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:` while`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.polynode.dev/v2/onchain/wallets/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`wallet`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/trades\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_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:`: cursor},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_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:` ).json()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_trades.extend(r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"trades\"`}),_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:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"has_more\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cursor `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pagination\"`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# feed this into the next request`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_trades`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`trades `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` get_all_trades(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`WALLET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"got `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(trades)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` trades\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`19`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`19`,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:` API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` WALLET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0xc944d399164b4460a4a79184fc6f419027891e0a\"`}),_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:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getAllTrades`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`wallet`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// empty string = first page`})]}),`\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:` allTrades`}),_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:` while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--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\":`#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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://api.polynode.dev/v2/onchain/wallets/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wallet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/trades`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `?limit=1000\u0026cursor=\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`encodeURIComponent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursor`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_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:` r`}),_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:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allTrades`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_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:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trades`}),_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:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pagination`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`has_more`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`break`}),_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:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pagination`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// feed this into the next request`})]}),`\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:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allTrades`}),_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`,_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:` trades`}),_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:` getAllTrades`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`WALLET`}),_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:`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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`got \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trades`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" trades`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`bash`,numberOfLines:`15`,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:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WALLET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xc944d399164b4460a4a79184fc6f419027891e0a\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TOTAL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`0`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RESP`}),_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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.polynode.dev/v2/onchain/wallets/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$WALLET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/trades?limit=1000\u0026cursor=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CURSOR`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` COUNT`}),_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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$RESP`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import json,sys;print(json.load(sys.stdin)['count'])\"`}),_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:` HAS_MORE`}),_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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$RESP`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import json,sys;print(json.load(sys.stdin)['pagination']['has_more'])\"`}),_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:` TOTAL`}),_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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`TOTAL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` +`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` COUNT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"got `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$COUNT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` trades, total: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOTAL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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\":`#9CDCFE`},children:`$HAS_MORE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"False\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ] \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`break`})]}),`\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\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$RESP`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import json,sys;print(json.load(sys.stdin)['pagination']['cursor'])\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`done`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Each page takes ~1 second regardless of how many trades the wallet has. The loop just keeps running until `,_jsx(_components.code,{children:`has_more`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v2/onchain/wallets/{address}/trades?limit=100`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v2/onchain/wallets/{address}/trades?limit=1000\u0026cursor=\u003cvalue-from-prior-response>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Location`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`path`}),_jsx(_components.td,{children:`Wallet address (0x-prefixed, 40 hex chars)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`query`}),_jsx(_components.td,{children:`Max results per page (default 100, max 1000)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`query`}),_jsxs(_components.td,{children:[`Pass empty string `,_jsx(_components.code,{children:`?cursor=`}),` for first page, then echo back `,_jsx(_components.code,{children:`pagination.cursor`}),` from each response. Required to walk past the first page reliably on heavy wallets.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`offset`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`query`}),_jsxs(_components.td,{children:[`Alternative to cursor: skip first N. Fast for the first ~25K results then degrades. Use `,_jsx(_components.code,{children:`cursor`}),` for anything bigger.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wallet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xc944d399164b4460a4a79184fc6f419027891e0a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"onchain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"has_more\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trades\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tx_hash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x3611178d615caeab8f1fb32bc6232a32aaf93fc1e2f5bc5c9914ce2ddb9a13c3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_hash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x8676e03168a3cbf39bc1c695e9419127605bd070ff26e7cd628b662c363a82b5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1777503244`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xc944d399164b4460a4a79184fc6f419027891e0a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xe111180000d2663c0091e4f400237545b87b996b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maker_asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taker_asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"110959653450933276250915064669875552310439627880508793089816880777942697720191\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maker_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4723.199764`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taker_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4737.412`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"side\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BUY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"market\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US x Iran ceasefire extended by April 22, 2026?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"us-x-iran-ceasefire-extended-by-april-22-2026\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outcome\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://polymarket-upload.s3.us-east-2.amazonaws.com/us-x-iran-ceasefire-by-Cgmx3GCuOwjs.jpg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`pagination.has_more`}),` is `,_jsx(_components.code,{children:`true`}),`, the response also includes a `,_jsx(_components.code,{children:`pagination.cursor`}),` string — pass that as `,_jsx(_components.code,{children:`?cursor=\u003cvalue>`}),` for the next request.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`count`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of trades in this response`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pagination.has_more`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` if more pages available — keep paginating`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pagination.cursor`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Pass back as `,_jsx(_components.code,{children:`?cursor=\u003cvalue>`}),` for the next page (only present when `,_jsx(_components.code,{children:`has_more`}),` is `,_jsx(_components.code,{children:`true`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].tx_hash`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Transaction hash`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].timestamp`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Unix timestamp of the fill`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].order_hash`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Order hash that was filled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].maker`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Maker wallet address`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].taker`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Taker wallet address`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].maker_asset_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Asset the maker provided (`,_jsx(_components.code,{children:`\"0\"`}),` = USDC)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].taker_asset_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Asset the taker provided (CTF token ID)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].maker_amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Amount maker provided (USDC)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].taker_amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Amount taker provided (tokens)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].fee`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Fee paid on this fill (USDC)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].side`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"maker\"`}),` or `,_jsx(_components.code,{children:`\"taker\"`}),` relative to the queried wallet — exchange role on this fill`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].direction`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"BUY\"`}),` or `,_jsx(_components.code,{children:`\"SELL\"`}),` from the queried wallet’s perspective. `,_jsx(_components.code,{children:`BUY`}),` = wallet contributed USDC and received outcome tokens. `,_jsx(_components.code,{children:`SELL`}),` = wallet contributed outcome tokens and received USDC.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].market`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Market question`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].slug`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Market slug`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].outcome`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Outcome label (e.g. “Yes”, “Up”, “Trump”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trades[].image`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Market image URL`})]})]})]}),`\n`,_jsxs(Heading,{level:`2`,id:`side-vs-direction`,children:[_jsx(_components.code,{children:`side`}),` vs `,_jsx(_components.code,{children:`direction`})]}),`\n`,_jsx(_components.p,{children:`Both fields are populated on every row, and they answer different questions:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`side`})}),` = was the wallet the `,_jsx(_components.strong,{children:`maker`}),` (resting limit order) or `,_jsx(_components.strong,{children:`taker`}),` (crossing the spread) on this fill?`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`direction`})}),` = did the wallet `,_jsx(_components.strong,{children:`BUY`}),` outcome shares (gave USDC) or `,_jsx(_components.strong,{children:`SELL`}),` them (received USDC)?`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You’ll see all four combinations in real wallets — a maker can be a buyer or seller depending on which side of the orderbook they posted to. Same for takers.`})]})}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":"Trade History (Wallet)","description":"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.","openapi":"GET /v2/onchain/wallets/{address}/trades","href":"/api-reference/onchain/wallet-trades"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick start — get the most recent 100 trades","slug":"quick-start-—-get-the-most-recent-100-trades","depth":2,"children":[]},{"title":"Get every trade for the wallet (full history)","slug":"get-every-trade-for-the-wallet-full-history","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"side vs direction","slug":"side-vs-direction","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/polynode/0d40c5db9faacad8/slug-calculator.js"],"openApiReferenceData":{"operation":{"tags":["Onchain"],"summary":"Wallet trade history (onchain)","description":"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.","operationId":"onchain_wallet_trades","parameters":["e508d097-b87a-4d52-8d62-928e6c3a5b08","4c1ddc50-cdda-4fdc-a7e7-6dc8411075d1","03088aeb-3368-43ee-a6fe-99a3ab7200c2","b44bc662-95a4-4e71-ba11-fef804b86f48"],"responses":{"200":"b3784e64-8a16-4fa6-acb8-d0fdd8b34232","401":"6ec7b4c6-4e87-4019-ae6f-79b021ce66a9"},"security":["06a3252c-d736-4c45-aa72-34a538ce5a77"],"method":"get","type":"path","servers":["0de2ff18-6d1a-4993-ac05-606e277c043e"],"path":"/v2/onchain/wallets/{address}/trades","baseUrlOptions":["https://api.polynode.dev"],"title":"Wallet trade history (onchain)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e508d097-b87a-4d52-8d62-928e6c3a5b08":{"name":"address","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Wallet address","uniqueKey":"","typeLabel":"string"},"description":"Wallet address"},"4c1ddc50-cdda-4fdc-a7e7-6dc8411075d1":{"name":"limit","in":"query","schema":{"type":"integer","default":100,"description":"Max results (max 1000)","uniqueKey":"","typeLabel":"integer"},"description":"Max results (max 1000)"},"03088aeb-3368-43ee-a6fe-99a3ab7200c2":{"name":"offset","in":"query","schema":{"type":"integer","default":0,"description":"Skip first N results","uniqueKey":"","typeLabel":"integer"},"description":"Skip first N results"},"b44bc662-95a4-4e71-ba11-fef804b86f48":{"name":"cursor","in":"query","schema":{"type":"string","description":"Cursor pagination. Pass empty string `?cursor=` for the first page, then echo back `pagination.cursor` from each response. Format: `\u003clastTs>:\u003clastId>`. Each page loads at the same speed regardless of depth — recommended over offset for paging beyond ~25K results.","uniqueKey":"","typeLabel":"string"},"description":"Cursor pagination. Pass empty string `?cursor=` for the first page, then echo back `pagination.cursor` from each response. Format: `\u003clastTs>:\u003clastId>`. Each page loads at the same speed regardless of depth — recommended over offset for paging beyond ~25K results."}},"responses":{"b3784e64-8a16-4fa6-acb8-d0fdd8b34232":{"description":"Trade fills","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6ec7b4c6-4e87-4019-ae6f-79b021ce66a9":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"06a3252c-d736-4c45-aa72-34a538ce5a77":{"apiKey":{"$ref":"f9239602-c538-4bfb-b836-7bd07b7ef0fe","scopes":[]}}},"servers":{"0de2ff18-6d1a-4993-ac05-606e277c043e":{"url":"https://api.polynode.dev","description":"Production"}}},"originalFileLocation":"openapi.json"},"subdomain":"polynode","siteName":"PolyNode","title":"Trade History (Wallet) - PolyNode","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-01T08:18:43.102Z","originalFileLocation":"api-reference/onchain/wallet-trades.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=\"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PolyNode\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_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/polynode/nh0EcUVk_uYhjcGA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Trade History (Wallet) - PolyNode\">\u003cmeta data-mint-head property=\"og:description\" content=\"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PolyNode\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.polynode.dev/api-reference/onchain/wallet-trades\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://polynode.mintlify.site/_mintlify/api/og/v2?division=Onchain+V2+%28legacy%29\u0026amp;title=Trade+History+%28Wallet%29\u0026amp;description=Complete+onchain+trade+fill+history+for+any+wallet.+Every+fill%2C+every+counterparty%2C+every+fee.\u0026amp;theme=121c1386b08658be3ccff004\u0026amp;signature=adf52d4f173d8899e1b1200db2f6c893cd5e4febec96a197bbf828ba3fdde584\">\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=\"Trade History (Wallet) - PolyNode\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://polynode.mintlify.site/_mintlify/api/og/v2?division=Onchain+V2+%28legacy%29\u0026amp;title=Trade+History+%28Wallet%29\u0026amp;description=Complete+onchain+trade+fill+history+for+any+wallet.+Every+fill%2C+every+counterparty%2C+every+fee.\u0026amp;theme=121c1386b08658be3ccff004\u0026amp;signature=adf52d4f173d8899e1b1200db2f6c893cd5e4febec96a197bbf828ba3fdde584\">\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/polynode/nh0EcUVk_uYhjcGA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PolyNode\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.polynode.dev/api-reference/onchain/wallet-trades\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/onchain/wallet-trades.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.polynode.dev/#organization\",\"name\":\"PolyNode\",\"url\":\"https://docs.polynode.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/polynode/zluszUOhqmSDk1RK/images/logo-light.png?fit=max\u0026auto=format\u0026n=zluszUOhqmSDk1RK\u0026q=85\u0026s=fc49b798da5a361cb76f4733f13230dd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.polynode.dev#website\",\"name\":\"PolyNode\",\"url\":\"https://docs.polynode.dev\",\"publisher\":{\"@id\":\"https://docs.polynode.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades#webpage\",\"url\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades\",\"name\":\"Trade History (Wallet)\",\"description\":\"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\",\"dateModified\":\"2026-05-01T08:18:43.102Z\",\"isPartOf\":{\"@id\":\"https://docs.polynode.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Onchain V2 (legacy)\",\"item\":\"https://docs.polynode.dev/api-reference/onchain/trades\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Trade History (Wallet)\",\"item\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades#apireference\",\"headline\":\"Trade History (Wallet)\",\"name\":\"Trade History (Wallet)\",\"description\":\"Complete onchain trade fill history for any wallet. Every fill, every counterparty, every fee.\",\"url\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades\",\"mainEntityOfPage\":{\"@id\":\"https://docs.polynode.dev/api-reference/onchain/wallet-trades#webpage\"},\"dateModified\":\"2026-05-01T08:18:43.102Z\",\"publisher\":{\"@id\":\"https://docs.polynode.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.polynode.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PolyNode\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PolyNode","nav":{"global":null,"tabs":[{"tab":"WebSocket","pages":[{"title":"WebSocket","href":"/websocket/overview"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"group":"V3 Data API","pages":[{"title":"API Overview","href":"/data/overview"}]},{"group":"Query Catalog","root":{"title":"Query Catalog","href":"/data/query-catalog/overview"},"tag":"Start Here","pages":[{"title":"Trades Query Catalog","href":"/data/query-catalog/trades"},{"title":"All Trades","href":"/data/query-catalog/trades/all-trades"},{"title":"Trades by Wallet","href":"/data/query-catalog/trades/by-wallet"},{"title":"Trades by Order Hash","href":"/data/query-catalog/trades/by-order-hash"},{"title":"Trades by Market Token","href":"/data/query-catalog/trades/by-market-token"},{"title":"Trades by Market Slug","href":"/data/query-catalog/trades/by-market-slug"},{"title":"Wallet Trades by Condition","href":"/data/query-catalog/trades/wallet-by-condition"},{"title":"Wallet Trades Grouped by Order","href":"/data/query-catalog/trades/wallet-grouped-by-order"},{"title":"Builder Trades","href":"/data/query-catalog/trades/by-builder"},{"title":"Combo Wallet Trades","href":"/data/query-catalog/trades/combo-wallet-trades"},{"title":"Positions Query Catalog","href":"/data/query-catalog/positions"},{"title":"Positions by Wallet","href":"/data/query-catalog/positions/by-wallet"},{"title":"Open Wallet Positions","href":"/data/query-catalog/positions/open-wallet-positions"},{"title":"Global Positions","href":"/data/query-catalog/positions/global-positions"},{"title":"Positions by Market Token","href":"/data/query-catalog/positions/by-market-token"},{"title":"Positions by Condition","href":"/data/query-catalog/positions/by-condition"},{"title":"Positions by Market Slug","href":"/data/query-catalog/positions/by-market-slug"},{"title":"Combo Positions","href":"/data/query-catalog/positions/combo-positions"},{"title":"P\u0026L Query Catalog","href":"/data/query-catalog/pnl"},{"title":"Wallet All-Time P\u0026L","href":"/data/query-catalog/pnl/wallet-all-time"},{"title":"Wallet Time-Windowed P\u0026L","href":"/data/query-catalog/pnl/wallet-time-window"},{"title":"Wallet P\u0026L by Tag","href":"/data/query-catalog/pnl/wallet-by-tag"},{"title":"Wallet P\u0026L by Market","href":"/data/query-catalog/pnl/wallet-by-market"},{"title":"Wallet P\u0026L Events","href":"/data/query-catalog/pnl/wallet-events"},{"title":"Batch Wallet P\u0026L","href":"/data/query-catalog/pnl/batch-wallet-pnl"},{"title":"Global P\u0026L Leaderboard","href":"/data/query-catalog/pnl/global-leaderboard"},{"title":"Tag P\u0026L Leaderboard","href":"/data/query-catalog/pnl/tag-leaderboard"},{"title":"Markets Query Catalog","href":"/data/query-catalog/markets"},{"title":"Search Markets","href":"/data/query-catalog/markets/search-markets"},{"title":"Market by Condition","href":"/data/query-catalog/markets/by-condition"},{"title":"Condition Detail","href":"/data/query-catalog/markets/condition-detail"},{"title":"Trades and Positions by Slug","href":"/data/query-catalog/markets/by-slug"},{"title":"Token Info","href":"/data/query-catalog/markets/token-info"},{"title":"Token Price","href":"/data/query-catalog/markets/token-price"},{"title":"Market Candles","href":"/data/query-catalog/markets/candles"},{"title":"Tags and Markets by Tag","href":"/data/query-catalog/markets/tags"},{"title":"Market Resolutions","href":"/data/query-catalog/markets/resolutions"},{"title":"Wallet Activity Query Catalog","href":"/data/query-catalog/wallet-activity"},{"title":"Unified Wallet Activity","href":"/data/query-catalog/wallets/unified-activity"},{"title":"Wallet Splits","href":"/data/query-catalog/wallets/splits"},{"title":"Wallet Merges","href":"/data/query-catalog/wallets/merges"},{"title":"Wallet Redemptions","href":"/data/query-catalog/wallets/redemptions"},{"title":"Neg-Risk Conversions","href":"/data/query-catalog/wallets/neg-risk-conversions"},{"title":"PolyUSD Flows","href":"/data/query-catalog/wallets/polyusd-flows"},{"title":"Wallet Fees Paid","href":"/data/query-catalog/wallets/fees-paid"},{"title":"Wallet Rebates and Rewards","href":"/data/query-catalog/wallets/rebates-rewards"},{"title":"Builders Query Catalog","href":"/data/query-catalog/builders"},{"title":"Builder Leaderboard","href":"/data/query-catalog/builders/leaderboard"},{"title":"Builder Detail","href":"/data/query-catalog/builders/detail"},{"title":"Builder Trader Leaderboard","href":"/data/query-catalog/builders/trader-leaderboard"},{"title":"Builder Daily Activity","href":"/data/query-catalog/builders/daily-activity"},{"title":"Compare Builder Daily Activity","href":"/data/query-catalog/builders/activity-comparison"},{"title":"Builder Trades","href":"/data/query-catalog/builders/trades"},{"title":"Builder Trades by Market","href":"/data/query-catalog/builders/trades-by-market"},{"title":"Builder Trades by Tag or Category","href":"/data/query-catalog/builders/trades-by-tag-category"},{"title":"Builder Trades by Side and Size","href":"/data/query-catalog/builders/trades-by-side-size"},{"title":"Tags and Categories Query Catalog","href":"/data/query-catalog/tags-categories"},{"title":"Combos Query Catalog","href":"/data/query-catalog/combos"},{"title":"Combo Markets","href":"/data/query-catalog/combos/markets"},{"title":"Combo Activity","href":"/data/query-catalog/combos/activity"},{"title":"Combo Redemptions","href":"/data/query-catalog/combos/redemptions"},{"title":"Wallet Combo Summary","href":"/data/query-catalog/combos/wallet-summary"},{"title":"Wallet Combo Positions","href":"/data/query-catalog/combos/wallet-positions"},{"title":"Wallet Combo Trades","href":"/data/query-catalog/combos/wallet-trades"},{"title":"Wallet Combo Activity","href":"/data/query-catalog/combos/wallet-activity"},{"title":"Wallet Combo Redemptions","href":"/data/query-catalog/combos/wallet-redemptions"},{"title":"Include Combos in Wallet Views","href":"/data/query-catalog/combos/include-combos"}]},{"group":"Wallet P\u0026L","pages":[{"title":"Resolve Wallet","openapi":"GET /v1/resolve/{query}","href":"/api-reference/wallets/resolve"},{"title":"Wallet Summary","openapi":"GET /v3/wallets/{address}","href":"/data/wallets/summary"},{"title":"Wallet P\u0026L","openapi":"GET /v3/wallets/{address}/pnl","href":"/data/wallets/pnl"},{"title":"Wallet P\u0026L Time Series","openapi":"GET /v3/wallets/{address}/pnl/events","href":"/data/wallets/pnl-events"},{"title":"Batch Wallet P\u0026L","openapi":"POST /v3/wallets/batch","href":"/data/wallets/batch"},{"title":"Wallet Positions","openapi":"GET /v3/wallets/{address}/positions","href":"/data/wallets/positions"}]},{"group":"Wallet Activity","pages":[{"title":"Wallet Trades","openapi":"GET /v3/wallets/{address}/trades","href":"/data/wallets/trades"},{"title":"Copy PnL","openapi":"GET /v3/wallets/{address}/copy-pnl","href":"/data/wallets/copy-pnl"},{"title":"Copy PnL Batch","openapi":"POST /v3/copy-pnl/batch","href":"/data/wallets/copy-pnl-batch"},{"title":"Wallet Fees Paid","openapi":"GET /v3/wallets/{address}/fees-paid","href":"/data/wallets/fees-paid"},{"title":"Wallet PolyUSD Flows","openapi":"GET /v3/wallets/{address}/polyusd-flows","href":"/data/wallets/polyusd-flows"},{"title":"Wallet Maker Rebates","openapi":"GET /v3/wallets/{address}/rebates","href":"/data/wallets/rebates"},{"title":"Wallet Redemptions","openapi":"GET /v3/wallets/{address}/redemptions","href":"/data/wallets/redemptions"},{"title":"Wallet Splits","openapi":"GET /v3/wallets/{address}/splits","href":"/data/wallets/splits"},{"title":"Wallet Merges","openapi":"GET /v3/wallets/{address}/merges","href":"/data/wallets/merges"},{"title":"Wallet NRC","openapi":"GET /v3/wallets/{address}/nrc","href":"/data/wallets/nrc"},{"title":"Wallet Activity","openapi":"GET /v3/wallets/{address}/activity","href":"/data/wallets/activity"}]},{"group":"Credits","pages":[{"title":"Credits Overview","href":"/credits/overview"},{"title":"Liquidity Rewards","href":"/credits/rewards"},{"title":"Yield","href":"/credits/yield"},{"group":"Rebates","pages":[{"title":"Maker Rebates","href":"/credits/maker-rebates"},{"title":"Taker Rebates","href":"/credits/taker-rebates"}]},{"title":"Referral Rewards","href":"/credits/referral-rewards"},{"group":"Credits API Reference","pages":[{"title":"Wallet Credit Totals","openapi":"GET /v3/wallets/{addr}/credits/totals","href":"/credits/wallet-totals"},{"title":"Wallet Credit Events","openapi":"GET /v3/wallets/{addr}/credits","href":"/credits/wallet-events"},{"title":"Wallet Credit Series","openapi":"GET /v3/wallets/{addr}/credits/series","href":"/credits/wallet-series"},{"title":"Credits Leaderboard","openapi":"GET /v3/credits/leaderboard","href":"/credits/leaderboard"},{"title":"Global Credit Stats","openapi":"GET /v3/credits/stats","href":"/credits/stats"},{"title":"Global Credit Feed","openapi":"GET /v3/credits/events","href":"/credits/feed"},{"title":"Credit Distributors","openapi":"GET /v3/credits/distributors","href":"/credits/distributors"},{"title":"Decode Payout Transaction","openapi":"GET /v3/credits/txs/{hash}","href":"/credits/tx"},{"title":"Recipient Growth","openapi":"GET /v3/credits/recipients/stats","href":"/credits/recipients"}]}]},{"group":"Identity","pages":[{"title":"Batch Resolve","openapi":"POST /v3/identities/batch","href":"/identities/batch-resolve"},{"title":"Username Search","openapi":"GET /v3/identities/search","href":"/identities/search"},{"title":"Identity Lookup","openapi":"GET /v3/identities/{addr}","href":"/identities/lookup"}]},{"group":"Fees","pages":[{"title":"Fees Overview","href":"/data/fees/overview"},{"title":"Wallet Fees Paid","href":"/data/fees/wallet-fees-paid"},{"title":"Global Fee Events","href":"/data/fees/global-fees"},{"title":"Fees by Receiver","href":"/data/fees/fees-by-receiver"},{"title":"Builder Fees","href":"/data/fees/builder-fees"},{"title":"Maker Rebates","href":"/data/fees/maker-rebates"},{"title":"Reward Market Configs","href":"/data/fees/reward-market-configs"}]},{"group":"Combos","tag":"New","pages":[{"title":"Combos Overview","href":"/data/combos/overview"},{"title":"Combo Markets","openapi":"GET /v3/combos/markets","href":"/data/combos/markets"},{"title":"Combo Activity","openapi":"GET /v3/combos/activity","href":"/data/combos/activity"},{"title":"Combo Daily Activity","openapi":"GET /v3/combos/activity/daily","href":"/data/combos/daily-activity"},{"title":"Combo P\u0026L Leaderboard","openapi":"GET /v3/combos/leaderboard","href":"/data/combos/leaderboard"},{"title":"Combo Redemptions","openapi":"GET /v3/combos/redemptions","href":"/data/combos/redemptions"},{"title":"Wallet Combo Summary","openapi":"GET /v3/wallets/{address}/combos/summary","href":"/data/combos/wallet-summary"},{"title":"Wallet Combo Positions","openapi":"GET /v3/wallets/{address}/combos/positions","href":"/data/combos/wallet-positions"},{"title":"Wallet Combo Trades","openapi":"GET /v3/wallets/{address}/combos/trades","href":"/data/combos/wallet-trades"},{"title":"Wallet Combo Activity","openapi":"GET /v3/wallets/{address}/combos/activity","href":"/data/combos/wallet-activity"},{"title":"Wallet Combo Redemptions","openapi":"GET /v3/wallets/{address}/combos/redemptions","href":"/data/combos/wallet-redemptions"}]},{"group":"Rewards","pages":[{"title":"Reward Markets","openapi":"GET /v3/rewards/markets","href":"/data/rewards/markets"},{"title":"Reward Market Detail","openapi":"GET /v3/rewards/markets/{condition_id}","href":"/data/rewards/market"}]},{"group":"Markets \u0026 Search","pages":[{"title":"Market Catalog","openapi":"GET /v3/markets","href":"/data/markets/catalog"},{"title":"Market Catalog Stats","openapi":"GET /v3/markets/stats","href":"/data/markets/catalog-stats"},{"title":"Event Catalog","openapi":"GET /v3/events","href":"/data/events/catalog"},{"title":"Event Catalog Stats","openapi":"GET /v3/events/stats","href":"/data/events/catalog-stats"},{"title":"Search Markets","openapi":"GET /v3/markets/search","href":"/data/markets/search"},{"title":"Market by Condition","openapi":"GET /v3/markets/condition/{condition_id}","href":"/data/markets/by-condition"},{"title":"Market Positions (Condition)","openapi":"GET /v3/markets/condition/{condition_id}/positions","href":"/data/markets/condition-positions"},{"title":"Market Trades","openapi":"GET /v3/markets/{token_id}/trades","href":"/data/markets/trades"},{"title":"Market Positions (Token)","openapi":"GET /v3/markets/{token_id}/positions","href":"/data/markets/positions"},{"title":"Token Price","openapi":"GET /v3/markets/{token_id}/price","href":"/data/markets/price"},{"title":"Market Candles","href":"/data/markets/candles"},{"title":"Market by Slug","openapi":"GET /v3/markets/slug/{slug}/trades","href":"/data/markets/by-slug"}]},{"group":"Orderbook","pages":[{"title":"Order Book","openapi":"GET /v1/orderbook/{token_id}","href":"/api-reference/orderbook/order-book"},{"title":"Midpoint Price","openapi":"GET /v1/midpoint/{token_id}","href":"/api-reference/orderbook/midpoint"},{"title":"Bid-Ask Spread","openapi":"GET /v1/spread/{token_id}","href":"/api-reference/orderbook/spread"}]},{"group":"Leaderboard \u0026 Tags","pages":[{"title":"Leaderboard","openapi":"GET /v3/leaderboard","href":"/data/leaderboard/global"},{"title":"Leaderboard Scopes","openapi":"GET /v3/leaderboard/scopes","href":"/data/leaderboard/scopes"},{"title":"Tags","openapi":"GET /v3/tags","href":"/data/leaderboard/tags"},{"title":"Tag Markets","openapi":"GET /v3/tags/{slug}","href":"/data/leaderboard/tag-markets"},{"title":"Tag Leaderboard","openapi":"GET /v3/tags/{slug}/leaderboard","href":"/data/leaderboard/tag-leaderboard"}]},{"group":"Builders","pages":[{"title":"Builder Leaderboard","openapi":"GET /v3/builders","href":"/data/builders/list"},{"title":"Builder Detail","openapi":"GET /v3/builders/{code}","href":"/data/builders/detail"},{"title":"Builder Trader P\u0026L Leaderboard","openapi":"GET /v3/builders/{code}/leaderboard","href":"/data/builders/trader-leaderboard"},{"title":"Builder Daily Activity","href":"/data/builders/daily-activity"},{"title":"Compare Builder Daily Activity","href":"/data/builders/activity-comparison"},{"title":"Builder Trades","openapi":"GET /v3/builders/{code}/trades","href":"/data/builders/trades"}]},{"group":"Polymarket Profiles","tag":"Beta","pages":[{"title":"Polymarket Profiles","href":"/api-reference/polymarket-profiles/overview"},{"title":"Check Username Availability","openapi":"GET /v3/polymarket/profiles/username-available","href":"/api-reference/polymarket-profiles/username-available"},{"title":"Create Username Challenge","openapi":"POST /v3/polymarket/profiles/username/challenge","href":"/api-reference/polymarket-profiles/create-challenge"},{"title":"Complete Username Action","openapi":"POST /v3/polymarket/profiles/username/complete","href":"/api-reference/polymarket-profiles/complete-username"},{"title":"Get Public Profile","openapi":"GET /v3/polymarket/profiles/{address}","href":"/api-reference/polymarket-profiles/get-profile"}]},{"group":"Global","pages":[{"title":"Platform Stats","openapi":"GET /v3/stats","href":"/data/global/stats"},{"title":"Global Trades","openapi":"GET /v3/trades","href":"/data/global/trades"},{"title":"Global Positions","openapi":"GET /v3/positions","href":"/data/global/positions"},{"title":"Fee Events","openapi":"GET /v3/fees","href":"/data/global/fees"},{"title":"Market Resolutions","openapi":"GET /v3/resolutions","href":"/data/global/resolutions"},{"title":"Condition Detail","openapi":"GET /v3/conditions/{condition_id}","href":"/data/global/conditions"}]},{"group":"Tokens","pages":[{"title":"Token Info","openapi":"GET /v3/tokens/{token_id}","href":"/data/tokens/info"}]},{"group":"Perps","pages":[{"title":"Perps Overview","href":"/perps/overview"},{"title":"Quickstart","href":"/perps/quickstart"},{"title":"Wallet Mapping","href":"/perps/wallet-mapping"},{"title":"Rate Limits","href":"/perps/rate-limits"}]},{"group":"Perps Market Data","pages":[{"title":"Instruments","openapi":"GET /v3/perps/instruments","href":"/perps/market-data/instruments"},{"title":"Tickers","openapi":"GET /v3/perps/tickers/{instrument}","href":"/perps/market-data/tickers"},{"title":"Screener","openapi":"GET /v3/perps/screener","href":"/perps/market-data/screener"},{"title":"Best Bid/Offer","openapi":"GET /v3/perps/bbo/{instrument}","href":"/perps/market-data/bbo"},{"title":"Orderbook","openapi":"GET /v3/perps/book/{instrument}","href":"/perps/market-data/book"},{"title":"Trades","openapi":"GET /v3/perps/trades/{instrument}","href":"/perps/market-data/trades"},{"title":"24h Statistics","openapi":"GET /v3/perps/statistics/{instrument}","href":"/perps/market-data/statistics"},{"title":"Klines (OHLCV)","openapi":"GET /v3/perps/klines/{instrument}","href":"/perps/market-data/klines"},{"title":"Funding Rates","openapi":"GET /v3/perps/funding/{instrument}","href":"/perps/market-data/funding"},{"title":"Open Interest History","openapi":"GET /v3/perps/oi/{instrument}","href":"/perps/market-data/open-interest"},{"title":"Volume History","openapi":"GET /v3/perps/volume/{instrument}","href":"/perps/market-data/volume"},{"title":"Perps Daily Activity","openapi":"GET /v3/perps/activity/daily","href":"/perps/market-data/daily-activity"},{"title":"Fees \u0026 Exchange Meta","href":"/perps/market-data/meta"},{"title":"Basis History","openapi":"GET /v3/perps/basis/{instrument}","href":"/perps/market-data/basis"},{"title":"Trade Flow / CVD","openapi":"GET /v3/perps/flow/{instrument}","href":"/perps/market-data/flow"},{"title":"Cumulative Funding","openapi":"GET /v3/perps/funding-pnl/{instrument}","href":"/perps/market-data/funding-pnl"}]},{"group":"Perps Wallets","pages":[{"title":"Wallet Overview","openapi":"GET /v3/perps/wallets/{address}","href":"/perps/wallets/overview"},{"title":"Portfolio","openapi":"GET /v3/perps/wallets/{address}/portfolio","href":"/perps/wallets/portfolio"},{"title":"Registered","openapi":"GET /v3/perps/wallets/{address}/registered","href":"/perps/wallets/registered"},{"title":"Registered (batch)","openapi":"GET /v3/perps/wallets/registered","href":"/perps/wallets/batch-registered"},{"title":"Portfolios (batch)","openapi":"GET /v3/perps/wallets/portfolios","href":"/perps/wallets/batch-portfolios"}]},{"group":"Perps Analytics","pages":[{"title":"Perps Analytics","href":"/perps/analytics/overview"},{"title":"Whale Leaderboard","openapi":"GET /v3/perps/leaderboard","href":"/perps/analytics/leaderboard"},{"title":"Positioning","openapi":"GET /v3/perps/positioning/{instrument}","href":"/perps/analytics/positioning"},{"title":"Large Positions","openapi":"GET /v3/perps/positions/large","href":"/perps/analytics/large-positions"},{"title":"Position History","openapi":"GET /v3/perps/wallets/{address}/positions/history","href":"/perps/analytics/position-history"},{"title":"Smart Money","openapi":"GET /v3/perps/traders","href":"/perps/analytics/traders"},{"title":"Position Events","openapi":"GET /v3/perps/events","href":"/perps/analytics/events"},{"title":"Liquidations","openapi":"GET /v3/perps/liquidations","href":"/perps/analytics/liquidations"},{"title":"Coverage","openapi":"GET /v3/perps/coverage","href":"/perps/analytics/coverage"}]},{"group":"Perps On-Chain","pages":[{"title":"TVL \u0026 Collateral","openapi":"GET /v3/perps/tvl","href":"/perps/onchain/tvl"},{"title":"Top Depositors","openapi":"GET /v3/perps/depositors","href":"/perps/onchain/depositors"},{"title":"Top Withdrawers","openapi":"GET /v3/perps/withdrawers","href":"/perps/onchain/withdrawers"},{"title":"Deposits Feed","openapi":"GET /v3/perps/deposits","href":"/perps/onchain/deposits"},{"title":"Withdrawals Feed","openapi":"GET /v3/perps/withdrawals","href":"/perps/onchain/withdrawals"},{"title":"Wallet Flows","openapi":"GET /v3/perps/wallets/{address}/flows","href":"/perps/onchain/flows"}]},{"group":"Perps Streaming","pages":[{"title":"Perps WebSocket","href":"/perps/websocket/overview"},{"title":"Channels","href":"/perps/websocket/channels"}]},{"group":"Crypto","pages":[{"title":"Crypto Markets","openapi":"GET /v1/crypto/markets","href":"/api-reference/crypto/markets"},{"title":"Oracle Candles","openapi":"GET /v1/crypto/candles","href":"/api-reference/crypto/candles"},{"title":"Historical Price Ticks","openapi":"GET /v1/crypto/ticks","href":"/api-reference/crypto/ticks"},{"title":"Price to Beat","openapi":"GET /v1/crypto/price","href":"/api-reference/crypto/price"},{"title":"Active 5-Minute Markets","openapi":"GET /v1/crypto/active","href":"/api-reference/crypto/active"},{"title":"Crypto Series","openapi":"GET /v1/crypto/series","href":"/api-reference/crypto/series"}]},{"group":"Sports","pages":[{"title":"Sports Markets","href":"/api-reference/sports/sports-markets"}]},{"group":"BYOL","pages":[{"title":"BYOL Overview","href":"/api-reference/byol/overview"},{"title":"Get Leaderboard","openapi":"GET /v2/leaderboard/custom","href":"/api-reference/byol/get-leaderboard"},{"title":"Add Wallets","openapi":"POST /v2/leaderboard/wallets","href":"/api-reference/byol/add-wallets"},{"title":"Remove Wallets","openapi":"DELETE /v2/leaderboard/wallets","href":"/api-reference/byol/remove-wallets"},{"title":"List Wallets","openapi":"GET /v2/leaderboard/wallets","href":"/api-reference/byol/list-wallets"}]},{"group":"Backtesting","pages":[{"title":"Backtesting Overview","href":"/api-reference/backtesting/overview"},{"title":"Deprecated: Backtest Copy PnL","openapi":"GET /v2/copy-pnl/{wallet}","href":"/api-reference/backtesting/copy-pnl"},{"title":"Deprecated: Backtest Copy PnL — Batch","openapi":"POST /v2/copy-pnl/batch","href":"/api-reference/backtesting/batch"},{"title":"BYOB — Add Wallets","openapi":"POST /v2/copy-pnl/wallets","href":"/api-reference/backtesting/byob-add-wallets"},{"title":"BYOB — Remove Wallets","openapi":"DELETE /v2/copy-pnl/wallets","href":"/api-reference/backtesting/byob-remove-wallets"},{"title":"BYOB — List Wallets","openapi":"GET /v2/copy-pnl/wallets","href":"/api-reference/backtesting/byob-list-wallets"},{"title":"BYOB — Leaderboard","openapi":"GET /v2/copy-pnl/leaderboard","href":"/api-reference/backtesting/byob-leaderboard"},{"title":"BYOB — Snapshot","openapi":"GET /v2/copy-pnl/snapshot","href":"/api-reference/backtesting/byob-snapshot"}]},{"group":"Market Card","pages":[{"title":"Market Card","sidebarTitle":"Market Card","openapi":"GET /v1/stats/{token_id}","href":"/api-reference/pricing/market-statistics"}]},{"group":"System","pages":[{"title":"System Status","openapi":"GET /v1/status","href":"/api-reference/system/system-status"},{"title":"Generate API Key","openapi":"POST /v1/keys","href":"/api-reference/system/generate-api-key"},{"title":"Health Check","openapi":"GET /healthz","href":"/api-reference/system/health-check"},{"title":"Readiness Check","openapi":"GET /readyz","href":"/api-reference/system/readiness-check"}]},{"group":"Search \u0026 Context","tag":"BETA","pages":[{"title":"Online Search API","sidebarTitle":"Online Search","openapi":"GET /v2/search/online","icon":"search","tag":"BETA","href":"/api-reference/search-online"},{"title":"X Search API","sidebarTitle":"X Search API","openapi":"GET /v2/x/search","icon":"magnifying-glass","tag":"BETA","href":"/api-reference/x-search"}]},{"group":"Onchain V2 (legacy)","pages":[{"title":"Trade History (All)","openapi":"GET /v2/onchain/trades","href":"/api-reference/onchain/trades"},{"title":"Positions (All)","openapi":"GET /v2/onchain/positions","href":"/api-reference/onchain/positions"},{"title":"Positions \u0026 P\u0026L (Wallet)","description":"Every position a wallet has held — open and closed — with realized + unrealized P\u0026L, per-position activity timestamps, market resolution timestamps, and parent event slugs. Optional time-window filtering.","openapi":"GET /v2/wallets/{address}/positions/onchain","href":"/api-reference/wallets/onchain-positions"},{"title":"Trade History (Wallet)","openapi":"GET /v2/onchain/wallets/{address}/trades","href":"/api-reference/onchain/wallet-trades"},{"title":"Trade History (Wallet) — Bulk","description":"Return every trade for a wallet in a single response. Growth plan or above.","openapi":"GET /v2/onchain/wallets/{address}/trades/all","href":"/api-reference/onchain/wallet-trades-all"},{"title":"Wallet Redemptions","openapi":"GET /v2/onchain/wallets/{address}/redemptions","href":"/api-reference/onchain/wallet-redemptions"},{"title":"Wallet Activity","openapi":"GET /v2/onchain/wallets/{address}/activity","href":"/api-reference/onchain/wallet-activity"},{"title":"Trade History (Market)","openapi":"GET /v2/onchain/markets/{token_id}/trades","href":"/api-reference/onchain/market-trades"},{"title":"Trade History (Market) — Bulk","openapi":"GET /v2/onchain/markets/{token_id}/trades/all","href":"/api-reference/onchain/market-trades-all"},{"title":"Top Traders (Market)","openapi":"GET /v1/markets/{id}/positions","href":"/api-reference/wallets/market-positions"},{"title":"Candles (Trade-Indexed OHLCV)","openapi":"GET /v2/onchain/candles/{token_id}","href":"/api-reference/onchain/candles"},{"title":"Market Volume","openapi":"GET /v2/onchain/markets/{token_id}/volume","href":"/api-reference/onchain/market-volume"},{"title":"Market Open Interest","openapi":"GET /v2/onchain/markets/{condition_id}/oi","href":"/api-reference/onchain/market-oi"},{"title":"Global Open Interest","openapi":"GET /v2/onchain/oi","href":"/api-reference/onchain/global-oi"}]}]},{"tab":"Crypto Prices","pages":[{"title":"Crypto Prices","href":"/crypto/overview"}]},{"tab":"Orderbook","pages":[{"title":"Orderbook","href":"/orderbook/overview"}]},{"tab":"RPC","pages":[{"title":"RPC","href":"/rpc/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"Trading","pages":[{"title":"Trading","href":"/sdks/trading"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Case Studies","pages":[{"title":"Case Studies","href":"/case-studies/overview"}]}]},"basePath":"","title":"Trade History (Wallet) - PolyNode","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}