API документация
post
/api/v1/Trade/ordersPlaces 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
{}