Close a position held on the ACCOUNT (manual, or the remainder no strategy owns) (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.

delete/v1/trading/positions/{symbol}

Request

  • Base URL: https://app.texttoquant.com/api
  • URL: https://app.texttoquant.com/api/v1/trading/positions/{symbol}
  • 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
fractionnumber

Share of the WHOLE venue position — would also flatten a strategy's share.

quantitynumber

Exact base amount, capped at the live size. Use this when only part of the position is yours to close.

Response

Success

successtrue required
dataobject required

Changes

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