{
"error": "An internal error occurred",
"details": "Unable to fetch pools for token"
}
{
"error": "An internal error occurred",
"details": "Unable to fetch pools for token"
}
Swap API antigua
Cotización de swap en Solana con la Swap API
Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.
GET
/
rate
Get Swap Quote
curl --request GET \ --url https://swap-v2.solanatracker.io/rate
{
"error": "An internal error occurred",
"details": "Unable to fetch pools for token"
}
{
"error": "An internal error occurred",
"details": "Unable to fetch pools for token"
}
Esta página cubre la antigua Swap API de Solana Tracker en swap-v2.solanatracker.io. Sigue activa y cobra una comisión de plataforma en cada swap. Raptor es una API de swap independiente en raptor.solanatracker.io, actualmente gratuita y sin API key.
El endpoint rate proporciona cotizaciones de precio para swaps de tokens antes de ejecutar una transacción. Úsalo para mostrar a los usuarios la cantidad de salida esperada y el impacto en el precio cuando estén listos para hacer swap.
Este endpoint es solo para cotizaciones previas al swap. No lo uses como API gratuita de precios o datos de mercado. Solicitudes excesivas para fines distintos al swap pueden llevar a rate limiting.
import { SolanaTracker } from 'solana-swap';const tracker = new SolanaTracker('YOUR_API_KEY');// Get rate quote before swapconst quote = await tracker.getRate({ from: 'So11111111111111111111111111111111111111112', // SOL to: '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R', amount: 1, slippage: 10});console.log(`Expected: ${quote.amountOut} tokens`);console.log(`Minimum: ${quote.minAmountOut} tokens`);console.log(`Price impact: ${(quote.priceImpact * 100).toFixed(2)}%`);
En estos ejemplos de SDK, slippage: 10 significa 10%.
from solana_swap import SolanaTrackertracker = SolanaTracker('YOUR_API_KEY')# Get rate quote before swapquote = tracker.get_rate( from_token='So11111111111111111111111111111111111111112', to_token='4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R', amount=1, slippage=10)print(f"Expected: {quote['amountOut']} tokens")print(f"Minimum: {quote['minAmountOut']} tokens")print(f"Price impact: {quote['priceImpact'] * 100:.2f}%")
curl -X GET "https://swap-v2.solanatracker.io/rate?from=So11111111111111111111111111111111111111112&to=4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R&amount=1&slippage=10"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Solana Tracker","colors":{"primary":"#222","light":"#fafafa","dark":"#fff"},"logo":{"light":"https://mintcdn.com/solanatracker/tbRGxreenJeMeUiS/logo/light.png?fit=max\u0026auto=format\u0026n=tbRGxreenJeMeUiS\u0026q=85\u0026s=6de175e4a3183972f09414aef7c09e03","dark":"https://mintcdn.com/solanatracker/tbRGxreenJeMeUiS/logo/dark.png?fit=max\u0026auto=format\u0026n=tbRGxreenJeMeUiS\u0026q=85\u0026s=f0e85b8285a592294510eddfdc897951"},"favicon":"https://mintcdn.com/solanatracker/L_Q6q-7aVovpQheP/favicon.ico?fit=max\u0026auto=format\u0026n=L_Q6q-7aVovpQheP\u0026q=85\u0026s=7bf5f9749399d6d8bbc9c072bd984dee","appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#fafafa","dark":"#050505"}},"navbar":{"links":[{"href":"mailto:contact@solanatracker.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.solanatracker.io/account"}},"footer":{"socials":{"x":"https://x.com/solanatrackr","github":"https://github.com/solanatracker","discord":"https://discord.gg/JH2e9rR9fc","website":"https://www.solanatracker.io"},"links":[{"header":"Products","items":[{"label":"Data API","href":"https://www.solanatracker.io/data-api"},{"label":"Solana RPC","href":"https://www.solanatracker.io/solana-rpc"},{"label":"Yellowstone gRPC","href":"https://www.solanatracker.io/yellowstone-grpc"},{"label":"Dedicated Nodes","href":"https://www.solanatracker.io/dedicated-nodes"}]}]},"search":{"prompt":"Search docs..."},"seo":{"metatags":{"robots":"index, follow, max-image-preview:large, max-snippet:-1","twitter:site":"@solanatrackr"},"organization":{"name":"Solana Tracker","url":"https://www.solanatracker.io","logo":"https://docs.solanatracker.io/logo/light.png","sameAs":["https://www.solanatracker.io","https://x.com/solanatrackr","https://github.com/solanatracker","https://discord.gg/JH2e9rR9fc"]},"indexing":"all"},"fonts":{"family":"Geist","source":"fonts/Geist-Variable.woff2","format":"woff2"},"icons":{"library":"fontawesome"},"integrations":{"ga4":{"measurementId":"G-6Y3G67KM1H"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"API Status","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/signal.svg","href":"https://status.solanatracker.io"},{"anchor":"SDK","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/npm.svg","href":"https://www.npmjs.com/package/@solana-tracker/data-api"},{"anchor":"Discord","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/discord.svg","href":"https://discord.gg/JH2e9rR9fc"}]},"languages":[{"language":"en","default":true,"href":""},{"language":"cn","href":"cn"},{"language":"es","href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"solanatracker","hasAudioNarration":false,"actualSubdomain":"solanatracker","customDomains":["docs.solanatracker.io"],"gitSource":{"type":"github","owner":"yzylab","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb8e9e0a40ba41611d4a3f","collectionId":"d6eda40b-fc4e-4e5a-b89d-e55e2f0f97f0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb8e9e0a40ba41611d4a3f"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeb8e9e0a40ba41611d4a3f","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"en","tag":"Solana RPC","count":89},{"language":"cn","tag":"Solana RPC","count":89},{"language":"es","tag":"Solana RPC","count":89},{"language":"en","tag":"Data API","count":88},{"language":"cn","tag":"Data API","count":88},{"language":"es","tag":"Data API","count":88},{"language":"en","tag":"Datastream","count":87},{"language":"cn","tag":"Datastream","count":87},{"language":"es","tag":"Datastream","count":87},{"language":"en","tag":"API Reference","count":73},{"language":"cn","tag":"API Reference","count":73},{"language":"es","tag":"API Reference","count":73},{"language":"en","tag":"Prediction Markets","count":61},{"language":"cn","tag":"Prediction Markets","count":61},{"language":"es","tag":"Prediction Markets","count":61},{"language":"en","tag":"Endpoints","count":53},{"language":"cn","tag":"Endpoints","count":53},{"language":"es","tag":"Endpoints","count":53},{"language":"en","tag":"Guides","count":37},{"language":"cn","tag":"指南","count":37},{"language":"es","tag":"Guías","count":37},{"language":"en","tag":"Markets","count":24},{"language":"cn","tag":"Markets","count":24},{"language":"es","tag":"Markets","count":24},{"language":"en","tag":"PnL V2","count":22},{"language":"en","tag":"Network","count":22},{"language":"cn","tag":"PnL V2","count":22},{"language":"cn","tag":"网络","count":22},{"language":"es","tag":"PnL V2","count":22},{"language":"es","tag":"Red","count":22}],"searchSettings":{"showContentSnippets":true,"maxResults":7}},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"contact@solanatracker.io"}},"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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/solanatracker/f4b18e6ac96dfbbc/style.css"},{"filePath":"hugeicons.css","href":"/_mintlify/custom/solanatracker/c65a324477e535da/hugeicons.css"},{"filePath":"release-badges.css","content":"#navigation-items a:is([href$=\"/datastream/websockets/liquiditytoken\"],[href$=\"/datastream/websockets/liquiditytokenpool\"],[href$=\"/datastream/websockets/liquiditytokenpoolwallet\"],[href$=\"/datastream/websockets/liquiditypool\"],[href$=\"/datastream/websockets/liquiditywallet\"],[href$=\"/guides/liquidity\"]){--release-label: \"NEW\";--release-ink: #066345;--release-fill: #e3f4eb}#navigation-items a:is([href$=\"/data-api/trades/get-token-trades\"],[href$=\"/data-api/trades/get-pool-specific-trades\"],[href$=\"/data-api/trades/get-user-specific-token-trades\"],[href$=\"/data-api/trades/get-user-specific-pool-trades\"]){--release-label: \"UPDATED\";--release-ink: #1d4ed8;--release-fill: #e8efff}#navigation-items a:is([href$=\"/datastream/websockets/liquiditytoken\"],[href$=\"/datastream/websockets/liquiditytokenpool\"],[href$=\"/datastream/websockets/liquiditytokenpoolwallet\"],[href$=\"/datastream/websockets/liquiditypool\"],[href$=\"/datastream/websockets/liquiditywallet\"],[href$=\"/guides/liquidity\"],[href$=\"/data-api/trades/get-token-trades\"],[href$=\"/data-api/trades/get-pool-specific-trades\"],[href$=\"/data-api/trades/get-user-specific-token-trades\"],[href$=\"/data-api/trades/get-user-specific-pool-trades\"])::after{content:var(--release-label);margin-inline-start:auto;flex-shrink:0;align-self:center;padding:2px 5px;border-radius:5px;background:var(--release-fill);color:var(--release-ink);font:600 9px/1.4 var(--st-font);letter-spacing:.035em}.dark #navigation-items a{--release-ink: #86efac;--release-fill: #123025}.dark #navigation-items a[href*=\"/data-api/trades/\"]{--release-ink: #93c5fd;--release-fill: #172b49}#navigation-items [data-nav-tag=\"NEW\"]{background:#e3f4eb;color:#066345;font:600 9px/1.4 var(--st-font);padding:2px 5px;border-radius:5px;letter-spacing:.035em}.dark #navigation-items [data-nav-tag=\"NEW\"]{background:#123025;color:#86efac}"}],"page":{"pagePath":"es/swap-api/rate","slug":"/es/swap-api/rate","pageMetadata":{"title":"Cotización de swap en Solana con la Swap API","description":"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.","sidebarTitle":"Rate","openapi":"openapi.json GET /rate","href":"/es/swap-api/rate"},"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: \"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\"\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},{Card,CardGroup,CodeBlock,CodeGroup,Heading,Note,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Esta página cubre la antigua Swap API de Solana Tracker en `,_jsx(_components.code,{children:`swap-v2.solanatracker.io`}),`. Sigue activa y cobra una comisión de plataforma en cada swap. `,_jsx(_components.a,{href:`/es/raptor/overview`,children:`Raptor`}),` es una API de swap independiente en `,_jsx(_components.code,{children:`raptor.solanatracker.io`}),`, actualmente gratuita y sin API key.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`resumen`,children:`Resumen`}),`\n`,_jsx(_components.p,{children:`El endpoint rate proporciona cotizaciones de precio para swaps de tokens antes de ejecutar una transacción. Úsalo para mostrar a los usuarios la cantidad de salida esperada y el impacto en el precio cuando estén listos para hacer swap.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Este endpoint es solo para cotizaciones previas al swap. No lo uses como API gratuita de precios o datos de mercado. Solicitudes excesivas para fines distintos al swap pueden llevar a rate limiting.`})}),`\n`,_jsx(Heading,{level:`2`,id:`casos-de-uso`,children:`Casos de uso`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cotizaciones pre-swap`}),`: Obtén precios precisos antes de ejecutar un swap`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cálculo de slippage`}),`: Muestra a los usuarios la salida mínima garantizada`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Comprobación de impacto de precio`}),`: Valida que el tamaño de la operación sea aceptable`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`ejemplos-con-sdk`,children:`Ejemplos con SDK`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`15`,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:`15`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SolanaTracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'solana-swap'`}),_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:` tracker`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` SolanaTracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Get rate quote before swap`})}),`\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:` quote`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRate`}),_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:` from:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'So11111111111111111111111111111111111111112'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// SOL`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R'`}),_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:` amount:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` slippage:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10`})]}),`\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:`#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:\"`Expected: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amountOut`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" tokens`\"}),_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:\"`Minimum: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`minAmountOut`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" tokens`\"}),_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:\"`Price impact: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`priceImpact`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toFixed`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_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.p,{children:[`En estos ejemplos de SDK, `,_jsx(_components.code,{children:`slippage: 10`}),` significa 10%.`]}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,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:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` solana_swap `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SolanaTracker`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tracker `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SolanaTracker(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Get rate quote before swap`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`quote `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tracker.get_rate(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` from_token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'So11111111111111111111111111111111111111112'`}),_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:` to_token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R'`}),_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:` amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` slippage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`})]}),`\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:`#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:`\"Expected: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`quote[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'amountOut'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tokens\"`}),_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:`\"Minimum: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`quote[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'minAmountOut'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tokens\"`}),_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:`\"Price impact: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`quote[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'priceImpact'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:.2f}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`%\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://swap-v2.solanatracker.io/rate?from=So11111111111111111111111111111111111111112\u0026to=4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R\u0026amount=1\u0026slippage=10\"`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`campos-de-respuesta`,children:`Campos de respuesta`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amountIn`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Cantidad del token de entrada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amountOut`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Cantidad esperada del token de salida`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`minAmountOut`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Salida mínima tras slippage`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currentPrice`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Precio de mercado actual`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`executionPrice`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Precio real de ejecución`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`priceImpact`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Impacto de precio como decimal (0.05 = 5%)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Fee de trading`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`platformFee`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Fee de plataforma en lamports`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`platformFeeUI`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Fee de plataforma en SOL`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`respuesta-de-ejemplo`,children:`Respuesta de ejemplo`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,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:`19`,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:` \"amountIn\"`}),_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:` \"amountOut\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9181.330823048`}),_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:` \"minAmountOut\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9089.517514818`}),_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:` \"currentPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9181.330823048`}),_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:` \"executionPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9089.517514818`}),_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:` \"priceImpact\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.0334641736518774`}),_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.01`}),_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:` \"baseCurrency\"`}),_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:` \"decimals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_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:` \"mint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"So11111111111111111111111111111111111111112\"`})]}),`\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:` \"quoteCurrency\"`}),_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:` \"decimals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_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:` \"mint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R\"`})]}),`\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:` \"platformFee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9000000`}),_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:` \"platformFeeUI\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.009`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`entender-el-impacto-de-precio`,children:`Entender el impacto de precio`}),`\n`,_jsx(_components.p,{children:`El impacto de precio muestra cuánto mueve tu operación el precio de mercado:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`\u003c 1%`}),` - Excelente liquidez, procede con confianza`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`1-5%`}),` - Aceptable para la mayoría de operaciones`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`> 5%`}),` - Considera una operación más pequeña, otra ruta o esperar a más liquidez`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`valida-antes-del-swap`,children:`Valida antes del swap`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,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:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Check rate before executing swap`})}),`\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:` validateAndSwap`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`swapParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Get quote first`})}),`\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:` quote`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRate`}),_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:` from:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` swapParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` swapParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to`}),_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:` amount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` swapParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_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:` slippage:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` swapParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slippage`})]}),`\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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Check price impact`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`priceImpact`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.05`}),_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:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Price impact too high'`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Execute swap`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`swap`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`swapParams`}),_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`,_jsx(Heading,{level:`2`,id:`errores-comunes`,children:`Errores comunes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Descripción`}),_jsx(_components.th,{children:`Solución`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid or missing token address`})}),_jsx(_components.td,{children:`Dirección de token inválida`}),_jsx(_components.td,{children:`Verifica las direcciones`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid amount`})}),_jsx(_components.td,{children:`Cantidad no válida`}),_jsx(_components.td,{children:`Asegúrate de que la cantidad sea positiva`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid slippage tolerance`})}),_jsx(_components.td,{children:`Slippage no entre 0-100`}),_jsx(_components.td,{children:`Establece slippage entre 0-100`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Unable to fetch pools`})}),_jsx(_components.td,{children:`No se encuentra liquidez`}),_jsx(_components.td,{children:`El token puede no tener pools activos`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`próximos-pasos`,children:`Próximos pasos`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Endpoint Swap`,icon:`https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=f5054c8c4d267e21231eb725b4d3cf51`,iconType:`duotone`,href:`/es/swap-api/swap`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`icons/hugeicons/right-left.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=280\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=0d45adf449615fd4f4e1dad03584b78b 280w, https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=560\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=3c90d7956331d1bae2f01294fceddddc 560w, https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=840\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=edbec4e30002891c3ab1075667feae3c 840w, https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=e2b6db106d804ae2178b181f0aa30e31 1100w, https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=ea36f38e84523d0fe3ca877389cf45a9 1650w, https://mintcdn.com/solanatracker/4PIKDaYde_747jyk/icons/hugeicons/right-left.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=4PIKDaYde_747jyk\u0026q=85\u0026s=e0dfde3098c69d0e7d589d5ba2c2b265 2500w`,children:_jsx(_components.p,{children:`Ejecuta la transacción de swap`})}),_jsx(Card,{title:`SDK de JavaScript`,icon:`https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=8821abe334e67d881003cfa9e82c0bd2`,iconType:`brands`,href:`https://github.com/YZYLAB/solana-swap`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`icons/hugeicons/js.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=280\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=dc0e7468b6b39d16bc8d71a05b81c321 280w, https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=560\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=d4948f361b5886ad548b742a197975b4 560w, https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=840\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=3af88a758cae2838b2a48b6b5a61648c 840w, https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=16a05b4d439956c30a4a4af006fdf515 1100w, https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=b79dace139572dea8a5e460099c205a5 1650w, https://mintcdn.com/solanatracker/l0aXlX5jJ7xpUiwY/icons/hugeicons/js.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=l0aXlX5jJ7xpUiwY\u0026q=85\u0026s=c8cbb281e9bc6f8bb32dffcddbf1fff0 2500w`,children:_jsx(_components.p,{children:`Instala el SDK`})})]})]})}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":"Cotización de swap en Solana con la Swap API","description":"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.","sidebarTitle":"Rate","openapi":"openapi.json GET /rate","href":"/es/swap-api/rate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Resumen","slug":"resumen","depth":2,"children":[]},{"title":"Casos de uso","slug":"casos-de-uso","depth":2,"children":[]},{"title":"Ejemplos con SDK","slug":"ejemplos-con-sdk","depth":2,"children":[]},{"title":"Campos de respuesta","slug":"campos-de-respuesta","depth":2,"children":[{"title":"Respuesta de ejemplo","slug":"respuesta-de-ejemplo","depth":3,"children":[]}]},{"title":"Entender el impacto de precio","slug":"entender-el-impacto-de-precio","depth":2,"children":[]},{"title":"Valida antes del swap","slug":"valida-antes-del-swap","depth":2,"children":[]},{"title":"Errores comunes","slug":"errores-comunes","depth":2,"children":[]},{"title":"Próximos pasos","slug":"próximos-pasos","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/solanatracker/b54537c43919e41e/ws.js","/_mintlify/custom/solanatracker/1b268acf15d54b70/assistant.js","/_mintlify/custom/solanatracker/9a833f877ff92cec/mobile-nav.js","/_mintlify/custom/solanatracker/80a7a41ea7a1626a/minilytics.js"],"openApiReferenceData":{"operation":{"summary":"Get Swap Quote","description":"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.","operationId":"getRate","parameters":["6f1fca08-28fb-4494-bc50-af3ff90ed329","ca5ea302-ab49-461d-b6d1-208d05409ea9","adb4c1c7-a823-4531-8f6d-f87b217eb92f","754a6738-11a6-438c-8960-ad5817300378"],"responses":{"200":"d6319d7b-4707-4dcb-bb70-ca72137b633e","400":"4e8ca93e-760d-4010-a09c-ea1a3d42ed31","500":"a9c25ebd-9627-4403-9c96-a738f9710cef"},"method":"get","type":"path","servers":["31aad083-668f-47ca-a83b-68f291e588bd"],"security":[],"path":"/rate","baseUrlOptions":["https://swap-v2.solanatracker.io"],"title":"Get Swap Quote","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6f1fca08-28fb-4494-bc50-af3ff90ed329":{"name":"from","in":"query","required":true,"description":"The base token address","schema":{"type":"string","example":"So11111111111111111111111111111111111111112","isRequired":true,"description":"The base token address","uniqueKey":"","typeLabel":"string"}},"ca5ea302-ab49-461d-b6d1-208d05409ea9":{"name":"to","in":"query","required":true,"description":"The quote token address","schema":{"type":"string","example":"4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R","isRequired":true,"description":"The quote token address","uniqueKey":"","typeLabel":"string"}},"adb4c1c7-a823-4531-8f6d-f87b217eb92f":{"name":"amount","in":"query","required":true,"description":"The amount of the base token to convert (in native units, not lamports)","schema":{"type":"number","example":1,"isRequired":true,"description":"The amount of the base token to convert (in native units, not lamports)","uniqueKey":"","typeLabel":"number"}},"754a6738-11a6-438c-8960-ad5817300378":{"name":"slippage","in":"query","required":true,"description":"The maximum acceptable slippage percentage","schema":{"type":"number","minimum":0,"maximum":100,"example":10,"isRequired":true,"description":"The maximum acceptable slippage percentage","uniqueKey":"","typeLabel":"number"}}},"responses":{"d6319d7b-4707-4dcb-bb70-ca72137b633e":{"description":"Successful rate quote","content":{"application/json":{"schema":{"type":"object","properties":{"amountIn":{"type":"number","description":"The amount of the source token used for the conversion","example":1,"uniqueKey":"amountIn","typeLabel":"number"},"amountOut":{"type":"number","description":"The amount of the destination token that would be received","example":9181.330823048,"uniqueKey":"amountOut","typeLabel":"number"},"minAmountOut":{"type":"number","description":"The minimum amount of the destination token after applying slippage","example":9089.517514818,"uniqueKey":"minAmountOut","typeLabel":"number"},"currentPrice":{"type":"number","description":"The current market price for the token pair","example":9181.330823048,"uniqueKey":"currentPrice","typeLabel":"number"},"executionPrice":{"type":"number","description":"The actual price at which the trade would be executed","example":9089.517514818,"uniqueKey":"executionPrice","typeLabel":"number"},"priceImpact":{"type":"number","description":"The difference between market price and execution price as a fraction","example":0.0334641736518774,"uniqueKey":"priceImpact","typeLabel":"number"},"fee":{"type":"number","description":"The trading fee charged for the transaction","example":0.01,"uniqueKey":"fee","typeLabel":"number"},"baseCurrency":{"type":"object","properties":{"decimals":{"type":"integer","description":"Base token decimals","example":9,"uniqueKey":"baseCurrency.decimals","typeLabel":"integer"},"mint":{"type":"string","description":"Base token mint address","example":"So11111111111111111111111111111111111111112","uniqueKey":"baseCurrency.mint","typeLabel":"string"}},"uniqueKey":"baseCurrency","typeLabel":"object"},"quoteCurrency":{"type":"object","properties":{"decimals":{"type":"integer","description":"Quote token decimals","example":9,"uniqueKey":"quoteCurrency.decimals","typeLabel":"integer"},"mint":{"type":"string","description":"Quote token mint address","example":"4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R","uniqueKey":"quoteCurrency.mint","typeLabel":"string"}},"uniqueKey":"quoteCurrency","typeLabel":"object"},"platformFee":{"type":"integer","description":"The fee charged by the platform in lamports","example":9000000,"uniqueKey":"platformFee","typeLabel":"integer"},"platformFeeUI":{"type":"number","description":"The platform fee in SOL","example":0.009,"uniqueKey":"platformFeeUI","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amountIn":1,"amountOut":9181.330823048,"minAmountOut":9089.517514818,"currentPrice":9181.330823048,"executionPrice":9089.517514818,"priceImpact":0.0334641736518774,"fee":0.01,"baseCurrency":{"decimals":9,"mint":"So11111111111111111111111111111111111111112"},"quoteCurrency":{"decimals":9,"mint":"4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R"},"platformFee":9000000,"platformFeeUI":0.009}}},"exampleType":"generated"}},"exampleType":"generated"},"4e8ca93e-760d-4010-a09c-ea1a3d42ed31":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","examples":["An internal error occurred","Invalid or missing 'from' or 'to' token address","Invalid amount","Invalid slippage tolerance (should be between 0 and 100%)"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"string","description":"Additional error details","examples":["Unable to fetch pools for token","Token has no pools","No pools with liquidity found"],"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"An internal error occurred","details":"Unable to fetch pools for token"}}},"exampleType":"generated"}},"exampleType":"generated"},"a9c25ebd-9627-4403-9c96-a738f9710cef":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Error message","examples":["An internal error occurred","Invalid or missing 'from' or 'to' token address","Invalid amount","Invalid slippage tolerance (should be between 0 and 100%)"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"string","description":"Additional error details","examples":["Unable to fetch pools for token","Token has no pools","No pools with liquidity found"],"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"An internal error occurred","details":"Unable to fetch pools for token"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"31aad083-668f-47ca-a83b-68f291e588bd":{"url":"https://swap-v2.solanatracker.io","description":"Production server"}}},"originalFileLocation":"swap-api/openapi.json"},"subdomain":"solanatracker","siteName":"Solana Tracker","title":"Cotización de swap en Solana con la Swap API - Solana Tracker","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/swap-api/rate","matchLevel":1},"cn":{"href":"/cn/swap-api/rate","matchLevel":1},"es":{"href":"/es/swap-api/rate","matchLevel":0}}},"lastModified":"2026-11-04T13:11:40.512Z","originalFileLocation":"es/swap-api/rate.mdx","locale":"es"},"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=\"dark\"}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=\"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Solana Tracker\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow, max-image-preview:large, max-snippet:-1\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_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/solanatracker/4Yx8Mp_J_BbpYlxI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cotización de swap en Solana con la Swap API - Solana Tracker\">\u003cmeta data-mint-head property=\"og:description\" content=\"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Solana Tracker\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.solanatracker.io/es/swap-api/rate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://solanatracker.mintlify.app/_mintlify/api/og/v2?division=Swap+API+antigua\u0026amp;title=Cotizaci%C3%B3n+de+swap+en+Solana+con+la+Swap+API\u0026amp;description=Obt%C3%A9n+una+cotizaci%C3%B3n+de+un+swap+de+tokens+de+Solana+con+GET+%2Frate%3A+output+esperado+e+impacto+en+el+precio.+%C3%9Asala+antes+de+un+swap%2C+no+como+API+de+precios.\u0026amp;theme=a0bb09d11a04a4fc1eebd874\u0026amp;signature=6af757462c7f4ad986ac36bdbd0e88cef62a6ac51af7fffe441576d9891dee99\">\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=\"Cotización de swap en Solana con la Swap API - Solana Tracker\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://solanatracker.mintlify.app/_mintlify/api/og/v2?division=Swap+API+antigua\u0026amp;title=Cotizaci%C3%B3n+de+swap+en+Solana+con+la+Swap+API\u0026amp;description=Obt%C3%A9n+una+cotizaci%C3%B3n+de+un+swap+de+tokens+de+Solana+con+GET+%2Frate%3A+output+esperado+e+impacto+en+el+precio.+%C3%9Asala+antes+de+un+swap%2C+no+como+API+de+precios.\u0026amp;theme=a0bb09d11a04a4fc1eebd874\u0026amp;signature=6af757462c7f4ad986ac36bdbd0e88cef62a6ac51af7fffe441576d9891dee99\">\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/solanatracker/4Yx8Mp_J_BbpYlxI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Solana Tracker\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#222\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.solanatracker.io/es/swap-api/rate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/es/swap-api/rate.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.solanatracker.io/es/swap-api/rate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.solanatracker.io/swap-api/rate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.solanatracker.io/cn/swap-api/rate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.solanatracker.io/swap-api/rate\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.solanatracker.io/#organization\",\"name\":\"Solana Tracker\",\"url\":\"https://www.solanatracker.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.solanatracker.io/logo/light.png\"},\"sameAs\":[\"https://www.solanatracker.io\",\"https://x.com/solanatrackr\",\"https://github.com/solanatracker\",\"https://discord.gg/JH2e9rR9fc\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.solanatracker.io#website\",\"name\":\"Solana Tracker\",\"url\":\"https://docs.solanatracker.io\",\"publisher\":{\"@id\":\"https://www.solanatracker.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.solanatracker.io/es/swap-api/rate#webpage\",\"url\":\"https://docs.solanatracker.io/es/swap-api/rate\",\"name\":\"Cotización de swap en Solana con la Swap API\",\"description\":\"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\",\"dateModified\":\"2026-11-04T13:11:40.512Z\",\"isPartOf\":{\"@id\":\"https://docs.solanatracker.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.solanatracker.io/es/swap-api/rate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.solanatracker.io/es/swap-api/rate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swap API antigua\",\"item\":\"https://docs.solanatracker.io/es/swap-api/swap\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cotización de swap en Solana con la Swap API\",\"item\":\"https://docs.solanatracker.io/es/swap-api/rate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.solanatracker.io/es/swap-api/rate#apireference\",\"headline\":\"Cotización de swap en Solana con la Swap API\",\"name\":\"Cotización de swap en Solana con la Swap API\",\"description\":\"Obtén una cotización de un swap de tokens de Solana con GET /rate: output esperado e impacto en el precio. Úsala antes de un swap, no como API de precios.\",\"url\":\"https://docs.solanatracker.io/es/swap-api/rate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.solanatracker.io/es/swap-api/rate#webpage\"},\"dateModified\":\"2026-11-04T13:11:40.512Z\",\"publisher\":{\"@id\":\"https://www.solanatracker.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.solanatracker.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Solana Tracker\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Solana Tracker","nav":{"global":{"anchors":[{"anchor":"API Status","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/signal.svg","href":"https://status.solanatracker.io"},{"anchor":"SDK","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/npm.svg","href":"https://www.npmjs.com/package/@solana-tracker/data-api"},{"anchor":"Discord","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/discord.svg","href":"https://discord.gg/JH2e9rR9fc"}]},"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/swap-api/rate"}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/swap-api/rate"}]},{"language":"es","tabs":[{"tab":"Empezar","pages":[{"title":"Empezar","href":"/es"}]},{"tab":"Guías","pages":[{"title":"Guías","href":"/es/guides"}]},{"tab":"Data API","pages":[{"title":"Data API","href":"/es/data-api/overview"}]},{"tab":"Datastream","pages":[{"title":"Datastream","href":"/es/datastream/overview"}]},{"tab":"Prediction Markets","pages":[{"title":"Prediction Markets","href":"/es/prediction-markets/overview"}]},{"tab":"Raptor Swap API","groups":[{"group":"Empezar","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/rocket.svg","pages":[{"title":"Raptor: API de swap gratuita de Solana en 71 DEX","sidebarTitle":"Resumen","href":"/es/raptor/overview"}]},{"group":"API Reference","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/code.svg","expanded":true,"pages":[{"group":"API Reference","pages":[{"title":"Cotización de swap en Solana con Raptor","deprecated":null,"version":null,"sidebarTitle":"Get swap quote","openapi":"/es/raptor/http/openapi.json get /quote","href":"/es/raptor/http/get-swap-quote"},{"title":"Construir una transacción de swap en Solana con Raptor","deprecated":null,"version":null,"sidebarTitle":"Build swap transaction","openapi":"/es/raptor/http/openapi.json post /swap","href":"/es/raptor/http/build-swap-transaction"},{"title":"Instrucciones de swap en Solana con Raptor","deprecated":null,"version":null,"sidebarTitle":"Build swap instructions","openapi":"/es/raptor/http/openapi.json post /swap-instructions","href":"/es/raptor/http/build-swap-instructions"},{"title":"Cotizar y construir un swap de Solana en una solicitud","deprecated":null,"version":null,"sidebarTitle":"Quote and swap in one request","openapi":"/es/raptor/http/openapi.json post /quote-and-swap","href":"/es/raptor/http/quote-and-swap-in-one-request"},{"title":"Enviar una transacción firmada de Solana con Raptor","deprecated":null,"version":null,"sidebarTitle":"Send a signed transaction","openapi":"/es/raptor/http/openapi.json post /send-transaction","href":"/es/raptor/http/send-a-signed-transaction"},{"title":"Estado de una transacción de Solana con Raptor","deprecated":null,"version":null,"sidebarTitle":"Get transaction status","openapi":"/es/raptor/http/openapi.json get /transaction/{signature}","href":"/es/raptor/http/get-transaction-status"},{"title":"Health check de la API de Raptor","deprecated":null,"version":null,"sidebarTitle":"Health check","openapi":"/es/raptor/http/openapi.json get /health","href":"/es/raptor/http/health-check"}]}]},{"group":"WebSocket","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/code.svg","expanded":true,"pages":[{"title":"Stream de cotizaciones de Raptor para swaps en Solana","sidebarTitle":"/stream","asyncapi":"es/raptor/websocket/asyncapi.json /stream","href":"/es/raptor/websocket/websockets/stream"},{"title":"Stream de swap de Raptor con cotizaciones y transacciones","sidebarTitle":"/stream/swap","asyncapi":"es/raptor/websocket/asyncapi.json /stream/swap","href":"/es/raptor/websocket/websockets/streamswap"}]},{"group":"Recursos","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/book-open.svg","pages":[{"title":"Enviar y seguir transacciones de Solana con Raptor","sidebarTitle":"Transacciones","href":"/es/raptor/transactions"},{"title":"Autoalojar la API de swap de Raptor para Solana","sidebarTitle":"Autoalojamiento","href":"/es/raptor/self-hosting"}]},{"group":"Swap API antigua","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/book.svg","pages":[{"title":"Crear una transacción de swap en Solana con la Swap API","description":"Crea una transacción de swap de Solana serializada con GET /swap, fírmala y envíala desde tu wallet. Incluye opciones de slippage y priority fee.","sidebarTitle":"Swap","openapi":"openapi.json get /swap","href":"/es/swap-api/swap"},{"title":"Cotización de swap en Solana con la Swap API","sidebarTitle":"Rate","openapi":"openapi.json GET /rate","href":"/es/swap-api/rate"},{"title":"SDK de Swap API de Solana: JavaScript, Python, Rust y Go","sidebarTitle":"Librerías","description":"SDK oficiales de la Swap API de Solana Tracker para JavaScript, Python, Rust y Go. Instala, configura y ejecuta swaps en Pump.fun, Raydium, Orca y más.","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/book.svg","iconType":"duotone","href":"/es/swap-api/libraries"}]},{"group":"Cambios recientes","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/clock-rotate-left.svg","pages":[{"title":"Cambios recientes de Raptor Swap API","sidebarTitle":"Cambios recientes","icon":"https://mintlify.s3.us-west-1.amazonaws.com/solanatracker/icons/hugeicons/clock-rotate-left.svg","href":"/es/raptor/recent-changes"}]}]},{"tab":"Solana RPC","pages":[{"title":"Solana RPC","href":"/es/solana-rpc"}]},{"tab":"Yellowstone gRPC","pages":[{"title":"Yellowstone gRPC","href":"/es/yellowstone-grpc"}]}]}]},"basePath":"","title":"Cotización de swap en Solana con la Swap API - Solana Tracker","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}