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).

टाइपस्क्रिप्ट 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"
}

संबंधित टाइपस्क्रिप्ट अनुबंध

अपेक्षित ग्राहक कार्यक्रम

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

अपने प्लेटफ़ॉर्म को लॉन्च करें।

शुरू करें।