API dokumentation

post/api/v1/Trade/positions/close-all

Closes all open (non-zero) positions on the account.

Trade

Parametrar

version

path · string

Nödvändig

Begäran kropp

{
  "accountId": 0,
  "instrument": "string"
}

Svar

  • 202Close-all accepted.application/json
    {
      "status": "accepted",
      "message": "Close requested for 3 position(s).",
      "cancelledCount": 3
    }
  • 400Validation failed.application/json
    {
      "status": "rejected",
      "message": "Request body is required."
    }
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

Lansera din plattform.

Kom igång.