{"uid":"cap_VlNdp1hzFAYpWPwkAHcER","slug":"trdefi-yield-position-prepare-177bd153","name":"TRDEFI Yield Position Prepare","description":"TRDEFI prepare request","url":"https://yield.trdefi.com/v1/positions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","arc","baseSepolia"],"type":"string","description":"Network to ship on. Exactly these three keys: `base` (8453), `arc` (5042), `baseSepolia` (84532). Any other value is rejected with 422."},"wallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Your own EVM address. The position belongs to it; funds never leave it."},"deposits":{"type":"array","items":{"type":"object","required":["symbol","amount"],"properties":{"amount":{"type":"string","description":"Amount in base units, as an integer string, e.g. \"1000000\" for 1 USDC."},"symbol":{"type":"string","description":"Token symbol or address, e.g. \"USDC\"."}}},"maxItems":2,"minItems":2,"description":"REQUIRED. Exactly two tokens, and they must be different symbols. Each `amount` is an integer string in base units — never a float. You supply both sides, so we never have to guess a price."},"makerFeeBps":{"type":"integer","default":0,"maximum":2000000,"minimum":0,"description":"Fee you keep per swap, in the protocol's 1e7 scale (`30000` = 0.30%). Independent of, and on top of, the 0.05% protocol fee. Optional; defaults to 0."},"checkBalances":{"type":"boolean","default":false,"description":"Add live balance checks to `preflight` so you can tell a human the transfer will succeed before asking them to approve."},"includeApprovals":{"type":"boolean","default":true,"description":"Set `false` to receive only the `ship` step. By default the `approve` steps are included only where your live allowance is short."}}},"responseSchema":null,"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_qNsu4alJOfSZN6ITqKaGo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Prepares a DeFi liquidity position request on a specified EVM chain, pairing two tokens with a configurable maker fee for yield generation.","exampleAgentPrompt":"Set up a TRDEFI yield position on Base for my wallet 0xABC...123, depositing 1000000 USDC (1 USDC) and 500000000000000000 WETH (0.5 ETH), with a maker fee of 300 basis points.","exampleUseCases":[{"title":"Stablecoin yield on Base","prompt":"Prepare a TRDEFI liquidity position on Base for my wallet 0xDEF...456, depositing 5000000 USDC and 5000000 USDT with a 100 basis point maker fee so I can start earning swap yield."},{"title":"ETH-USDC position on Arbitrum","prompt":"Set up a TRDEFI position on Arbitrum for wallet 0x789...ABC — I want to deposit 2000000000000000000 ETH and 3000000 USDC with a 500 basis point maker fee."},{"title":"Low-fee market-making on Ethereum","prompt":"Create a yield position on Ethereum mainnet with my wallet 0x111...222, pairing 10000000 USDC and 10000000 DAI with a 50 basis point maker fee to keep things competitive."}],"resultDescription":"Returns a prepared position object containing the liquidity position parameters, chain routing details, and configuration ready for on-chain submission, without moving funds from the user's wallet.","failureModes":["Invalid wallet address format returns a 400 error","Unsupported chain name causes a validation error","Deposits array not containing exactly two token entries is rejected","Token symbol not recognized on the specified chain returns an error","Amount not in valid base-unit string format causes a parse failure","makerFeeBps value outside 0-2000000 range is rejected","Payment of $0.02 USDC not received results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically prepare a two-token DeFi yield position on an EVM chain (Base, Ethereum, Arbitrum) where funds stay in the user's wallet and you want to set a custom maker fee. Prefer this over generic swap or bridge endpoints when the goal is yield generation through liquidity provision with configurable fee capture.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:31:53.565Z","isFirstParty":false,"canonicalSlug":"trdefi-yield-position-prepare-177bd153"}