Set or replace the exchange-side stop-loss and/or take-profit on an open position. Sending one leg leaves the other untouched; neither is refused (scope: trading:write)

Risk-reducing only. Nothing on the trading surface can open a position, place a resting order, or move funds. Rate-limited to 30 live-account actions per minute per user.

patch/v1/trading/positions/{symbol}/protection

Request

  • Base URL: https://app.texttoquant.com/api
  • URL: https://app.texttoquant.com/api/v1/trading/positions/{symbol}/protection
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

symbolstring required

Request body

connectionIdstring uuid required
side'long' | 'short' required
stopLossnumber
takeProfitnumber

Response

Success

successtrue required
dataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.