API Dokumentation

Client → ServerAuthentifizierung: Erforderlich

SendOrder()

Parameter

Erforderlich

Beispiel für eine Anfragenutzlast

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

Hub-Rückgabetyp

Task

Der Aufruf ist abgeschlossen, sobald der Server die Anfrage akzeptiert. Portfolio-, Handels- und Statusaktualisierungen werden asynchron über die unten aufgeführten Client-Ereignisse übertragen.

Verwandte Nachrichtentypen

/// <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; }
    }
OrderDetailsTypBeschreibungBeispielwert
Instrumentstring

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

Siehe TypeScript Instrument Vertrag

"EURUSD"
OrderTypestring

marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell

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

Beispiel-JSON

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

Zugehörige TypeScript-Verträge

Erwartete Kundenereignisse

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

Starten Sie Ihre Plattform.

Los geht’s.