sap adrena trade intent
sap_adrena_trade_intentIntent-level Adrena trading API. Pass market name, side, USD collateral, and leverage (or "max"). Resolves custody, collateral, prices, policy, balance, oracle-readiness, and simulation before returning a signable transaction. Never describe the result as ready-to-sign unless transactionBase64 exists and no oracleReadiness.ready=false, simulationError, safeToApprove=false, or approvalBlocked field is present.
SAP MCP execution guidance: Intent: Solana value-action or trading workflow. Pricing: paid builder; estimate first, then pay/build and finalize unsigned transactions locally when returned. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Position side. | |
| owner | Yes | Wallet public key (base58). | |
| market | Yes | Market symbol: BONK, JITOSOL, WBTC, USDC, XAU, XAG, WTI. | |
| leverage | Yes | Leverage multiplier (e.g. "3" for 3x) or "max" for maxInitialLeverage. | |
| poolName | No | Pool: main-pool (default) or commodities-pool. | |
| stopLossPct | No | Optional stop loss as % from entry (e.g. 5 = 5% away). Omit to skip. | |
| collateralUsd | Yes | Collateral amount in USD. Converted to token amount using oracle price. | |
| takeProfitPct | No | Optional take profit as % from entry (e.g. 15 = 15% away). Omit to skip. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |