API документація

Клієнт → серверАутентифікація: Обов'язковий

SendOrder()

Параметри

Обов'язковий

Приклад запиту корисного навантаження

{
  "instrument": "EURUSD",
  "orderType": "limitBuy",
  "limitPrice": 1.085,
  "stopPrice": null,
  "quantity": 1,
  "timeInForce": "GTC"
}

Тип повернення концентратора

Task

Виклик завершується, коли сервер приймає запит. Оновлення портфеля, торгівлі та статусу надсилаються асинхронно на клієнтські події, наведені нижче.

Пов’язані типи повідомлень

/// <summary>
    /// Order payload sent from the client via DefaultHub.SendOrder
    /// </summary>
    public class OrderDetails
    {
        public string Instrument { get; set; }

        /// <summary>
        /// marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell
        /// </summary>
        public string OrderType { get; set; }

        public decimal? LimitPrice { get; set; }

        public decimal? StopPrice { get; set; }

        public decimal Quantity { get; set; }

        public string TimeInForce { get; set; }
    }
OrderDetailsТипОписПриклад значення
Instrumentstring

Trading symbol string sent to the hub (not the full Instrument object).

Див. контракт TypeScript Instrument

"EURUSD"
OrderTypestring

marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell

"limitBuy"
LimitPricedecimal?1.085
StopPricedecimal?null
Quantitydecimal1
TimeInForcestring"GTC"

Приклад JSON

{
  "instrument": "EURUSD",
  "orderType": "limitBuy",
  "limitPrice": 1.085,
  "stopPrice": null,
  "quantity": 1,
  "timeInForce": "GTC"
}

Пов'язані контракти TypeScript

Очікувані події для клієнтів

Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

Запустіть свою платформу.

Почніть.