API الوثائق

post/api/v1/Trade/orders

Places a new order on the caller's trading account. Optional take-profit / stop-loss: if an open position already exists on the instrument, bracket legs are attached in the same request ({tpslFollowUp=attached}); otherwise the primary order is accepted and the client should call {POST orders/tpsl} after the position opens ({tpslFollowUp=set_after_fill}).

Trade

حدود

version

path · string

مطلوب

نص الطلب

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

استجابات

  • 202Order accepted and initiated.application/json
    {
      "status": "accepted",
      "message": "Primary order accepted; call POST orders/tpsl after the position opens.",
      "orderId": -42,
      "tpslFollowUp": "set_after_fill"
    }
  • 400Validation failed.application/json
    {
      "status": "rejected",
      "message": "Instrument and orderType are required."
    }
  • 403Instrument excluded for brand, or Trading claim / ownership failed.application/json
    {}
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

أطلق منصتك.

ابدأ.