{"uid":"cap_0Xjumc_x8kjyTvKy08RAu","slug":"otto-ai-modify-hyperliquid-order-add-edit-tp-sl-b9d24b45","name":"Otto AI — Modify Hyperliquid Order (Add/Edit TP/SL)","description":"Add, modify, or cancel TP/SL trigger orders and limit orders on Hyperliquid. Can attach TP/SL to an existing position or change the trigger price of active orders.","url":"https://x402.ottoai.services/modify-hl-order","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"number","description":"Optional new size, used only by modify_limit_order."},"asset":{"type":"string","description":"Asset ticker"},"price":{"type":"number","description":"Absolute trigger price for TP/SL, or the new limit price. Required for every action except 'cancel'."},"action":{"enum":["add_tp","add_sl","modify_tp","modify_sl","modify_limit_order","cancel"],"type":"string","description":"Operation to perform."},"orderId":{"type":"string","description":"Existing order ID. Required for modify_tp, modify_sl, modify_limit_order and cancel; not needed for add_tp/add_sl."},"userAddress":{"type":"string","description":"Optional for external x402 callers — the operated account is your verified payment payer, not this field. Internal/dApp callers must send a valid EVM address."},"triggerPrice":{"type":"number","description":"Alias for price. Accepted; supplying both is rejected."}}},"responseSchema":{"type":"json","example":{"asset":"ETH","price":4000,"action":"add_tp","status":"success","orderId":"12346"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_klxC-gPlND5vb6d0TQiDI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Modifies an existing Hyperliquid perpetuals order by adding or updating a take-profit or stop-loss trigger price.","exampleAgentPrompt":"Add a take-profit at $4000 to my Hyperliquid order ID 12346 — I want it to trigger automatically when the price hits that level.","exampleUseCases":null,"resultDescription":"Returns a JSON object confirming success (true/false), the order ID that was modified, the action applied (e.g. add_tp or add_sl), and the trigger price that was set.","failureModes":["Invalid order ID — order not found on Hyperliquid","Invalid action type — must be add_tp or add_sl","Trigger price rejected — must be above/below current price depending on TP or SL","Payment failure — USDC charge of $0.01 not settled","Order already closed or filled — cannot modify","Network or RPC error connecting to Hyperliquid"],"whenToPreferThis":"Use this endpoint when you need to attach or update a take-profit or stop-loss trigger on an existing Hyperliquid perpetuals order programmatically via a pay-per-call API. Prefer this over manual Hyperliquid UI interaction when automating trading workflows or running an AI agent that manages risk on open positions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:49:22.722Z","isFirstParty":false}