Skip to main content
Glama

set_position_tp_sl

Destructive

Use this when the user asks to set or move the take-profit and/or stop-loss of an open Hyperliquid position. Only the legs you pass change: passing just stop_loss moves the stop and keeps the current take-profit (and vice versa). To remove a leg, cancel its order id from get_my_positions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesCoin symbol of the open position, e.g. BTC
stop_lossNoNew stop-loss trigger price. Omit to leave the current stop-loss as it is
take_profitNoNew take-profit trigger price. Omit to leave the current take-profit as it is

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / stop_loss / description
      Previous value: -"New stop-loss trigger price"New value: +"New stop-loss trigger price. Omit to leave the current stop-loss as it is"
    • changedInput schema / properties / take_profit / description
      Previous value: -"New take-profit trigger price"New value: +"New take-profit trigger price. Omit to leave the current take-profit as it is"
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources