portfolioId (request body): A manual portfolio from GET /portfolio/list
Transaction details in request body:
coinId: The cryptocurrency’s identifier
count: Amount (negative for sells)
date: Transaction timestamp (optional)
price: Price at time of transaction (optional)
Optional
notes: Add personal notes to the transaction
currency: Specify currency for price (default: USD)
shareToken and passcode: Legacy alternative to portfolioId for a shared portfolio
Authorizations
X-API-KEY
string
header
required
API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.
Coin ID from CoinStats API. For fiats you can send coin ID like this: FiatCoinUSD.
Example:
"bitcoin"
count
number
required
Amount of coin. For sell transactions, this should be negative.
Example:
0.1
date
number
Transaction date in milliseconds. If not provided, current date will be used.
Example:
1715948176654
price
number
Price of coin in USD at the time of transaction.
Example:
66252.93
portfolioId
string
Target manual portfolio id from GET /portfolio/list. Required unless a shareToken for a single portfolio is used.
Example:
"xobgM6CHi1zaEJaCXmPWenVoS"
currency
string
Default is USD.
Example:
"USD"
notes
string
Transaction notes.
Example:
"Some notes."
Response
PortfolioTransactions
transactionType
string
required
Display type of the transaction (e.g., Sent, Received, Swap, Roll In). The full list of supported types is available via GET /portfolio/transactions/types — this field matches its name values.
Example:
"Roll In"
date
string
required
ISO 8601 timestamp of when the transaction occurred
Example:
"2025-08-28T08:35:50.384Z"
profitLoss
object
required
Profit and loss information for the transaction
Show child attributes
fee
object
required
Transaction fee information
Show child attributes
portfolioInfo
object
required
Information about the portfolio where the transaction occurred
Show child attributes
coinData
object
Main coin data for the transaction (optional for some transaction types)
Show child attributes
transfers
object[]
List of transfers involved in the transaction (e.g., coins received/sent)
Show child attributes
note
object
Transaction Notes
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CoinStats PublicAPI","colors":{"primary":"#FF9332","light":"#FFB347","dark":"#EA5237"},"logo":{"light":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/light.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=420a1f730c8e4b41b5d12614976160c3","dark":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/dark.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=64ead17e5af2338361e658ff70aad94d","href":"https://coinstats.app/api-docs"},"favicon":"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/favicon.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=08c1eec7f131f92e2d261ec6ea0e5018","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://help.coinstats.app/en/articles/12002063","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://openapi.coinstats.app"}},"footer":{"socials":{"website":"https://coinstats.app","github":"https://github.com/CoinStatsHQ","x":"https://x.com/coinstats"},"links":[{"header":"Support \u0026 Help","items":[{"label":"Help Center","href":"https://help.coinstats.app/en/articles/12002063"}]},{"header":"Contact","items":[{"label":"Telegram API Support","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"label":"Email Support","href":"mailto:api.support@coinstats.app"}]}]},"seo":{"metatags":{"canonical":"https://coinstats.app","description":"Unified crypto data API — wallets, markets, DeFi, and portfolios across 120+ blockchains through a single integration.","author":"CoinStats","language":"en","robots":"index, follow","og:type":"website","og:site_name":"CoinStats API Documentation","og:image":"https://static.coinstats.app/z/coinstats_open_api.png","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@coinstats","twitter:creator":"@coinstats","twitter:image":"https://static.coinstats.app/z/coinstats_open_api.png","apple-mobile-web-app-title":"CoinStats API","application-name":"CoinStats API Documentation","theme-color":"#FF9332"},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-34DH4BL5B9"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Api Keys","icon":"key","href":"https://openapi.coinstats.app"},{"anchor":"CoinStats","icon":"globe","href":"https://coinstats.app"},{"anchor":"Telegram API Support","icon":"telegram","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/coinstats"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dev-c758229b","hasAudioNarration":false,"actualSubdomain":"dev-c758229b","customDomains":["coinstats.app"],"gitSource":{"type":"github","owner":"coinstatshq","repo":"coinstats-public-api-v2","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true,"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afd7e010647be7d2900c52e","clientVersion":"0.0.4269","searchFilterCounts":[{"language":"default","tag":"API reference","count":111},{"language":"default","tag":"Wallets \u0026 Portfolios","count":45},{"language":"default","tag":"Market Data","count":35},{"language":"default","tag":"Prediction Markets","count":31},{"language":"default","tag":"Home","count":22},{"language":"default","tag":"User Portfolio","count":18},{"language":"default","tag":"Wallet Data","count":16},{"language":"default","tag":"Coins \u0026 Prices","count":12},{"language":"default","tag":"NFTs","count":12},{"language":"default","tag":"Traders","count":10}]},"assistantConfig":{},"basePath":"/api-docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-docs/openapi/add-portfolio-transaction","slug":"/api-docs/openapi/add-portfolio-transaction","pageMetadata":{"title":"Add Portfolio Transaction","description":"Add a new transaction to your manual portfolio","deprecated":null,"version":null,"sidebarTitle":"Add portfolio transaction","og:title":"Add Portfolio Transaction","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/transaction","href":"/api-docs/openapi/add-portfolio-transaction","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add a new transaction to your manual portfolio\"\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={li:`li`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Note}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsx(_components.strong,{children:`4`}),` credits per request`]}),`\n`,_jsx(`hr`,{}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`You will get`,id:`you-will-get`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Support for buy, sell, and transfer operations`}),`\n`,_jsx(_components.li,{children:`Automatically updates your portfolio holdings`}),`\n`,_jsx(_components.li,{children:`Validates transaction data before recording`}),`\n`,_jsx(_components.li,{children:`Returns the details of the created transaction`}),`\n`]})}),_jsx(Accordion,{title:`Required`,id:`required`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`portfolioId (request body): A manual portfolio from GET /portfolio/list`}),`\n`,_jsxs(_components.li,{children:[`Transaction details in request body:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`coinId: The cryptocurrency’s identifier`}),`\n`,_jsx(_components.li,{children:`count: Amount (negative for sells)`}),`\n`,_jsx(_components.li,{children:`date: Transaction timestamp (optional)`}),`\n`,_jsx(_components.li,{children:`price: Price at time of transaction (optional)`}),`\n`]}),`\n`]}),`\n`]})}),_jsx(Accordion,{title:`Optional`,id:`optional`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`notes: Add personal notes to the transaction`}),`\n`,_jsx(_components.li,{children:`currency: Specify currency for price (default: USD)`}),`\n`,_jsx(_components.li,{children:`shareToken and passcode: Legacy alternative to portfolioId for a shared portfolio`}),`\n`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add Portfolio Transaction","description":"Add a new transaction to your manual portfolio","deprecated":null,"version":null,"sidebarTitle":"Add portfolio transaction","og:title":"Add Portfolio Transaction","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/transaction","href":"/api-docs/openapi/add-portfolio-transaction","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"add-portfolio-transaction","parameters":["b188eff8-9568-4289-a125-06d191b69685","b98d777d-9fad-44ae-bd60-a32e86bc7a05"],"requestBody":"9f091c70-7c85-4775-8e0b-20a13c5bf024","responses":{"200":"b3acf006-9613-41ff-9234-96ce4d241f53","400":"95f362ea-b999-49fe-b62d-a364b3a7a1b6","401":"259ed57d-5edd-4ca2-aaf0-c260115e1b0a","403":"455627ea-43e2-4735-a2c9-da64341c53f5","404":"6750632a-6e8e-4a07-9d42-f0c370f19e24","409":"35433067-ddc3-4cd2-81a4-6a27b8582a0e","429":"afff6957-ad44-4e1c-9a4a-40d23ce0a798","503":"dd80912a-30ca-4074-9548-329bd8e669b8"},"security":["ca4f5a05-cad2-4d9f-82b3-22fe4579e5df"],"summary":"Add a new transaction to your manual portfolio","tags":["User Portfolio"],"x-mint":{"content":"\u003cNote>**4** credits per request\u003c/Note>\u003chr/>\n \u003cAccordionGroup>\n\u003cAccordion title=\"You will get\">\n- Support for buy, sell, and transfer operations\n- Automatically updates your portfolio holdings\n- Validates transaction data before recording\n- Returns the details of the created transaction\n\u003c/Accordion>\n\u003cAccordion title=\"Required\">\n- portfolioId (request body): A manual portfolio from GET /portfolio/list\n- Transaction details in request body:\n - coinId: The cryptocurrency's identifier\n - count: Amount (negative for sells)\n - date: Transaction timestamp (optional)\n - price: Price at time of transaction (optional)\n\u003c/Accordion>\n\u003cAccordion title=\"Optional\">\n- notes: Add personal notes to the transaction\n- currency: Specify currency for price (default: USD)\n- shareToken and passcode: Legacy alternative to portfolioId for a shared portfolio\n\u003c/Accordion>\n\u003c/AccordionGroup>","metadata":{"title":"Add Portfolio Transaction","description":"Add a new transaction to your manual portfolio","og:title":"Add Portfolio Transaction"},"href":"/openapi/add-portfolio-transaction"},"method":"post","type":"path","servers":["9c612ecb-19d3-42e5-a2f7-a0654beb6b88"],"path":"/v1/portfolio/transaction","baseUrlOptions":["https://api.coinstats.app"],"title":"Add a new transaction to your manual portfolio","description":"Add a new transaction to your manual portfolio","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"b188eff8-9568-4289-a125-06d191b69685":{"name":"sharetoken","required":false,"in":"header","description":"[Get Share Token](/sharetoken)","schema":{"type":"string","isRequired":false,"description":"[Get Share Token](/sharetoken)","uniqueKey":"","typeLabel":"string"}},"b98d777d-9fad-44ae-bd60-a32e86bc7a05":{"name":"passcode","required":false,"in":"header","description":"Passcode for accessing protected portfolio data","schema":{"example":"123456","type":"string","isRequired":false,"description":"Passcode for accessing protected portfolio data","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"coinId":{"type":"string","example":"bitcoin","description":"Coin ID from CoinStats API. For fiats you can send coin ID like this: FiatCoinUSD.","isRequired":true,"uniqueKey":"coinId","typeLabel":"string"},"count":{"type":"number","example":0.1,"description":"Amount of coin. For sell transactions, this should be negative.","isRequired":true,"uniqueKey":"count","typeLabel":"number"},"date":{"type":"number","example":1715948176654,"description":"Transaction date in milliseconds. If not provided, current date will be used.","uniqueKey":"date","typeLabel":"number"},"price":{"type":"number","example":66252.93,"description":"Price of coin in USD at the time of transaction.","uniqueKey":"price","typeLabel":"number"},"portfolioId":{"type":"string","example":"xobgM6CHi1zaEJaCXmPWenVoS","description":"Target manual portfolio id from GET /portfolio/list. Required unless a shareToken for a single portfolio is used.","uniqueKey":"portfolioId","typeLabel":"string"},"currency":{"type":"string","example":"USD","description":"Default is USD.","uniqueKey":"currency","typeLabel":"string"},"notes":{"type":"string","example":"Some notes.","description":"Transaction notes.","uniqueKey":"notes","typeLabel":"string"}},"required":["coinId","count"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"coinId":"bitcoin","count":0.1,"date":1715948176654,"price":66252.93,"portfolioId":"xobgM6CHi1zaEJaCXmPWenVoS","currency":"USD","notes":"Some notes."}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b3acf006-9613-41ff-9234-96ce4d241f53":{"description":"PortfolioTransactions","content":{"application/json":{"schema":{"type":"object","properties":{"transactionType":{"type":"string","description":"Display type of the transaction (e.g., Sent, Received, Swap, Roll In). The full list of supported types is available via GET [/portfolio/transactions/types](/openapi/get-portfolio-transaction-types) — this field matches its `name` values.","example":"Roll In","isRequired":true,"uniqueKey":"transactionType","typeLabel":"string"},"date":{"type":"string","description":"ISO 8601 timestamp of when the transaction occurred","example":"2025-08-28T08:35:50.384Z","isRequired":true,"uniqueKey":"date","typeLabel":"string"},"profitLoss":{"type":"object","description":"Profit and loss information for the transaction","required":["profit","profitPercent","currentValue"],"properties":{"profit":{"type":"number","description":"Profit or loss amount in USD (positive for profit, negative for loss)","example":-0.21637050600000052,"isRequired":true,"uniqueKey":"profitLoss.profit","typeLabel":"number"},"profitPercent":{"type":"number","description":"Profit or loss percentage (positive for profit, negative for loss)","example":-3.5658153241650377,"isRequired":true,"uniqueKey":"profitLoss.profitPercent","typeLabel":"number"},"currentValue":{"type":"number","description":"Current market value of the position in USD","example":5.851540654,"isRequired":true,"uniqueKey":"profitLoss.currentValue","typeLabel":"number"}},"isRequired":true,"uniqueKey":"profitLoss","typeLabel":"object"},"fee":{"type":"object","description":"Transaction fee information","required":["coin","count","totalWorth","price"],"properties":{"coin":{"type":"object","description":"Information about the coin used for transaction fees","required":["rank","identifier","symbol","name","icon","priceChange24h","priceChange1h","priceChange7d","priceChange1m","volume"],"properties":{"rank":{"type":"number","example":2,"description":"Market rank of the coin","isRequired":true,"uniqueKey":"fee.coin.rank","typeLabel":"number"},"identifier":{"type":"string","example":"ethereum","description":"Unique identifier for the coin","isRequired":true,"uniqueKey":"fee.coin.identifier","typeLabel":"string"},"symbol":{"type":"string","example":"ETH","description":"Trading symbol of the coin","isRequired":true,"uniqueKey":"fee.coin.symbol","typeLabel":"string"},"name":{"type":"string","description":"Full name of the coin","example":"Ethereum","isRequired":true,"uniqueKey":"fee.coin.name","typeLabel":"string"},"icon":{"type":"string","example":"https://static.coinstats.app/coins/1650455629727.png","description":"URL to the coin icon image","isRequired":true,"uniqueKey":"fee.coin.icon","typeLabel":"string"},"priceChange24h":{"type":"number","example":-5.74,"description":"Price change percentage in the last 24 hours","isRequired":true,"uniqueKey":"fee.coin.priceChange24h","typeLabel":"number"},"priceChange1h":{"type":"number","example":0.1,"description":"Price change percentage in the last 1 hour","isRequired":true,"uniqueKey":"fee.coin.priceChange1h","typeLabel":"number"},"priceChange7d":{"type":"number","example":1.12,"description":"Price change percentage in the last 7 days","isRequired":true,"uniqueKey":"fee.coin.priceChange7d","typeLabel":"number"},"priceChange1m":{"type":"number","example":8.42,"description":"Price change percentage in the last 1 month","isRequired":true,"uniqueKey":"fee.coin.priceChange1m","typeLabel":"number"},"volume":{"type":"number","example":61315198931.43572,"description":"Trading volume in the last 24 hours (USD)","isRequired":true,"uniqueKey":"fee.coin.volume","typeLabel":"number"},"isFake":{"type":"boolean","example":false,"description":"Whether the coin is identified as fake","uniqueKey":"fee.coin.isFake","typeLabel":"boolean"},"isFiat":{"type":"boolean","example":false,"description":"Whether the coin is a fiat currency","uniqueKey":"fee.coin.isFiat","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"fee.coin","typeLabel":"object"},"count":{"type":"number","description":"Amount of fee paid","example":0.001,"isRequired":true,"uniqueKey":"fee.count","typeLabel":"number"},"totalWorth":{"type":"number","description":"Total worth of the fee in USD","example":25.5,"isRequired":true,"uniqueKey":"fee.totalWorth","typeLabel":"number"},"price":{"type":"number","description":"Price per unit of the fee coin in USD","example":25500,"isRequired":true,"uniqueKey":"fee.price","typeLabel":"number"},"toAddress":{"type":"string","description":"Destination address for the fee transaction","example":"0x42382d7853beb8d0ec968de4184a6a3c89cf6b5f","uniqueKey":"fee.toAddress","typeLabel":"string"},"fromAddress":{"type":"string","description":"Source address for the fee transaction","example":"0x8ac77cbf06b44ec918e4ed99698e83a0be222e0e","uniqueKey":"fee.fromAddress","typeLabel":"string"}},"isRequired":true,"uniqueKey":"fee","typeLabel":"object"},"portfolioInfo":{"type":"object","description":"Information about the portfolio where the transaction occurred","required":["name","icon"],"properties":{"name":{"type":"string","description":"Name of the portfolio or exchange where the transaction occurred","example":"KuCoin Spot","isRequired":true,"uniqueKey":"portfolioInfo.name","typeLabel":"string"},"icon":{"type":"string","description":"URL to the portfolio or exchange icon","example":"https://static.coinstats.app/portfolio_images/kucoin_dark.png","isRequired":true,"uniqueKey":"portfolioInfo.icon","typeLabel":"string"}},"isRequired":true,"uniqueKey":"portfolioInfo","typeLabel":"object"},"coinData":{"type":"object","description":"Main coin data for the transaction (optional for some transaction types)","required":["identifier","count","symbol","totalWorth","currentValue"],"properties":{"identifier":{"type":"string","description":"Unique identifier for the coin in the transaction","example":"pepe","isRequired":true,"uniqueKey":"coinData.identifier","typeLabel":"string"},"count":{"type":"number","description":"Amount of coins involved in the transaction (can be negative)","example":596062,"isRequired":true,"uniqueKey":"coinData.count","typeLabel":"number"},"symbol":{"type":"string","description":"Trading symbol of the coin","example":"PEPE","isRequired":true,"uniqueKey":"coinData.symbol","typeLabel":"string"},"totalWorth":{"type":"number","description":"Total worth of the coins at transaction time in USD","example":6.06791116,"isRequired":true,"uniqueKey":"coinData.totalWorth","typeLabel":"number"},"currentValue":{"type":"number","description":"Current market value of the coins in USD","example":5.851540654,"isRequired":true,"uniqueKey":"coinData.currentValue","typeLabel":"number"}},"uniqueKey":"coinData","typeLabel":"object"},"transfers":{"description":"List of transfers involved in the transaction (e.g., coins received/sent)","type":"array","items":{"type":"object","properties":{"transferType":{"type":"string","description":"Type of transfer operation","example":"Received","enum":["Received","Sent"],"isRequired":true,"uniqueKey":"transfers.items.[INDEX].transferType","typeLabel":"enum\u003cstring>"},"items":{"description":"List of items involved in the transfer","type":"array","items":{"type":"object","properties":{"coin":{"type":"object","description":"Information about the coin being transferred","required":["rank","identifier","symbol","name","icon","priceChange24h","priceChange1h","priceChange7d","priceChange1m","volume"],"properties":{"rank":{"type":"number","example":2,"description":"Market rank of the coin","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.rank","typeLabel":"number"},"identifier":{"type":"string","example":"ethereum","description":"Unique identifier for the coin","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.identifier","typeLabel":"string"},"symbol":{"type":"string","example":"ETH","description":"Trading symbol of the coin","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.symbol","typeLabel":"string"},"name":{"type":"string","description":"Full name of the coin","example":"Ethereum","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.name","typeLabel":"string"},"icon":{"type":"string","example":"https://static.coinstats.app/coins/1650455629727.png","description":"URL to the coin icon image","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.icon","typeLabel":"string"},"priceChange24h":{"type":"number","example":-5.74,"description":"Price change percentage in the last 24 hours","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.priceChange24h","typeLabel":"number"},"priceChange1h":{"type":"number","example":0.1,"description":"Price change percentage in the last 1 hour","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.priceChange1h","typeLabel":"number"},"priceChange7d":{"type":"number","example":1.12,"description":"Price change percentage in the last 7 days","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.priceChange7d","typeLabel":"number"},"priceChange1m":{"type":"number","example":8.42,"description":"Price change percentage in the last 1 month","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.priceChange1m","typeLabel":"number"},"volume":{"type":"number","example":61315198931.43572,"description":"Trading volume in the last 24 hours (USD)","isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.volume","typeLabel":"number"},"isFake":{"type":"boolean","example":false,"description":"Whether the coin is identified as fake","uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.isFake","typeLabel":"boolean"},"isFiat":{"type":"boolean","example":false,"description":"Whether the coin is a fiat currency","uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin.isFiat","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].coin","typeLabel":"object"},"count":{"type":"number","description":"Amount of coins transferred (can be negative for outgoing transfers)","example":-0.00000544,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].count","typeLabel":"number"},"toAddress":{"type":"string","description":"Destination wallet address","example":"0x42382d7853beb8d0ec968de4184a6a3c89cf6b5f","uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].toAddress","typeLabel":"string"},"fromAddress":{"type":"string","description":"Source wallet address","example":"0x8ac77cbf06b44ec918e4ed99698e83a0be222e0e","uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].fromAddress","typeLabel":"string"},"totalWorth":{"type":"number","description":"Total worth of the transferred amount in USD","example":0.0000054389555199999995,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].totalWorth","typeLabel":"number"},"price":{"type":"number","description":"Price per unit of the coin in USD at the time of transfer","example":0.999808,"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX].price","typeLabel":"number"}},"required":["coin"],"uniqueKey":"transfers.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"transfers.items.[INDEX].\\items","typeLabel":"object[]"}},"required":["transferType","items"],"uniqueKey":"transfers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"transfers","typeLabel":"object[]"},"note":{"type":"object","description":"Transaction Notes","required":["name","icon"],"properties":{"name":{"type":"string","description":"Name of the portfolio or exchange where the transaction occurred","example":"KuCoin Spot","isRequired":true,"uniqueKey":"note.name","typeLabel":"string"},"icon":{"type":"string","description":"URL to the portfolio or exchange icon","example":"https://static.coinstats.app/portfolio_images/kucoin_dark.png","isRequired":true,"uniqueKey":"note.icon","typeLabel":"string"}},"uniqueKey":"note","typeLabel":"object"}},"required":["transactionType","date","profitLoss","fee","portfolioInfo"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"transactionType":"Roll In","date":"2025-08-28T08:35:50.384Z","profitLoss":{"profit":-0.21637050600000052,"profitPercent":-3.5658153241650377,"currentValue":5.851540654},"fee":{"coin":{"rank":2,"identifier":"ethereum","symbol":"ETH","name":"Ethereum","icon":"https://static.coinstats.app/coins/1650455629727.png","priceChange24h":-5.74,"priceChange1h":0.1,"priceChange7d":1.12,"priceChange1m":8.42,"volume":61315198931.43572,"isFake":false,"isFiat":false},"count":0.001,"totalWorth":25.5,"price":25500,"toAddress":"0x42382d7853beb8d0ec968de4184a6a3c89cf6b5f","fromAddress":"0x8ac77cbf06b44ec918e4ed99698e83a0be222e0e"},"portfolioInfo":{"name":"KuCoin Spot","icon":"https://static.coinstats.app/portfolio_images/kucoin_dark.png"},"coinData":{"identifier":"pepe","count":596062,"symbol":"PEPE","totalWorth":6.06791116,"currentValue":5.851540654},"transfers":[{"transferType":"Received","items":[{"coin":{"rank":2,"identifier":"ethereum","symbol":"ETH","name":"Ethereum","icon":"https://static.coinstats.app/coins/1650455629727.png","priceChange24h":-5.74,"priceChange1h":0.1,"priceChange7d":1.12,"priceChange1m":8.42,"volume":61315198931.43572,"isFake":false,"isFiat":false},"count":-0.00000544,"toAddress":"0x42382d7853beb8d0ec968de4184a6a3c89cf6b5f","fromAddress":"0x8ac77cbf06b44ec918e4ed99698e83a0be222e0e","totalWorth":0.0000054389555199999995,"price":0.999808}]}],"note":{"name":"KuCoin Spot","icon":"https://static.coinstats.app/portfolio_images/kucoin_dark.png"}}}},"exampleType":"generated"}},"exampleType":"generated"},"95f362ea-b999-49fe-b62d-a364b3a7a1b6":{"description":"Bad Request","content":{"application/json":{"example":{"statusCode":400,"message":"Bad Request","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":400,"message":"Bad Request","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"259ed57d-5edd-4ca2-aaf0-c260115e1b0a":{"description":"Unauthorized","content":{"application/json":{"example":{"statusCode":401,"message":"Unauthorized","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":401,"message":"Unauthorized","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"455627ea-43e2-4735-a2c9-da64341c53f5":{"description":"Forbidden","content":{"application/json":{"example":{"statusCode":403,"message":"Forbidden","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":403,"message":"Forbidden","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"6750632a-6e8e-4a07-9d42-f0c370f19e24":{"description":"Not Found","content":{"application/json":{"example":{"statusCode":404,"message":"Not Found","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"message":"Not Found","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"35433067-ddc3-4cd2-81a4-6a27b8582a0e":{"description":"Conflict (for some endpoints)","content":{"application/json":{"example":{"statusCode":409,"message":"Transactions not synced","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":409,"message":"Transactions not synced","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"afff6957-ad44-4e1c-9a4a-40d23ce0a798":{"description":"Too Many Requests","content":{"application/json":{"example":{"statusCode":429,"message":"Rate limit exceeded","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"},"examples":{"Example":{"title":"Example","value":{"statusCode":429,"message":"Rate limit exceeded","requestId":"11111111-2222-3333-4444-555555555555","path":"\u003crequested-endpoint>"}}},"exampleType":"examples"}},"exampleType":"examples"},"dd80912a-30ca-4074-9548-329bd8e669b8":{"description":"Service Unavailable","content":{"application/json":{"example":{"statusCode":503,"message":"Service Unavailable. Please Contact Support"},"examples":{"Example":{"title":"Example","value":{"statusCode":503,"message":"Service Unavailable. Please Contact Support"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"ca4f5a05-cad2-4d9f-82b3-22fe4579e5df":{"X-API-KEY":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","scopes":[],"schemeName":"X-API-KEY"}}},"servers":{"9c612ecb-19d3-42e5-a2f7-a0654beb6b88":{"url":"https://api.coinstats.app"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","scopes":[],"schemeName":"X-API-KEY"},"schema":{"title":"X-API-KEY","type":"string","description":"API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the `X-API-KEY` request header. Never expose your key in client-side code.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"X-API-KEY","name":"X-API-KEY"}],"title":"X-API-KEY"}]},"originalFileLocation":"api-docs/api-reference/openapi.json"},"subdomain":"dev-c758229b","siteName":"CoinStats PublicAPI","title":"Add Portfolio Transaction","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T09:32:54.377Z","originalFileLocation":"api-docs/openapi/add-portfolio-transaction.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=\"Add a new transaction to your manual portfolio\">\u003cmeta data-mint-head name=\"application-name\" content=\"CoinStats PublicAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add Portfolio Transaction\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a new transaction to your manual portfolio\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CoinStats API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://static.coinstats.app/z/coinstats_open_api.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add Portfolio Transaction\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a new transaction to your manual portfolio\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://static.coinstats.app/z/coinstats_open_api.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dev-c758229b/xCGASWQYDIemCUkO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CoinStats API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF9332\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"CoinStats\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@coinstats\">\u003cmeta data-mint-head name=\"application-name\" content=\"CoinStats API Documentation\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#FF9332\">\u003clink data-mint-head rel=\"canonical\" href=\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-docs/openapi/add-portfolio-transaction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://coinstats.app/#organization\",\"name\":\"CoinStats PublicAPI\",\"url\":\"https://coinstats.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dev-c758229b/t8KX4os34x2U4jMV/api-docs/assets/light.svg?fit=max\u0026auto=format\u0026n=t8KX4os34x2U4jMV\u0026q=85\u0026s=420a1f730c8e4b41b5d12614976160c3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://coinstats.app#website\",\"name\":\"CoinStats PublicAPI\",\"url\":\"https://coinstats.app\",\"publisher\":{\"@id\":\"https://coinstats.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction#webpage\",\"url\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction\",\"name\":\"Add Portfolio Transaction\",\"description\":\"Add a new transaction to your manual portfolio\",\"dateModified\":\"2026-11-03T09:32:54.377Z\",\"isPartOf\":{\"@id\":\"https://coinstats.app#website\"},\"breadcrumb\":{\"@id\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Wallets \u0026 Portfolios\",\"item\":\"https://coinstats.app/api-docs/openapi/get-blockchains\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User Portfolio\",\"item\":\"https://coinstats.app/api-docs/openapi/get-portfolio-list\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add Portfolio Transaction\",\"item\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction#apireference\",\"headline\":\"Add Portfolio Transaction\",\"name\":\"Add Portfolio Transaction\",\"description\":\"Add a new transaction to your manual portfolio\",\"url\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction\",\"mainEntityOfPage\":{\"@id\":\"https://coinstats.app/api-docs/openapi/add-portfolio-transaction#webpage\"},\"image\":\"https://static.coinstats.app/z/coinstats_open_api.png\",\"dateModified\":\"2026-11-03T09:32:54.377Z\",\"publisher\":{\"@id\":\"https://coinstats.app/#organization\"},\"isPartOf\":{\"@id\":\"https://coinstats.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CoinStats PublicAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CoinStats PublicAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-docs/openapi/add-portfolio-transaction.md","siteName":"CoinStats PublicAPI","nav":{"global":{"anchors":[{"anchor":"Api Keys","icon":"key","href":"https://openapi.coinstats.app"},{"anchor":"CoinStats","icon":"globe","href":"https://coinstats.app"},{"anchor":"Telegram API Support","icon":"telegram","href":"https://t.me/+JPUMD1QAMTNmNGQy"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/coinstats"}]},"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/api-docs"}]},{"tab":"API reference","icon":"code","pages":[{"title":"API Reference","href":"/api-docs/api-reference/introduction"},{"group":"Market Data","pages":[{"group":"Coins \u0026 Prices","icon":"coins","expanded":false,"pages":[{"title":"Get Coins","deprecated":null,"version":null,"sidebarTitle":"Get coins","openapi":"/api-docs/api-reference/openapi.json get /v1/coins","href":"/api-docs/openapi/get-coins"},{"title":"Get Coin By Id","deprecated":null,"version":null,"sidebarTitle":"Get coin by id","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/{coinId}","href":"/api-docs/openapi/get-coin-by-id"},{"title":"Get Coin Chart By Id","deprecated":null,"version":null,"sidebarTitle":"Get coin chart by id","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/{coinId}/charts","href":"/api-docs/openapi/get-coin-chart-by-id"},{"title":"Get Coins Charts","deprecated":null,"version":null,"sidebarTitle":"Get coins charts","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/charts","href":"/api-docs/openapi/get-coins-charts"},{"title":"Get Coin Avg Price","deprecated":null,"version":null,"sidebarTitle":"Get coin avg price","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/price/avg","href":"/api-docs/openapi/get-coin-avg-price"},{"title":"Get Coin Exchange Price","deprecated":null,"version":null,"sidebarTitle":"Get coin exchange price","openapi":"/api-docs/api-reference/openapi.json get /v1/coins/price/exchange","href":"/api-docs/openapi/get-coin-exchange-price"},{"title":"Get Ohlcv Candles","deprecated":null,"version":null,"sidebarTitle":"Get ohlcv candles","openapi":"/api-docs/api-reference/openapi.json get /v1/ohlcv/candles","href":"/api-docs/openapi/get-ohlcv-candles"},{"title":"Get Ticker Exchanges","deprecated":null,"version":null,"sidebarTitle":"Get ticker exchanges","openapi":"/api-docs/api-reference/openapi.json get /v1/tickers/exchanges","href":"/api-docs/openapi/get-ticker-exchanges"},{"title":"Get Ticker Markets","deprecated":null,"version":null,"sidebarTitle":"Get ticker markets","openapi":"/api-docs/api-reference/openapi.json get /v1/tickers/markets","href":"/api-docs/openapi/get-ticker-markets"},{"title":"Get Fiat Currencies","deprecated":null,"version":null,"sidebarTitle":"Get fiat currencies","openapi":"/api-docs/api-reference/openapi.json get /v1/fiats","href":"/api-docs/openapi/get-fiat-currencies"},{"title":"Get Market Cap","deprecated":null,"version":null,"sidebarTitle":"Get market cap","openapi":"/api-docs/api-reference/openapi.json get /v1/markets","href":"/api-docs/openapi/get-market-cap"},{"title":"Get Currencies","deprecated":null,"version":null,"sidebarTitle":"Get currencies","openapi":"/api-docs/api-reference/openapi.json get /v1/currencies","href":"/api-docs/openapi/get-currencies"}]},{"group":"Real-world Assets","icon":"landmark","expanded":false,"pages":[{"title":"Get Rwa Overview","deprecated":null,"version":null,"sidebarTitle":"Get rwa overview","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/overview","href":"/api-docs/openapi/get-rwa-overview"},{"title":"Get Rwa Assets","deprecated":null,"version":null,"sidebarTitle":"Get rwa assets","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets","href":"/api-docs/openapi/get-rwa-assets"},{"title":"Get Rwa History","deprecated":null,"version":null,"sidebarTitle":"Get rwa history","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/history","href":"/api-docs/openapi/get-rwa-history"},{"title":"Get Rwa Asset","deprecated":null,"version":null,"sidebarTitle":"Get rwa asset","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}","href":"/api-docs/openapi/get-rwa-asset"},{"title":"Get Rwa Tokens","deprecated":null,"version":null,"sidebarTitle":"Get rwa tokens","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/tokens","href":"/api-docs/openapi/get-rwa-tokens"},{"title":"Get Rwa Markets","deprecated":null,"version":null,"sidebarTitle":"Get rwa markets","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/markets","href":"/api-docs/openapi/get-rwa-markets"},{"title":"Get Rwa Asset History","deprecated":null,"version":null,"sidebarTitle":"Get rwa asset history","openapi":"/api-docs/api-reference/openapi.json get /v1/rwa/assets/{rwaId}/history","href":"/api-docs/openapi/get-rwa-asset-history"}]},{"group":"Market Insights","icon":"lightbulb","expanded":false,"pages":[{"title":"Btc Dominance","deprecated":null,"version":null,"sidebarTitle":"Btc dominance","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/btc-dominance","href":"/api-docs/openapi/btc-dominance"},{"title":"Fear And Greed","deprecated":null,"version":null,"sidebarTitle":"Fear and greed","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/fear-and-greed","href":"/api-docs/openapi/fear-and-greed"},{"title":"Fear And Greed Chart","deprecated":null,"version":null,"sidebarTitle":"Fear and greed chart","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/fear-and-greed/chart","href":"/api-docs/openapi/fear-and-greed-chart"},{"title":"Rainbow Chart","deprecated":null,"version":null,"sidebarTitle":"Rainbow chart","openapi":"/api-docs/api-reference/openapi.json get /v1/insights/rainbow-chart/{coinId}","href":"/api-docs/openapi/rainbow-chart"}]},{"group":"News","icon":"newspaper","expanded":false,"pages":[{"title":"Get News Sources","deprecated":null,"version":null,"sidebarTitle":"Get news sources","openapi":"/api-docs/api-reference/openapi.json get /v1/news/sources","href":"/api-docs/openapi/get-news-sources"},{"title":"Get News","deprecated":null,"version":null,"sidebarTitle":"Get news","openapi":"/api-docs/api-reference/openapi.json get /v1/news","href":"/api-docs/openapi/get-news"},{"title":"Get News By Type","deprecated":null,"version":null,"sidebarTitle":"Get news by type","openapi":"/api-docs/api-reference/openapi.json get /v1/news/type/{type}","href":"/api-docs/openapi/get-news-by-type"},{"title":"Get News By Id","deprecated":null,"version":null,"sidebarTitle":"Get news by id","openapi":"/api-docs/api-reference/openapi.json get /v1/news/{id}","href":"/api-docs/openapi/get-news-by-id"}]},{"group":"NFTs","icon":"image","expanded":false,"pages":[{"title":"Get NFT Collection By Address","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/collection/{collectionAddress}","href":"/api-docs/openapi/get-nft-collection-by-address"},{"title":"Get NFT Collection Owners","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection owners","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/collection/{collectionAddress}/owners","href":"/api-docs/openapi/get-nft-collection-owners"},{"title":"Get NFT Collection Assets By Address","deprecated":null,"version":null,"sidebarTitle":"Get NFT collection assets","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/{collectionAddress}/assets","href":"/api-docs/openapi/get-nft-collection-assets-by-address"},{"title":"Get NFT Collection Asset By Token ID","deprecated":null,"version":null,"sidebarTitle":"Get NFT asset by token ID","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/{collectionAddress}/asset/{tokenId}","href":"/api-docs/openapi/get-nft-collection-asset-by-tokenid"},{"title":"Get NFT Tokens Batch","deprecated":null,"version":null,"sidebarTitle":"Get NFTs in batch","openapi":"/api-docs/api-reference/openapi.json post /v1/nft/tokens/batch","href":"/api-docs/openapi/get-nft-tokens-batch"},{"title":"Refresh NFT Asset Metadata","deprecated":null,"version":null,"sidebarTitle":"Refresh NFT metadata","openapi":"/api-docs/api-reference/openapi.json post /v1/nft/{collectionAddress}/asset/{tokenId}/refresh","href":"/api-docs/openapi/refresh-nft-asset-metadata"},{"title":"Get Trending NFTs","deprecated":null,"version":null,"sidebarTitle":"Get trending NFTs","openapi":"/api-docs/api-reference/openapi.json get /v1/nft/trending","href":"/api-docs/openapi/get-trending-nfts"}]},{"group":"Token Risks","icon":"shield-halved","expanded":false,"pages":[{"title":"Token Risks","deprecated":null,"version":null,"sidebarTitle":"Token risks","openapi":"/api-docs/api-reference/openapi.json get /v1/token-risks","href":"/api-docs/openapi/token-risks"}]}]},{"group":"Wallets \u0026 Portfolios","pages":[{"group":"Wallet Data","icon":"wallet","expanded":false,"pages":[{"title":"Get Blockchains","deprecated":null,"version":null,"sidebarTitle":"Get blockchains","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/blockchains","href":"/api-docs/openapi/get-blockchains"},{"title":"Get Wallet Balance","deprecated":null,"version":null,"sidebarTitle":"Get wallet balance","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/balance","href":"/api-docs/openapi/get-wallet-balance"},{"title":"Get Wallet Balance Many","deprecated":null,"version":null,"sidebarTitle":"Get wallet balance many","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/balance/many","href":"/api-docs/openapi/get-wallet-balance-many"},{"title":"Transactions Sync","deprecated":null,"version":null,"sidebarTitle":"Transactions sync","openapi":"/api-docs/api-reference/openapi.json patch /v1/wallet/transactions","href":"/api-docs/openapi/transactions-sync"},{"title":"Get Wallet Transactions","deprecated":null,"version":null,"sidebarTitle":"Get wallet transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/transactions","href":"/api-docs/openapi/get-wallet-transactions"},{"title":"Get Wallet Transaction Types","deprecated":null,"version":null,"sidebarTitle":"Get wallet transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/transactions/types","href":"/api-docs/openapi/get-wallet-transaction-types"},{"title":"Get Wallet Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get wallet sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/status","href":"/api-docs/openapi/get-wallet-sync-status"},{"title":"get wallet profit \u0026 loss","deprecated":null,"version":null,"sidebarTitle":"Get wallet pl","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/pl","href":"/api-docs/openapi/get-wallet-pl"},{"title":"Get Wallet PnL History","deprecated":null,"version":null,"sidebarTitle":"Get wallet pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/pl/history","href":"/api-docs/openapi/get-wallet-pl-history"},{"title":"Wallet Chart","deprecated":null,"version":null,"sidebarTitle":"Wallet chart","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/chart","href":"/api-docs/openapi/wallet-chart"},{"title":"Wallet Chart Many","deprecated":null,"version":null,"sidebarTitle":"Wallet chart many","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/chart/many","href":"/api-docs/openapi/wallet-chart-many"},{"title":"Get Wallet Defi","deprecated":null,"version":null,"sidebarTitle":"Get wallet defi","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/defi","href":"/api-docs/openapi/get-wallet-defi"}]},{"group":"NFTs","icon":"image","expanded":false,"pages":[{"title":"Get Wallet NFTs","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFTs","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft","href":"/api-docs/openapi/get-wallet-nfts"},{"title":"Get Wallet NFT Collections","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT collections","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/collections","href":"/api-docs/openapi/get-wallet-nft-collections"},{"title":"Get Wallet NFT Summary","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT summary","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/summary","href":"/api-docs/openapi/get-wallet-nft-summary"},{"title":"Get Wallet NFT Activity","deprecated":null,"version":null,"sidebarTitle":"Get wallet NFT activity","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/activity","href":"/api-docs/openapi/get-wallet-nft-activity"},{"title":"Get Wallet NFT Holds","deprecated":null,"version":null,"sidebarTitle":"Check wallet NFT holdings","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/nft/holds","href":"/api-docs/openapi/get-wallet-nft-holds"}]},{"group":"Ordinals \u0026 Runes","icon":"bitcoin-sign","expanded":false,"pages":[{"title":"Get Wallet Ordinals","deprecated":null,"version":null,"sidebarTitle":"Get wallet ordinals","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/ordinals","href":"/api-docs/openapi/get-wallet-ordinals"},{"title":"Get Wallet Runes","deprecated":null,"version":null,"sidebarTitle":"Get wallet runes","openapi":"/api-docs/api-reference/openapi.json get /v1/wallet/runes","href":"/api-docs/openapi/get-wallet-runes"}]},{"group":"Perpetuals","icon":"arrow-trend-up","expanded":false,"pages":[{"title":"Get Perpetual Positions","deprecated":null,"version":null,"sidebarTitle":"Get perpetual positions","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/perpetual/positions","href":"/api-docs/openapi/get-perpetual-positions"},{"title":"Get Perpetual Trades","deprecated":null,"version":null,"sidebarTitle":"Get perpetual trades","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/perpetual/trades","href":"/api-docs/openapi/get-perpetual-trades"}]},{"group":"Exchange Connection","icon":"arrow-right-arrow-left","expanded":false,"pages":[{"title":"Get Exchanges","deprecated":null,"version":null,"sidebarTitle":"Get exchanges","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/support","href":"/api-docs/openapi/get-exchanges"},{"title":"Get Exchange Balance","deprecated":null,"version":null,"sidebarTitle":"Get exchange balance","openapi":"/api-docs/api-reference/openapi.json post /v1/exchange/balance","href":"/api-docs/openapi/get-exchange-balance"},{"title":"Get Exchange Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get exchange sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/status","href":"/api-docs/openapi/get-exchange-sync-status"},{"title":"Get Exchange Transactions","deprecated":null,"version":null,"sidebarTitle":"Get exchange transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/transactions","href":"/api-docs/openapi/get-exchange-transactions"},{"title":"Get Exchange Transaction Types","deprecated":null,"version":null,"sidebarTitle":"Get exchange transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/transactions/types","href":"/api-docs/openapi/get-exchange-transaction-types"},{"title":"Get Exchange PnL","deprecated":null,"version":null,"sidebarTitle":"Get exchange pl","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/pl","href":"/api-docs/openapi/get-exchange-pl"},{"title":"Get Exchange PnL History","deprecated":null,"version":null,"sidebarTitle":"Get exchange pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/pl/history","href":"/api-docs/openapi/get-exchange-pl-history"},{"title":"Get Exchange Chart","deprecated":null,"version":null,"sidebarTitle":"Get exchange chart","openapi":"/api-docs/api-reference/openapi.json get /v1/exchange/chart","href":"/api-docs/openapi/get-exchange-chart"},{"title":"Exchange Sync Status","deprecated":null,"version":null,"sidebarTitle":"Exchange sync status","openapi":"/api-docs/api-reference/openapi.json patch /v1/exchange/sync","href":"/api-docs/openapi/exchange-sync-status"}]},{"group":"User Portfolio","icon":"briefcase","expanded":false,"pages":[{"title":"Get Portfolio List","deprecated":null,"version":null,"sidebarTitle":"Get portfolio list","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/list","href":"/api-docs/openapi/get-portfolio-list"},{"title":"Connect Portfolio Wallet","deprecated":null,"version":null,"sidebarTitle":"Connect portfolio wallet","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/wallet","href":"/api-docs/openapi/connect-portfolio-wallet"},{"title":"Connect Portfolio Exchange","deprecated":null,"version":null,"sidebarTitle":"Connect portfolio exchange","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/exchange","href":"/api-docs/openapi/connect-portfolio-exchange"},{"title":"Get Portfolio Value","deprecated":null,"version":null,"sidebarTitle":"Get portfolio value","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/value","href":"/api-docs/openapi/get-portfolio-value"},{"title":"Get Portfolio Coins","deprecated":null,"version":null,"sidebarTitle":"Get portfolio coins","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/coins","href":"/api-docs/openapi/get-portfolio-coins"},{"title":"Get Portfolio Chart","deprecated":null,"version":null,"sidebarTitle":"Get portfolio chart","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/chart","href":"/api-docs/openapi/get-portfolio-chart"},{"title":"Get Portfolio PnL History","deprecated":null,"version":null,"sidebarTitle":"Get portfolio pl history","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/pl/history","href":"/api-docs/openapi/get-portfolio-pl-history"},{"title":"Get Portfolio Transactions","deprecated":null,"version":null,"sidebarTitle":"Get portfolio transactions","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/transactions","href":"/api-docs/openapi/get-portfolio-transactions"},{"title":"Get Portfolio Transaction Types","description":"Get all supported transaction types","deprecated":null,"version":null,"sidebarTitle":"Get portfolio transaction types","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/transactions/types","href":"/api-docs/openapi/get-portfolio-transaction-types"},{"title":"Add Portfolio Transaction","deprecated":null,"version":null,"sidebarTitle":"Add portfolio transaction","openapi":"/api-docs/api-reference/openapi.json post /v1/portfolio/transaction","href":"/api-docs/openapi/add-portfolio-transaction"},{"title":"Get Portfolio Defi","description":"Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities","deprecated":null,"version":null,"sidebarTitle":"Get portfolio defi","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/defi","href":"/api-docs/openapi/get-portfolio-defi"},{"title":"Get Portfolio Snapshot Items","deprecated":null,"version":null,"sidebarTitle":"Get portfolio snapshot items","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/snapshot/items","href":"/api-docs/openapi/get-portfolio-snapshot-items"},{"title":"Get Portfolio Sync Status","deprecated":null,"version":null,"sidebarTitle":"Get portfolio sync status","openapi":"/api-docs/api-reference/openapi.json get /v1/portfolio/status","href":"/api-docs/openapi/get-portfolio-sync-status"},{"title":"Sync Portfolio","deprecated":null,"version":null,"sidebarTitle":"Sync portfolio","openapi":"/api-docs/api-reference/openapi.json patch /v1/portfolio/sync","href":"/api-docs/openapi/sync-portfolio"},{"title":"Delete Portfolio","deprecated":null,"version":null,"sidebarTitle":"Delete portfolio","openapi":"/api-docs/api-reference/openapi.json delete /v1/portfolio/{portfolioId}","href":"/api-docs/openapi/delete-portfolio"}]}]},{"group":"Prediction Markets","pages":[{"group":"Markets","icon":"chart-line","expanded":false,"pages":[{"title":"List Markets","deprecated":null,"version":null,"sidebarTitle":"List markets","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets","href":"/api-docs/openapi/list-markets"},{"title":"Trending Markets","deprecated":null,"version":null,"sidebarTitle":"Trending markets","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/trending","href":"/api-docs/openapi/trending-markets"},{"title":"Get Market","deprecated":null,"version":null,"sidebarTitle":"Get market","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}","href":"/api-docs/openapi/get-market"},{"title":"Market Prices","deprecated":null,"version":null,"sidebarTitle":"Market prices","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/prices","href":"/api-docs/openapi/market-prices"},{"title":"Market Orderbook","deprecated":null,"version":null,"sidebarTitle":"Market orderbook","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/orderbook","href":"/api-docs/openapi/market-orderbook"},{"title":"Market Bars","deprecated":null,"version":null,"sidebarTitle":"Market bars","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/bars","href":"/api-docs/openapi/market-bars"},{"title":"Market Price At","deprecated":null,"version":null,"sidebarTitle":"Market price at","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/price-at","href":"/api-docs/openapi/market-price-at"},{"title":"Market Price History","deprecated":null,"version":null,"sidebarTitle":"Market price history","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/price-history","href":"/api-docs/openapi/market-price-history"},{"title":"Market Cross Venue","deprecated":null,"version":null,"sidebarTitle":"Market cross venue","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/markets/{slug}/cross-venue","href":"/api-docs/openapi/market-cross-venue"}]},{"group":"Events","icon":"calendar-days","expanded":false,"pages":[{"title":"List Events","deprecated":null,"version":null,"sidebarTitle":"List events","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events","href":"/api-docs/openapi/list-events"},{"title":"Trending Events","deprecated":null,"version":null,"sidebarTitle":"Trending events","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/trending","href":"/api-docs/openapi/trending-events"},{"title":"Get Event","deprecated":null,"version":null,"sidebarTitle":"Get event","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/{slug}","href":"/api-docs/openapi/get-event"},{"title":"Event Cross Venue","deprecated":null,"version":null,"sidebarTitle":"Event cross venue","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/events/{slug}/cross-venue","href":"/api-docs/openapi/event-cross-venue"}]},{"group":"Traders","icon":"users","expanded":false,"pages":[{"title":"List Traders","deprecated":null,"version":null,"sidebarTitle":"List traders","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders","href":"/api-docs/openapi/list-traders"},{"title":"Top Traders","deprecated":null,"version":null,"sidebarTitle":"Top traders","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/top","href":"/api-docs/openapi/top-traders"},{"title":"Get Trader","deprecated":null,"version":null,"sidebarTitle":"Get trader","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}","href":"/api-docs/openapi/get-trader"},{"title":"Trader Positions","deprecated":null,"version":null,"sidebarTitle":"Trader positions","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/positions","href":"/api-docs/openapi/trader-positions"},{"title":"Trader Trades","deprecated":null,"version":null,"sidebarTitle":"Trader trades","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/trades","href":"/api-docs/openapi/trader-trades"},{"title":"Trader Activity","deprecated":null,"version":null,"sidebarTitle":"Trader activity","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/activity","href":"/api-docs/openapi/trader-activity"},{"title":"Trader Pnl History","deprecated":null,"version":null,"sidebarTitle":"Trader pnl history","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/pnl-history","href":"/api-docs/openapi/trader-pnl-history"},{"title":"Trader Category Stats","deprecated":null,"version":null,"sidebarTitle":"Trader category stats","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/category-stats","href":"/api-docs/openapi/trader-category-stats"},{"title":"Trader Trade Stats","deprecated":null,"version":null,"sidebarTitle":"Trader trade stats","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/trade-stats","href":"/api-docs/openapi/trader-trade-stats"},{"title":"Trader Score","deprecated":null,"version":null,"sidebarTitle":"Trader score","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/traders/{address}/score","href":"/api-docs/openapi/trader-score"}]},{"group":"Analytics","icon":"chart-pie","expanded":false,"pages":[{"title":"Analytics Overview","deprecated":null,"version":null,"sidebarTitle":"Analytics overview","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/analytics/overview","href":"/api-docs/openapi/analytics-overview"},{"title":"Analytics Market Signals","deprecated":null,"version":null,"sidebarTitle":"Analytics market signals","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/analytics/market-signals","href":"/api-docs/openapi/analytics-market-signals"},{"title":"Venue Volume","deprecated":null,"version":null,"sidebarTitle":"Venue volume","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/volume","href":"/api-docs/openapi/venue-volume"},{"title":"Get Venue Volume","deprecated":null,"version":null,"sidebarTitle":"Get venue volume","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/volume/{venue}","href":"/api-docs/openapi/get-venue-volume"}]},{"group":"Search","icon":"magnifying-glass","expanded":false,"pages":[{"title":"Search","deprecated":null,"version":null,"sidebarTitle":"Search","openapi":"/api-docs/api-reference/openapi.json get /v1/prediction/search","href":"/api-docs/openapi/search"}]}]},{"group":"Account","pages":[{"group":"Usage","icon":"gauge","expanded":false,"pages":[{"title":"Get Credit Usage","deprecated":null,"version":null,"sidebarTitle":"Get credit usage","openapi":"/api-docs/api-reference/openapi.json get /v1/usage/credits","href":"/api-docs/openapi/get-credit-usage"}]},{"group":"Status","icon":"heart-pulse","expanded":false,"pages":[{"title":"Get Api Status","deprecated":null,"version":null,"sidebarTitle":"Get api status","openapi":"/api-docs/api-reference/openapi.json get /v1/status","href":"/api-docs/openapi/get-api-status"}]}]}]},{"tab":"Changelog","icon":"code-branch","pages":[{"title":"Changelog","href":"/api-docs/changelog"}]}]},"basePath":"","title":"Add Portfolio Transaction","deploymentId":"dpl_7LpC8LvxVNTZSB7twCcVwH4TeFKv","buildId":"dpl_7LpC8LvxVNTZSB7twCcVwH4TeFKv","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-VIWbtsv8.js","snippetPresets-ewmdA2iz.js","utils-DEEnXwTM.js","style-to-object-BY3JEAdk.js","utils-BUI5OFKw.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DczDVjtE.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C1QFmpNs.js","_Uint8Array-0FSGLZoF.js","isObject-FP1Yky1u.js","ApiExamples-DNfazWM6.js","usePlaygroundInputsStore-CU9Zyvn9.js","shallow-DBWJPCN_.js","isEqual-BgubGfZd.js","CodeSnippets-WO5yBq5U.js","CodeSnippet-CATPUnsR.js","getApiPlaygroundDisplay-DVuSDqoz.js","Page-B2HLrc-g.js","DynamicMarkdown-D4bAuXRS.js","SectionHeading-BNNqN1He.js","icon-C7peNQV4.js","MethodPill-Bl2guf_0.js","getPastedJson-B_gFzCQb.js","Check2Icon-BLniSudB.js","axios-CsQoIw0U.js","Markdown-sagBpmAe.js","AssistantPageLink-CgMPWeT2.js","dist-C5tMjMKm.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}