Flatten every open position at the market. The strategies that opened them keep running unless paused (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.

post/v1/trading/positions/close-all

Request

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

Request body

connectionIdstring uuid

Limit to one account. Omit = every connected account.

Response

Success

successtrue required
dataobject[] required

Changes

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