Documentation API

post/api/v1/Trade/orders/replace

Replaces quantity and optional limit/stop prices on a working order. Body fields: accountId, orderId, quantity (required); limitPrice and stopPrice (optional JSON property names).

Trade

Paramètres

version

path · string

Requis

Corps de la demande

{
  "accountId": 0,
  "orderId": 0,
  "quantity": 0
}

Réponses

  • 202Replace accepted.application/json
    {
      "status": "accepted",
      "message": "Replace accepted. Refresh GET orders for updated status.",
      "orderId": 1001
    }
  • 400Validation failed.application/json
    {
      "status": "rejected",
      "message": "orderId and quantity must be positive."
    }
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

Lancez votre plateforme.

Commencer.