{"uid":"cap_sgrrt6MwAMbvSqdzrPlyP","slug":"stockkit-trade-builder-tokenized-stock-swap-transaction-constructor-15a10c49","name":"StockKit Trade Builder – Tokenized Stock Swap Transaction Constructor","description":"Build tokenized-stock applications on Robinhood Chain with unified market data, execution, portfolio, and agent infrastructure.","url":"https://api.stockkit.dev/v1/x402/trade/build","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"side":{"enum":["buy","sell"],"type":"string","description":"buy = spend USDG to receive the token; sell = spend the token to receive USDG."},"denom":{"enum":["usd","token"],"type":"string","default":"usd","description":"Unit of amount: usd (USDG) or token (the stock token)."},"amount":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Trade size as a positive decimal string, in the unit given by denom."},"symbol":{"type":"string","maxLength":16,"minLength":1,"description":"Stock token ticker, e.g. NVDA."},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Wallet that signs and sends the returned transactions and receives the swap output."},"slippageBps":{"type":"integer","default":50,"maximum":5000,"minimum":1,"description":"Max slippage in basis points (50 = 0.5%)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tBVixCk6ASd2qhd7tNntA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds unsigned buy/sell transactions for tokenized stocks on Robinhood Chain, returning ready-to-sign transaction objects for execution","exampleAgentPrompt":"Build me a buy transaction on StockKit for $500 worth of NVDA tokenized stock, sending it to my wallet 0xAbC1234567890abcdef1234567890abcdef123456 with a max slippage of 50 basis points.","exampleUseCases":[{"title":"Agent-executed tokenized stock purchase","prompt":"Build a buy transaction to pick up $200 of TSLA tokenized stock on Robinhood Chain, deliver it to wallet 0x1234567890abcdef1234567890abcdef12345678, and keep slippage under 100 basis points."},{"title":"Automated portfolio rebalancing sell","prompt":"I need to sell 5 NVDA stock tokens back to USDG — build me the sell transaction for wallet 0xDeadBeef1234567890abcdef1234567890abcDEF with 50 bps slippage tolerance."},{"title":"DCA bot recurring stock token buy","prompt":"Construct a buy order for $50 worth of AAPL tokenized stock on StockKit, denominated in USD, for wallet 0xFeed1234567890abcdef1234567890abcdef5678 with default slippage."}],"resultDescription":"Returns a JSON object containing one or more unsigned blockchain transactions ready to be signed and broadcast by the recipient wallet, representing the on-chain swap between USDG and the specified stock token on Robinhood Chain.","failureModes":["Unknown or unsupported stock ticker symbol returns an error","Invalid wallet address format (non-0x hex) causes validation failure","Amount string with invalid format (non-numeric) rejected","Slippage out of range (below 1 or above 5000 bps) causes parameter error","Insufficient liquidity for the requested trade size may return an error","Missing required fields (symbol, side, amount, recipient) cause 400 validation errors"],"whenToPreferThis":"Use this endpoint when you need to programmatically build tokenized-stock swap transactions on Robinhood Chain for an AI agent or automation pipeline. Prefer it over generic DEX swap builders when dealing specifically with tokenized equities (stocks) paired with USDG, and when you need precise slippage control and wallet-addressed unsigned transactions ready for signing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:31.003Z","isFirstParty":false}