API documentación

Cliente → servidorAutenticación: Requerido

SendOrder()

Parámetros

Requerido

Ejemplo de carga útil de solicitud

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

Tipo de retorno del concentrador

Task

La invocación finaliza cuando el servidor acepta la solicitud. Las actualizaciones de cartera, operaciones y estado se envían de forma asíncrona en los eventos del cliente que se detallan a continuación.

Tipos de mensajes relacionados

/// <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; }
    }
OrderDetailsTipoDescripciónValor de ejemplo
Instrumentstring

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

Consulte el contrato TypeScript Instrument

"EURUSD"
OrderTypestring

marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell

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

Ejemplo JSON

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

Contratos TypeScript relacionados

Eventos previstos para los clientes

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

Lanza tu plataforma.

Empieza.